Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8b0693f2
Commit
8b0693f2
authored
7 years ago
by
Nimisha Asthagiri
Browse files
Options
Downloads
Patches
Plain Diff
Add highlights_enabled_for_messaging course field
parent
8b8677a0
Loading
Loading
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
cms/djangoapps/models/settings/course_metadata.py
+2
-7
2 additions, 7 deletions
cms/djangoapps/models/settings/course_metadata.py
common/lib/xmodule/xmodule/course_module.py
+8
-0
8 additions, 0 deletions
common/lib/xmodule/xmodule/course_module.py
with
10 additions
and
7 deletions
cms/djangoapps/models/settings/course_metadata.py
+
2
−
7
View file @
8b0693f2
...
...
@@ -28,6 +28,7 @@ class CourseMetadata(object):
'
end
'
,
'
enrollment_start
'
,
'
enrollment_end
'
,
'
certificate_available_date
'
,
'
tabs
'
,
'
graceperiod
'
,
'
show_timezone
'
,
...
...
@@ -59,6 +60,7 @@ class CourseMetadata(object):
'
show_correctness
'
,
'
chrome
'
,
'
default_tab
'
,
'
highlights_enabled_for_messaging
'
,
]
@classmethod
...
...
@@ -108,13 +110,6 @@ class CourseMetadata(object):
if
not
XBlockStudioConfigurationFlag
.
is_enabled
():
filtered_list
.
append
(
'
allow_unsupported_xblocks
'
)
# TODO: https://openedx.atlassian.net/browse/EDUCATOR-736
# Before we roll out the auto-certs feature, move this to a good, shared
# place such that we're not repeating code found in LMS.
switches
=
WaffleSwitchNamespace
(
name
=
u
'
certificates
'
,
log_prefix
=
u
'
Certificates:
'
)
if
not
switches
.
is_enabled
(
u
'
instructor_paced_only
'
):
filtered_list
.
append
(
'
certificate_available_date
'
)
return
filtered_list
@classmethod
...
...
This diff is collapsed.
Click to expand it.
common/lib/xmodule/xmodule/course_module.py
+
8
−
0
View file @
8b0693f2
...
...
@@ -869,6 +869,14 @@ class CourseFields(object):
),
scope
=
Scope
.
settings
,
default
=
False
)
highlights_enabled_for_messaging
=
Boolean
(
display_name
=
_
(
"
Highlights Enabled for Messaging
"
),
help
=
_
(
"
Enter true or false. If true, any highlights associated with content in the course will be messaged
"
"
to learners at their scheduled time.
"
),
scope
=
Scope
.
settings
,
default
=
False
)
class
CourseModule
(
CourseFields
,
SequenceModule
):
# pylint: disable=abstract-method
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment