Commit Graph

7419 Commits

Author SHA1 Message Date
Nathan Sprenkle
670477e7d5 fix: add fallthrough exception for course overview (#31582)
An issue trying to get a course overview for a deleted course and trying
to write back into the DB had been raising unhandled errors. Catching
other classes of errors to keep this function from breaking. Should just
return None in these cases and log the exception.
2023-01-18 11:40:38 -05:00
Awais Qureshi
8ac55ed4af build: Unpin django-countries. (#31565)
* build: upgrade django-countries.
2023-01-18 14:13:41 +05:00
Hamza442
61b8228b7b chore: add new tests for retire_user management command 2023-01-18 12:47:13 +05:00
Hamza442
265ffda0aa chore: add multiple users to retirement queue. 2023-01-18 10:35:28 +05:00
Sagirov Eugeniy
f3de63058c test: tests for removing support for children in Old Mongo
* updated test_authoring_mixin.py
* updated test_xblock_utils.py
* updated TestOnboardingView tests (update default course key)
* updated UsersDefaultRole tests
2023-01-17 14:54:14 -05:00
Sagirov Eugeniy
1936de4d68 test: updated CourseOverview Signals Tests for split modulestore 2023-01-17 14:53:10 -05:00
Syed Sajjad Hussain Shah
9a53e2846d fix: update MFE context response (#31515)
VAN-1231
2023-01-16 14:31:10 +05:00
Attiya Ishaque
b9b8560adc fix: fix the tests in test_register file (#31523) 2023-01-13 18:20:05 +05:00
Jillian
9f5c78e81e revert: temp: let XBlock API users optionally use LabXchange block types (#31315)
when fetching block metadata and rendering blocks while maintaining the
original usage IDs/OLX.

Reverts ef8f841ac2
2023-01-11 11:19:58 -08:00
Sameen Fatima
f014f48a7b fix: fix 500 error when fetching course run (#31518) 2023-01-11 11:08:01 +05:00
Sameen Fatima
031fe7c312 fix: fixed 500 server error on skill-levels api (#31514) 2023-01-10 18:11:13 +05:00
Syed Muhammad Dawoud Sheraz Ali
d2fd26ee91 feat: the ability to filter active courses in course listing api (#31502)
* feat: the ability to filter active courses in course listing api
2023-01-09 20:37:30 +05:00
Sameen Fatima
4b6e719691 feat: created learner_skill_levels API to fetch skill scores (#31417) 2023-01-04 17:09:41 +05: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
0x29a
83396ffb07 refactor: convert course_module term to course_block 2022-12-19 17:48:49 +01:00
0x29a
685f1cd679 refactor: xmodule/xml_module.py -> xmodule/xml_block.py 2022-12-19 17:48:49 +01:00
0x29a
70019bac04 refactor: xmodule/seq_module.py -> xmodule/seq_block.py 2022-12-19 17:48:49 +01:00
0x29a
4aac963223 refactor: xmodule/randomize_module.py -> xmodule/randomize_block.py 2022-12-19 17:48:49 +01:00
0x29a
007e02cd76 refactor: xmodule/html_module.py -> xmodule/html_block.py 2022-12-19 17:48:49 +01:00
0x29a
cf47f6385f refactor: xmodule/error_module.py -> xmodule/error_block.py 2022-12-19 17:48:49 +01:00
0x29a
0df1411636 refactor: xmodule/course_module.py -> xmodule/course_block.py 2022-12-19 17:48:49 +01:00
0x29a
4c005e86e8 refactor: xmodule/capa_module.py -> xmodule/capa_block.py 2022-12-19 17:48:49 +01:00
bszabo
05542a3f52 Merge pull request #31344 from openedx/bszabo/TNL-10136-reapply-course-enrollment-changes
feat: TNL-10136 tease course enrollment from student model
2022-12-15 13:17:59 -05:00
alangsto
a1322abb0d fix: update docker logger settings to better match normal log settings (#31448)
* fix: update docker logger settings to better match normal log settings

* feat: add docker-production settings for cms
2022-12-15 09:17:12 -05:00
John Nagro
7653e408c1 feat: release edx-enterprise 3.59.1 (#31450)
- also adjusting retirement and GDPR tests to reflect new schema
2022-12-14 19:08:26 -05:00
Bernard Szabo
377edc2f4d feat: TNL-10136 Propagate changes from last PR 2022-12-13 17:19:41 -05:00
Bernard Szabo
2d544f94be feat: TNL-10136 tease course enrollment from student model
Reapply changes developed in bszabo/TNL-10136-student-course-enrollment branch to current master
2022-12-13 17:19:34 -05:00
Shafqat Farhan
21e92698cc fix: VAN-1206 - Resume last course URL defaults to request path for new users with no enrollments 2022-12-13 21:41:18 +05:00
Kaustav Banerjee
99cd4a4715 feat: disable allowed enrollment if enrollment closed 2022-12-13 15:49:25 +01:00
Pooja Kulkarni
fe6cbc5f6f Merge pull request #31408 from open-craft/agrendalath/fix_site_language
fix: use language specified in SiteConfiguration
2022-12-09 11:20:52 -05:00
Ali Raza Abbasi
3e35e3af8d feat: force enrollment after enrollment end date via API (#31309)
It includes support for course enrollment in case of enrollment_end date has passed or the upgrade_deadline has passed. The force_enrollment argument is used to support this functionality, and can_upgrade and include_expired will be True if force_enrollment is True. Only a user who has GlobalSupport access can perform this operation.
2022-12-08 15:58:54 -05:00
Agrendalath
7d3e62e930 fix: use language specified in SiteConfiguration
This feature was implemented in b01544d690 to replace the session's language
in the request. 44ddbdf925 moved the process from the request to the response,
which made this feature unusable (because the request was already processed).
44ddbdf925 also made this feature set the language cookie. However, it is
overwritten by user preferences.
To fix this, we could overwrite the cookie of the response after it's set from
user preferences. However, it is not an ideal solution because when users
switch between Sites with different languages, the first response will use the
language of the previous page. Therefore, this ignores user preferences and
alters the cookie of a request instead.
2022-12-08 13:46:37 +01:00
Piotr Surowiec
5b5a0e4c06 Merge pull request #30072 from open-craft/agrendalath/bd-13-simplify_xmodule_serialization
reafactor: simplify XModule serialization/deserialization layer [BD-13]
2022-12-07 18:01:57 +01:00
Attiya Ishaque
bc94071c90 fix: add msgs errors for validation (#31402) 2022-12-06 17:09:12 +05:00
Zainab Amir
0e81487012 feat: add logs for password reset exceptions (#31400) 2022-12-06 12:23:22 +05:00
Agrendalath
8127d19115 refactor: replace XmlMixin with XmlParserMixin
Most of the methods in `XmlMixin` act as wrappers for the official API for
serialization and deserialization (parse_xml() and add_xml_to_node()).
`XmlParserMixin` contains the code which does the actual serialization and
deserialization.
2022-12-05 13:57:41 +01:00
Usama Sadiq
9bfcc6ca3d fix: Remove custom mypy admin classes (#31379)
* fix: remove custom mypy admin classes
2022-12-01 16:13:18 +05:00
Alejandro Cardenas
cd54e8b275 feat: add django admin page for survey report (#31323)
* feat: add django admin page for survey report

* fix: solve quality test errors

* feat: remove delete buttons and delete actions

* docs: add help_text to fields

* test: fix quality test issues

* docs: remove model form and add help_text in model

* feat: add migration to apply field changes
2022-11-30 12:22:46 -05:00
Jansen Kantor
db082830e3 fix: slight change to logic of how teams is considered enabled (#31277)
* fix: slight change to logic of how teams is considered enabled

* fixup! fix: slight change to logic of how teams is considered enabled
2022-11-29 14:01:55 -05:00
Ahtisham Shahid
ee35ae6a59 fix: allow user to save/update custom email (#31337) 2022-11-28 16:03:01 +05:00
Kshitij Sobti
de0b132f10 fix: delay creation of course topics after course publish (#31307)
When running in a sharded MongoDB setup it's possible that querying the
modulestore right after the course publish signal will not return the
latest data.

This commit adds a delay similar to the one used in other places in the
codebase for a similar reason.
2022-11-18 16:49:29 +05:00
0x29a
d6c6a44ed5 refactor: remove prefer_xmodules
This function is no longer needed as all XModules have been converted to XBlocks.

XBLOCK_SELECT_FUNCTION Django setting is removed too, as it could take only `prefer_xmodules` or `default_select` values.
2022-11-16 13:08:22 +01:00
Alejandro Cardenas
bfd212b6d8 [FC-005] feat: add necessary models for Openedx survey report (#31183)
* feat: add survey_report djangoapp
* feat: add survey report cli command and query methods
* fix: add init file
* refactor: change model fields
* refactor: rename application file and rename methods
* refactor: add is_active to get course enrollments
* refactor: rename method to get active users
* refactor: remove fields useless
* test: rename mocks in command tests
* test: update test name
* docs: add README file
* docs: add selection criteria to get unique courses
* docs: update README
* test: remove useless mocks and use default modulestore
* docs: change command error message
* docs: add docs decisions
* docs: Update openedx/features/survey_report/management/commands/generate_report.py
* docs: add fields descriptions
* docs: add logs for each query
* style: add blank lines
* refactor: rename variables and add a constant for weeks
* refactor: add constant MIN_ENROLLS_ACTIVE_COURSE


Co-authored-by: henrrypg <henrry.pulgarin@edunext.co>
Co-authored-by: David Ormsbee <dave@tcril.org>
Co-authored-by: Maria Grimaldi <maria.grimaldi@edunext.co>
2022-11-15 17:47:21 -05:00
Piotr Surowiec
f419d6b194 feat: deprecate track_function and publish in ModuleSystem [BD-13] (#30046)
* feat: delete `track_function` from ModuleSystem

* feat: delete `publish` argument from ModuleSystem
2022-11-15 10:46:24 -05:00
Saad Yousaf
eb8f3b6750 fix: update Zoom live configurations to support email for course staff roles. (#31257)
Co-authored-by: SaadYousaf <saadyousaf@A006-00314.local>
2022-11-15 18:38:46 +05:00
AsadAzam
1925eb10c9 feat: add external id mapping in courseoverview (#31243) 2022-11-07 15:08:08 +05:00
Syed Sajjad Hussain Shah
142a75b007 fix: add fix for XSS Vulnerability and Open Redirect [VAN-1133] (#259) 2022-11-04 08:53:44 +05:00
Kshitij Sobti
4fc9eb8324 fix: Change approach to processing course topics (#31200)
Course topics are now created by traversing the entire course structure from top to bottom instead of starting at the sequential level and then moving up or down as needed.

This also introduces a lot of debug logs to pontetially find the reason why under some circumstances new units don't get processed and end up without a discussions topic.
2022-11-01 14:31:27 +05: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