Commit Graph

10209 Commits

Author SHA1 Message Date
Feanil Patel
2e75ced467 Merge pull request #33186 from thezaeemaanwar/remove_badges_app
[DEPR]: lms/djangoapps/badges
2023-10-20 10:29:43 -04:00
Jesper Hodge
db4911b90e chore: rename Files & Uploads page (#33546) 2023-10-19 21:08:42 +00:00
Chris Chávez
1d58bd1106 feat: New link on studio home to Taxonomy list (if waffle flag set) (#33439) 2023-10-19 10:19:50 -07:00
Muhammad Abdullah Waheed
caf8e456e2 Revert "feat: Account and profile MFE legacy removal - redeployment (#31893)" (#33542)
This reverts commit 08f5e7e563.
2023-10-19 12:26:29 +05:00
Muhammad Abdullah Waheed
08f5e7e563 feat: Account and profile MFE legacy removal - redeployment (#31893)
feat: Account and profile MFE legacy removal - redeployment

* Revert "Revert "FC-0001: Account pages -> micro-frontend (#30336)" (#31888)"

This reverts commit 90c4ca6e47.

* refactor: removed filters test from user_api accounts

---------

Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
2023-10-19 10:43:15 +05:00
thezaeemaanwar
0b3e4d73b6 feat!: Removed Badges App
fix: restored badges handlers

feat: remove FE code for badges

fix: resolved failing tests

fix: removed test case for badges app

fix: unused import error

fix: Response Field Count

fix: shareable account response length

fix: resolved PR comments

fix: revert settings override

feat!: Removed Badges App

fix: restored badges handlers

feat: remove FE code for badges

fix: resolved failing tests

fix: removed test case for badges app

fix: unused import error

fix: Response Field Count

fix: shareable account response length

fix: revert subscription badge
2023-10-18 20:30:04 +05: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
Rebecca Graber
80a25bc368 feat: use new event_bus_producer_config (#33458) 2023-10-16 14:07:10 -04:00
Feanil Patel
e3851ab3d1 test: Update to reuse variables in more places.
Some of the places where we had explicit copies of the password were not
necessary so we referece the exsting TEST_PASSWORD variable where
possible.
2023-10-16 12:33:25 -04:00
Jeremy Ristau
fd86ba15e1 Merge pull request #33343 from open-craft/kaustav/clarify_grade_range_numerical_values
fix: clarify grade range numerical values
2023-10-16 09:28:08 -04:00
Raymond Zhou
2033dcf6ac fix: ref mgmt cmd logging (#33481) 2023-10-12 13:06:30 -04:00
Feanil Patel
64e91d4080 test: Update to an even longer password. 2023-10-12 10:31:13 -04:00
Raymond Zhou
526db10d81 fix: library ref management cmds course id call (#33477) 2023-10-11 16:12:09 -04:00
Awais Qureshi
254903531a feat!: Adding fall back method for sha1 in case default algo is sha256 (#33345)
* feat!: `sha1` has been deprecated in django32 and removed in django42.

* test: fix quality failure

* fixup! update custom attribute tests (#33436)

I was wondering about all the cases, so I
updated the test to reflect this. I also
made some other minor adjustments.

---------

Co-authored-by: Muhammad Soban Javed <iamsobanjaved@gmai.com>
Co-authored-by: Robert Raposa <rraposa@edx.org>
Co-authored-by: Muhammad Soban Javed <58461728+iamsobanjaved@users.noreply.github.com>
2023-10-11 19:54:01 +05:00
Feanil Patel
1e2ea85372 test: Update more tests that had short passwords. 2023-10-10 16:36:26 -04:00
Awais Qureshi
b353019c3f chore: Adding condition to pick values in case of django42. (#33440)
* fix: add default for CSRF_TRUSTED_ORIGINS_WITH_SCHEME.
2023-10-09 14:25:35 +05:00
connorhaugh
4d3ef54e60 fix: library ref mgmt cmd task params (#33427)
* fix: library ref mgmt cmd task params

* fix: lint fix

* fix: lint fix
2023-10-06 14:06:20 -04:00
Yagnesh Nayi
98d0435167 feat: remove askbot changes in depr216 (#33408)
* feat: remove askbot changes in depr216

* feat: update cms test.py

* feat: update cms test.py
2023-10-05 09:19:59 -04:00
Zubair Shakoor
70f6f5ad9e fix: replaced mysql57 hosts with mysql80 (#33147) 2023-10-04 17:35:18 +05:00
Zachary Hancock
835a81c466 feat: handle exam events for credit state (#33402)
Handles exam related events from the event bus that impact credit state. Functionally this will behave the same as the existing CreditService which is called by edx-proctoring. This enables edx-exams (an IDA) to have the same behavior.
2023-10-03 16:50:47 -04:00
Kaustav Banerjee
62cfe6f3a9 fix: fetch organizations list only for granted course creators (#33333)
* fix: fetch organizations list only for granted course creators

* fix: add ability for course instructors to create libraries same as course staff
2023-10-03 12:46:47 -04:00
Rebecca Graber
ed48e96027 feat: upgrade openedx-events (#33392) 2023-10-03 08:29:15 -04:00
Feanil Patel
683145156b feat: Update the minimum password length. 2023-10-02 14:10:03 -04:00
Jesper Hodge
8c9be5478a fix cms api route details (#33346)
This fixes the routes and swagger details for the experimental CMS API. (The swagger-ui is available under studio.edx.org/cms-api/ui and the schema file at studio.edx.org/cms-api/schema.) Only change that practically affects the routes is that you need to use PUT instead of POST for updates usually, now.
2023-09-28 12:57:31 -04:00
Kristin Aoki
645a762a13 fix: duplicate import dropdown for export page (#33348) 2023-09-27 12:09:16 -04:00
Yusuf Musleh
0a636918c3 fix: Hide Copy menu button in ContentLibrary (#33276)
Since the Copy/Paste functionality has not been implemented for
ContentLibraries yet, the "Copy to Clipboard" button should not appear
in both the ContentLibrary page.
2023-09-26 10:23:48 -07:00
Kaustav Banerjee
d948267627 fix: clarify grade range numerical values 2023-09-26 16:15:53 +05:30
Kristin Aoki
5d1a778a1d feat: add new library util for split studio view (#33283) 2023-09-25 13:08:19 -04:00
Awais Qureshi
bceba32f0a Upgrade django-storages to 1.14 ( max ver ) (#33312)
* feat!: upgrading `django-storages` to `1.14`
2023-09-25 15:16:59 +05:00
Jesper Hodge
cd2ce32d73 CMS API serializers and validations (#33316)
Internal ticket: https://2u-internal.atlassian.net/browse/TNL-11077

This adds validations to all new CMS API endpoints via serializers.

Validations follow the "strong parameter" concept:
https://www.mintbit.com/blog/securing-ruby-on-rails-applications-part-3-use-strong-parameters#:~:text=Strong%20parameters%20are%20a%20feature,parameters%20to%20a%20controller%20action.
2023-09-22 17:49:49 -04:00
Rômulo Penido
e45460a2ce refactor: Move content_tagging django app so that CMS-only tests run (#33259) 2023-09-21 12:01:20 -07:00
Awais Qureshi
4943674fc1 feat!: upgrading django-storages to 1.13.2 (#33301)
* feat!: upgrading `django-storages` to `1.13.2`
2023-09-21 16:56:50 +05:00
Jenkins
d1e8026a8a chore(i18n): update translations 2023-09-20 09:21:28 -04:00
Jesper Hodge
f197f9e61e add swagger for CMS API via drf-spectacular (#33282)
This adds two new urls: `<studio-base>/cms-api/ui` and `<studio-base>/cms-api/schema` with swagger ui and swaggerfile only for the new CMS API using drf-spectacular
2023-09-19 21:06:40 +00:00
Kshitij Sobti
8342e6bb5c fix: loading of underscore and other text assets over CDN (#33124)
The text plugin for requirejs is used to load text assets such as .underscore files.
To avoid CORS issues when loading such assets from a different domain, such as a when
a CDN is in use, this plugin loads such assets as .js files by adding a script tag.

What this means in practice is that if you configure the platform to serve static
assets from a CDN, it will try to load `file.underscore.js` instead of
`file.underscore`. We can override this behaviour by providing a `useXhr` function
for the text plugin configuration. The plugin will use this function to determine
whether to use XHR or the script tag approach.

In this change we are asking it to always use XHR since the concerns about CORS
raised by the plugins documentation don't apply here.

ref: 3f9d4c19b3/README.md (xhr-restrictions)
2023-09-18 19:41:12 +05:00
Yusuf Musleh
3eb4e0ce9c feat: Update new files notification banner styles (#33197)
Uses the updated styles for the notification based on the new designs.
Includes a button to open view the files directly in the notification.

This also fix a bug where the notification was not appearing when paste
a whole Unit.
2023-09-15 08:58:50 -07:00
Kyle McCormick
265701c01d feat!: remove library_sourced block (#33257)
Originally, we planned to add support for V2 libraries and for static
(hand-selected) library block reference via new block type: library_sourced.

We have since decided that it would be better to add those capabilities
in-place to the existing library_content block. This will ease V1->V2
library migration and make adoption of the new features easier for current
library users. It will also avoid duplication of logic between two block types,
we we fear would be error-prone. For details, see this ADR:
 https://github.com/openedx/edx-platform/pull/33231

So, we are removing the library_sourced block.
This block has existed in edx-platform for a few years now, but was not
enabled by default and never officially supported. It was only usable via the
experimental V2 content library feature. Operators who added library_sourced
blocks to their course will now see them render as `HiddenBlock` instances, i.e.:

> ERROR: "library_sourced" is an unknown component type...

This should not impact other component types in such courses and should not
impact import/export.
2023-09-15 10:04:38 -04:00
German
d3a6615deb chore: update location config for devstack-experimental (#33256)
* Update location in devstack-experimental to fix issue while re-indexing
* Updated the devstack.py to point to edx.devstack.elasticsearch710 host
* Enabed the ENABLE_COURSEWARE_INDEX and ENABLE_COURSEWARE_SEARCH
2023-09-14 14:21:47 -03:00
Yusuf Musleh
ac9aa91eb7 fix: Vertically center align Unit paste spinner (#33169) 2023-09-13 12:22:43 -07:00
Feanil Patel
52c7403ba9 Merge pull request #33157 from openedx/feanil/minimal_config_updates
feat: Be able to recieve e-mails in dev mode.
2023-09-13 11:09:14 -04:00
Kristin Aoki
f9c1af775c feat: change problem default display name (#33240) 2023-09-13 11:08:48 -04:00
ruzniaievdm
3978375abf feat: create course home api DRF (#33173) (#33204) 2023-09-08 08:39:31 -04:00
connorhaugh
901ac926bd Revert "feat: create course home api DRF (#33173)" (#33194)
This reverts commit e480a79d9c. as it failed final checks before prod: 
https://github.com/openedx/edx-platform/actions/runs/6098198385/job/16548257136
2023-09-07 13:22:53 +00:00
ruzniaievdm
e480a79d9c feat: create course home api DRF (#33173) 2023-09-06 10:05:25 -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
Jenkins
9bae5cd26d chore(i18n): update translations 2023-09-05 12:44:57 -04:00
Feanil Patel
8151d67592 feat: Be able to recieve e-mails in dev mode.
Set an e-mail destination path if no overrides are provided.  This
setting is only relevant when the file based email backend is in use
like it is in devstack.

As a part of this change, we render the DATA_DIR setting higher in the
settings file so we can reference it sooner but this should not impact
any other uses of this setting.
2023-09-01 15:05:58 -04:00
Paulo Viadanna
26d8c2166d feat: implements SHOW_REGISTRATION_LINKS feature toggle
(cherry picked from commit 3025ab5fe6f6f53d6af5b36681355efafa37c74b)
2023-09-01 15:06:40 +02:00
Awais Qureshi
9db024c435 feat!: upgrading django-storages to 1.11.1 2023-08-31 14:21:24 +05:00
Kristin Aoki
878e72024b feat: add API endpoint for asset usage search (#33092) 2023-08-30 11:48:19 -04:00