Skip to content

Commit 76f3db7

Browse files
fix: missing migration added, version bump and some docs
1 parent 4b570c4 commit 76f3db7

4 files changed

Lines changed: 19 additions & 2 deletions

File tree

src/ol_openedx_git_auto_export/CONFIGURATION.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ This document describes the available feature flags for controlling git auto-exp
88

99
#### `ENABLE_GIT_AUTO_EXPORT`
1010
- **Type**: Boolean
11-
- **Default**: `False`
11+
- **Default**: `True`
1212
- **Purpose**: Controls automatic git export for courses when they are published
1313
- **Scope**: Courses only (unless library flag not set, see below)
1414
- **Location**: `settings.FEATURES['ENABLE_GIT_AUTO_EXPORT']`

src/ol_openedx_git_auto_export/ol_openedx_git_auto_export/migrations/0002_contentgitrepository.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,12 @@ class Migration(migrations.Migration):
2626
max_length=255, primary_key=True, serialize=False
2727
),
2828
),
29+
migrations.AlterModelOptions(
30+
name="contentgitrepository",
31+
options={
32+
"ordering": ["-created"],
33+
"verbose_name": "Content Git Repository",
34+
"verbose_name_plural": "Content Git Repositories",
35+
},
36+
),
2937
]

src/ol_openedx_git_auto_export/ol_openedx_git_auto_export/utils.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,15 @@ def export_library_to_git(library_key):
184184

185185

186186
def is_auto_export_enabled(is_library=False): # noqa: FBT002
187+
"""
188+
Check if automatic Git export is enabled.
189+
190+
Args:
191+
is_library (bool): Whether checking for library (True) or course (False).
192+
193+
Returns:
194+
bool: True if automatic Git export is enabled, False otherwise.
195+
"""
187196
git_export_enabled = settings.FEATURES.get("ENABLE_EXPORT_GIT")
188197
if is_library:
189198
return git_export_enabled and settings.FEATURES.get(

src/ol_openedx_git_auto_export/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "ol-openedx-git-auto-export"
3-
version = "0.7.1"
3+
version = "0.8.0"
44
description = "A plugin that auto saves the course OLX to git when an author publishes it"
55
authors = [
66
{name = "MIT Office of Digital Learning"}

0 commit comments

Comments
 (0)