Commit Graph

24704 Commits

Author SHA1 Message Date
salmannawaz
a71ce9f447 Merge branch 'master' into salman/remove-bok-choy 2023-10-04 20:02:50 +05: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
salman2013
936a6c0983 chore: resolve conflicts 2023-10-04 19:02:16 +05:00
salman2013
52860c5c9d chore: resolve conflicts 2023-10-04 18:45:02 +05: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
salman2013
7e58e281d1 Merge remote-tracking branch 'upstream/master' into salman/remove-bok-choy 2023-09-28 16:06:07 +05:00
salman2013
a763287152 chore: remove all reference for bok-choy 2023-09-28 16:05:15 +05: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
salman2013
74ff28cd3f Merge remote-tracking branch 'upstream/master' into salman/remove-bok-choy 2023-09-27 16:58:51 +05:00
salman2013
42ca0ddec4 chore: remove bok choy settings 2023-09-27 10:58:37 +05: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
Jansen Kantor
88b6f3894e fix: turn off atomic requests for course api get views (#33230)
* fix: turn off atomic requests for course api get views

* test: fix test
2023-09-14 10:40:28 -04:00
salmannawaz
648a30249a Deprecation of edx-user-state-client repo (#33218)
* chore: add code for edx-user-state-client in edx-platform
2023-09-14 18:53:37 +05: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
Irtaza Akram
71d99c8b1e Merge pull request #33132 from openedx/fix-got-both-positional-and-keyword-arguments-for-field
[Django 4.2]: Fix: got both positional and keyword arguments for field
2023-09-13 15:35:57 +05:00
Maria Grimaldi
dae1c75227 Merge branch 'master' into JF/fix_certificate_palm 2023-09-12 08:25:02 -04:00
Muhammad Adeel Tajamul
8ed6756809 fix: fixed unregistered task in new thread notification (#33223) 2023-09-12 14:02:31 +05:00
Justin Hynes
ad8ed5311d Merge pull request #31578 from DmytroAlipov/fix-FB-share
fix: share certificate in FB
2023-09-08 07:33:59 -04:00
Awais Qureshi
22cc66eaf7 fix: in django42 QuerySet.update_or_create() save only fields passed … (#33174)
* fix: in django42 QuerySet.update_or_create() save only fields passed in defaults
2023-09-08 14:48:07 +05:00
Edward Zarecor
03f00d535e Merge branch 'master' into fix-FB-share 2023-09-07 16:09:14 -04:00
Artur Gaspar
7da99848a7 fix: edxnotes visibility in courseware and courseware API (#33096)
This retrieves user preferences for edxnotes visibility by:
1. Adding a `bind_course_for_student` method to course overview model.
2. Using a bound XBlock in the `toggle_notes.html` template.

The previously used unbound course instance was returning a default value.
2023-09-07 17:59:51 +02:00
Maria Grimaldi
750ee00353 feat: add instructor dashboard filter integration (#32448)
This PR adds a new filter to modify the instructor dashboard rendering process. For example: modify the section tabs of the instructor context --that specifies which tabs to render, adding a brand new one defined in a different plugin. The use case we're currently testing is to add a new tab to the instructor dashboard, which renders management information about an Xblock.
2023-09-07 10:02:56 -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
Tim McCormack
a1d840fd09 feat: Add an experimental custom attr for automatic Celery task code owner (#33180) 2023-09-06 13:51:47 +00:00
Jansen Kantor
cac1159552 feat: ora date config reflected in dates tab (#33118)
* feat: ora date config reflected in dates tab

* docs: update docstrings

* style: quality

* feat: Upgrade Python dependency ora2 (#33119)

temp upgrade so tests pass

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: jansenk <jansenk@users.noreply.github.com>

* fix: unbound variable

* fix: don't show dates for steps with no concept of due

* feat: Upgrade Python dependency ora2 (#33176)

bump to ora version to include ora date config changes

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`

Co-authored-by: jansenk <jansenk@users.noreply.github.com>

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: jansenk <jansenk@users.noreply.github.com>
2023-09-05 15:17:23 -04:00
Jenkins
9bae5cd26d chore(i18n): update translations 2023-09-05 12:44:57 -04:00
Tim McCormack
f39b01c4b1 fix: Add missing code-owner decorators for Celery (#33172) 2023-09-05 15:16:14 +00:00
Dmytro
d74a6aed2a fix: for the wiki page translation (#33049) 2023-09-05 18:28:06 +05:00
Ahtisham Shahid
aec8fcd559 fix: use disabled as default for posting_restrictions (#33159) 2023-09-05 15:44:10 +05: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
Muhammad Adeel Tajamul
96f7e9cd9a fix: handle new_comment notification edge case (#33088) 2023-08-31 16:33:20 +05:00
Muhammad Adeel Tajamul
4efd54a3fd feat: added new_question_post and new_discussion_post notification (#33043) 2023-08-31 14:29:21 +05:00