Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vue/padv 1558 #35999

Closed
wants to merge 128 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
73d7560
build: kickoff the Olive release
mtyaka Oct 11, 2022
eed0dca
Merge pull request #31144 from openedx/mtyaka/olive-kickoff
mtyaka Oct 11, 2022
b2305b4
build: run tests for open-release branches on GH hosted runners
iamsobanjaved Nov 16, 2022
df4f843
build: update shard in unit test worflow for forks
iamsobanjaved Nov 21, 2022
9bdba25
Merge pull request #31310 from openedx/iamsobanjaved/olive-tests-gh-h…
mtyaka Nov 23, 2022
39b7b2b
fix: XSS and open redirect vulnerability
syedsajjadkazmii Nov 17, 2022
de4d748
Merge pull request #31305 from openedx/sajjad/backport-van-1133-xss-o…
mtyaka Nov 23, 2022
203bf9f
fix: studio submit handler (olive backport) (#31219)
connorhaugh Nov 28, 2022
903ea00
feat!: update Drag and Drop v2 XBlock to prevent XSS vulnerabilities
Agrendalath Nov 28, 2022
3dbb6c1
Merge pull request #31353 from open-craft/agrendalath/update_drag_and…
Nov 28, 2022
a080367
fix: Fix retiring user auth models on disable event
Ali-D-Akbar Dec 6, 2022
e6636f0
Merge pull request #31401 from openedx/aakbar/backport-SEC-1466-refre…
Ali-D-Akbar Dec 6, 2022
220bc72
fix: Fix retiring user auth models on disable event
moeez96 Sep 6, 2022
05e6382
Merge pull request #31409 from open-craft/keith/backport-jwt-olive
mtyaka Dec 7, 2022
7b4975c
docs: Document the discussions app (#31045)
xitij2000 Oct 19, 2022
3f8f0b2
fix: Change approach to processing course topics (#31200)
xitij2000 Nov 1, 2022
023e07c
fix: delay creation of course topics after course publish (#31307)
xitij2000 Nov 18, 2022
c459d6c
fix: removed switch experience bar from legacy (#31138)
muhammadadeeltajamul Oct 12, 2022
470b5d7
feat: add "count_flagged" query param to the learner thread endpoint …
0x29a Oct 12, 2022
10b5849
fix: updated topic sorting for discussions MFE (#31124)
AhtishamShahid Oct 13, 2022
00da61d
fix: filter out discussion topics that have not started yet for instr…
Sep 30, 2022
fdedd9b
refactor: remove todo to add tracking for reported content email noti…
Oct 28, 2022
ef6bda1
feat: add discussion reported and unreported events
Oct 27, 2022
259ff32
feat: added post filters in learners tab api (#31191)
muhammadadeeltajamul Nov 3, 2022
af20df0
feat: added sort by recent activity for activity stats api (#31252)
muhammadadeeltajamul Nov 7, 2022
7ece651
feat: added not responded filter for fetch thread list api (#31275)
mehaknasir Nov 11, 2022
173ae15
fix: legacy coverage and add missing properties for reported events
Nov 14, 2022
dd68ade
fix: add fix for search event for learner search in discussions
Nov 17, 2022
1314cdb
feat: add discussion event coverage for legacy experience.
Nov 15, 2022
afe259a
fix: thread will only be returned for matching course ID (#31340)
mehaknasir Dec 1, 2022
1651421
fix: hide library source xblock (#31424)
connorhaugh Dec 8, 2022
6ba2911
test: fix hardcoded date of birth (2022) (#31488) (#31503)
0x29a Jan 5, 2023
5af42f8
fix: retrieve raw content from TinyMCE editor (#31212) (#31500)
asadali145 Jan 5, 2023
11c9a62
fix: unresponsive modal in student dashboard view (#31433)
teyotan Jan 9, 2023
9133e01
refactor: Pull in django-pyfs via XBlock extra requiremnts.
Jan 30, 2023
e60ba27
chore: Just update the `xblock` package.
Jan 31, 2023
f86648f
Merge pull request #31677 from openedx/feanil/update_django-pyfs
Jan 31, 2023
5ab6e0b
chore: upgrade Django to 3.2.17
mtyaka Feb 7, 2023
5f901a3
chore: update LTI Consumer XBlock
Agrendalath Feb 7, 2023
8f17922
Merge pull request #31723 from openedx/mtyaka/olive-django-update
mtyaka Feb 7, 2023
1eed190
Merge pull request #31724 from open-craft/agrendalath/olive_update_lt…
mtyaka Feb 8, 2023
52472c0
feat: add two new actions for each environment
sergivalero20 Mar 13, 2023
6a73579
Merge pull request #87 from Pearson-Advance/vue/PADV-331
sergivalero20 Mar 21, 2023
a7a0340
refactor: change input names in build and push workflows
sergivalero20 Apr 14, 2023
711a301
Merge pull request #88 from Pearson-Advance/vue/PADV-377
sergivalero20 Apr 17, 2023
351e509
feat: add run_extension_point wrapper function.
anfbermudezme Apr 26, 2023
5700aa4
Merge pull request #90 from Pearson-Advance/vue/PADV-473
anfbermudezme May 2, 2023
0085d11
refactor: change composite version
sergivalero20 Apr 18, 2023
bf3147f
Merge pull request #93 from Pearson-Advance/vue/PADV-377.1
Squirrel18 May 4, 2023
adb8844
feat: add extension_points related to course_operations.
anfbermudezme May 2, 2023
2afc979
Merge pull request #91 from Pearson-Advance/vue/PADV-483
anfbermudezme May 12, 2023
8ac32ac
chore: Change edx-sga for our custom version.
Squirrel18 May 4, 2023
94856d3
Merge pull request #94 from Pearson-Advance/pearson/PADV-466
Squirrel18 May 15, 2023
29e86b6
feat: migrate small features for olive.
Oct 8, 2020
9ea7f9c
Merge pull request #95 from Pearson-Advance/vue/PADV-490
anfbermudezme May 19, 2023
09d1515
feat: add CCX related changes for olive.
Squirrel18 Oct 12, 2020
73172b3
Merge pull request #96 from Pearson-Advance/vue/PADV-512
anfbermudezme May 19, 2023
51c1759
User full name generation on IES authentication.
ivanvgh Sep 17, 2021
572e0a3
Add run_extension_point to the logout flow.
Squirrel18 Aug 6, 2021
4ecdfde
feat: improving SAML custom features code
alexjmpb May 24, 2023
e798d1b
Merge pull request #99 from Pearson-Advance/vue/PADV-513
alexjmpb May 26, 2023
25afe7d
feat: When studio_home.enable_global_staff_optimization is activated,…
elvinquero Sep 20, 2021
1ab2b4a
Merge pull request #98 from Pearson-Advance/vue/PADV-511
alexjmpb May 26, 2023
5c82a6a
feat: adding custom registration extension point and custom email tem…
anfbermudezme May 20, 2022
c6eb5c2
Merge pull request #100 from Pearson-Advance/vue/PADV-514
alexjmpb Jun 9, 2023
ebec74c
fix: change recipient attribute and fix commented line
sergivalero20 Jun 15, 2023
67ba13b
Merge pull request #101 from Pearson-Advance/vue/PADV-514.1
sergivalero20 Jun 15, 2023
5e9bf0e
feat: changing MFEs URLs to site aware
alexjmpb Jun 16, 2023
b79490c
Merge pull request #102 from Pearson-Advance/pearson/PADV-554
alexjmpb Jun 21, 2023
6018146
feat: disable data sharing consent.
anfbermudezme Jun 27, 2023
fe21929
Merge pull request #103 from Pearson-Advance/vue/PADV-549
anfbermudezme Jun 27, 2023
cd2050d
feat: allow association by email under certain conditions.
Squirrel18 Jul 25, 2023
c2428f8
Merge pull request #104 from Pearson-Advance/pearson/PADV-516
Squirrel18 Jul 25, 2023
d911c67
fix: Overwrote all the places where urls were pointing to 'https://my…
Serafin-dev Nov 2, 2023
4187ab8
Merge pull request #106 from Pearson-Advance/vue/PADV-741
Serafin-dev Nov 21, 2023
9bb85f6
feat: add course created event signals
JuanDavidBuitrago Nov 27, 2023
43633ed
Merge pull request #109 from Pearson-Advance/vue/PADV-806-course-created
JuanDavidBuitrago Nov 30, 2023
f6c0419
fix: delay update_outline_from_modulestore_task after course publish.
Jacatove Dec 1, 2023
95541f5
Merge pull request #110 from Pearson-Advance/pearson/PADV-794
Jacatove Dec 5, 2023
5cb4d09
chore: use the ccx data complete for course created openedx event
JuanDavidBuitrago Dec 27, 2023
59b367a
Merge pull request #112 from Pearson-Advance/vue/PADV-815
JuanDavidBuitrago Dec 27, 2023
9e21c29
Revert "Merge pull request #112 from Pearson-Advance/vue/PADV-815"
JuanDavidBuitrago Jan 4, 2024
63c4db3
Merge pull request #113 from Pearson-Advance/jdb/revert_112
JuanDavidBuitrago Jan 4, 2024
0117d5d
feat: adding CCX support to gradebook API
alexjmpb Dec 26, 2023
2be76ad
Merge pull request #111 from Pearson-Advance/vue/PADV-916
alexjmpb Jan 11, 2024
452fb93
feat: updating CCX coach tab gradebook link
alexjmpb Jan 15, 2024
7d184a0
Merge pull request #114 from Pearson-Advance/vue/PADV-935
alexjmpb Jan 23, 2024
08cbcdf
fix: add JwtRestrictedApplication check to XBlock callback
MAAngamarca Jan 22, 2024
7e93ad0
Merge pull request #115 from Pearson-Advance/msa/jwt-app
MAAngamarca Jan 25, 2024
a22d68b
feat: adding apps.py to ccx app
alexjmpb Feb 6, 2024
220ee91
Merge pull request #116 from Pearson-Advance/vue/PADV-1018
alexjmpb Feb 13, 2024
ffd3b4a
feat: adding CCX support to edx notes
alexjmpb Feb 28, 2024
45d5fa7
Merge pull request #117 from Pearson-Advance/vue/PADV-1025
alexjmpb Mar 4, 2024
2a9ceca
feat: delete run_extension_point.
cesarsilvaedunext Mar 15, 2024
410cfdd
Merge pull request #119 from Pearson-Advance/vue/PADV-1019
cesarsilvaedunext Mar 15, 2024
282a7fb
feat: adding global staff to allowed users in ccx gradebook
alexjmpb Mar 19, 2024
79e4bd2
Merge pull request #120 from Pearson-Advance/vue/PADV-1134
alexjmpb Mar 20, 2024
211affc
feat: updating openedx-events version to 9.10.0
alexjmpb May 17, 2024
8c49c07
Merge pull request #122 from Pearson-Advance/vue/PADV-1270
alexjmpb May 21, 2024
e73db48
feat: adding new course passing events
alexjmpb May 21, 2024
4ed5d0e
Merge pull request #123 from Pearson-Advance/vue/PADV-1276
alexjmpb May 24, 2024
6a15a35
feat: backport Event Bus configuration.
Serafin-dev May 29, 2024
60444ea
Merge pull request #124 from Pearson-Advance/vue/PADV-1346
Serafin-dev May 30, 2024
02fcb57
feat: add filter in CourseEnrollmentAllowed.
anfbermudezme May 31, 2024
8a272e7
Merge pull request #125 from Pearson-Advance/and/enrollments-allowed-…
anfbermudezme Jun 3, 2024
1710fc1
chore: update py2neo version.
anfbermudezme Jul 15, 2024
cde1ca8
Merge pull request #126 from Pearson-Advance/pearson-release/olive-an…
anfbermudezme Jul 16, 2024
975f8f9
feat: improve the way we handle the IES IDP id values.
Squirrel18 Jul 29, 2024
1ac574d
Merge pull request #127 from Pearson-Advance/pearson/PADV-1511
Squirrel18 Jul 29, 2024
66471bb
feat: registration extension form site awareness
Nekenhei Sep 10, 2024
4ae1637
Merge pull request #129 from Pearson-Advance/vue/PADV-1556
Nekenhei Sep 18, 2024
44d1c52
fix: courseware-chromeless.html iframe height
kuipumu Oct 1, 2024
be6e128
Merge pull request #132 from Pearson-Advance/kuipumu/fix-courseware-i…
kuipumu Oct 1, 2024
ba49378
feat: adds a new custom content jsonfield to ccx model
JuanDavidBuitrago Oct 4, 2024
d780110
Merge pull request #134 from Pearson-Advance/vue/PADV-1418-fix
JuanDavidBuitrago Oct 9, 2024
2d350f5
feat: adding summarize plugin for annotatorjs
Serafin-dev Oct 9, 2024
f080f01
Merge pull request #135 from Pearson-Advance/vue/PADV-1580.re-opened
Serafin-dev Oct 10, 2024
c544394
feat: adding backend connection to summarize annotatorjs plugin
Serafin-dev Oct 10, 2024
6debc75
Merge pull request #137 from Pearson-Advance/vue/PADV-1584.re-opened
Serafin-dev Oct 10, 2024
ba1191f
feat: add feature flag for LLM summarize
Serafin-dev Oct 9, 2024
cdba011
Merge pull request #136 from Pearson-Advance/vue/PADV-1684.re-opened
Serafin-dev Oct 15, 2024
31f648d
style: expand annotation textarea and apply responsiveness for differ…
Serafin-dev Oct 25, 2024
08bf1d3
Merge pull request #138 from Pearson-Advance/vue/PADV-1593
Serafin-dev Nov 5, 2024
4be0148
fix: revert modal resize removal
Serafin-dev Nov 5, 2024
7a4e5b0
Merge pull request #139 from Pearson-Advance/vue/PADV-1593.fix
Serafin-dev Nov 5, 2024
8348928
fix: removing llm_summarize from default annotatorjs plugins
alexjmpb Nov 14, 2024
4530cd0
Merge pull request #140 from Pearson-Advance/vue/PADV-1853
alexjmpb Nov 15, 2024
5697c6c
chore: update edx-sga version
Nekenhei Dec 9, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 0 additions & 17 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,3 @@
<!--

🌰🌰
🌰🌰🌰🌰 🌰 Note: the Nutmeg master branch has been created. Please consider whether your change
🌰🌰🌰🌰 should also be applied to Nutmeg. If so, make another pull request against the
🌰🌰🌰🌰 open-release/nutmeg.master branch, or ping @nedbat for help or questions.
🌰🌰

Please give your pull request a short but descriptive title.
Use conventional commits to separate and summarize commits logically:
https://open-edx-proposals.readthedocs.io/en/latest/oep-0051-bp-conventional-commits.html

Use this template as a guide. Omit sections that don't apply. You may link to information rather than copy it.
More details about the template are at https://github.com/openedx/open-edx-proposals/pull/180
(link will be updated when that document merges)
-->

## Description

Describe what this pull request changes, and why. Include implications for people using this change.
Expand Down
19 changes: 0 additions & 19 deletions .github/workflows/add-depr-ticket-to-depr-board.yml

This file was deleted.

38 changes: 38 additions & 0 deletions .github/workflows/build-push-image-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tutor Build Action

on:
push:
branches:
- 'pearson-release/olive.main'

jobs:
Build:
runs-on: ubuntu-latest
steps:

- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD-HH-mm

- name: Build and push Image
uses: Pearson-Advance/[email protected]
with:
python-version: ${{ vars.BUILD_PYTHON_VERSION }}
tutor-version: ${{ vars.BUILD_TUTOR_VERSION }}
path-image-to-be-built: 'env/build/openedx'
organization-name: ${{ vars.BUILD_ORGANIZATION_NAME }}
repository-name: ${{ vars.BUILD_REPOSITORY_NAME }}
image-tag: ${{ vars.BUILD_TUTOR_VERSION }}-${{ steps.current-time.outputs.formattedTime }}
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
use-docker-cache: ${{ vars.BUILD_USE_CACHE }}
gh-access-token: ${{ secrets.GH_PAT }}
theme-repository: ${{ vars.BUILD_THEME_REPOSITORY }}
theme-branch: ${{ vars.BUILD_THEME_BRANCH }}
tutor-pearson-plugin-url: ${{ vars.TUTOR_PEARSON_PLUGIN_URL }}
tutor-pearson-plugin-name: 'pearson-plugin-edxapp-prod'
extra-private-requirements: true
private-repositories: ${{ vars.BUILD_PRIVATE_REPOSITORIES }}
branches: ${{ vars.BUILD_BRANCHES }}
38 changes: 38 additions & 0 deletions .github/workflows/build-push-image-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Tutor Build Action Test

on:
push:
branches:
- 'pearson-release/olive.stage'

jobs:
Build:
runs-on: ubuntu-latest
steps:

- name: Get current time
uses: josStorer/get-current-time@v2
id: current-time
with:
format: YYYY-MM-DD-HH-mm

- name: Build and push Image
uses: Pearson-Advance/[email protected]
with:
python-version: ${{ vars.BUILD_PYTHON_VERSION }}
tutor-version: ${{ vars.BUILD_TUTOR_VERSION }}
path-image-to-be-built: 'env/build/openedx'
organization-name: ${{ vars.BUILD_ORGANIZATION_NAME }}
repository-name: ${{ vars.BUILD_REPOSITORY_NAME }}
image-tag: ${{ vars.BUILD_TUTOR_VERSION }}-RC-${{ steps.current-time.outputs.formattedTime }}
docker-username: ${{ secrets.DOCKERHUB_USERNAME }}
docker-token: ${{ secrets.DOCKERHUB_TOKEN }}
use-docker-cache: ${{ vars.BUILD_USE_CACHE }}
gh-access-token: ${{ secrets.GH_PAT }}
theme-repository: ${{ vars.BUILD_THEME_REPOSITORY }}
theme-branch: ${{ vars.BUILD_THEME_BRANCH }}
tutor-pearson-plugin-url: ${{ vars.TUTOR_PEARSON_PLUGIN_URL }}
tutor-pearson-plugin-name: 'pearson-plugin-edxapp-stg'
extra-private-requirements: true
private-repositories: ${{ vars.BUILD_PRIVATE_REPOSITORIES }}
branches: ${{ vars.BUILD_BRANCHES }}
35 changes: 0 additions & 35 deletions .github/workflows/check-for-tutorial-prs.yml

This file was deleted.

22 changes: 0 additions & 22 deletions .github/workflows/docker-publish.yml

This file was deleted.

13 changes: 0 additions & 13 deletions .github/workflows/lockfileversion-check.yml

This file was deleted.

35 changes: 0 additions & 35 deletions .github/workflows/publish-ci-docker-image.yml

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/unit-tests-gh-hosted.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:

jobs:
run-test:
if: github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private'
if: (github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == true))
runs-on: ubuntu-20.04
strategy:
fail-fast: false
Expand All @@ -31,7 +31,7 @@ jobs:
"cms-2",
"common-1",
"common-2",
"common-3",
"xmodule-1"
]
name: gh-hosted-python-${{ matrix.python-version }},django-${{ matrix.django-version }},${{ matrix.shard_name }}
steps:
Expand Down Expand Up @@ -75,7 +75,7 @@ jobs:
uses: ./.github/actions/unit-tests

collect-and-verify:
if: github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private'
if: (github.repository != 'openedx/edx-platform' && github.repository != 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == true))
runs-on: ubuntu-20.04
strategy:
matrix:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/unit-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
run-tests:
name: python-${{ matrix.python-version }},django-${{ matrix.django-version }},${{ matrix.shard_name }}
if: github.repository == 'openedx/edx-platform' || github.repository == 'edx/edx-platform-private'
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
runs-on: [ edx-platform-runner ]
strategy:
matrix:
Expand Down Expand Up @@ -80,7 +80,7 @@ jobs:
# https://github.com/orgs/community/discussions/33579
success:
name: Tests successful
if: always()
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
needs:
- run-tests
runs-on: ubuntu-latest
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/upgrade-python-requirements.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/verify-gha-unit-tests-count.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
collect-and-verify:
if: github.repository == 'openedx/edx-platform' || github.repository == 'edx/edx-platform-private'
if: (github.repository == 'edx/edx-platform-private') || (github.repository == 'openedx/edx-platform' && (startsWith(github.base_ref, 'open-release') == false))
runs-on: [ edx-platform-runner ]
steps:
- name: sync directory owner
Expand Down
11 changes: 11 additions & 0 deletions .tx/config
Original file line number Diff line number Diff line change
Expand Up @@ -67,3 +67,14 @@ source_file = conf/locale/en/LC_MESSAGES/wiki.po
source_lang = en
type = PO

[o:open-edx:p:open-edx-releases:r:release-olive]
file_filter = conf/locale/<lang>/LC_MESSAGES/django.po
source_file = conf/locale/en/LC_MESSAGES/django.po
source_lang = en
type = PO

[o:open-edx:p:open-edx-releases:r:release-olive-js]
file_filter = conf/locale/<lang>/LC_MESSAGES/djangojs.po
source_file = conf/locale/en/LC_MESSAGES/djangojs.po
source_lang = en
type = PO
10 changes: 8 additions & 2 deletions cms/djangoapps/contentstore/signals/handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,10 @@ def listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable=

if key_supports_outlines(course_key):
# Push the course outline to learning_sequences asynchronously.
update_outline_from_modulestore_task.delay(course_key_str)
update_outline_from_modulestore_task.apply_async(
args=[course_key_str],
countdown=settings.BLOCK_STRUCTURES_SETTINGS.get('COURSE_PUBLISH_TASK_DELAY', 30),
)

if settings.COURSEGRAPH_DUMP_COURSE_ON_PUBLISH:
# Push the course out to CourseGraph asynchronously.
Expand All @@ -145,7 +148,10 @@ def listen_for_course_publish(sender, course_key, **kwargs): # pylint: disable=
if CoursewareSearchIndexer.indexing_is_enabled() and CourseAboutSearchIndexer.indexing_is_enabled():
update_search_index.delay(course_key_str, datetime.now(UTC).isoformat())

update_discussions_settings_from_course_task.delay(course_key_str)
update_discussions_settings_from_course_task.apply_async(
args=[course_key_str],
countdown=settings.DISCUSSION_SETTINGS['COURSE_PUBLISH_TASK_DELAY'],
)

# Send to a signal for catalog info changes as well, but only once we know the transaction is committed.
transaction.on_commit(lambda: emit_catalog_info_changed_signal(course_key))
Expand Down
5 changes: 5 additions & 0 deletions cms/djangoapps/contentstore/views/component.py
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,11 @@ def component_handler(request, usage_key_string, handler, suffix=''):
"""
usage_key = UsageKey.from_string(usage_key_string)

# Addendum:
# TNL 101-62 studio write permission is also checked for editing content.

if handler == 'submit_studio_edits' and not has_course_author_access(request.user, usage_key.course_key):
raise PermissionDenied("No studio write Permissions")
# Let the module handle the AJAX
req = django_to_webob_request(request)

Expand Down
13 changes: 10 additions & 3 deletions cms/djangoapps/contentstore/views/course.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from opaque_keys import InvalidKeyError
from opaque_keys.edx.keys import CourseKey
from opaque_keys.edx.locator import BlockUsageLocator
from organizations.api import add_organization_course, ensure_organization
from organizations.api import add_organization_course, ensure_organization, get_organizations
from organizations.exceptions import InvalidOrganizationException
from rest_framework.exceptions import ValidationError

Expand Down Expand Up @@ -537,7 +537,13 @@ def course_listing(request):

optimization_enabled = GlobalStaff().has_user(request.user) and ENABLE_GLOBAL_STAFF_OPTIMIZATION.is_enabled()

org = request.GET.get('org', '') if optimization_enabled else None
org = None
org_names_list = []

if optimization_enabled:
org = request.GET.get('org') if request.GET.get('org') else None
org_names_list = [(org['short_name']) for org in get_organizations() if 'short_name' in org]

courses_iter, in_process_course_actions = get_courses_accessible_to_user(request, org)
user = request.user
libraries = []
Expand Down Expand Up @@ -586,7 +592,8 @@ def format_in_process_course_view(uca):
'allow_unicode_course_id': settings.FEATURES.get('ALLOW_UNICODE_COURSE_ID', False),
'allow_course_reruns': settings.FEATURES.get('ALLOW_COURSE_RERUNS', True),
'optimization_enabled': optimization_enabled,
'active_tab': 'courses'
'active_tab': 'courses',
'org_names_list': org_names_list,
})


Expand Down
Loading