Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
code.vt.edu will be down for maintenance from 0530-0630 EDT Wednesday, March 26th
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
39a3770a
Commit
39a3770a
authored
4 years ago
by
Régis Behmo
Browse files
Options
Downloads
Patches
Plain Diff
Document openedx/core/djangoapps/video_pipeline feature toggles
parent
8aa049be
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openedx/core/djangoapps/video_pipeline/config/waffle.py
+30
-1
30 additions, 1 deletion
openedx/core/djangoapps/video_pipeline/config/waffle.py
openedx/core/djangoapps/video_pipeline/models.py
+41
-3
41 additions, 3 deletions
openedx/core/djangoapps/video_pipeline/models.py
with
71 additions
and
4 deletions
openedx/core/djangoapps/video_pipeline/config/waffle.py
+
30
−
1
View file @
39a3770a
...
...
@@ -8,8 +8,37 @@ from openedx.core.djangoapps.waffle_utils import CourseWaffleFlag, WaffleFlag, W
# Videos Namespace
WAFFLE_NAMESPACE
=
'
videos
'
# Waffle flag telling whether youtube is deprecated.
"""
.. toggle_name: videos.deprecate_youtube
.. toggle_implementation: WaffleFlag
.. toggle_default: False
.. toggle_description: Waffle flag telling whether youtube is deprecated. When enabled,
videos are no longer uploaded to YouTube as part of the video pipeline.
.. toggle_category: videos
.. toggle_use_cases: open_edx
.. toggle_creation_date: 2018-08-03
.. toggle_expiration_date: None
.. toggle_warnings: None
.. toggle_tickets: https://github.com/edx/edx-platform/pull/18765
.. toggle_status: supported
"""
DEPRECATE_YOUTUBE
=
'
deprecate_youtube
'
"""
.. toggle_name: videos.enable_devstack_video_uploads
.. toggle_implementation: WaffleFlag
.. toggle_default: False
.. toggle_description: When enabled, use Multi-Factor Authentication (MFA) for
authenticating to AWS. These short-lived access tokens are well suited for
development (probably?).
.. toggle_category: videos
.. toggle_use_cases: open_edx
.. toggle_creation_date: 2020-03-12
.. toggle_expiration_date: None
.. toggle_warnings: Enabling this feature requires that the ROLE_ARN,
MFA_SERIAL_NUMBER, MFA_TOKEN settings are properly defined.
.. toggle_tickets: https://github.com/edx/edx-platform/pull/23375
.. toggle_status: supported
"""
ENABLE_DEVSTACK_VIDEO_UPLOADS
=
'
enable_devstack_video_uploads
'
ENABLE_VEM_PIPELINE
=
'
enable_vem_pipeline
'
...
...
This diff is collapsed.
Click to expand it.
openedx/core/djangoapps/video_pipeline/models.py
+
41
−
3
View file @
39a3770a
...
...
@@ -50,6 +50,19 @@ class VEMPipelineIntegration(ConfigurationModel):
Manages configuration for connecting to the video encode manager service and using its API.
.. no_pii:
.. toggle_name: VEMPipelineIntegration.enabled
.. toggle_implementation: ConfigurationModel
.. toggle_default: False
.. toggle_description: Send videos to the Video Encode Manager (VEM) as part of the
video pipeline.
.. toggle_category: video_pipeline
.. toggle_use_cases: open_edx
.. toggle_creation_date: 2020-06-04
.. toggle_expiration_date: None
.. toggle_warnings: None
.. toggle_tickets: https://github.com/edx/edx-platform/pull/24093
.. toggle_status: supported
"""
client_name
=
models
.
CharField
(
max_length
=
100
,
...
...
@@ -80,9 +93,22 @@ class VEMPipelineIntegration(ConfigurationModel):
@python_2_unicode_compatible
class
VideoUploadsEnabledByDefault
(
ConfigurationModel
):
"""
Enables video uploads
enabled By default feature
across the platform.
Enables video uploads across the platform.
.. no_pii:
.. toggle_name: VideoUploadsEnabledByDefault.enabled_for_all_courses
.. toggle_implementation: ConfigurationModel
.. toggle_default: False
.. toggle_description: Allow video uploads for all courses of the platform. This
enables the
"
Video Uploads
"
menu in the CMS.
.. toggle_category: video_pipeline
.. toggle_use_cases: open_edx
.. toggle_creation_date: 2017-11-10
.. toggle_expiration_date: None
.. toggle_warnings: None
.. toggle_tickets: https://github.com/edx/edx-platform/pull/16536
.. toggle_status: supported
"""
# this field overrides course-specific settings
enabled_for_all_courses
=
models
.
BooleanField
(
default
=
False
)
...
...
@@ -122,10 +148,22 @@ class VideoUploadsEnabledByDefault(ConfigurationModel):
@python_2_unicode_compatible
class
CourseVideoUploadsEnabledByDefault
(
ConfigurationModel
):
"""
Enables video uploads enabled by default feature for a specific course. Its global feature must be
enabled for this to take effect.
Enables video uploads for a specific course.
.. no_pii:
.. toggle_name: CourseVideoUploadsEnabledByDefault.course_id
.. toggle_implementation: ConfigurationModel
.. toggle_default: False
.. toggle_description: Allow video uploads for a specific course. This enables the
"
Video Uploads
"
menu in the CMS.
.. toggle_category: video_pipeline
.. toggle_use_cases: open_edx
.. toggle_creation_date: 2017-11-10
.. toggle_expiration_date: None
.. toggle_warnings: None
.. toggle_tickets: https://github.com/edx/edx-platform/pull/16536
.. toggle_status: supported
"""
KEY_FIELDS
=
(
'
course_id
'
,)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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