Commit Graph

62220 Commits

Author SHA1 Message Date
Shahbaz Shabbir
ee6f3164c3 feat: add course enrollment email task (#31241) 2022-11-18 17:25:52 +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
Maximiliano Fernandez
5fa05289a4 fix: remove course pre requisite only if is not entrance exam (#22529)
See details in the related PR

Co-authored-by: Omar Al-Ithawi <i@omardo.com>
Co-authored-by: Shadi Naif <shadinaif@gmail.com>
2022-11-17 08:20:38 -04:00
SaadYousaf
c0631c320e fix: legacy coverage and add missing properties for reported events 2022-11-17 13:03:47 +05:00
Jenkins
1638535665 chore: geoip2: update maxmind geolite country database 2022-11-16 15:48:26 -05:00
Piotr Surowiec
c2e6d96ea8 Merge pull request #31112 from open-craft/0x29a/bb6734/remove_prefer_xmodules
refactor: Remove prefer_xmodules() [BD-13]
2022-11-16 18:34:08 +01:00
0x29a
010ecb354a refactor: remove lms/djangoapps/debug/management directory
It contained only one management command, "dump_xml_courses", which
didn't work since the late 2015.
2022-11-16 13:08:22 +01: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
Zainab Amir
9f5596c0af feat: remove testing logs (#31297) 2022-11-16 14:00:15 +05: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
Nathan Sprenkle
5aea84f1df fix: learner home anon user status fix (#31291)
* fix: add missing permission/auth classes to init

* fix: add missing permission class

Django was complaining about adding JWT auth without the
NotJwtRestrictedApplication class which it would add automatically. Add
the class to remove that warning.

* style: use black / isort to fix import ordering
2022-11-14 14:48:10 -05:00
Zachary Hancock
b4ea4f1da5 fix: edx-exams request data/headers (#31290) 2022-11-14 14:11:52 -05:00
Andrew Shultz
4b6e1ab48f Merge pull request #31284 from openedx/ashultz0/lti610
fix: update xblock LTI to 6.1.0 to fix bugs with lti studio in 6.0.0
2022-11-14 12:53:23 -05:00
Alexander J Sheehan
e4b8b76d87 Merge pull request #31285 from openedx/asheehan-edx/bumping-enterprise-3.58.8
chore: bumping enterprise to version 3.58.8
2022-11-14 10:07:03 -05:00
Alexander Sheehan
f53e2585e5 chore: bumping enterprise to version 3.58.8 2022-11-14 09:45:55 -05:00
Andy Shultz
f13cd1d5a3 fix: update xblock LTI to 6.1.0 to fix bugs with lti studio in 6.0.0 2022-11-14 09:04:36 -05:00
Jenkins
cb9e1149a2 chore(i18n): update translations 2022-11-13 15:52:24 -05:00
Mehak Nasir
b6ee28310e feat: added not responded filter for fetch thread list api (#31275) 2022-11-11 14:56:01 +05:00
Mubbshar Anwar
994a359f20 revert: revert redesign enrollment email (#31272)
- revert changes of redesign course enrollment email PR.

VAN-1157
2022-11-10 12:10:43 +05:00
Jenkins
10a135906f chore: geoip2: update maxmind geolite country database 2022-11-09 15:53:28 -05:00
Syed Sajjad Hussain Shah
e76e0c4a07 fix: remove hotjar event code [VAN-1074] (#31269) 2022-11-09 14:31:35 +05:00
Zainab Amir
4b5f4f1eff feat: add serializer for recommendations api (#31270) 2022-11-08 17:05:28 -05:00
Jansen Kantor
c281f32595 fix: allow inactive users access to the teams dashboard and api (#31266)
* fix: allow inactive users access to the teams dashboard and api

* style: quality
2022-11-08 15:31:42 -05:00
Jeff Cohen
ff0c1d57da fix: only create one StudentModuleHistory record per request (#31262)
When a student submits a problem answer, the state is stored in a
StudentModule record containing answer, score, correctness, etc. The
record, though, is updated in multiple steps within the single request
(first the grade is updated, then the state is updated separately).
Each partial save would trigger a separate StudentModuleHistory record
to be stored resulting in duplicate and inaccurate historical records.

This solution uses the RequestCache to track within a request thread
which StudentModules are updated and a single corresponding
StudentModuleHistory id. If multiple update actions occur within the
request cycle, then modify the history record that was already
generated to ensure that each submission only results in one
StudentModuleHistory record.

This issue and its solution were discussed in:

  https://discuss.openedx.org/t/extra-history-record-stored-on-each-problem-submission/8081
2022-11-08 10:32:08 -05:00
Jeff Cohen
f03b141f05 fix: do not clear request cache when running eager Celery tasks (#31261)
Clearing the RequestCache was intended to address memory leaks in the
celery workers. Celery worker processes will process many tasks before
they are terminated. RequestCache cleanup typically happens in the
RequestCacheMiddleware class, and middleware never executes for celery.
To get around that issue, the CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION
setting was created to clear the RequestCache after every task was
successfully completed.

This works fine when celery is running as a separate process, as it's
set up to do in production. But during development, the
CELERY_ALWAYS_EAGER setting variable is set to True, meaning that
celery tasks are run in the same thread as the Django Request. This is
meant to make debugging easier, as task failures run as part of the
request cycle and will raise exceptions that are visible to the
browser.

However, celery tasks are triggered from many different actions. That
means that the RequestCache was being cleared many times during the
course of processing a request. This led to behavior that was
potentially slower, but also incorrect–the RequestCache was getting
flushed in a way that wouldn't happen in any deployed environment
because celery would be running in separate processes there. This came
up when trying to fix an issue around extra history records being
created during problem submissions:

  https://discuss.openedx.org/t/extra-history-record-stored-on-each-problem-submission/8081

Furthermore, it's not necessary to prevent RequestCache memory leaks
when running in CELERY_AWLAYS_EAGER mode in development because the
middleware cleanup happens automatically–as everything is running as
part of the request/response cycle.

There are times in which we may want to run celery eagerly and still
clear the cache, such as testing. I have set
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = False in all dev and test
environments that already have CELERY_ALWAYS_EAGER = True. The unit
test that specifically tests whether the request cache is getting
cleared upon completion of a celery task then overrides
CLEAR_REQUEST_CACHE_ON_TASK_COMPLETION = True even though
CELERY_ALWAYS_EAGER = True for the sake of that specific testing
purpose.
2022-11-07 11:48:39 -05:00
Asad Ali
cb4279dd9e fix: retrieve raw content from TinyMCE editor (#31212)
During the upgrade to TinyMCE v5, we changed the content format to `text`.
However, it ignores changes in HTML tags. This reverts the format to `raw`.
2022-11-07 17:44:54 +01:00
Piotr Surowiec
fd2e95f531 Merge pull request #31173 from open-craft/maxim/remove-unused-xmodule-classes
[BD-13] refactor: Remove unused XModule classes
2022-11-07 17:42:39 +01:00
Andrew Shultz
e304ff7a7f Merge pull request #31264 from openedx/ashultz0/rollback-lti-6
fix: pin LTI xblock to version 5.0.1 while 6 is fixed
2022-11-07 10:24:50 -05:00
Andy Shultz
996646fef0 fix: pin LTI xblock to version 5.0.1 while 6 is fixed
6.0.0 refactored this xblock in a way that does not work with studio
leaving blocks partialy broken. While that is being fixed, roll back
to 5.0.1.

Bug ticket: MST-1697
2022-11-07 09:30:51 -05:00
Zainab Amir
6a89635aa4 feat: update recommendations api (#31259)
- updated status codes
- for control group return general recommendations

VAN-1154
2022-11-07 15:20:01 +05:00
AsadAzam
1925eb10c9 feat: add external id mapping in courseoverview (#31243) 2022-11-07 15:08:08 +05:00
Muhammad Adeel Tajamul
06ac5ed4b0 feat: added sort by recent activity for activity stats api (#31252)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-11-07 11:15:01 +05:00
Jenkins
23f49f4607 chore(i18n): update translations 2022-11-06 15:58:01 -05:00
Zia Fazal
1fd80d5f83 Merge pull request #30589 from openedx/ziafazal/fix-broken-hidden-content-transformer
fix: Fixed broken HiddenContentTransformer when course pacing is self_pace
2022-11-04 10:04:04 +05:00
edx-pipeline-bot
44f80fb8cd Merge pull request #31255 from openedx/private_to_public_142a75b
Mergeback PR from private to public.
2022-11-04 00:58:55 -04: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
Feanil Patel
8fd7631c35 Merge pull request #31254 from openedx/feanil/remove_old_codeowners
fix: Remove non-working teams from the CODEOWNERS file.
2022-11-03 14:42:17 -04:00
Feanil Patel
d5082c0341 fix: Remove non-working teams from the CODEOWNERS file.
The teams stopped working when we moved the repo to the openedx org.
Also, things have been re-organized at 2U so it's unclear if these
ownership mappings are still relevant.  I'm removing them for now and
I've posted on the forums to let people know if they want to add back in
more relevant teams.

Relevant Link: https://discuss.openedx.org/t/edx-platform-codeowners/8649
2022-11-03 13:49:03 -04:00
Feanil Patel
eb0f7864ea Merge pull request #31253 from openedx/feanil/update_codeowners
feat: Ping tCRIL on-call if someone updates the legacy dashboard.
2022-11-03 13:44:17 -04:00
Nathan Sprenkle
5e7432129f feat: implement missing audit access expired check (#31249) 2022-11-03 13:24:59 -04:00
Feanil Patel
dccc697b0e feat: Ping tCRIL on-call if someone updates the legacy dashboard.
This could be a person using the quickstart and we want to be notified
of that so we can prais them and close the PR.
2022-11-03 10:28:52 -04:00
Jansen Kantor
3adf5eb929 fix: remove unused url from backend response (#31244) 2022-11-03 09:57:17 -04:00
zia.fazal@arbisoft.com
400296ba78 fix: Fixed broken HiddenContentTransformer when course pacing is self_paced. see commit 1ebe0e6 too 2022-11-03 18:44:39 +05:00
Kira Miller
c0f23d0bb8 Merge pull request #31248 from openedx/kiram15/ENT-6461-1
fix: edx-enterprise version update
2022-11-03 09:35:58 -04:00
Muhammad Adeel Tajamul
1a25a5d3fd feat: added post filters in learners tab api (#31191)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2022-11-03 16:53:50 +05:00
Usama Sadiq
605a0a66e7 Install pip and pip tools (#31206)
* fix: install pip & pip-tools in make upgrade
* chore: Updating Python Requirements (#31205)

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
2022-11-03 16:28:32 +05:00
Shahbaz Shabbir
2ad42ef7c7 Merge pull request #31242 from openedx/shahbaz/VAN-1147
chore: upgrade edx-braze-client package
2022-11-03 14:56:34 +05:00
Zia Fazal
503f576678 Merge pull request #30823 from openedx/ziafazal/fix-broken-hidden-content-transformer-a
fix: Fixed broken HiddenContentTransformer when course pacing is self_paced
2022-11-03 12:06:46 +05:00