Skip to content

Commit 92d6b20

Browse files
chore: merge branch 'master' into braden/openedx-catalog
2 parents 8c0e9e0 + 467495c commit 92d6b20

159 files changed

Lines changed: 3907 additions & 10706 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/js-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ jobs:
7373
npm run test
7474
7575
- name: Save Job Artifacts
76-
uses: actions/upload-artifact@v6
76+
uses: actions/upload-artifact@v7
7777
with:
7878
name: Build-Artifacts
7979
path: |

.github/workflows/quality-checks.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,14 +78,14 @@ jobs:
7878
PIP_SRC: ${{ runner.temp }}
7979
TARGET_BRANCH: ${{ github.base_ref }}
8080
run: |
81-
make pycodestyle
81+
ruff check --output-format=github .
8282
make xsslint
8383
make pii_check
8484
make check_keywords
8585
8686
- name: Save Job Artifacts
8787
if: always()
88-
uses: actions/upload-artifact@v6
88+
uses: actions/upload-artifact@v7
8989
with:
9090
name: Build-Artifacts
9191
path: |

.github/workflows/static-assets-check.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ jobs:
9898
env:
9999
LMS_CFG: lms/envs/minimal.yml
100100
CMS_CFG: lms/envs/minimal.yml
101-
DJANGO_SETTINGS_MODULE: lms.envs.production
102101
run: |
103-
./manage.py lms collectstatic --noinput
104-
./manage.py cms collectstatic --noinput
102+
DJANGO_SETTINGS_MODULE=lms.envs.production ./manage.py lms collectstatic --noinput
103+
DJANGO_SETTINGS_MODULE=cms.envs.production ./manage.py cms collectstatic --noinput

.github/workflows/unit-tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ jobs:
131131
132132
- name: save pytest warnings json file
133133
if: success()
134-
uses: actions/upload-artifact@v6
134+
uses: actions/upload-artifact@v7
135135
with:
136136
name: pytest-warnings-json-${{ matrix.shard_name }}-${{ matrix.python-version }}-${{ matrix.django-version }}-${{ matrix.mongo-version }}-${{ matrix.os-version }}
137137
path: |
@@ -143,7 +143,7 @@ jobs:
143143
mv reports/.coverage reports/${{ matrix.shard_name }}_${{ matrix.python-version }}_${{ matrix.django-version }}_${{ matrix.mongo-version }}_${{ matrix.os-version }}.coverage
144144
145145
- name: Upload coverage
146-
uses: actions/upload-artifact@v6
146+
uses: actions/upload-artifact@v7
147147
with:
148148
name: coverage-${{ matrix.shard_name }}-${{ matrix.python-version }}-${{ matrix.django-version }}-${{ matrix.mongo-version }}-${{ matrix.os-version }}
149149
path: reports/${{ matrix.shard_name }}_${{ matrix.python-version }}_${{ matrix.django-version }}_${{ matrix.mongo-version }}_${{ matrix.os-version }}.coverage
@@ -230,7 +230,7 @@ jobs:
230230
steps:
231231
- uses: actions/checkout@v6
232232
- name: collect pytest warnings files
233-
uses: actions/download-artifact@v7
233+
uses: actions/download-artifact@v8
234234
with:
235235
pattern: pytest-warnings-json-*
236236
merge-multiple: true
@@ -245,7 +245,7 @@ jobs:
245245
246246
- name: save warning report
247247
if: success()
248-
uses: actions/upload-artifact@v6
248+
uses: actions/upload-artifact@v7
249249
with:
250250
name: pytest-warning-report-html
251251
path: |
@@ -257,14 +257,14 @@ jobs:
257257
needs: [compile-warnings-report]
258258
steps:
259259
- name: Merge Pytest Warnings JSON Artifacts
260-
uses: actions/upload-artifact/merge@v6
260+
uses: actions/upload-artifact/merge@v7
261261
with:
262262
name: pytest-warnings-json
263263
pattern: pytest-warnings-json-*
264264
delete-merged: true
265265

266266
- name: Merge Coverage Artifacts
267-
uses: actions/upload-artifact/merge@v6
267+
uses: actions/upload-artifact/merge@v7
268268
with:
269269
name: coverage
270270
pattern: coverage-*
@@ -289,7 +289,7 @@ jobs:
289289
python-version: ${{ matrix.python-version }}
290290

291291
- name: Download all artifacts
292-
uses: actions/download-artifact@v7
292+
uses: actions/download-artifact@v8
293293
with:
294294
pattern: coverage-*
295295
merge-multiple: true

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ lms/envs/private.py
1313
cms/envs/private.py
1414
.venv/
1515
CLAUDE.md
16+
.claude/
1617
AGENTS.md
1718
# end-noclean
1819

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,8 +171,8 @@ xsslint: ## check xss for quality issuest
171171
--config=scripts.xsslint_config \
172172
--thresholds=scripts/xsslint_thresholds.json
173173

174-
pycodestyle: ## check python files for quality issues
175-
pycodestyle .
174+
ruff: ## check python files with ruff
175+
ruff check .
176176

177177
## Re-enable --lint flag when this issue https://github.com/openedx/edx-platform/issues/35775 is resolved
178178
pii_check: ## check django models for pii annotations

