Commit Graph

6303 Commits

Author SHA1 Message Date
Yagnesh1998
3a763b6b3e Merge branch 'master' into edx-depr31 2023-08-04 10:28:54 +05:30
Yagnesh1998
ba01ca9b2a feat: Update models.py 2023-08-04 10:28:28 +05:30
Erica Nwoga
7d97ecfe9b feat: added proctoringpiisignature model (#32903)
* feat: added proctoringpiisignature model
2023-08-03 15:34:17 -04:00
Erica Nwoga
87a6664013 feat: created ltipiisignature model (#32853)
* feat: created ltipiisignature model
2023-08-03 10:17:52 -04:00
Braden MacDonald
1aed4e66af [FC-0009] Studio backend APIs to support copying and pasting of entire Units (#32812)
* feat: tests for copying units in content_staging app

* chore: convert old tests to pytest style

* feat: make pasting units work (in Studio backend API)

* refactor: make XmlMixin.parse_xml more like standard XBlock behavior
2023-08-02 12:24:10 -07:00
Yagnesh1998
6ace2aa293 Merge branch 'master' into edx-depr31 2023-08-02 16:09:27 +05:30
Erica Nwoga
0bde216d6f feat: added ltipiitool model (#32790)
* feat: added ltipiitool model

* feat: added ltipiitool model

* feat: created ltipiitool model

* chore: squashed ltipiitool mirgation files for agreements app.

* chore: fixed migration files
2023-08-01 11:39:25 -04:00
Yusuf Musleh
b97007e182 feat: Handle JSInput extra files when copying/pasting (#32847)
This takes into account the extra files that are usually required when
copying problems containing JSInputs. Static files such as additional
CSS and JS files needed to interact and style the problem.
2023-07-31 11:12:10 -07:00
Diego Velasquez
547e5b1f7b chore: remove warnings from defusedxml package (#32652)
Co-authored-by: Diego Velásquez <diego@emptor.io>
2023-07-26 12:20:56 -04:00
Ahtisham Shahid
f4616f02c8 fix: use student role for zoom in case of global staff. (#32818)
* fix: use student role for zoom in case of global staff.

* fix: added request cache to avoid duplicate db calls.
2023-07-26 14:19:21 +05:00
Rômulo Penido
c54070989b feat!: add new content authoring event signals 2023-07-25 16:45:39 +02:00
Mubbshar Anwar
daa52f3ba9 feat: embedded form redirection experience (#32814)
Redirection for embedded registration experience

VAN-1535
2023-07-25 11:56:33 +05:00
Ahtisham Shahid
4379c089f1 fix: updated disucssions notifications templates (#32819) 2023-07-25 11:23:59 +05:00
Muhammad Adeel Tajamul
f39ba90c55 feat: added search and filter in django admin for notification models (#32771) 2023-07-24 15:46:01 +05:00
Ken Clary
d6f824db40 feat: basic get/post endpoint for v2 xblocks. TNL-10873 2023-07-20 16:03:32 -04:00
SaadYousaf
ebd9605911 feat: add tracking event for notifications app mark all as read 2023-07-20 14:38:12 +05:00
Braden MacDonald
57420ed613 feat: expand mypy static type checking (#32591)
* chore: typing + fixes for content_staging
* chore: typing + fixes for learning_sequences
* chore: typing + fixes for content_libraries
* chore: typing + fixes for new XBlock runtime
* feat: type hinting more code with mypy
2023-07-19 09:58:19 -07:00
Agrendalath
92b684004e refactor: reuse services and wrappers between XBlocks (fixed)
This re-applies commit 36cc415 with handling an invalid context_key in the
`PartitionService`. It can happen when rendering a `LibraryContentBlock` in
Studio because this service is initialized by the modulestore when validating
an XBlock to gather its error messages in the `studio_xblock_wrapper`.
2023-07-19 18:01:59 +02:00
Agrendalath
6825088801 Revert "Revert "feat: remove field-data binding from the runtime [FC-0026]" (#32740)"
This reverts commit fa06be106e.
2023-07-19 15:36:26 +02:00
Ahtisham Shahid
3af1ce0441 allow app level enable/disable in notifications app (#32781)
* fix: allow app level enable/disable in notifications app
2023-07-19 15:26:03 +05:00
Yagnesh1998
e7b69200d0 Merge branch 'master' into edx-depr31 2023-07-19 10:28:30 +05:30
Emily Rosario-Aquin
6ff8538dc6 Merge pull request #32595 from openedx/ea/ent-7031
feature: upgrade course enrollment from audit to verified
2023-07-18 08:04:58 -05:00
Ahtisham Shahid
13a5cfc66f fix: use search instead of list for users in notification admin (#32769) 2023-07-18 12:13:03 +05:00
Emily Aquin
134b4bcff6 feat: upgrade course enrollment from audit to verified 2023-07-17 20:11:06 +00:00
Braden MacDonald
9b9b88df52 chore: remove some usages of six (Python2 compat) (#32554)
* get rid of six.text_type(s)
* get rid of six.b()
* get rid of six.string_types
* get rid of six.PY2/six.PY3
* get rid of six.iteritems() and six.viewvalues()
2023-07-17 12:18:43 -07:00
Mohammad Ahtasham ul Hassan
06923c7948 feat: use username for course completion API instead of lms_user_id (#32761) 2023-07-17 20:17:12 +05:00
Yagnesh1998
6e8c10c791 Merge branch 'openedx:master' into edx-depr31 2023-07-17 15:54:46 +05:30
Mohammad Ahtasham ul Hassan
024096a589 temp: add temporary logging for entitlement revocation (#32746)
* temp: add temporary logging for entitlement revocation
2023-07-14 16:04:17 +05:00
Awais Ansari
5d72ba3518 feat: add show_preference flag in course enrollment API response (#32726)
* feat: add show_preference flag in course enrollment API response

* refactor: fix lint issue in get_paginated_response
2023-07-14 12:26:49 +05:00
Ahtisham Shahid
eebd7d236b fix: added correct url in notification content_url (#32725)
* fix: added correct URL in notification content_url
* fix: updated logic to compare user ids
2023-07-14 10:44:14 +05:00
Piotr Surowiec
fa06be106e Revert "feat: remove field-data binding from the runtime [FC-0026]" (#32740)
* Revert "feat: remove `field-data` service from runtime initialization"

This reverts commit 6c435bb68c.

* Revert "feat: remove field data binding from the runtime"

This reverts commit 5f46ea52cd.
2023-07-13 13:04:02 -04:00
Mohammad Ahtasham ul Hassan
00f049b9e9 fix: fix course completion utility (#32734) 2023-07-13 20:12:02 +05:00
Piotr Surowiec
c6bd98e51a Revert "refactor: reuse services and wrappers between XBlocks" (#32730)
This reverts commit 36cc415fc2.
2023-07-13 10:05:34 -04:00
SaadYousaf
51c826f41d feat: add tracking events for notifications app 2023-07-13 16:24:33 +05:00
Mohammad Ahtasham ul Hassan
7fe5229bbb feat: Add new entitlement expiration endpoint (#32677)
* feat: add new entitlements expiration endpoint
2023-07-13 13:38:20 +05:00
Feanil Patel
f60735a4eb Merge pull request #32573 from open-craft/yusuf-musleh/list-courses-details-by-key
feat: list courses details by keys
2023-07-12 16:01:38 -04:00
alangsto
cb3a0e91e9 feat: return lti launch url (#32718) 2023-07-12 14:25:59 -04:00
Yusuf Musleh
4ad8ba1b41 feat: list courses details by keys
This adds the ability to get a list of detailed courses based on their
keys provided in the newly added `keys` query param in the `GET /courses/v1/courses/`
endpoint.
2023-07-12 17:22:38 +03:00
Ahtisham Shahid
cd6c754198 fix: resolved logical issues with notification task (#32724) 2023-07-12 15:21:56 +05:00
Ahtisham Shahid
4921db5995 feat: added logic to handle core notifications (#32708)
* feat: added logic to handle core notifications
2023-07-12 12:06:24 +05:00
Muhammad Adeel Tajamul
89bede4dd6 test: added tests to validate notification preference constant (#32666) 2023-07-12 11:02:51 +05:00
Ahtisham Shahid
cd7e48c5d7 feat: update/create notifiction pref while sending notifications (#32665)
* feat: update user pref while sending notifications

* feat: added flag and bulk create in task
2023-07-11 18:46:41 +05:00
Awais Ansari
aeae341559 feat: add non_editable for core notifications (#32695)
* feat: add non_editable for core notifications

* test: add test case for non_editable in core notification

* refactor: remove breakpoint from test cases
2023-07-11 12:21:04 +05:00
connorhaugh
00b1ce28b9 feat: add library copy management command (#32598)
This PR introduces the "copy" management command, which copies v1 libraries into v2 libraries.
2023-07-10 15:45:18 -04:00
Braden MacDonald
162175f0c4 chore: get rid of edx_six - not needed anymore (#32555)
* chore: get rid of edx_six - not needed anymore
* chore: remove reference to TODO that was completed.
2023-07-10 11:16:57 -07:00
Awais Qureshi
b528a27237 fix: upgrading celery version and fixing tests. (#32468)
* fix: upgrading celery version and fixing tests.

---------

Co-authored-by: edX requirements bot <49161187+edx-requirements-bot@users.noreply.github.com>
Co-authored-by: zubairshakoorarbisoft <zubair.shakoor@arbisoft.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: awais786 <awais786@users.noreply.github.com>
2023-07-10 18:36:30 +05:00
ayesha waris
c5c52a8f9e fix: changes count_by_app_name in counts api to return apps with zero… (#32629)
* fix: changes count_by_app_name in counts api to return apps with zero unseen count

* refactor: initialised count_by_app_name_dict with zeros
2023-07-10 16:14:02 +05:00
Braden MacDonald
e705820d0d refactor: Remove unneeded filter from static asset copy/paste code. (#32660) 2023-07-07 09:47:06 -07:00
Mohammad Ahtasham ul Hassan
ee871730c8 feat: add course_status utility (#32545)
* feat: add course_status utility
2023-07-07 12:38:05 +05:00
Kyle McCormick
f4540c30e8 fix: flow ?site_theme down through Studio container preview
In ~Palm and earlier, all built-in XBlock Sass was included into CMS
(and LMS) styles before being compiled. So, if a site theme was meant to
affect built-in XBlock styling, those changes would be manifested
directly in the base CMS CSS that is included into every single Studio
page. When the user provided the `?site_theme` querystring parameter,
which is intended to allow devs & admins to view Studio through a given
theme, CMS would look up the given theme and serve the corresponding
base CMS CSS, which would affect the built-in XBlocks views (as
expected).

After ~Palm, built-in XBlocks styles are handled more similarly to to
pure XBlock styles, in that they are only requested when CMS tries to
render the block. In Studio, blocks are not rendered by the original
request, but by a subsequent AJAX request to the `/container_preview`
enpoint. Thus, passing the `?site_theme` query parameter to the original
request will apply the given theme to Studio's chrome, but the theme
will _not_ apply to built-in XBlock views, whose CSS is now loaded via
async request.

To fix this, we simply pass Studio's querystring parameters (including
`?site_theme`) along to the `/container_view` AJAX request. This will
cause CMS to correctly serve the built-in XBlock CSS from the theme
specified by `?site_theme`, rather than whatever the current theme is.

Part of: https://github.com/openedx/edx-platform/issues/32292
2023-07-06 11:58:06 -04:00