Commit Graph

64328 Commits

Author SHA1 Message Date
Erica Nwoga
a74f510f71 feat: post handler for agreements api (#33488) 2023-12-11 13:58:35 -05:00
MueezKhan246
26299929e2 Merge pull request #33908 from openedx/MueezKhan246/upgrade-edx-enterprise-cf6a629
feat: Upgrade Python dependency edx-enterprise
2023-12-11 17:44:32 +05:00
MueezKhan246
33d7cccf66 feat: Upgrade Python dependency edx-enterprise
allows incomplete course learner transmissions till completion and adds log inside moodle request wrapper

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-12-11 10:59:46 +00:00
Muhammad Adeel Tajamul
cf6a629ee7 fix: discussion tab should be None if discussion tab is disabled (#33861) 2023-12-11 15:06:37 +05:00
Jenkins
299cafa985 chore(i18n): update translations 2023-12-10 16:04:28 -05:00
Braden MacDonald
4c48f54de7 fix: two bugs with copy/paste functionality (#33897)
* fix: error pasting a unit containing a completely blank problem
* fix: copying an XBlock with emoji content would fail
2023-12-08 10:09:18 -08:00
Alexander J Sheehan
38c7aa3f49 Merge pull request #33902 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-a964f63
feat: Upgrade Python dependency edx-enterprise
2023-12-08 11:32:11 -05:00
alex-sheehan-edx
541a476cd5 feat: Upgrade Python dependency edx-enterprise
enterprise version bump

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-12-08 16:13:04 +00:00
Juliana Kang
01f60b54e5 feat: Financial assistance form learner privacy update (#33808)
REV-2764
2023-12-08 10:59:45 -05:00
Phillip Shiu
a964f637e7 fix: improve regex for contains_url (#33886)
This regex is used for checking if a field contains a URL. We did this because we didn't want URLs in a user's "full name".

The capturing groups on the current regex are not needed to capture a URL. This commit simplifies and makes the regex stricter by banning the character combination "://".
2023-12-08 10:25:48 -05:00
bszabo
97f39f6972 Bszabo/tnl 11230 library content emails (#33899)
* feat: suppress emails

* feat: TNL-11230 No Lib reference

Work around dependency failure

* feat: TNL-11230 cleanup

* feat: TNL-11230 pylint

comment line too long

---------

Co-authored-by: Bernard Szabo <bszabo@edx.org>
2023-12-08 10:08:37 -05:00
github-actions[bot]
fb3a91b8c6 feat: Upgrade Python dependency ora2. (#33896)
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>
2023-12-07 18:36:31 -05:00
Kyle McCormick
140f85853d feat!: remove Content Libraries V2 index (#33888)
BREAKING CHANGE: Removes all code, tests, and settings related to
indexing of V2 (blockstore-backed) content libraries in elasticsearch.
This includes indexing of top-level library metadata as well as indexing
of library block metadata. Operators who enabled the experimental
Library Authoring MFE *and* the experimental ENABLE_CONTENT_LIBRARY_INDEX
feature may notice that sorting, filtering, and searching of V2
libraries and their blocks may now be slower and/or less powerful.
The ENABLE_CONTENT_LIBRARY_INDEX feature was already disabled by
default, so most/all operators (including edx.org) should not notice
any difference.

Removed settings include:

* FEATURES['ENABLE_CONTENT_LIBRARY_INDEX']
* ENABLE_ELASTICSEARCH_FOR_TESTS
* TEST_ELASTICSEARCH_USE_SSL
* TEST_ELASTICSEARCH_HOST
* TEST_ELASTICSEARCH_PORT

For rationale, see the updated "Status" section of:
./openedx/core/djangoapps/content_libraries/docs/decisions/0001-index-libraries-in-elasticsearch.rst
2023-12-07 14:57:31 -05:00
Alexander J Sheehan
5ca08fb562 Merge pull request #33892 from openedx/alex-sheehan-edx/upgrade-edx-enterprise-e5e1adc
feat: Upgrade Python dependency edx-enterprise
2023-12-07 11:38:01 -05:00
Kristin Aoki
9bf18b1e23 feat: add url to usage location (#33855) 2023-12-07 11:19:35 -05:00
alex-sheehan-edx
0ba87da323 feat: Upgrade Python dependency edx-enterprise
enterprise version bump 4.8.9

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-12-07 15:27:55 +00:00
Sameen Fatima
ce878a8ad2 feat: Upgrade Python dependency edx-enterprise (#33893) (#33894) 2023-12-07 14:31:27 +05:00
Nathan Sprenkle
e5e1adca13 chore: bump ORA to 6.0.11 (#33891) 2023-12-06 22:18:12 +00:00
Jenkins
d2fd7b2e1f chore: geoip2: update maxmind geolite country database 2023-12-06 15:59:10 -05:00
github-actions[bot]
a93147972c feat: Upgrade Python dependency edx-enterprise (#33887)
Update only changed fields of ``EnterpriseCustomerPluginConfiguration`` model

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

Co-authored-by: zamanafzal <zamanafzal@users.noreply.github.com>
2023-12-06 22:36:08 +05:00
Kyle McCormick
27803f51c8 feat!: assume & remove BLOCKSTORE_USE_BLOCKSTORE_APP_API (#33765)
Originally, Blockstore was an independent micro-service, accessed via a REST API.
Then, we changed Blockstore so it could be installed as an in-process Django app.

To support both modes, there existed a blockstore_api wrapper library in edx-platform,
with toggles controlling whether the wrapper called out to the micro-service's REST API versus the
Django app's Python API. Now that the micro-service Blockstore implementation is deprecated,
though, this wrapper library and toggles are just unnecessary complexity.

As a first step towards cleanup, we:

* remove several toggles and settings (details below);
* remove the blocokstore_api wrapper methods which called the REST API and
  marshalled them back into Python objects; and
* remove all test cases which relied on the Blockstore micro-service (and were skippped in CI).

In the future, we will remove the content libraries indexer, 
clean up the remaining bits of blockstore_api, and flatten out all
the Blockstore-related test class hierarchies which are no longer nceessary.

BREAKING CHANGE:
* These Django settings are removed:
  * BLOCKSTORE_PUBLIC_URL_ROOT
  * BLOCKSTORE_API_URL
  * BLOCKSTORE_API_AUTH_TOKEN
  * BLOCKSTORE_USE_BLOCKSTORE_APP_API
* The blockstore.use_blockstore_app_api Waffle switch is removed.
* edx-platform will act as it did when the DJango setting BLOCKSTORE_USE_BLOCKSTORE_APP_API
  or the Waffle switch blockstore.use_blockstore_app_api were enabled. That is, any running Blockstore
  micro-service instance will be ignored, and the Blockstore package which is installed into edx-platform
  will be used instead.

Ref: https://github.com/openedx/blockstore/issues/296
2023-12-06 15:15:18 +00:00
Ahtisham Shahid
2495120d89 chore: removed enable_moderation_reason_codes flag from discussion app (#33822)
* chore: removed enable_moderation_reason_codes flag from discussion app
2023-12-06 11:05:56 +05:00
Ahtisham Shahid
e9941d3c35 fix: Added check while syncing discussion settings in import (#33868) 2023-12-06 11:05:32 +05:00
Jorg Are
95959b6447 Merge pull request #33876 from openedx/hajorg/nova-50-use-xpert-translations-waffle-flag
feat: add is_ai_translations_enabled to get_course_videos_context util
2023-12-05 23:52:55 +01:00
Deborah Kaplan
163497b07c Merge pull request #33885 from openedx/dkaplan1/APER-2942_remove-the-external-id-type
feat:  remove the micro bachelors coaching external ID type
2023-12-05 13:32:06 -05:00
hajorg
0190a0cc9e feat: use function to access xpert translations ui waffle flag 2023-12-05 17:56:45 +01:00
hajorg
4bc2e74a40 fix: resolve lint issue 2023-12-05 17:34:32 +01:00
hajorg
b70e29a0ab feat: add test for is_ai_translations_enabled 2023-12-05 17:34:32 +01:00
hajorg
00d1cf5e0b feat: add is_ai_translations_enabled to get_course_videos_context util 2023-12-05 17:34:32 +01:00
Deborah Kaplan
b8bf8af2c5 feat: remove the micro bachelors coaching external ID type
These ids have all been removed, the code that used them as long
deprecated, and they were only ever used within products currently
within the purview of 2U.

FIXES: APER-2942
2023-12-05 16:32:36 +00:00
Deborah Kaplan
5e3bc1ca30 Merge pull request #33879 from openedx/dkaplan1/APER-2941_datamigration-to-remove-the-records
feat:  remove old microbachelor's coaching external IDs
2023-12-05 11:18:14 -05:00
Jenkins
5547ec6ff3 chore(i18n): update translations 2023-12-05 09:53:06 -05:00
Kiran Chauhan
e78e6d307a fix: Added feature toggle check for account deletion API (#32846) (#33062)
---------

Co-authored-by: Edward Zarecor <ezarecor@tcril.org>
2023-12-04 15:34:51 -08:00
Deborah Kaplan
c43fd10339 feat: remove old microbachelor's coaching external IDs
The microbachelor coaching facility has been deprecated and the external
IDs are no longer supported. Remove existing ones from the DB.

FIXES: APER-2941
2023-12-04 21:32:40 +00:00
Jason Wesson
0650b4ff5e Merge pull request #33501 from Inferato/lytvynenko/additional_name_check
Name length validation
2023-12-04 11:55:21 -08:00
Jesper Hodge
17d4a55869 refactor: remove function and class duplications (#33673)
This PR: https://github.com/openedx/edx-platform/pull/32282 introduced some duplications of existing functions and classes by accident. I am cleaning them up here:
- `StudioPermissionsService` class
- `duplicate_block function`
- `load_services_for_studio` function
2023-12-04 14:44:13 -05:00
SaadYousaf
fed784a664 feat: add course wide notification event for notifications having wider audience 2023-12-04 15:46:12 +05:00
Maham Akif
ecc46cbe7d Merge pull request #33873 from openedx/mahamakifdar19/upgrade-edx-enterprise-f9b6e45
feat: Upgrade Python dependency edx-enterprise
2023-12-04 15:00:27 +05:00
mahamakifdar19
e2bf660755 feat: Upgrade Python dependency edx-enterprise
fix: fixed the domain issue to point to "courses.edx.org" for the resumeCourseRunUrl

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-12-04 09:33:33 +00:00
MueezKhan246
f9b6e453e4 Merge pull request #33870 from openedx/MueezKhan246/upgrade-edx-enterprise-abfc61e
feat: Upgrade Python dependency edx-enterprise
2023-12-04 14:21:36 +05:00
MueezKhan246
7cdb535557 feat: Upgrade Python dependency edx-enterprise
adds log for learner data transmission run

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2023-12-04 08:17:46 +00:00
dependabot[bot]
abfc61eacf build(deps): bump actions/setup-node from 3 to 4 (#33831)
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 3 to 4.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v3...v4)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-04 11:00:05 +05:00
Braden MacDonald
99667f6fb6 fix: "Copy Unit" button should be behind enable_copy_paste_units flag (#33867) 2023-12-01 13:35:58 -08:00
Pooja Kulkarni
f5b246d0e9 feat: copy/paste unit from within a unit in Studio - feature flagged (#33724)
(requires the contentstore.enable_copy_paste_units waffle flag)
2023-12-01 11:33:34 -08:00
Tim McCormack
94441861e0 feat!: Remove legacy-ip code and Waffle switch (#33735)
This switch has been kept disabled in edx.org for well over a year with no
trouble, and the migration to `CLOSEST_CLIENT_IP_FROM_HEADERS`
was introduced in Nutmeg.

DEPR issue: https://github.com/openedx/edx-platform/issues/33733
2023-12-01 14:44:59 +00:00
Awais Qureshi
29a0edd7aa Remove boto pin (#33853)
* chore: upgrade boto.
2023-12-01 15:44:09 +05:00
Kyle McCormick
129940b562 fix: load children in a consistent manner when duplicating LC blocks (#33860)
After refactoring the library_content block to use asynchronous tasks
for syncing and duplicating children, we are seeing an error arise
during library_content duplication process on edx.org:

Traceback (most recent call last):
  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/content_libraries/tasks.py", line 305, in duplicate_children
    _copy_overrides(store=store, user_id=user_id, source_block=source_block, dest_block=dest_block)
  File "/edx/app/edxapp/edx-platform/openedx/core/djangoapps/content_libraries/tasks.py", line 383, in _copy_overrides
    dest_block=dest_block.runtime.get_block(dest_child_key),
  File "/edx/app/edxapp/edx-platform/xmodule/x_module.py", line 1401, in get_block
    block = self.load_item(usage_id, for_parent=for_parent)
  File "/edx/app/edxapp/edx-platform/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 127, in _load_item
    block_data = self.get_module_data(block_key, course_key)
  File "/edx/app/edxapp/edx-platform/xmodule/modulestore/split_mongo/caching_descriptor_system.py", line 154, in get_module_data
    raise ItemNotFoundError(block_key)
xmodule.modulestore.exceptions.ItemNotFoundError: BlockKey(...)

We cannot reproduce the issue locally.
We are not entirely certain the cause of this, but we think it might
have do with caching. Specifically, the `store.get_item` and
`source_block.runtime.get_block` methods might use a different cache
than `dest_block.runtime.get_block`. It's possible that writes to
Mongo are sitting in one of those caches, causing reads from the
`dest_block.runtime`'s cache to fail to find dest_block's children.

We attempt to fix this by using the same "block getting" method
consistently. So instead of using a mix of `store.get_item`,
`source_block.runtime.get_block`, and `dest_block.runtime.get_block`,
we just use `store.get_item` everywhere.
2023-11-30 14:59:40 -05:00
alangsto
0ffa84df6f chore: update lti-consumer-xblock version (#33859) 2023-11-30 14:09:19 -05:00
nsprenkle
d12b9e48d5 chore: bump ORA to 6.0.10 2023-11-30 13:21:30 -05:00
Awais Qureshi
285f1fbfd7 Remove doc utils pin (#33850)
* chore: removing docutils constraint.
2023-11-30 17:21:59 +05:00