forked from openedx/edx-platform
-
Notifications
You must be signed in to change notification settings - Fork 7
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
feat: port code drift for open-craft/edx-platform [BB-8366] #614
Merged
0x29a
merged 14 commits into
opencraft-release/quince.1
from
0x29a/bb8366/quince-shared-branch
Jan 3, 2024
Merged
feat: port code drift for open-craft/edx-platform [BB-8366] #614
0x29a
merged 14 commits into
opencraft-release/quince.1
from
0x29a/bb8366/quince-shared-branch
Jan 3, 2024
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…to md5 The hashing algorithm has been changed in cd60646. However, there are Open edX operators who maintain backward compatibility of anonymous user IDs after past rotations of their Django secret key. For them, altering the hashing algorithm was a breaking change that made their analytics inconsistent. (cherry picked from commit 746e4fe) (cherry picked from commit ff6d92f) (cherry picked from commit 7245bdc)
This change adds a new waffle switch to redirect a student to coursware after enrolment instead of the dashboard. (cherry picked from commit f494586)
(cherry picked from commit 79c4b4a4bbb067c07b30980d9bd11ceb3f4e9af2)
…account is unlinked (cherry picked from commit e83a8c8f82849644cf95534cde3fe149e4f11916) (cherry picked from commit 0c831dc)
Allows admins to configure same oauth backend for multiple sites. This change includes site_id in KEY_FIELDS for oauth configuration provider allowing a backend configuration for each site. (cherry picked from commit 565b34e)
Adds the eSHE Instructor role, which inherits Course Staff permissions, but isn't able to enroll / un-enroll students and can't assing course team roles unless in combination with Course Staff / Instructor / Discussion admin roles. (cherry picked from commit 5d160c2)
(cherry picked from commit 2be436d)
Learners want to have the usual course navigation when viewing a wiki, so that they can go back to the course related to the wiki and browse other tabs/sections of the course. Wiki reads the course from the `request.course`. If it's not present, i.e. None or not set on the request, it will not show the course navigation UI. It seems like `WikiAccessMiddleware` already has the code that parses course id from the request (when the request is for a wiki view) and sets the course for the request. However, it doesn't work in most scenarios, because the course id is not in the it's normal format in most requests that go to wiki. For example, when a leaner clicks on a wiki tab from the course overview, they are redirected to `/wiki/<wiki_slug>/` path. The wiki slug is taken from course's `wiki_slug` field. This slug can be used to figure out what course this wiki belongs to in most (not all) cases. This commit adds code to the `WikiAccessMiddleware` that attempts to find a course based on wiki slug, and in case of success, sets the course to the `request.course`, so that wiki can display course navigation UI. (cherry picked from commit 755fa7f)
(cherry picked from commit 4d8d74b)
Limited Staff should not have studio read access by design. However, since many LMS views depend on the `has_course_author_access` check and `course_author_access_required` decorator, we have to allow write access until the permissions become more granular. For example, there should be STUDIO_VIEW_COHORTS and STUDIO_EDIT_COHORTS specifically for the cohorts endpoint, which is used to display "Cohorts" instructor dashboard tab. (cherry picked from commit febcccc)
…erade user (cherry picked from commit dea15c2)
Adds a feature flag to filter courses by users preferred language by default test: add test (cherry picked from commit 13ad42f759fdc1a387744ca971871bb30f5934f1)
Thanks for checking this out, @xitij2000. Isn't this commit backporting openedx#32397, which is present in Quince? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
I've gone through all 57 commits from this diff. Most of them were present in this project, but some weren't.
Unfortunately, I realized that it's impossible to get a hyperlink to an item only after I archived some of them (I was following this process). That's why items for some PRs present in Quince are archived, and some aren't. Another problem is that the item numbers change whenever you insert a new one, therefore I can't guarantee that the references in the last column are correct.
Testing notes
6da7f58:
Pull request: openedx#30832
Tested that
anonymous_user_id
is an MD5 hash.21571c6:
Pull request: openedx#31715
Tested that redirecting works as expected.
d468a8c:
Pull request: openedx#31794
The course clone endpoint worked as expected and the cloned course was browseable.
c596bf3:
Pull request: #540
🟥 Was unable to test this. Standard OAuth login doesn't use the affected code. 🟥
50da901:
Pull request: openedx#32406
Tested that
DEFAULT_GRADE_DESIGNATIONS
setting works as expected.6de7b64:
Pull request: openedx#32569
Tested that superusers and not staff can access Studio.
0567608:
Pull request: openedx#32656
Tested that changing the site for
OAuth2ProviderConfig
config creates a new config object.a21b4f0 and a20e51d:
Pull request: #561
Tested that the eSHE Instructor role works by itself and in combination with other roles, such as Staff, Discussion Admin and Course Data Researcher.
dfb8ac9:
Pull request: openedx#33338
Tested that the course navigation bar is visible on wiki pages.
b9662f4:
Pull request: #591
🟥 Didn't test this. The PR description is missing Google Analytics setup description. 🟥
However, this was a clean cherry-pick and the target file changes extremely rarely, so the risk that this is broken is fairly low.
f553cc4:
Pull request: openedx#33491
Tested that users with the Limited Staff course role can access http://localhost:18000/courses/course-v1:ABC+ABC+ABC/cohorts/.
87400e5:
Pull request: openedx#33684
Tested that the "Instructor" tab is hidden when impersonating.
a46281a:
Pull request: openedx#33647
Tested that the default filter works. Note: adding new Dark Lang config isn't adding a new language to the dropdown on the "Account" page.