Commit Graph

1443 Commits

Author SHA1 Message Date
Awais Qureshi
9ae65bbe9d feat: upgrade get_student_enrollment_status api with drf (22nd) (#35464)
* feat!: upgrading simple api with DRF.
2024-09-25 16:01:05 +05:00
Brian Mesick
471bdd232a Merge pull request #34971 from raccoongang/NiedielnitsevIvan/FC-0047/feature/implement-push-notifications-chanel
feat: [FC-0047] add mobile push notifications functionality
2024-09-20 10:02:24 -04:00
Awais Qureshi
46777610a4 feat: upgrading simple api to drf compatible ( 17th ) (#35394)
* feat: upgrading simple api to drf compatible.
2024-09-20 17:06:19 +05:00
Awais Qureshi
3de0dbd9ea feat: upgrading list_instructor_tasks to DRF ( 10th ) (#35332)
* feat: upgrading simple api to drf compatible.
2024-09-18 15:54:01 +05:00
Awais Qureshi
e807f3e9aa feat: upgrade change_due date to drf ( 16th ) (#35392)
* feat: upgrading simple api to drf compatible.
2024-09-12 15:48:39 +05:00
Ivan Niedielnitsev
5fe7a2e2bb Merge branch 'master' into NiedielnitsevIvan/FC-0047/feature/implement-push-notifications-chanel 2024-09-12 12:26:50 +03:00
Awais Qureshi
1a1697c6f8 Adding oauth test (#35417)
* test: Added OAuth tests for various instructor URLs.
2024-09-11 17:43:22 +05:00
Ivan Niedielnitsev
6a2fe8cd03 Merge branch 'master' into NiedielnitsevIvan/FC-0047/feature/implement-push-notifications-chanel 2024-09-11 15:26:22 +03:00
Awais Qureshi
08bd8b312e feat: upgrade reset_student_attempts api to drf ( 19th ) (#35404)
* feat: upgrading simple api to drf compatible.
2024-09-10 16:26:41 +05:00
Awais Qureshi
f52c08a0dd feat: upgrade send_email api to drf ( 15th ) (#35387)
* feat: upgrading simple api to drf compatible.
2024-09-09 14:52:47 +05:00
Awais Qureshi
7292cabe32 feat: upgrade list_report_downloads api to DRF ( 13th ) (#35350)
* feat: upgrading simple api to drf compatible.
2024-09-09 12:54:30 +05:00
Іван Нєдєльніцев
13e3024ae3 style: [FC-0047] fix code style issues 2024-09-06 17:40:26 +03:00
Glib Glugovskiy
c70a6e74cb fix: fix linter warning 2024-09-05 15:32:06 +03:00
Glib Glugovskiy
8a7054429a fix: rename email to message params 2024-09-05 15:32:03 +03:00
Іван Нєдєльніцев
9d0c45680e refactor: [FC-0047] fix review issues 2024-09-05 15:30:07 +03:00
Ivan Niedielnitsev
28eb406f8d feat: [FC-0047] add settings for edx-ace push notifications
feat: [FC-0047] Add push notifications for user enroll

feat: [FC-0047] Add push notifications for user unenroll

feat: [FC-0047] Add push notifications for add course beta testers

feat: [FC-0047] Add push notifications for remove course beta testers

feat: [FC-0047] Add push notification event to discussions
2024-09-05 15:29:48 +03:00
Awais Qureshi
ede9102e33 feat: upgrading get_anon_ids api to drf compatible (12) (#35345)
* feat: upgrading simple api to drf compatible.
2024-08-30 16:19:48 +05:00
Awais Qureshi
1a431b6a26 feat: get_students_who_may_enroll update api to DRF ( 8th ) (#35174)
* feat: upgrading simple api to drf compatible.
2024-08-29 18:37:17 +05:00
Awais Qureshi
275d4d989f feat: show_student_extensions upgrading api to drf compatible ( 9th ) (#35148)
* feat: upgrading simple api to drf compatible.
2024-08-27 14:23:59 +05:00
Mudassir Hafeez
353dc34d9c chore: provide logo url from backend for batch enrollment email (#35138)
* chore: provide logo url from backend for batch enrollment email
2024-08-26 15:53:27 +05:00
Awais Qureshi
f93d16f31a feat: upgrading simple api to drf compatible ( 3rd api ) list_email_content (#35111)
* feat: upgrading simple api to drf compatible.
2024-08-22 13:37:45 +05:00
Awais Qureshi
af9ae77bbc feat: upgrading simple api to drf compatible. (#35260) 2024-08-20 17:25:17 +05:00
Awais Qureshi
6bcbb1df29 feat: Upgrading api to use drf 5th api. register_and_enroll_students api (#35084)
* feat: upgrading simple api to drf compatible.
2024-08-19 14:25:08 +05:00
Awais Qureshi
99760f80f0 feat: Upgrading api list_course_role_members ( 2nd api ) (#35105)
* feat: upgrading simple api to drf compatible.
2024-08-07 16:40:27 +05:00
Awais Qureshi
0a067ffa82 feat: upgrading simple api to drf compatible (4th api ) (#35135)
* feat: upgrading simple api to drf compatible.
2024-08-06 15:25:24 +05:00
Awais Qureshi
39dd3c002b feat: converting existing api to drf base api. (#35039)
Adding generic permission class. Added standard authentication classes.
2024-07-30 13:18:49 +05:00
Feanil Patel
ff77964414 Merge commit from fork
fix: cohorts data can be private
2024-07-25 10:08:25 -04:00
Isaac Lee
76fbcbe437 fix: also filter for show_dashboard for instructor (#34949)
* fix: also filter for show_dashboard for instructor

* temp: attempting to craft tests

* chore: lint

* test: fixed xblock tests
2024-06-18 15:13:01 -04:00
Kyle McCormick
11626148d9 refactor: switch from mock to unittest.mock (#34844)
As of Python 3.3, the 3rd-party `mock` package has been subsumed into the
standard `unittest.mock` package. Refactoring tests to use the latter will
allow us to drop `mock` as a dependency, which is currently coming in
transitively through requirements/edx/paver.in.

We don't actually drop the `mock` dependency in this PR. That will happen
naturally in:

* https://github.com/openedx/edx-platform/pull/34830
2024-05-22 13:52:24 -04:00
Navin Karkera
8077719b8e fix: enroll users when added to a forum role (#32436) 2024-05-06 09:00:31 -04: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
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
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
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
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
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
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
Justin Hynes
426ee163bc revert: add brand_color variable for the email templates (#33421)"
This reverts commit 4ec70eb98b.

This commit introduced a new setting (`brand_color`) that does not appear to be set and is causing issues with account deletion and other parts of the courseware.

Reverting until we can understand the change better.
2024-01-24 18:47:02 +00:00
bydawen
4ec70eb98b feat: add brand_color variable for the email templates (#33421)
* feat: add brand_color variable for the email templates

* test: fix tests assertations

---------

Co-authored-by: Eugene Dyudyunov <evgen.dyudyunov@raccoongang.com>
2024-01-23 13:21:06 +05:00
Artur Gaspar
dea15c23d3 fix: hide instructor tab when masquerading as user role with no masquerade user 2023-11-09 16:04:53 +01:00
Feanil Patel
7202c22e1d Merge pull request #33373 from openedx/feanil/update_password_length_default
feat: Update the minimum password length.
2023-10-17 10:08:15 -04:00
0x29a
9e56a18f0f refactor: better permission names for instructor endpoints 2023-10-16 20:05:37 +02:00
Feanil Patel
1e2ea85372 test: Update more tests that had short passwords. 2023-10-10 16:36:26 -04:00
Zachary Hancock
9f16b0f8f6 feat: handle exam submission and reset (#33323)
handles exam events from event bus that impact the 'instructor' app. These apis deal with learner completion and managing problem attempt state.
2023-10-06 09:10:13 -04:00
connorhaugh
ab4179ec60 fix: cohorts data can be private 2023-10-04 12:46:36 -04:00
Maria Grimaldi
750ee00353 feat: add instructor dashboard filter integration (#32448)
This PR adds a new filter to modify the instructor dashboard rendering process. For example: modify the section tabs of the instructor context --that specifies which tabs to render, adding a brand new one defined in a different plugin. The use case we're currently testing is to add a new tab to the instructor dashboard, which renders management information about an Xblock.
2023-09-07 10:02:56 -04:00
Sagirov Evgeniy
c5d1807c81 feat!: remove most Old Mongo functionality (#31134)
This commit leaves behind just enough Old Mongo (DraftModulestore)
functionality to allow read-only access to static assets and the
root CourseBlock. It removes:

* create/update operations
* child/parent traversal
* inheritance related code

It also removes or converts tests for this functionality.

The ability to read from the root CourseBlock was maintained for
backwards compatibility, since top-level course settings are often
stored here, and this is used by various parts of the codebase,
like displaying dashboards and re-building CourseOverview models.

Any attempt to read the contents of a course by getting the
CourseBlock's children will return an empty list (i.e. it will look
empty).

This commit does _not_ delete content on MongoDB or run any sort of
data migration or cleanup.
2023-09-06 10:01:31 -04:00
Irtaza Akram
4773f14a41 fix: object has no attribute is_ajax (#33134) 2023-08-30 14:18:35 +05:00
Braden MacDonald
f491f5bde8 fix: refactor MakoService to allow specifying template more explicitly (Take 2) (#33077)
* fix: refactor MakoService to allow specifying namespace per template (#33061)

* fix: instr. dashboard broken by bulk email reusing HtmlBlock studio_view

* fix: lint issue from unused import
2023-08-23 11:48:06 -07:00