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

feat: port code drift for open-craft/edx-platform [BB-8366] #614

Merged
merged 14 commits into from
Jan 3, 2024

Commits on Dec 27, 2023

  1. feat: allow switching anonymous user ID hashing algorithm from shake …

    …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)
    kaustavb12 authored and 0x29a committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    6da7f58 View commit details
    Browse the repository at this point in the history
  2. feat: Add toggle to allow redirecting to courseware after enrollment.

    This change adds a new waffle switch to redirect a student to coursware after
    enrolment instead of the dashboard.
    
    (cherry picked from commit f494586)
    xitij2000 authored and 0x29a committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    21571c6 View commit details
    Browse the repository at this point in the history
  3. feat: add new endpoint for cloning course

    (cherry picked from commit 79c4b4a4bbb067c07b30980d9bd11ceb3f4e9af2)
    pkulkark authored and 0x29a committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    d468a8c View commit details
    Browse the repository at this point in the history
  4. temp: Add configuration option to redirect to external site when TAP …

    …account is unlinked
    
    (cherry picked from commit e83a8c8f82849644cf95534cde3fe149e4f11916)
    (cherry picked from commit 0c831dc)
    xitij2000 authored and 0x29a committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    c596bf3 View commit details
    Browse the repository at this point in the history
  5. feat: default grade designations configurable from settings (#541)

    (cherry picked from commit 7a7af8cdc16416ec8e3289f9482e734b58145b0e)
    (cherry picked from commit 9475431)
    (cherry picked from commit 3ca85ea)
    kaustavb12 authored and 0x29a committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    50da901 View commit details
    Browse the repository at this point in the history
  6. fix: give superusers all studio permissions

    (cherry picked from commit 8ef55754f4a529cc6b784298320fcdb8b415bd83)
    (cherry picked from commit 8e281a9)
    (cherry picked from commit f552973)
    0x29a committed Dec 27, 2023
    Configuration menu
    Copy the full SHA
    6de7b64 View commit details
    Browse the repository at this point in the history

Commits on Dec 28, 2023

  1. feat: allow oauth configuration per site and backend (openedx#32656)

    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)
    navinkarkera authored and 0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    0567608 View commit details
    Browse the repository at this point in the history
  2. feat: eSHE Instructor role

    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)
    0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    a21b4f0 View commit details
    Browse the repository at this point in the history
  3. fix: eSHE Instructor should be able to see forum members and enrollments

    (cherry picked from commit 2be436d)
    0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    a20e51d View commit details
    Browse the repository at this point in the history
  4. feat: set course for wiki based on the wiki_slug

    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)
    Cup0fCoffee authored and 0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    dfb8ac9 View commit details
    Browse the repository at this point in the history
  5. fix: youtube race condition when GTM loads

    (cherry picked from commit 4d8d74b)
    viadanna authored and 0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    b9662f4 View commit details
    Browse the repository at this point in the history
  6. fix: limited staff cohorts and gradebook access

    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)
    0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    f553cc4 View commit details
    Browse the repository at this point in the history
  7. fix: hide instructor tab when masquerading as user role with no masqu…

    …erade user
    
    (cherry picked from commit dea15c2)
    ArturGaspar authored and 0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    87400e5 View commit details
    Browse the repository at this point in the history
  8. feat: filter courses by user language by default

    Adds a feature flag to filter courses by users preferred language by default
    
    test: add test
    (cherry picked from commit 13ad42f759fdc1a387744ca971871bb30f5934f1)
    navinkarkera authored and 0x29a committed Dec 28, 2023
    Configuration menu
    Copy the full SHA
    a46281a View commit details
    Browse the repository at this point in the history