Commit Graph

66833 Commits

Author SHA1 Message Date
Feanil Patel
642dae67f1 Merge pull request #35713 from openedx/feanil/ubuntu-24.04
feanil/ubuntu 24.04
2024-11-07 11:20:17 -05:00
Navin Karkera
d82aadab51 fix: set upstream link for re-copied block from course originally from library (#35784)
Sets upstream link to library block for blocks that were copied from a course block which were originally copied/imported from a library.
2024-11-07 09:54:53 -05:00
Navin Karkera
ca7da3754f fix: component asset api views (#35765)
Uses drf view to authenticate user before allowing them to access library static assets.
2024-11-07 19:27:22 +05:30
Jillian
db587bdbe0 test: re-enable content libraries runtime tests [FC-0062] (#35783)
* test: run content_libraries runtime tests

* test: fix broken tests

* test: fix lms tests

Co-authored-by: Kyle D. McCormick <kyle@axim.org>
2024-11-07 19:24:26 +05:30
renovate[bot]
e4852a510f fix(deps): update dependency edx-ui-toolkit to v1.8.5 2024-11-07 09:45:10 +00:00
Tim McCormack
22b9ced6c0 feat: Make celery task protocol configurable via Django setting (#35789)
This will allow us to test protocol 2 in a stage environment before
removing the override to make 2 the default.

We may have seen a bug where something in celery (or an
associated library) was adding headers to a v1 message as
if it were a v2 message, which caused a bug in ddtrace; such
things may become more likely over time as code is written
with the assumption of v2 messages. Moving to v2 will avoid
those issues.

See https://github.com/edx/edx-arch-experiments/issues/800 for further details.
2024-11-06 15:54:24 -05:00
Peter Pinch
5d1566c4c2 Merge pull request #35655 from mitodl/asad/bypass-access-checks-when-populating-cache
fix: bypass access checks when populating course blocks cache
2024-11-06 12:22:25 -05:00
Brian Mesick
767e1a2c07 Merge pull request #35779 from openedx/bmtcril/pii_safelist_update
chore: Add missing PII annotations, update safelist
2024-11-06 16:27:09 +00:00
Feanil Patel
b6eeb593ad Merge pull request #35753 from openedx/feanil/geoip2-bot-update-country-database-de55da2
Update GeoLite Database
2024-11-06 11:12:34 -05:00
Jillian
9bfdfeb313 fix: remove the "Legacy Library" button if libraries v1 are disabled (#35736)
Removes the "Legacy Library" button from the legacy Studio "new block" button array if Libraries v1 are disabled, either via waffle flag or via the ENABLE_CONTENT_LIBRARIES feature flag.
2024-11-06 11:00:04 -05:00
Feanil Patel
5904b54378 Merge pull request #35185 from openedx/feanil/blockstructure_cache
feat!: Drop the block_structure.storage_backing_for_cache WaffleSwitch
2024-11-06 10:52:47 -05:00
github-actions[bot]
8c61ad6f4d feat: Upgrade Python dependency edx-enterprise (#35787)
Upgrade edx-enterprise to 4.32.0 to add optional support for creating DefaultEnterpriseEnrollmentRealization records during bulk enrollment.

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

Co-authored-by: adamstankiewicz <2828721+adamstankiewicz@users.noreply.github.com>
Co-authored-by: Adam Stankiewicz <agstanki@gmail.com>
2024-11-06 15:52:19 +00:00
Cristhian Garcia
75118f4bc4 refactor: let openedx-learning handle content library asset logic (#35730)
Version 0.16.3 of openedx-learning adds support for calling
create_next_component_version with the bytes data of the files to be
added, instead of just the ID of the Content object. This lets us
simplify the code in edx-platform a bit.
2024-11-06 10:08:19 -05:00
github-actions[bot]
47d83e14d7 feat: Upgrade python dependency edx-proctoring (#35786)
The latest version contains a management command to delete exam attempts.

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

Co-authored-by: alangsto <46360176+alangsto@users.noreply.github.com>
2024-11-06 09:59:47 -05:00
Jillian
689feba172 fix: allow non-Elasticsearch search engines when reindexing courses [FC-0062] (#35743) 2024-11-06 18:49:45 +05:30
Jillian
952ba95992 fix: bump MAX_BLOCKS_PER_CONTENT_LIBRARY default to 100,000 (#35768) 2024-11-05 11:10:05 -08:00
Brian Mesick
e478975105 chore: Add missing PII annotations, update safelist
PII Annotations are very out of date, this commit adds most that were
missing in edx-platform, and some additional annotations to the
safelist. It is not comprehensive, several other upstream Open edX
packages also need to be updated. It also does not include removing
annotations that have been moved upstream, or been removed entirely.
Those are separate follow-on tasks.
2024-11-05 12:58:36 -05:00
Feanil Patel
4768568b5a fixup! feat!: Drop the block_structure.storage_backing_for_cache waffle switch. 2024-11-05 10:44:17 -05:00
Feanil Patel
398160c2c4 fixup! test: Update the course in the cache after it's got new content. 2024-11-05 10:44:17 -05:00
Feanil Patel
a6e5b818e2 fixup! test: Update the course in the cache after it's got new content. 2024-11-05 10:44:17 -05:00
Feanil Patel
d58dea336c fixup! test: Update the course in the cache after it's got new content. 2024-11-05 10:44:17 -05:00
Feanil Patel
80ed5ee2a4 fix: Send the course publish signal on course import. 2024-11-05 10:44:17 -05:00
Feanil Patel
8741417806 docs: Cross link to wiki docs related to block structures.
Provide a link to more docs from the code in case we need more context
in the future.
2024-11-05 10:44:17 -05:00
Feanil Patel
f0f18f8405 refactor: Make the test easier to debug in the future.
This test had a redundant call to get the course data from the store
because that already happens at the end of the setup function.  And also
because expected call structure was being built inside the assert, it
made it harder to inspect when debugging.  Make the code a little bit
easire to debug in case we're back here in the future.
2024-11-05 10:44:17 -05:00
Feanil Patel
cf37ca48b7 test: Update the course in the cache after it's got new content.
Because signals are disabled by default for performance reasons, this
doesn't happen automatically.  So we manually refresh the course in the
cache after all the changes have been made so that the course in the
cache matches the latest version in the modulestore.
2024-11-05 10:44:16 -05:00
Feanil Patel
db266e25f7 test: Update query counts.
With the new block_structure model cache enabled by default, we're donig
queries to it as a part of other tests.
2024-11-05 10:44:16 -05:00
Feanil Patel
e5f698a5a7 feat: Remove the unused StubModel class.
Now that the model backed cache is on by default, we don't need to keep
the StubModel object around.
2024-11-05 10:44:16 -05:00
Feanil Patel
e52253d3e1 test: Change call counts with model back as default.
We don't call the modulestore or update the cache here now that we are
backed by the database model.  Previously the cache would change because
the `_encode_root_cache_key` function in `BlockStructureStore` class
used the `BlockstoreBlockData.VERSION` as a part of the cache key when
the data was not being cached in a DB model.
2024-11-05 10:44:16 -05:00
Feanil Patel
9164e92465 test: Update a BlockStructureFactory test mixin.
Previously, we were not caching BlockStructures to the database when we
were adding them to the store by default.  Now that we are doing that,
the BlockStructureFactory test failed because it was taking a shortcut
that would no longer work.  It was just creating a blockstructure that
had relations but not any block information.

Now that we're always persisting updates to the database, this broke
because to persist the structure to the database, we have to look up the
block information from the block_structure which now fails.

This change updates the test mixin to add more data so that the content
can be persisted to the database successfully as a part of this test.
2024-11-05 10:44:16 -05:00
Feanil Patel
fab0267757 feat!: Drop the block_structure.storage_backing_for_cache waffle switch.
This work is part of DEPR https://github.com/openedx/public-engineering/issues/32

Now that we've removed all uses for this switch remove the decleration
as well.

BREAKING CHANGE: The `block_structure.storage_backing_for_cache` will no
longer exist and its value will be ignored. If you have this switch set
in your instance you can remove it. The backing cache is now always ON.
2024-11-05 10:44:16 -05:00
Feanil Patel
261b4985cd feat!: Drop an unnecessary function.
Remove the `enable_storage_backing_for_cache_in_request` function and
its uses in the platform.  The function is no longer needed because the
storage backing for the block_structure cache will be ON by default
moving forward.

BREAKING CHANGE: This `enable_storage_backing_for_cache_in_request`
function no longer exists and any calls to it should be removed.  The
cache it enables is now always ON.
2024-11-05 10:44:16 -05:00
Feanil Patel
57cdbfa013 test: Remove test variants that test without a cache.
Since the cache is now always on, remove test cases that test the case
when it's disabled.
2024-11-05 10:44:16 -05:00
Feanil Patel
16d440a4e9 feat: Turn ON the storage backing for cache by default.
Any places where the storage backing cache for block structures was on
conditionally previously it will be ON by default.
2024-11-05 10:44:16 -05:00
Feanil Patel
5cb29848c3 chore: Update lxml
Run `make upgrade-package package='lxml[html_clean]'` to update lxml and
then `make compile-requirements`
2024-11-05 10:44:02 -05:00
Feanil Patel
a1bc4760aa build: Unpin lxml.
libxmlsec and lxml need to be updated in lockstep and the version we had
wouldn't work with Ubuntu 24.04 so unpinning lxml along with libxmlsec
to see if that resolves the build and dependency issues.
2024-11-05 10:44:02 -05:00
Feanil Patel
737b8e99dd build: Test on both the old and new ubuntu version. 2024-11-05 10:44:02 -05:00
Feanil Patel
d27bd5be04 chore: Unpin and upgrade xmlsec. 2024-11-05 10:44:02 -05:00
Feanil Patel
7c397bf1fc build: Use a re-usable action to setup mongo.
Rather than doing the install ourselves and needing to keep the debion
source URL up-to-date, use a community action to handle installing
mongo.
2024-11-05 10:44:02 -05:00
Feanil Patel
799dcf35ec build: Test on ubuntu 24.04 2024-11-05 10:44:02 -05:00
Jillian Vogel
3a535d8eca fix: adds content.search to docs apps 2024-11-05 09:48:49 -05:00
renovate[bot]
bb351c4bce chore(deps): update dependency @edx/eslint-config to v4.3.0 2024-11-05 13:19:25 +00:00
M. Tayyab Tahir Qureshi
01985e0c32 feat! Dropping Sass support from builtin Sequence block (#35770)
feat!: Dropping Sass support from builtin sequence block

Co-authored by @ttqureshi
2024-11-05 17:27:12 +05:00
M. Tayyab Tahir Qureshi
b7d08fb61b feat! Dropping Sass support from builtin LTI block (#35769)
feat!: Dropping Sass support from builtin LTI block

Co-authored by @ttqureshi
2024-11-05 17:26:45 +05:00
renovate[bot]
368827af6c chore(deps): update dependency eslint-import-resolver-webpack to v0.13.9 2024-11-05 10:38:41 +00:00
renovate[bot]
8a289f7d7d chore(deps): update dependency @edx/eslint-config to v4 (#35017)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
2024-11-05 12:28:10 +05:00
Sagirov Evgeniy
f730276263 feat: Add API endpoint to manage course waffle flags (#35622)
Co-authored-by: Sagirov Eugeniy <evhenyj.sahyrov@raccoongang.com>
2024-11-04 15:13:37 -03:00
feanil
7c991713de chore: geoip2: update maxmind geolite country database 2024-11-04 10:11:28 -05:00
irfanuddinahmad
d0dbb8d55d Merge pull request #35763 from openedx/iahmad/ENT-9584
chore: Updated edx-enterprise version
2024-11-04 19:01:01 +05:00
irfanuddinahmad
0c28d18b5e chore: Updated edx-enterprise version 2024-11-04 18:36:40 +05:00
renovate[bot]
559841b479 chore(deps): update @edx/mockprock digest to d70b052 (#35286)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: Bilal Qamar <59555732+BilalQamar95@users.noreply.github.com>
2024-11-04 15:45:14 +05:00