Commit Graph

24726 Commits

Author SHA1 Message Date
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
Muhammad Umar Khan
92731be0dc Replace pyjwkest with pyjwt (#32270)
* chore: replace pyjwkest with pyjwt
2023-10-18 15:15:17 +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
Rafay
bf6ed5eb81 fix: reset button becomes available after submission (#33490) 2023-10-17 18:12:34 +05:00
Piotr Surowiec
6b082c728f Merge pull request #33275 from open-craft/0x29a/bb7834/inherited-roles-studio-fix
Fix studio for users with derived roles and some other related changes [BB-7834]
2023-10-16 21:16:51 +02:00
Maxim Beder
755fa7fd31 feat: set course for wiki based on the wiki_slug
Learners want to have the usual course navigation when viewing a wiki,
so that they can go back to the course related to the wiki and browse
other tabs/sections of the course.

Wiki reads the course from the `request.course`. If it's not present,
i.e.  None or not set on the request, it will not show the course
navigation UI.

It seems like `WikiAccessMiddleware` already has the code that parses
course id from the request (when the request is for a wiki view) and
sets the course for the request. However, it doesn't work in most
scenarios, because the course id is not in the it's normal format in
most requests that go to wiki.

For example, when a leaner clicks on a wiki tab from the course
overview, they are redirected to `/wiki/<wiki_slug>/` path. The wiki
slug is taken from course's `wiki_slug` field. This slug can be used to
figure out what course this wiki belongs to in most (not all) cases.

This commit adds code to the `WikiAccessMiddleware` that attempts to
find a course based on wiki slug, and in case of success, sets the
course to the `request.course`, so that wiki can display course
navigation UI.
2023-10-16 21:15:59 +02:00
Rebecca Graber
80a25bc368 feat: use new event_bus_producer_config (#33458) 2023-10-16 14:07:10 -04:00
0x29a
9e56a18f0f refactor: better permission names for instructor endpoints 2023-10-16 20:05:37 +02: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
0x29a
a45901ea6d feat: implement strict_role_checking context manager 2023-10-16 15:44:40 +02:00
SaadYousaf
bef05ab664 feat: add tracking event for following post 2023-10-14 02:00:34 +05:00
Feanil Patel
64e91d4080 test: Update to an even longer password. 2023-10-12 10:31:13 -04:00
salman2013
0d5ca66d44 Merge remote-tracking branch 'upstream/master' into salman/update-drf-endpoints 2023-10-12 15:17:27 +05:00
salman2013
f2bf289021 chore: test cases 2023-10-12 15:01:14 +05:00
Ahtisham Shahid
22e2a23b9f feat: add new notifiction type for discussions post followers (#33009)
feat: added model for subscription

feat: added logic for notifaction to followers
2023-10-12 13:03:02 +05:00
salman2013
5bbc17fd05 chore: fix test case 2023-10-12 11:48:00 +05:00
salman2013
4a640fec8b chore: update drf endpoints to use default authentication 2023-10-12 11:27:45 +05:00
Rafay Ghafoor
b14396bbfb feat: Adds disable_progress_graph attribute to the returned course_metadata response
Currently, https://github.com/openedx/frontend-app-course-authoring/issues/517 faces an issue when the
progress graph toggle is enabled/disabled but the settings are not respected, the disable_progress_graph
attribute will allow the frontend-app-learning repo to use this attribute to respect the settings authored
from frontend-app-course-authoring and ultimately fix https://github.com/openedx/frontend-app-course-authoring/issues/517.
2023-10-11 20:39:16 +05:30
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
Zachary Hancock
9f16b0f8f6 feat: handle exam submission and reset (#33323)
handles exam events from event bus that impact the 'instructor' app. These apis deal with learner completion and managing problem attempt state.
2023-10-06 09:10:13 -04:00
Muhammad Adeel Tajamul
29c83ca56b feat: notifications and preferences will be created in batches (#33418) 2023-10-06 16:27:22 +05:00
Michael Roytman
a313b3fd20 Merge pull request #33412 from openedx/MichaelRoytman/MST-2107-EXAM_ATTEMPT_REJECTED-consumer
Add grades event bus event handler for rejected special exam.
2023-10-05 15:48:20 -04:00
Isaac Lee
2ae07387b2 feat: receiver for invalidate certificate (#33319)
* feat: receiver for invalidate certificate

- consumes event of exam attempt rejected
- initial commit, need to make tests

* temp: moving consumer from signals to handlers.py

- Still need to make this work
- Need to make tests work too

* feat: refactored underlying code to api.py

- tests still need to be tweaked

* fix: commit history

* fix: improve api func name + add source param
2023-10-05 19:39:14 +00:00
michaelroytman
b4cb93ede7 feat: add grades event bus event handler for rejected special exam
This commit adds an event bus event handler to the grades application. This event handler handles the EXAM_ATTEMPT_REJECTED Open edX event,
 which is emitted when a learner's exam attempt is rejected. The event handler creates a subsection grade override, overriding the grade to
 0.0.
2023-10-05 15:18:43 -04:00
alangsto
db252978f3 feat: receiver for verified exam event (#33390) 2023-10-05 14:54:35 -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
Marcos
5bc0a575b8 feat: Added Waffle Flags for Courseware Search feature 2023-10-04 12:19:32 -03:00
Yagnesh Nayi
d9af2dfb36 feat!: DEPR expected error part of EXPECTED_ERRORS (#33184)
Removes expected part of EXPECTED_ERRORS with a variety of changes.
- In many placed in the code, "expected" was used to mean
  "ignored and expected", and all such instances are renamed to "ignored".
- The setting ``EXPECTED_ERRORS`` is renamed to ``IGNORED_ERRORS``,
  which better matches how it was being used in the first place.
- The setting ``EXPECTED_ERRORS[REASON_EXPECTED]`` is renamed to ``IGNORED_ERRORS[REASON_IGNORED]``.
- The setting toggle ``EXPECTED_ERRORS[IS_IGNORED]`` is removed,
  because it will now always be True.
- The how-to will is renamed to how_tos/logging-and-monitoring-ignored-errors.rst.

See 0002-logging-and-monitoring-expected-errors-removed.rst for more details.

Implements DEPR: https://github.com/openedx/edx-platform/issues/32405

**BREAKING CHANGE:** The rename of the setting ``EXPECTED_ERRORS`` to
  ``IGNORED_ERRORS``, and ``REASON_EXPECTED`` to ``REASON_IGNORED``,
  was implemented without backward compatibility. Simply copy the old settings
  with the new name as an expand phase before deleting the old names in the 
  contract phase.
2023-10-04 10:03:41 -04:00
Juliana Kang
4d3ae9f665 feat: Show active subscriptions on Program Details apart from eligibility (#33391)
REV-3704
2023-10-04 08:48:37 -04:00
Zubair Shakoor
70f6f5ad9e fix: replaced mysql57 hosts with mysql80 (#33147) 2023-10-04 17:35:18 +05:00
Juliana Kang
e10ba22e51 fix: Remove rendering of the subs upsell on dashboard sidebar (#33324)
REV-3705
2023-10-03 10:51:57 -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
jszewczulak
512bc405cc feat: added routing keys for ORA workflow batch update (#33136)
* feat: added routing key for ORA batch update
2023-09-27 14:53:11 -04:00
Tim McCormack
6ab89a71ef fix: Give default for CSRF_TRUSTED_ORIGINS_WITH_SCHEME as well (#33353)
This was causing failures in devstack, since lms/envs/devstack.py did not
have an override like some of the other envs do. But devstack.py also
doesn't specify CSRF_TRUSTED_ORIGINS; better to just update the common
env to have a default.

(This setting is only needed during the transition to Django 4 and will be
removed after that.)
2023-09-27 14:47:32 +00:00
Jorge Alberto Fandiño
b9e1819405 Merge branch 'master' into JF/fix_certificate_palm 2023-09-26 12:40:09 -04:00
Justin Hynes
f4c7f98034 fix: update toggle description to fix copy/paste issue 2023-09-22 17:20:00 +00:00
Justin Hynes
cc8722d1c0 feat: publish CERTIFICATE_REVOKED events to the event bus
This PR adds the ability for the LMS to publish `CERTIFICATE_REVOKED` events to the Event Bus. There is also work in progress for Credentials to consume these events.
2023-09-21 19:22:24 +00: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
Muhammad Adeel Tajamul
3aeaec35d9 feat: added notifications in legacy discussion experience (#33280) 2023-09-21 08:04:02 +05:00
Jenkins
d1e8026a8a chore(i18n): update translations 2023-09-20 09:21:28 -04:00
Awais Qureshi
c50e01e107 feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme. (#33226)
* feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme.

* feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme.

* fix: fix quality failure

* feat!: Django 4.0 and above, CSRF_TRUSTED_ORIGINS must include scheme.
2023-09-20 15:49:47 +05:00
ABBOUD Moncef
9b44065ab0 fix: hide sequences & sections when access is restricted in units through cohorts (#33191)
This does two major things:

* Removes subsections from a student's course outline if the
  subsection's units are all restricted to a cohort that the student
  is not a part of (see CohortPartitionGroupsOutlineProcessor).
* Removes sections from the course outline if the user is not allowed
  to see any of its child subsections.
2023-09-19 10:05:02 -04:00
Tim McCormack
fa66240d9a Revert "feat: Add an experimental custom attr for automatic Celery task code owner (#33180)" (#33272)
This reverts commit a1d840fd09.
2023-09-18 17:47:59 +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
Lakshya Khatri
3acb1d8590 docs: annotate lms progress tab ui waffle flag (#33233) 2023-09-18 10:06:12 -04:00
Dmytro
20efcdc94c fix: User retirement 404 for state RETIRING_FORUMS (#33024) 2023-09-18 13:44:53 +05: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