cms/djangoapps/contentstore/rest_api/v1/serializers/course_waffle_flags.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,12 @@ def get_use_new_files_uploads_page(self, obj):
122122

123123
def get_use_new_video_uploads_page(self, obj):
124124
"""
125-
Method to get the use_new_video_uploads_page switch
125+
Method to get the use_new_video_uploads_page switch.
126+
127+
This is off by default because the video uploads page requires the edX
128+
video pipeline which is not available to the open source community.
129+
130+
See https://github.com/openedx/openedx-platform/issues/37972
126131
"""
127132
course_key = self.get_course_key()
128133
return toggles.use_new_video_uploads_page(course_key)

cms/djangoapps/contentstore/toggles.py

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -259,19 +259,22 @@ def use_new_export_page(course_key):
259259
# .. toggle_name: contentstore.new_studio_mfe.use_new_video_uploads_page
260260
# .. toggle_implementation: CourseWaffleFlag
261261
# .. toggle_default: False
262-
# .. toggle_description: This flag enables the use of the new studio video uploads page mfe
263-
# .. toggle_use_cases: temporary
264-
# .. toggle_creation_date: 2023-5-15
265-
# .. toggle_target_removal_date: 2023-8-31
266-
# .. toggle_tickets: TNL-10619
267-
# .. toggle_warning:
262+
# .. toggle_description: This flag enables the use of the new studio video uploads page MFE.
263+
# Note: This page only works on edx.org or other sites that have reverse-engineered
264+
# the edX video pipeline. It is off by default for the community.
265+
# .. toggle_use_cases: opt_in
266+
# .. toggle_creation_date: 2023-05-15
267+
# .. toggle_tickets: https://github.com/openedx/openedx-platform/issues/37972
268268
ENABLE_NEW_STUDIO_VIDEO_UPLOADS_PAGE = CourseWaffleFlag(
269269
f'{CONTENTSTORE_NAMESPACE}.new_studio_mfe.use_new_video_uploads_page', __name__)
270270

271271

272272
def use_new_video_uploads_page(course_key):
273273
"""
274-
Returns a boolean if new studio video uploads mfe is enabled
274+
Returns a boolean if new studio video uploads MFE is enabled.
275+
276+
This is off by default because the video uploads page requires the edX
277+
video pipeline which is not available to the open source community.
275278
"""
276279
return ENABLE_NEW_STUDIO_VIDEO_UPLOADS_PAGE.is_enabled(course_key)
277280

cms/djangoapps/contentstore/utils.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151
use_new_import_page,
5252
use_new_schedule_details_page,
5353
use_new_unit_page,
54-
use_new_video_uploads_page,
5554
)
5655
from cms.djangoapps.models.settings.course_grading import CourseGradingModel
5756
from cms.djangoapps.models.settings.course_metadata import CourseMetadata
@@ -425,11 +424,10 @@ def get_video_uploads_url(course_locator) -> str:
425424
Gets course authoring microfrontend URL for files and uploads page view.
426425
"""
427426
video_uploads_url = None
428-
if use_new_video_uploads_page(course_locator):
429-
mfe_base_url = get_course_authoring_url(course_locator)
430-
course_mfe_url = f'{mfe_base_url}/course/{course_locator}/videos/'
431-
if mfe_base_url:
432-
video_uploads_url = course_mfe_url
427+
mfe_base_url = get_course_authoring_url(course_locator)
428+
course_mfe_url = f'{mfe_base_url}/course/{course_locator}/videos/'
429+
if mfe_base_url:
430+
video_uploads_url = course_mfe_url
433431
return video_uploads_url
434432

435433

cms/djangoapps/contentstore/video_storage_handlers.py

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@
5050
from tempfile import NamedTemporaryFile, mkdtemp
5151
from wsgiref.util import FileWrapper
5252

53-
from common.djangoapps.edxmako.shortcuts import render_to_response
5453
from common.djangoapps.util.json_request import JsonResponse
5554
from openedx.core.djangoapps.video_config.models import VideoTranscriptEnabledFlag
5655
from openedx.core.djangoapps.video_config.toggles import PUBLIC_VIDEO_SHARE
@@ -62,8 +61,8 @@
6261
from xmodule.modulestore.django import modulestore # lint-amnesty, pylint: disable=wrong-import-order
6362

6463
from .models import VideoUploadConfig
65-
from .toggles import use_new_video_uploads_page, use_mock_video_uploads
66-
from .utils import get_video_uploads_url, get_course_videos_context
64+
from .toggles import use_mock_video_uploads
65+
from .utils import get_video_uploads_url
6766
from .video_utils import validate_video_image
6867
from .views.course import get_course_and_check_access
6968

@@ -740,13 +739,7 @@ def videos_index_html(course, pagination_conf=None):
740739
"""
741740
Returns an HTML page to display previous video uploads and allow new ones
742741
"""
743-
if use_new_video_uploads_page(course.id):
744-
return redirect(get_video_uploads_url(course.id))
745-
context = get_course_videos_context(
746-
course,
747-
pagination_conf,
748-
)
749-
return render_to_response('videos_index.html', context)
742+
return redirect(get_video_uploads_url(course.id))
750743

751744

752745
def videos_index_json(course):

0 commit comments

Comments
 (0)