feat: create feature flag for PLS custom pacing

This commit is contained in:
Sofia Yoon
2021-06-21 10:38:52 -04:00
parent 87a620612f
commit 4d96449134
10 changed files with 132 additions and 6 deletions

View File

@@ -1051,7 +1051,7 @@ def allowed_metadata_by_category(category):
return {
'vertical': [],
'chapter': ['start'],
'sequential': ['due', 'format', 'start', 'graded']
'sequential': ['due', 'due_num_weeks', 'format', 'start', 'graded']
}.get(category, ['*'])

View File

@@ -79,6 +79,12 @@ class SequenceFields: # lint-amnesty, pylint: disable=missing-class-docstring
scope=Scope.settings,
)
due_num_weeks = Integer(
display_name = _("Number of Weeks Due By"),
help=_("Enter the number of weeks the problems are due by"),
scope = Scope.settings,
)
hide_after_due = Boolean(
display_name=_("Hide sequence content After Due Date"),
help=_(
@@ -195,6 +201,7 @@ class ProctoringFields:
default=False,
scope=Scope.settings,
)
def _get_course(self):
"""