-
Notifications
You must be signed in to change notification settings - Fork 212
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace deprecated body
in the ES requests
#3043
Comments
Hello @obulat and @WordPress/openverse-maintainers, I'm trying to have my first contribution on open source project and this issue look suitable for me. Can you assign me to this issue? How can I run an API tests? |
Hi @ngken0995, you can find the instructions for the API tests in the docs site. |
Hello @krysal, Resolved: I have to download docker-compose. Thank you for providing the docs site. It was super helpful. I can't join the slack channel because I'm not authorized. I'm trying to run Here is the result: |
@ngken0995 Could try running Also, you should be able to join Slack, it's free to access for anyone, you just need a WordPress.org account first. Check this page. |
Hello @krysal, I was able to run |
@krysal, I have joined the slack channel with a WordPress.org account. The error is the same from `test/unit/controllers/test_search_controller.py: 125 warnings test/unit/controllers/test_search_controller.py: 237 warnings ../venv/lib/python3.11/site-packages/_pytest/cacheprovider.py:451 ../venv/lib/python3.11/site-packages/_pytest/stepwise.py:56 -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html Results (86.18s (0:01:26)): |
@ngken0995, It looks like all of the tests passed. There are some warnings about the deprecations, but they don't affect the |
@obulat This is good to hear! I have created a PR. |
Description
The
get_sources
function in thesearch_controller
uses the deprecatedbody
parameter:openverse/api/api/controllers/search_controller.py
Lines 555 to 571 in 517a16e
Deprecation warning in the CI (when running the API tests).
This can be replaced with the following code:
Additional context
We recently updated ES version from 7 to 8, and started seeing the deprecation warnings in CI
The text was updated successfully, but these errors were encountered: