Commit Graph

5478 Commits

Author SHA1 Message Date
Ahtisham Shahid
fae6ece427 fix: added check for empty list in discussions settings task (#32105)
* fix: added check for empty list in discussions settings task
2023-04-25 12:44:26 +05:00
Braden MacDonald
dd927c7fee chore: consolidate two different implementations for serializing XBlocks 2023-04-24 12:16:42 -07:00
Jeremy Ristau
472a3b5442 Merge pull request #31472 from open-craft/kaustav/unify_modulesystem_descriptorsystem
feat: unify ModuleSystem and DescriptorSystem [BD-13]
2023-04-24 10:03:19 -04:00
Kyle McCormick
151c4fcfb2 build: move collectstatic ignore patterns into configuration (#31934)
Adds a tiny `openedx.core.djangoapps.staticfiles` app so that
static asset ignore patterns can be coded into configuration rather
than supplied on the command line or coded into pavelib.
Makes it easier to run static asset collection without Paver.

See ADR for details:
openedx/core/djangoapps/staticfiles/docs/decisions/0001-purpose-of-app.rst

Closes: https://github.com/openedx/edx-platform/issues/31658
2023-04-21 08:26:48 -04:00
Kaustav Banerjee
c5439221cb chore: address review comments 2023-04-21 11:53:49 +02:00
Braden MacDonald
626f11f608 test: Import linter: optionally enforce usage of a package's public API (#31903)
* test: warn about dependencies from cms->openedx->lms and vice versa

* test: warn about importing from package's internal implementation code

* chore: Update some imports to use public APIs only

* chore: Update 'bookmarks' app to have stricter public API

* fix: we are sharing 'adapters' from olx_rest_api to content_staging
2023-04-20 11:34:51 -07:00
Syed Sajjad Hussain Shah
416a502c96 fix: inconsistency between JWT and session authentication after password reset (#32073)
VAN-1371

Co-authored-by: Syed Sajjad  Hussain Shah <syed.sajjad@H7FKF7K6XD.local>
2023-04-20 12:33:54 +05:00
Shahbaz Shabbir
936a236273 refactor: mfe_context response to serialize object keys to camelcase (#31930) 2023-04-20 12:28:17 +05:00
Rebecca Graber
66c22d2e9f feat: add grace period when deleting accesstokens (#32040) 2023-04-18 13:17:53 -04:00
Brian Mesick
b2b78f3ca8 Merge pull request #32032 from raccoongang/sagirov/tCRIL_GA-18
[FC-0014] Add GA 4 support to edX platform
2023-04-18 10:02:49 -04:00
Mohammad Ahtasham ul Hassan
2a7b400770 fix: fix buy_subscription_url to use get method (#32079)
* fix: fix buy_subscription_url to use get method
2023-04-18 15:31:32 +05:00
Braden MacDonald
2dc79bcab4 feat: New django app for copying and pasting OLX content in Studio (#31904)
[FC-0009]
2023-04-14 11:41:41 -07:00
Mohammad Ahtasham ul Hassan
e973266b2f feat: fetch program subscription details (#32023)
* feat: fetch program subscription details
2023-04-14 16:33:12 +05:00
SaadYousaf
dc63e525f8 feat: add platform notification app and models 2023-04-14 14:32:17 +05:00
Ali Nawaz
9c06ef5c17 chore: log the user triggering the retirement flow
chore: change user retirement permissions to allow support staff
2023-04-13 02:29:39 +05:00
Robert Raposa
6cae1fa429 feat: allow for forcing asymmetric jwts (#32045)
Add a temporary feature toggle to force the LMS to
only produce asymmetric JWTs. This is a part of
DEPR of Symmetric JWTs:
https://github.com/openedx/public-engineering/issues/83
2023-04-10 14:46:44 -04:00
Ahtisham Shahid
bbcd3124a6 fix: added delay of 30sec to update_discussions_settings_from_course_task (#32038)
* fix: added delay of 30sec to update_discussions_settings_from_course_task

* fix: resolved linter issues
2023-04-07 15:09:04 +05:00
Ahtisham Shahid
0815d7a0cd fix: skip update_discussions_settings_from_course_task if rerun is not completed (#32036) 2023-04-06 18:30:45 +00:00
Sagirov Eugeniy
4a551aa1bb feat: add google_analytics_4_id template tag for main_django.html 2023-04-06 17:15:20 +03:00
Rebecca Graber
d8769e8347 feat: switch order of removal of revoked and expired tokens in dot cleanup (#32010) 2023-03-30 12:34:00 -04:00
Ahtisham Shahid
906744e86b fix: added delay in topic creation task (#32008) 2023-03-30 14:57:31 +05:00
Syed Sajjad Hussain Shah
6469077a47 feat: send skipRegistrationForm with providers (#32001)
VAN-1318

Co-authored-by: Syed Sajjad  Hussain Shah <syed.sajjad@H7FKF7K6XD.local>
2023-03-30 13:58:06 +05:00
Saad Ali
14e122f37c fix: retire_user mgmt cmd to handle string and bytes inputs 2023-03-29 15:24:13 +05:00
Ahtisham Shahid
87eedbc6c6 fix: resolved issue with topic creation in rerun (#31993) 2023-03-29 14:16:53 +05:00
Saad Ali
96ff100e9b chore: Update retire_user management command (#31966)
This update brings a django admin interface to upload a CSV file using the file access api. The management command is updated to access the uploaded files to retire users.
2023-03-27 15:20:35 -04:00
Rebecca Graber
cc75c37f21 feat: add additional logging to edx-clear-expired-tokens (#31986) 2023-03-24 11:57:44 -04:00
Ahtisham Shahid
2bb71390e5 fix: resolved discussions data issue in course re-run (#31953)
* fix: resolved disucssions data issue in corse re-run

* fix: resolved linter issues

* refactor: added comment in task
2023-03-24 11:49:43 +05:00
Rebecca Graber
1ae9ed0144 feat: remove revoked tokens before expired ones in edx_clear_expired_tokens (#31973) 2023-03-23 08:03:03 -04:00
Jansen Kantor
b6ba32830a feat: add endpoint to tell if video sharing feature is enabled for a course (#31931)
* feat: add endpoint to tell if video sharing feature is enabled for a course

* feat: create video setting endpoint

* feat: move toggle out of lms

* docs: update toggle location in comment

* docs: fix toggle annotation
2023-03-16 09:51:05 -04:00
Matt Hughes
8fcca00489 feat: add options for each oauth table being cleared
currently our attempts to clear these tables is cronically failing due
to an unnecessarily huge join for the very first query

I have a suspicion that the performance of this join would improve if
we deleted records from any tables beyond just the first listed here
2023-03-15 14:32:28 -04:00
Zia Fazal
e9ffe99a10 feat: added caliper and xapi externalId types (#31919) 2023-03-15 15:01:53 +05:00
Henrry Pulgarin
d7ca7c14cd feat: add openedx-filters hook to account settings before rendering it context (#31295) 2023-03-09 13:17:44 -04:00
Muhammad Abdullah Waheed
90c4ca6e47 Revert "FC-0001: Account pages -> micro-frontend (#30336)" (#31888)
This reverts commit 0f02c7b3d9.
2023-03-07 17:41:56 -05:00
Sagirov Evgeniy
0f02c7b3d9 FC-0001: Account pages -> micro-frontend (#30336)
* feat: Account pages. Learner Profile page

* feat: Account pages. Account Settings page

* feat: Account pages. Removed unused styles

* feat: Account pages. Removed unused toggles

* feat: fixed tests and pylint errors

* feat: update redirect to account settings for student_dashboard

* feat: fix pylint errors
2023-03-07 17:41:52 +05:00
Matt Hughes
1acd382131 perf: while clearing expired tokens perform only 2 queries per it.
those two queries should be the SELECT of the records and the DELETE
2023-03-02 15:19:55 -05:00
DimA
899167f20f fix: [RGOeX-386] about page is available for the course creator
The empty "Course Overview" keep the default value if the
"overview" key in the json request is an empty string.
2023-03-01 12:46:29 -05:00
Justin Hynes
b3b3176d03 Merge pull request #31850 from openedx/jhynes/aper-2285
docs: Add documentation on how to use the Extended Profile feature of the User API/UserProfile
2023-03-01 07:58:50 -05:00
Ahtisham Shahid
12434cc35d fix: resolved index error in course live config (#31845) 2023-03-01 11:24:37 +05:00
Justin Hynes
91b3486d2f docs: Add documentation on how to use the Extended Profile feature of the User API/UserProfile
[APER-2285]

Adds documentation on how to use the "Extended Profile" feature of edx-platform.
2023-02-28 13:49:13 -05:00
Ahtisham Shahid
33dc8e1f21 feat: added user messages and backed now uses discussion_enabled flag (#31716)
* refactor: simplified tasks.py for discussions

* fix: do not create a topic for the unpublished unit

* feat: added user messages and backed now uses discussion_enabled flag

* fix: update default for discussion_enabled flag

* feat: removed redundant tests and fixes
2023-02-22 12:41:02 +05:00
Syed Sajjad Hussain Shah
d694b70439 fix: recommend only available courses (#31773)
VAN-1306

Co-authored-by: Syed Sajjad  Hussain Shah <syed.sajjad@H7FKF7K6XD.local>
2023-02-21 09:04:08 +05:00
Piotr Surowiec
ffc8c0217d Merge pull request #31491 from open-craft/farhaan/upstream-submission-history-api
feat: Added submission history API and extended enrollment API to support grading and finished flags.
2023-02-17 14:21:19 +01:00
Farhaan Bukhsh
76beb4e425 fix: Fixed pagination issue with enrollment api.
Signed-off-by: Farhaan Bukhsh <farhaan@opencraft.com>
2023-02-17 11:49:22 +05:30
Tim McCormack
83f6e560b7 fix: Add code_owner decorator to remaining Celery tasks (#31762)
This will ensure that errors raised by these tasks will alert the right
team. `send_course_enrollment_email` is the one I set out to fix, but I
discovered a few others.

I located tasks that were missing decorators by running the following
search and visually inspecting the results, although semgrep might be able
to do better:

```
ack '^@.*task|^@set_code_owner_attribute' cms lms common openedx xmodule --ignore-dir=tests --python
```

Also, add more detailed explanation of why a couple of tasks can't use the
decorator. This should only be an issue on tasks inheriting from
UserTaskMixin, which in practice is just CourseExportTask and
CourseImportTask (and the apparently unused EnrollmentReadTask and
EnrollmentWriteTask), via UserTask.
2023-02-15 18:20:50 +00:00
Tim McCormack
197fef9c2b docs: Various cleanup of outdated comments and docstrings (#31754)
- Remove pylint warning suppression from SHAKE-128 hexdigest calls; these
  are no longer needed as of astroid 2.12.12. For background, see issue
  <https://github.com/PyCQA/pylint/issues/4039>. Also, correct a comment
  that referred to SHAKE-256 instead of SHAKE-128.
- Replace "released" with "beta" in several places where there was a copy
  & paste error in dark_lang. Add mention of `beta_lang` to a docstring
  where it was omitted.
- Remove comment regarding Mongo startup; the code it referred to has since
  been removed.
- Fix typos.
2023-02-14 18:11:57 +00:00
Muhammad Adeel Tajamul
9f7bba85fc feat: added reverse_order param in comments sort (#31667)
Co-authored-by: adeel.tajamul <adeel.tajamul@arbisoft.com>
2023-02-13 12:58:13 +05:00
Justin Hynes
c6a548e419 temp: remove temp logging added around extended_profile functionality
[APER-2247]

This reverts commit 1359a6d6bb. This logging is no longer needed as the feature is working as expected (and we figured out the issue causing unexpected/missing results).
2023-02-08 10:54:56 -05:00
dnuzz
e6bb704fca chore: Add limit parameter to get_retirement_users view 2023-02-07 11:30:44 -05:00
Kyle McCormick
b5fd4cc55f fix: allow content libraries to be created through Django admin (#31719)
Previously, CMS Django admin would demand that at least one
LTIConfig be associated with the new library. This is not
necessary, but Django thought it was, because the `blank`
flag was not enabled on the ContentLibrary model's
`authored_lti_config` many-to-many field.

This should not affect the experimental blockstore-based
library authoring frontend, which already allows libraries
to be created without any authorized_lti_configs.

This will not affect the existing modulestore-based
library authoring frontend, since it doesn't even use
any of the models in question.

A migration is included with this commit, but it should NOT
change MySQL schema, since `blank` is a Django-level validation
flag.
2023-02-07 08:17:01 -05:00
Daniel Nuzzo-Mueller
f6a5a99958 chore: linting fix 2023-02-06 14:34:03 -05:00