Commit Graph

66913 Commits

Author SHA1 Message Date
Taylor Payne
3e83efa609 fix: exclude fields from UpstreamSyncMixin in advanced settings api (#36831)
The UpstreamSyncMixin introduced in [1] which is added as a XBlock mixin,
currently contains four fields - `upstream`, `upstream_version`,
`upstream_version_declined`, and `upstream_display_name`. These fields are
coming through in the course advanced settings API endpoint
(`/api/contentstore/v0/advanced_settings/{course_id}`), and subsequently show
up in the Advanced Settings view in the frontend-app-authoring MFE, which they
shouldn't.

This PR resolves this issue by adding the fields from the `UpstreamSyncMixin`
into the FIELDS_EXCLUDE_LIST [2] of the `CourseMetadata` class. Unless the API is
called with `fetch_all=1` (the authoring MFE uses `fetch_all=0`), then these
fields will be filtered out.

[1] https://github.com/openedx/edx-platform/blob/master/cms/lib/xblock/upstream_sync.py#L289
[2] https://github.com/openedx/edx-platform/blob/master/cms/djangoapps/models/settings/course_metadata.py#L41

Fixes: https://github.com/openedx/frontend-app-authoring/issues/2018
2025-06-04 13:38:30 -04:00
Jansen Kantor
f58c6f04fa fix: wrap sequence metadata view in bulk actions contextmanager (#36854)
* fix: wrap sequence metadata view in bulk actions contextmanager

* style: line too long
2025-06-04 16:52:09 +00:00
Feanil Patel
3d664b0ae8 Merge pull request #36609 from musanaeem/musa/admin-revamp-dropdowns
Single Select Autocomplete Added to Student Admin
2025-06-04 11:37:29 -04:00
Feanil Patel
a01f4b110c Merge pull request #36814 from wgu-taylor-payne/update-django-simple-history
chore: remove version constraint on django-simple-history
2025-06-04 11:12:04 -04:00
Ahtisham Shahid
c080f96da2 fix: Updates task in topics sync API (#36853)
fix: Updates task in topics sync API
2025-06-04 08:30:48 +00:00
awais qureshi
30feea5bfd feat: implementing autocomplete for django admin pages. 2025-06-03 17:24:24 -04:00
awais qureshi
77f081286f feat: implementing autocomplete for django admin pages. 2025-06-03 17:24:24 -04:00
awais qureshi
89509ecc53 feat: implementing autocomplete for django admin pages. 2025-06-03 17:24:24 -04:00
awais qureshi
ec8c190ab0 feat: implementing autocomplete for django admin pages. 2025-06-03 17:24:24 -04:00
musanaeem
355eb1bc55 feat: added more tests 2025-06-03 17:24:24 -04:00
musanaeem
10e05f306b feat: added tests 2025-06-03 17:24:24 -04:00
musanaeem
8eed852a23 fix: save code and not name 2025-06-03 17:24:24 -04:00
musanaeem
7c6b3ae92c fix: removed redacted import 2025-06-03 17:24:24 -04:00
hinakhadim
a58b650f4f fix: add django-autocomplete-light package in kernel.in and make compile 2025-06-03 17:24:24 -04:00
musanaeem
d7eea9d37a fix: Remove complex change 2025-06-03 17:24:18 -04:00
musanaeem
13169fba86 fix: updated json conversion to add custom values 2025-06-03 17:24:12 -04:00
musanaeem
54509898b5 feat: added autocomplete to country field 2025-06-03 17:22:07 -04:00
musanaeem
2522bc6ff9 feat: Implemented single and multiselect autocomplete 2025-06-03 17:22:03 -04:00
Feanil Patel
755f757bc3 Merge pull request #36837 from openedx/repo-tools/upgrade-python-requirements-276e189
chore: Upgrade Python requirements
2025-06-03 13:59:55 -04:00
Feanil Patel
6f8eba4d87 build: Properly pin mypy based on django-stubs compatibility.
Django stubs by default doesn't pin mypy but has an extras that does
properly pin it to versions that are compatible.  For us it doesn't make
sense to not use this extra as we will always need a version of Mypy
that works with djnago-stubs.
2025-06-03 13:22:15 -04:00
jawad khan
98e39aa03d fix: Removed unwanted param to course blocks api
* fix: removed unwanted param to course blocks api
2025-06-03 16:43:54 +05:00
Muhammad Adeel Tajamul
50cac078e8 chore: added NOTIFICATION_DIGEST_LOGO url in cms (#36840) 2025-06-03 14:21:12 +05:00
Feanil Patel
67c0c255ea build: Don't lint the openedx/core/tests folder twice.
It was included in both the openedx-1 and openedx-2 lint suites.
2025-06-02 14:04:22 -04:00
Feanil Patel
49158e742c build: Move the pylint_django_settings plugin.
When it was located at the root of the project, it was sometimes not
getting loaded correctly since the root of the project is not a python
module, and producing the following error:

```
Command line or configuration file:1:0: E0013: Plugin 'pylint_django_settings' is impossible to load, is it installed ? ('No module named 'pylint_django_settings'') (bad-plugin-value)
```

This led all the pylint tests to fail.

This started happening more as we updated other dependencies via make
upgrade for some reason and led to inconsistent builds.  The move should
hopefully make the loading reliable and consistent.
2025-06-02 14:02:25 -04:00
Chris Chávez
2759d15cca feat: Support to sections/subsections dict to containers objects in index [FC-0090] (#36806)
- Adds the subsections dict in the search index to be used by units
- Adds the sections dict in the search index to be used by sections.
- Rename `get_containers_contains_component` to `get_containers_contains_item` and add support to subsections/sections 
- Call `CONTENT_OBJECT_ASSOCIATIONS_CHANGED` for sections and subsections in `update_container_children`
2025-06-02 12:41:07 -05:00
Feanil Patel
3433152d90 Merge pull request #36757 from openedx/umar/remove_edxapp_csrf_settings
chore: remove csrf with scheme settings from edxapp
2025-06-02 13:01:57 -04:00
M Umar Khan
a2eda30488 chore: remove csrf with scheme settings from edxapp
See https://github.com/edx/edx-arch-experiments/issues/460 for more
details.
2025-06-02 12:12:09 -04:00
Feanil Patel
a798f93ba6 Merge pull request #36570 from Talha-Rizwan/calculate_grades_csv-to-drf
feat: calculate grades csv to DRF
2025-06-02 12:09:28 -04:00
Feanil Patel
b68149c318 Merge pull request #36832 from openedx/feanil/geoip2-bot-update-country-database-ba3e635
Update GeoLite Database
2025-06-02 11:21:32 -04:00
Javier Ontiveros
800b8b69ed feat: add completion tracking switch to toggles sidebar api (#36795)
Currently when the ENABLE_COMPLETION_TRACKING_SWITCH waffle switch is disabled
the frontend doesn't take it into account and still displays completion for
anything that was already completed.

This PR adds the ENABLE_COMPLETION_TRACKING_SWITCH to sidebar toggles api so
the frontend can leverage it.
2025-06-02 11:14:47 -04:00
edX requirements bot
86ded1c552 chore: Upgrade Python requirements 2025-06-02 10:55:07 -04:00
feanil
75c13a99ab chore: geoip2: update maxmind geolite country database 2025-06-02 10:45:54 -04:00
Muhammad Adeel Tajamul
276e189003 chore: replaced tags in digest template (#36835) 2025-06-02 16:24:06 +05:00
KEVYN SUAREZ
ba3e635410 fix: use MFE-aware URL instead of legacy when generating block URL (#36526) 2025-05-30 17:33:42 +02:00
Taylor Payne
4f588231ee chore: remove version constraint on django-simple-history and update to 3.8.0
Remove pin on 3.4.0 to allow newer versions of the package.
2025-05-30 08:24:35 -06:00
KEVYN SUAREZ
cbf4638b10 fix: Certificates display signer information regardless of whether they have a signature image or not. (#36293) 2025-05-29 18:09:39 +02:00
Justin Hynes
3704811d21 feat: emit event when a celebration/streak is updated (#36801)
This PR adds a new event that is emit when a celebration/streak is being recorded. This event will allow better analytics around learner engagement in their courses for OeX instances that have the milestones celebration feature enabled.
2025-05-29 09:35:12 -04:00
Muhammad Adeel Tajamul
a9c78cd8f7 chore: modified notification digest email UI (#36809)
* chore: modified notification digest email UI

* chore: added icon in settings

* refactor: replaced CADENCE with DIGEST for logo variable
2025-05-29 17:52:28 +05:00
Kaustav Banerjee
aca3ba4fda test: add test for unprivileged user 2025-05-29 16:23:10 +05:30
Kaustav Banerjee
02344c5905 feat: API to delete given social auth record for user 2025-05-29 16:23:10 +05:30
Chris Chávez
c2eb913dcb feat: Basic CRUD support for sections/subsections as containers [FC-0090] (#36762)
- Refactor of `test_containers.py` 8b9731dfa1
- Updates the `content_libraries/api/containers` and `content_libraries/rest_api` to support:
    - Basic CRUD for sections and subsections as containers
    - Basic CRUD support for section and subsection children
- Updates the `content/search` to support:
    - Basic CRUD for sections and subsections as containers in the search index
    - Basic CRUD support for section and subsection children in the search index
- Updates the `content_libraries/tests/test_containers.py` to test the new support
- Updates the `content/search/tests` to test the new support.
- I verified that the add/remove to collection works without major changes. Tests updated
2025-05-28 21:05:45 +00:00
Katrina Nguyen
c600e52767 Merge pull request #36804 from openedx/katrinan029/upgrade-edx-enterprise-489385e
feat: Upgrade Python dependency edx-enterprise
2025-05-28 12:30:54 -07:00
katrinan029
321430c429 feat: Upgrade Python dependency edx-enterprise
version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2025-05-28 18:14:41 +00:00
Jorg Are
489385e186 fix: remove unnecessary disclaimer prefix (#36783) 2025-05-27 14:44:40 -04:00
Tim McCormack
4856539b22 fix: Upgrade edx-django-utils, dropping newrelic; fix test and typo (#36799)
This upgrades edx-django-utils to a version that drops the newrelic
dependency. However, I also needed to fix a test that was sensitive to the
number of warnings that the code under test produced. With newrelic gone,
there's an additional warning.

- Fix test so that it isn't sensitive to unrelated warnings
- Fix typo in warning

For reference, this is the new warning:

```
"WARNING:edx_django_utils.monitoring.internal.backends:Could not load OPENEDX_TELEMETRY option 'edx_django_utils.monitoring.NewRelicBackend': Exception('Could not load New Relic monitoring backend; package not present.')"
```

This is expected due to edx-django-utils still defaulting to NR for
telemetry. (Perhaps the subject of a future breaking change.)
2025-05-27 11:32:43 -04:00
Ali-Salman29
c82490393d feat!: remove cs_comments_service support for forum's vote APIs
This will force the use of the new v2 forum's APIs for voting/unvoting.
2025-05-27 10:42:05 -04:00
Feanil Patel
0721460edd Merge pull request #36735 from wgu-ram-chandra/issue-35271-unpin-markdown
chore: update markdown dependency to allow newer versions
2025-05-27 09:25:29 -04:00
Muhammad Adeel Tajamul
6a67719592 feat: make notification emails translatable (#36775)
* feat: make notification emails translatable

* fix: fixed failing tests

* fix: fixed xss quality check
2025-05-26 13:44:01 +05:00
Muhammad Adeel Tajamul
76f872cc1e chore: added notifications configuration in cms (#36791) 2025-05-26 13:35:48 +05:00
Daniel Wong
58a1784db2 feat: advertised_start field added to CourseRunSerializer (#36726) 2025-05-23 15:50:51 -04:00