File tree Expand file tree Collapse file tree
src/ol_openedx_git_auto_export
ol_openedx_git_auto_export Expand file tree Collapse file tree Original file line number Diff line number Diff 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'] `
Original file line number Diff line number Diff 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 ]
Original file line number Diff line number Diff line change @@ -184,6 +184,15 @@ def export_library_to_git(library_key):
184184
185185
186186def 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 (
Original file line number Diff line number Diff line change 11[project ]
22name = " ol-openedx-git-auto-export"
3- version = " 0.7.1 "
3+ version = " 0.8.0 "
44description = " A plugin that auto saves the course OLX to git when an author publishes it"
55authors = [
66 {name = " MIT Office of Digital Learning" }
You can’t perform that action at this time.
0 commit comments