Commit Graph

24991 Commits

Author SHA1 Message Date
Saad Yousaf
45cd459dde feat: add flag for showing/hiding new discussion sidebar view on course home page. (#34561)
Co-authored-by: Saad Yousaf <saad.yousaf@A006-01048.local>
2024-04-29 12:57:49 +05:00
Navin Karkera
61b8961cdf fix: auto enroll users when added as staff (#32561)
The course team management section under Instructor > Membership tab
allows users to be added a role even if are not enrolled in the course.
This is behaviour does not match the help text displayed in the section.

This PR updates modify_access api to enrolls user if they are not enrolled
after adding them to a role as well as changes the help text to reflect
actual changes.
2024-04-26 13:16:32 -04:00
Ivan Niedielnitsev
30836729b7 feat: Implement Sidebar Navigation [FC-0056] (#34457)
This commit addresses to the need to add an API for Sidebar Navigation
that returns the course structure with sections, subsections, and
**units**, according to user access rules. (Previous outline requests
only went down to subsections.)

To improve the performance of the API, we cache the course structure
for a user, which makes it much easier to calculate the block structure
for the user at each request. However, there may be cases when this
caching can lead to an overflow of the cache storage in high-loaded LMS
with large courses, so the corresponding flag
"courseware.disable_navigation_sidebar_blocks_caching" was added so
that this caching can be disabled.
2024-04-26 12:04:42 -04:00
Maria Grimaldi
809ffc3743 feat: connect teams with content groups using dynamic partition generator (#33788)
Implements the connection from the teams feature to the content groups feature. This implementation uses the dynamic partition generator extension point to associate content groups with the users that belong to a Team.

This implementation was heavily inspired by the enrollment tracks dynamic partitions.
2024-04-25 13:02:49 -04:00
Zachary Hancock
3852358ca2 feat: feature setting to gate courseware search to verified enrollments (#34606)
Adds a Django setting that limits courseware search to users in a verified enrollment track.
2024-04-25 11:41:53 -04:00
Glib Glugovskiy
c37e9765ef feat(mobile_api): Add course access object to mobile course info API (#34273)
* feat: include access serializer into mobile info api view

* test: add tests for serializer and view methods

* test: move tests to common directory and update test case

* fix: cr fixes and use snake case for functions

* test: fix additional get call assertion

* feat: add required course access messages to mobile endpoint

* test: [AXM-229] Improve test coverage

* style: [AXM-229] Try to fix linters

* fix: remove redundant comment

* refactor: change names for the test files

---------

Co-authored-by: KyryloKireiev <kirillkireev888@gmail.com>
2024-04-25 13:13:43 +05:00
Mohammad Ahtasham ul Hassan
649631e589 feat: add source_system to enrollments (#34540)
* feat: add source_system to enrollments
2024-04-24 17:47:39 +05:00
Dmytro
9738f61519 fix: "Course org display str" option doesnt influence certificate (#34465)
"Course organization display string" option in Advanced settings doesn't influence certificate
Co-authored-by: Dima Alipov <dimaalipov@MacBook-Pro-Dima.local>
2024-04-23 09:21:32 -04:00
Muhammad Anas
aea7fcee45 feat: added feature flag to enable blake2b hashing 2024-04-22 14:09:41 -04:00
Ahtisham Shahid
5b1d52d811 fix: endorsed post notification audiance updated (#34513) 2024-04-22 13:09:04 +05:00
Feanil Patel
6ea123db4d Merge pull request #34528 from openedx/feanil/remove_django_splash
feat!: Remove the django-splash app.
2024-04-19 10:53:46 -04:00
Feanil Patel
884fe8ace9 fix: Fix function mocking.
The way the patch decorator was being used is not supported in python
3.11.  Use the patch decorator to auto generate the correct mock and
make the test a bit more readabale.  The new change is both 3.8 and
3.11 compatible.
2024-04-18 13:28:30 -04:00
Feanil Patel
08b3f0bf32 fix: Create a bad unicode file differently.
In Python 3.11 CSV files are allowed to have null characters so the test
data is no longer a valid. We update it to not have a valid unicode
character to still test this code path correctly.

I'm not concerned about the fact that the files with null will get past
this test beacause there are other checks on the content of the file
that catch if it doesn't have enough or the right fields so this should
be a safe change to make to the tests.

Relevant Change in Python: https://github.com/python/cpython/issues/71767
2024-04-18 13:28:30 -04:00
Feanil Patel
9bd4474f7d test: Reduce query counts now that we dropped django-splash. 2024-04-18 12:43:33 -04:00
Feanil Patel
cec7969ce8 feat!: Remove the django-splash app.
DEPR: https://github.com/openedx/public-engineering/issues/224

The django-splash repo was created 11 years ago to let the LMS redirect
users to a splash screen when a user comes to the site for the first
time. It works by looking for a configurable cookie value and
redirecting from the middleware.

This feature was never documented, has some edx.org hardcoded defaults,
and is not compatible with MFEs.

BREAKING CHANGE: The django splash feature will no longer be available.
2024-04-18 12:43:26 -04:00
Kyle D. McCormick
38d350f48c docs: document XBLOCK_MIXINS and XBLOCK_EXTRA_MIXINS 2024-04-17 09:43:12 -04:00
Jansen Kantor
8d8ff29d4c fix: don't urljoin empty string (#34516) 2024-04-16 11:30:15 -04:00
Glenn R. Martin
81e781c34d feat: waffle refunds for commerce-coordinator
# feat: waffle refunds for commerce-coordinator

Based on approved: #34438

However CLA is invalid now for initial creator so a new PR was required.
2024-04-12 10:43:37 -04:00
Glenn R. Martin
294c6a7768 fix: feedback from Shafqat 2024-04-09 11:12:57 -04:00
Glenn R. Martin
9e56c1d04b fix: broken lms test for CC switching in Ecommerce Service 2024-04-09 11:09:49 -04:00
Rodrigo Martin
b42e66bcdc fix(AU-1855): Fix email WCR email subject variable text (#34488)
* fix(AU-1855): Fix email WCR email subject variable text

* fix(AU-1855): Add filter force_escape before blockstrans
2024-04-08 13:42:15 -03:00
Glenn R. Martin
fc3a8f7ebb chore: exception handling 2024-04-08 10:32:22 -04:00
Irtaza Akram
a1f08d85bd Merge pull request #34398 from openedx/xblock2
upgrade xblock==2.0
References:
- https://github.com/openedx/public-engineering/issues/15
- https://github.com/openedx/XBlock/pull/680
2024-04-08 14:30:38 +05:00
michaelroytman
541bc6f5cb feat: add must_retry as valid status to approve_id_verifications management command
Sometimes, submissions to an IDV provider fail, which results in an IDV attempt moving from the "ready" status into the "must_retry" status instead of the "submitted" status.

We would like to approve these attempts too.
2024-04-05 14:01:45 -04:00
Rodrigo Martin
e768d6d9e5 feat: send email after course reset completion (#34460)
* feat: send email after course reset completion

* fix: lint test

* fix: clean code

* fix: correct expected email parts

* fix: logs

* fix: email assertion
2024-04-05 12:27:21 -03:00
Bryann Valderrama
85620ec73c feat: add grading method support for problems with multiple attempts (#33911)
A new field in the Problem settings for choosing a Grading Method. Currently, the only Grading Method is the Last Score. From now on, when turning the feature flag on, the new grading methods available for configuration in Studio are:
- Last Score (Default): The last score made is taken for grading.
- First Score: The first score made is taken for grading.
- Highest Score: The highest score made is taken for grading.
- Average Score: The average of all scores made is taken for grading.
2024-04-04 14:04:25 -04:00
Irtaza Akram
c810a1b3e5 Merge branch 'master' into xblock2 2024-04-04 15:16:55 +05:00
Jansen Kantor
e49628558c feat: add validation and actions to course reset django admins (#34453)
* fix: course opt in course id should be unique

* feat: add validation for opt in course id admin page

* feat: admin action to mark audits as failed
2024-04-03 10:08:50 -04:00
Jansen Kantor
9c5779ad9c feat: add flag to silence signals and events when clearing state (#34434)
* feat: add flag to silence signals and events when clearing state

* feat: don't emit signals and events when clearing entire course
2024-04-03 10:08:29 -04:00
Phillip Shiu
7535f27aa2 fix: change default for COORDINATOR_CHECKOUT_REDIRECT_PATH 2024-04-03 07:21:15 -04:00
Irtaza Akram
682a80addd fix: review changes 2024-04-03 16:03:56 +05:00
Phillip Shiu
ed5270469a chore: bypass invalid-django-waffle-import
This edx-lint check is to prevent:

    import waffle

However, we are doing:

    import .waffle

Where .waffle is importing correctly from edx_toggles instead of
directly from the Django waffle library.

See also:

be07c3739d/edx_lint/pylint/annotations_check.py (L379)
2024-04-02 04:53:22 -04:00
Phillip Shiu
5989d3e736 chore: remove unused import 2024-04-02 04:53:22 -04:00
Phillip Shiu
87a1469232 feat: waffle refunds for commerce-coordinator 2024-04-02 04:53:21 -04:00
Irtaza Akram
3faa773bb9 feat: add support for xblock 2 2024-04-01 16:02:06 +05:00
Jansen Kantor
104969c659 fix: add gradebook to devstack csrf trust list (#34451) 2024-03-29 14:20:59 -04:00
hajorg
7fc2f57059 feat: add clear grades to course reset task 2024-03-28 14:33:18 +01:00
Jansen Kantor
2764593f5c feat: add completion data reset to course reset (#34395) 2024-03-27 13:39:48 -04:00
Omar Al-Ithawi
5a437779d9 fix: add fallback gettext function if translations aren't pulled in dev envs (#34416) 2024-03-27 13:20:12 -04:00
Ihor Romaniuk
f1311108ce fix: decoration of see all children link in wiki pages (#33670) 2024-03-27 10:25:15 -04:00
Jorg Are
53da867e0b Merge pull request #34410 from openedx/hajorg/au-1912-delete-learner-course-grade
feat: api function to delete learner's course grades
2024-03-26 15:08:06 +01:00
Jansen Kantor
ce1064bf5f fix: clean up course reset post endpoint (#34419) 2024-03-26 10:00:39 -04:00
hajorg
1c3f403f38 fix: update and cleanup tests 2024-03-26 11:11:13 +01:00
Isaac Lee
40744eca36 fix: gate lti tools frorm onboarding function (#34413)
* fix: gate lti tools frorm onboarding function

- Block calls to does_backend_support_onboarding if the proctoring provider uses LTI

* fix: LTI onboarding false by default
2024-03-25 19:59:30 +00:00
hajorg
3bdd1e0a8a feat: update grade delete methods 2024-03-25 15:22:25 +01:00
Jansen Kantor
e07a0cc163 feat: add comment to course reset model and endpoints (#34411)
* feat: add comment to course reset model

* feat: add comment info to list endpoint

* feat: add comment to post endpoint

* fixup! feat: add comment to post endpoint
2024-03-22 12:23:48 -04:00
hajorg
36f3895eaf feat: api function to delete learner's course grades 2024-03-22 12:27:44 +01:00
Muhammad Anas
09a8cfcccf fix: Fixed the BulkEmailFlag __str__ function to avoid infinite recursion (#33901) 2024-03-21 16:44:55 -04:00
Jorg Are
9c3833cd32 Merge pull request #34350 from openedx/hajorg/au-1848-course-reset-celery-task
feat: add celery task to reset course progress for learner
2024-03-21 16:21:33 +01:00
Ahtisham Shahid
09cb944801 fix: removed cohorts filter from reported notifications (#34369) 2024-03-21 15:44:49 +05:00