Commit Graph

13980 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Alexander Mendoza
e7f02fea2e feat: making lms.djangoapps.ccx AppConfig ready. (#34220) 2024-03-20 16:15:52 -04:00
Diana Olarte
490a3d4c75 feat: allow instructors to manage certificates (#31265)
* feat: Add context to certificate webview.

Add support to instructor certificates generation. If user has instructor permissions over a course, the staff permissions are also granted.
* fix: rename local parameters to fix pylint redefined-outer-name alert
* feat: create a setting to enable certificate panel for instructors
* fix: remove unnecessary permisions
* fix: update persmissions and testing
* style: fix pylint issues

---------

Co-authored-by: Squirrel18 <daniel.quiroga@edunext.co>
Co-authored-by: Maria Fernanda Magallanes Zubillaga <maria.magallanes@edunext.co>
2024-03-20 07:46:15 -04:00
Zia Fazal
1556be5851 feat: Add EnrollmentsService in XBlockRuntime and block renderer (#34238)
* feat: Add EnrollmentsService in XBlockRuntime and block renderer

These changes give ability to use `EnrollmentsService` in XBlocks
Add `get_active_enrollments_by_course_and_user` method to `EnrollmentsService` which can be used to get active enrollment of user for a give course
2024-03-19 09:41:11 +05:00
Bryann Valderrama
67696699a3 fix: catch permissions error in ora2 initialize API endpoint (#34284) 2024-03-18 12:02:28 -07:00
hajorg
abbc4a67e0 feat: add video block to reset_student_course task test 2024-03-18 15:28:11 +01:00
hajorg
72a85ee0ff feat: address CR 2024-03-14 15:14:07 +01:00
Asad Ali
19c04fcf03 fix: clear block structure cache when usage key is not found (#33963) 2024-03-12 16:30:44 -04:00
hajorg
9b6a117a05 feat: update learner's course reset tests 2024-03-12 15:32:50 +01:00
hajorg
9a4e56005d feat: add celery task to reset course progress for learner 2024-03-12 15:32:15 +01:00
Michael Roytman
4a2e0f7df5 Merge pull request #34340 from openedx/mroytman/COSMO-210-idv-approval-management-command
Add new management command to approve submitted ID verification attempts.
2024-03-08 13:39:38 -05:00
michaelroytman
56719e9680 feat: add new management command to approve submitted ID verification attempts
This pull requests adds a new management command approve_id_verifications to manually approve submitted ID verification attempts (i.e. instances of the SoftwareSecurePhotoVerifications model).
2024-03-08 12:37:03 -05:00
ayesha waris
c848767369 fix: update API endpoint to return task due time for future scheduled tasks (#34332)
* fix: update API endpoint to return task due time for future scheduled tasks

* test: updated InstructorEmailContentList tests to accomodate changes

* fix: returend unformatted created date to support easy conversion at frontend

* test: updated tests to accommodate unformatted date value in API response

* refactor: removed duplicate code and use of random numbers

---------

Co-authored-by: eemaanamir <eemaan.amir@gmail.com>
2024-03-07 16:05:45 +05:00
Jorg Are
3ffaa3dd8d Merge pull request #34305 from openedx/hajorg/au-1847-create-course-reset
feat: add post endpoint for course reset
2024-03-04 14:17:55 +01:00
Feanil Patel
ea55eca47e Merge pull request #33690 from Inferato/lytvynenko/bulk_email_checkbox_master
fix: course mode added to the metadata
2024-02-29 15:19:13 -05:00
hajorg
45648c911f fix: resolve lint issues 2024-02-29 12:03:08 +01:00
hajorg
c18c9de3cd feat: add post endpoint for course reset 2024-02-29 11:04:37 +01:00