Commit Graph

688 Commits

Author SHA1 Message Date
Rodrigo Martin
91acd3a26f feat: Update link styling (#36348) 2025-03-11 12:07:29 -03:00
Awais Qureshi
53de406537 feat!: upgrade bulk_beta_modify_access to drf ( 30 ) (#35604)
* feat!: upgrading api to DRF.
2024-12-17 16:35:22 +05:00
Awais Qureshi
81d4239117 feat!: upgrade start_certificate_regeneration to drf ( 29 ) (#35599)
* feat!: upgrading api to DRF.
2024-12-02 17:08:01 +05:00
Awais Qureshi
a4d3bf91db feat!: upgrade certificate_exception_view to DRF ( 28 ) (#35594)
* feat!: upgrading api to DRF.
2024-11-28 14:58:54 +05:00
Awais Qureshi
d6e0528148 feat!: upgrade certificate_invalidation_view to drf ( 23 ) (#35521)
* feat!: upgrading api to DRF.
2024-11-01 16:56:20 +05:00
Awais Qureshi
8c978c2415 feat!: upgrading mark_student_can_skip_entrance_exam api with DRF ( 21 ) (#35460)
* feat!: upgrading simple api with DRF.
2024-10-02 15:20:47 +05: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
Awais Qureshi
1a1697c6f8 Adding oauth test (#35417)
* test: Added OAuth tests for various instructor URLs.
2024-09-11 17:43:22 +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
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
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
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
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
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
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
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
Zachary Hancock
41c27e8cbd Add exams dashboard MFE to instructor dash (#32493)
* feat: use new exams mfe for lti enabled courses
2023-06-20 10:21:43 -04:00
bszabo
dc4a54060c Bszabo/tnl 10683 birth year (#32200)
* fix: TNL-10683 birthyear protected 


No unit tests yet

* fix: TNL-10683 add unit tests

* fix: TNL-10683 fix lint errors

* fix: TNL-10683 add required docstrings

* fix: TNL-10683 hide year-of-birth feature name

---------

Co-authored-by: Bernard Szabo <bszabo@edx.org>
2023-05-09 12:36:22 -04:00
Agrendalath
2af5ddbf8a fix: support files with a unicode signature in the Instructor Dashboard API
Without this, files with BOM (byte order mark; generated e.g., by Microsoft
Excel) cannot be read properly.
2023-05-04 17:20:18 +02:00
Awais Qureshi
2ae2fbd4f5 fix: removing s3boto storage backend. (#31876)
* fix: removing s3boto storage backend
2023-03-13 13:32:19 +05:00
Awais Qureshi
ebdcf2f34e fix: Adding boto3 exceptions. (#31802)
* fix: Adding boto3 exceptions
2023-02-23 13:30:42 +05:00
Usama Sadiq
997f194669 Revert "build: remove boto old version (#31282)" (#31733)
This reverts commit 14e6040141.
2023-02-09 18:36:59 +05:00
Muhammad Umar Khan
14e6040141 build: remove boto old version (#31282) 2023-02-09 15:21:10 +05:00
0x29a
af13a326be refactor: rename module (or item) -> block within lms/djangoapps/instructor 2023-01-30 18:15:23 +01:00
0x29a
9d8375ff99 refactor: rename module -> block within lms/djangoapps/courseware
Also, removed unused `_has_access_xmodule` methid from `lms/djangoapps/courseware/access.py`.
2023-01-30 18:15:22 +01:00
Arunmozhi
d417a7561f refactor: rename ItemFactory to BlockFactory 2023-01-23 14:47:47 +01:00
Sagirov Eugeniy
02617283a0 test: fix problem with .get_children() in tests for split modulestore
* fixed problem with creating some CourseItem with some parent:
we must get the updated parent item before using that parent item
* replaced parent_location with parent argument in ItemFactory due to
error children/parent relation for split modulestore. In all tests with
split modulestore parent argument used
2022-12-21 10:58:43 -05:00
Agrendalath
49e664cbd7 fix: regenerate the cache on due date extensions 2022-11-04 09:40:02 +01:00
Sagirov Eugeniy
8f88422c4a test: prepare tests for removing support for children in Old Mongo 2022-10-28 11:43:20 -04:00
Usama Sadiq
4734f9f16e fix: bump pylint version (#31084) 2022-10-27 12:19:09 +05:00
Muhammad Soban Javed
d053bba952 Revert "Revert "refactor: move common/lib/capa/capa to xmodule/capa" (#30762)"
This reverts commit 4463ee751d.
2022-07-27 15:36:08 +05:00
Muhammad Soban Javed
4463ee751d Revert "refactor: move common/lib/capa/capa to xmodule/capa" (#30762) 2022-07-21 18:22:15 +05:00
Soban Javed
9eba9f983a refactor!: move common/lib/capa/capa to xmodule/capa
As part of dissolving our sub-projects in edx-platform, we are moving this package under the xmodule directory.
We have fixed all the occurences of import of this package and also fixed all documents related references.
This might break your platform if you have any reference of `import capa` or `from capa import` in your codebase or in any Xblock.

Ref: https://openedx.atlassian.net/browse/BOM-2582
2022-07-19 12:20:04 +05:00
Muhammad Umar Khan
a389a9ff10 Revert "Revert "refactor: move xmodule folder to root"" 2022-06-20 18:20:06 +05:00
Muhammad Umar Khan
d890f06507 Revert "refactor: move xmodule folder to root" 2022-06-20 16:03:48 +05:00