Commit Graph

65008 Commits

Author SHA1 Message Date
Muhammad Anas
aea7fcee45 feat: added feature flag to enable blake2b hashing 2024-04-22 14:09:41 -04:00
Yusuf Musleh
a31ed929f7 feat: update studio search index when object tags change (#34559)
* feat: Update search index when object tags updated

* feat: Update index when library block tags change

* refactor: Remove extra params

* docs: Add new event to hook events docs

* feat: Add and use upsert_block_tags_index_docs

This takes care of updating tags data in search index for both course and library blocks.

* chore: Update openedx-events

* fix: Update tests + include course block tags in reindex

* feat: Fix static-type issues + adjust tag_object

* fix: bug retrieving the Meilisearch API key UID (first time only)

* docs: Update comments

---------

Co-authored-by: Braden MacDonald <braden@opencraft.com>
2024-04-22 10:53:49 -07:00
Feanil Patel
2e587a8830 Merge pull request #34569 from openedx/feanil/upgrade-edx-event-bus-kafka-b4b4696
feat: Upgrade Python dependency edx-event-bus-kafka
2024-04-22 13:35:12 -04:00
Feanil Patel
c0a84265ed Merge pull request #34568 from openedx/feanil/upgrade-xss-utils-b4b4696
feat: Upgrade Python dependency xss-utils
2024-04-22 13:32:48 -04:00
feanil
8ae083dc2d feat: Upgrade Python dependency edx-event-bus-kafka
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-22 16:52:28 +00:00
feanil
7051aec6fc feat: Upgrade Python dependency xss-utils
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-22 16:46:43 +00:00
Feanil Patel
b4b4696fa0 Merge pull request #34564 from openedx/feanil/upgrade-edx-opaque-keys-ef7fbf4
feat: Upgrade Python dependency edx-opaque-keys
2024-04-22 12:35:47 -04:00
Feanil Patel
fa9aaa8524 Merge pull request #34565 from openedx/feanil/upgrade-chem-ef7fbf4
feat: Upgrade Python dependency chem
2024-04-22 12:35:25 -04:00
Feanil Patel
289fced2a3 Merge pull request #34566 from openedx/feanil/upgrade-lti-consumer-xblock-ef7fbf4
feat: Upgrade Python dependency lti-consumer-xblock
2024-04-22 12:34:46 -04:00
Diana Huang
ebe36a2957 Revert "Revert "temp: trace celery tasks in dd"" (#34563)
* Revert "Revert "temp: trace celery tasks in dd (#34537)" (#34553)"

This reverts commit a7b441690d.

* docs: Update removal date on temporary celery flag.
2024-04-22 11:05:50 -04:00
feanil
fc669b29b6 feat: Upgrade Python dependency lti-consumer-xblock
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-22 14:55:02 +00:00
feanil
bfcd911ad9 feat: Upgrade Python dependency chem
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-22 14:31:31 +00:00
feanil
93f3f87ea9 feat: Upgrade Python dependency edx-opaque-keys
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-22 14:03:48 +00:00
Feanil Patel
ef7fbf4c43 Merge pull request #34555 from openedx/feanil/upgrade-edxval-0603760
feat: Upgrade Python dependency edxval
2024-04-22 09:54:37 -04:00
Feanil Patel
8f82c37b4d Merge pull request #34556 from openedx/feanil/upgrade-edx-event-bus-redis-0603760
feat: Upgrade Python dependency edx-event-bus-redis
2024-04-22 09:54:12 -04:00
Feanil Patel
57bce2cc59 Merge pull request #34557 from openedx/feanil/upgrade-help-tokens-0603760
feat: Upgrade Python dependency help-tokens
2024-04-22 09:53:38 -04:00
Ahtisham Shahid
4f8a99805d feat: added new ora notification (#34464) 2024-04-22 18:14:26 +05:00
github-actions[bot]
14bcfcfd03 feat: Upgrade Python dependency edx-enterprise (#34558) 2024-04-22 15:06:36 +05:00
Saad Yousaf
164c8ab835 fix: fix course_update event content param 2024-04-22 13:15:31 +05:00
Ahtisham Shahid
5b1d52d811 fix: endorsed post notification audiance updated (#34513) 2024-04-22 13:09:04 +05:00
feanil
075a75beb8 feat: Upgrade Python dependency help-tokens
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-20 04:32:57 +00:00
feanil
8ec2dbb701 feat: Upgrade Python dependency edx-event-bus-redis
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-20 04:21:53 +00:00
feanil
2b65aca01e feat: Upgrade Python dependency edxval
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-19 23:59:26 +00:00
Feanil Patel
0603760880 Merge pull request #34552 from openedx/feanil/upgrade-edx-rbac-1eb92a3
feat: Upgrade Python dependency edx-rbac
2024-04-19 19:34:59 -04:00
Feanil Patel
2f4c33bcd1 Merge pull request #34551 from openedx/feanil/upgrade-edx-proctoring-1eb92a3
feat: Upgrade Python dependency edx-proctoring
2024-04-19 19:34:51 -04:00
connorhaugh
a7b441690d Revert "temp: trace celery tasks in dd (#34537)" (#34553)
This reverts commit f866545bb9.
2024-04-19 12:50:33 -07:00
feanil
bbbc6aae62 feat: Upgrade Python dependency edx-rbac
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-19 18:49:47 +00:00
feanil
fcf046144d feat: Upgrade Python dependency edx-proctoring
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-19 18:40:04 +00:00
github-actions[bot]
1eb92a3949 feat: Upgrade Python dependency Xblock (#34547)
feat: re-expose deprecated fragments as passthrough

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

Co-authored-by: connorhaugh <connorhaugh@users.noreply.github.com>
Co-authored-by: connorhaugh <49422820+connorhaugh@users.noreply.github.com>
2024-04-19 14:13:14 -04:00
Feanil Patel
6ea123db4d Merge pull request #34528 from openedx/feanil/remove_django_splash
feat!: Remove the django-splash app.
2024-04-19 10:53:46 -04:00
Hamza Waleed
9824938075 Merge pull request #34546 from openedx/hamzawaleed01/upgrade-edx-enterprise-68b3753
feat: Upgrade Python dependency edx-enterprise
2024-04-19 19:26:23 +05:00
Feanil Patel
a08b7de26d Merge pull request #34506 from openedx/feanil/fix_tests_for_python_3.11
Make Tests Python 3.11 Compatible
2024-04-19 10:07:16 -04:00
hamzawaleed01
aabfb98a5e feat: Upgrade Python dependency edx-enterprise
fix: SSO self-serve tool invalid entityId parsing

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-19 05:38:27 +00:00
Feanil Patel
68b3753948 Merge pull request #34543 from openedx/feanil/upgrade-edx-milestones-16b82db
feat: Upgrade Python dependency edx-milestones
2024-04-18 15:44:08 -04:00
Kyle D. McCormick
f04532de12 feat: link py38.txt->release/quince.txt for backwards compatibility 2024-04-18 15:35:45 -04:00
Kyle D. McCormick
8eb9ee7b5c feat: freeze edx-sandbox requirements for quince
We ran:

    cp requirements/edx-sandbox/base.txt \
       requirements/edx-sandbox/releases/quince.txt
2024-04-18 15:35:45 -04:00
Kyle D. McCormick
7e96b32f6a feat!: expose per-release edx-sandbox dependency pins
See requirements/edx-sandbox/README.rst for more info

BREAKING CHANGE: edx-sandbox/py38.txt will not longer
be updated. Please install from either edx-sandbox/base.txt or
edx-sandbox/releases/*.txt instead.
2024-04-18 15:35:45 -04:00
Kyle D. McCormick
a17e2c06fa refactor: remove requirements/edx-sandbox/shared.[in,txt]
These files were used to assist the Python 3.5 -> 3.8 upgrade,
but they are no longer needed nor referened anywhere. They haven't
been updated for years.
2024-04-18 15:35:45 -04:00
Kyle D. McCormick
de50f97d90 build: replace wget->curl, so make upgrade works in tutor
tutor's containers don't have wget installed, and curl -L works
just as well and is installed into basically everything
2024-04-18 15:35:45 -04:00
Katrina Nguyen
25c78324d1 Merge pull request #34544 from openedx/knguyen2/version-bump
chore: version bump
2024-04-18 11:56:50 -07:00
katrinan029
e3d83eaccb chore: version bump 2024-04-18 18:28:23 +00:00
Feanil Patel
a106b02658 Merge pull request #34542 from openedx/feanil/upgrade-edx-drf-extensions-16b82db
feat: Upgrade Python dependency edx-drf-extensions
2024-04-18 13:56:09 -04:00
Feanil Patel
bb6cff3a25 Merge pull request #34541 from openedx/feanil/upgrade-edx-django-sites-extensions-f18629e
feat: Upgrade Python dependency edx-django-sites-extensions
2024-04-18 13:29:17 -04:00
Feanil Patel
6fb59639af fix: Remove deprecated getargspec call.
This function was removed by python 3.11 so update to the alternate
call that is the current recommended replacement.

https://docs.python.org/3.11/library/inspect.html#inspect.getfullargspec
2024-04-18 13:28:31 -04:00
Feanil Patel
6ea63da969 fix: Don't use the deprecated location for Hashable
The Hashable object was moved in python 3.3 and support for the old
location is dropped in python 3.10 the new location is available in
python 3.8 so we can just update this and it should work with both
python 3.8 and 3.11

https://docs.python.org/3.8/library/collections.html
2024-04-18 13:28:30 -04:00
Feanil Patel
884fe8ace9 fix: Fix function mocking.
The way the patch decorator was being used is not supported in python
3.11.  Use the patch decorator to auto generate the correct mock and
make the test a bit more readabale.  The new change is both 3.8 and
3.11 compatible.
2024-04-18 13:28:30 -04:00
Feanil Patel
08b3f0bf32 fix: Create a bad unicode file differently.
In Python 3.11 CSV files are allowed to have null characters so the test
data is no longer a valid. We update it to not have a valid unicode
character to still test this code path correctly.

I'm not concerned about the fact that the files with null will get past
this test beacause there are other checks on the content of the file
that catch if it doesn't have enough or the right fields so this should
be a safe change to make to the tests.

Relevant Change in Python: https://github.com/python/cpython/issues/71767
2024-04-18 13:28:30 -04:00
Feanil Patel
87b9c759f0 fix: Provide a sequence to random.sample
The sample function used to automatically convert sets to sequences but
that is no longer supported starting in 3.11 so we have to do it
manually.

Reference: https://docs.python.org/3/library/random.html#random.sample
2024-04-18 13:28:30 -04:00
Feanil Patel
b20ac9c515 fix: Be able to clear the process_cache manually in Python 3.11
Given code like the following

```
class Foo:
    @process_cached
    def bar(self):
        pass
```

In Python 3.8 referencing `bar` would not call its `__get__` method.

```
x = Foo().bar
```

However in Python 3.11, making the same call would call the `__get__`
method, permanently replacing the underlying `process_cached` object
with the partial function that references it.

This meant that code to clear the cache would work in Python 3.8 but
would break in 3.11

```
Foo().bar.cache.clear()  # Works in 3.8 but not in 3.11
```

In 3.11 this results in the following error:
```
E       AttributeError: 'functools.partial' object has no attribute 'cache'
```

To make this compatible in both version, we just add the cache as an
accessible attribute on the partial we generate for our wrapped
function.
2024-04-18 13:28:30 -04:00
feanil
ad00e35266 feat: Upgrade Python dependency edx-drf-extensions
Update to a Python 3.11 compatible version

Commit generated by workflow `openedx/edx-platform/.github/workflows/upgrade-one-python-dependency.yml@refs/heads/master`
2024-04-18 13:21:17 -04:00