-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
chore: clean and fix console warnings #33601
Conversation
Thanks for the pull request, @DanielVZ96! Please note that it may take us up to several weeks or months to complete a review and merge your PR. Feel free to add as much of the following information to the ticket as you can:
All technical communication about the code itself will be done via the GitHub pull request interface. As a reminder, our process documentation is here. Please let us know once your PR is ready for our review and all tests are green. |
152ffc8
to
d35ba5c
Compare
d35ba5c
to
792c523
Compare
4a1436f
to
03db754
Compare
03db754
to
a0139fc
Compare
a0139fc
to
7cfeb96
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DanielVZ96, this looks good to merge once the last CI issue is resolved (I described the fix in #33601 (comment)). As the review is complete, please rebase your commits to include changes from 7cfeb96e9a48ba8e9590768a2630842978e039a4 in specific commits.
cms/pytest.ini
Outdated
@@ -12,6 +12,17 @@ filterwarnings = | |||
default | |||
ignore:No request passed to the backend, unable to rate-limit:UserWarning | |||
ignore::xblock.exceptions.FieldDataDeprecationWarning | |||
# Remove next two default_app_config warnings after updating Django to 4.2 | |||
ignore:.*You can remove default_app_config.*:PendingDeprecationWarning | |||
ignore:.*You can remove default_app_config.*:django.utils.deprecation.RemovedInDjango41Warning |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If I remember correctly, RemovedInDjango41Warning
is a subclass of PendingDeprecationWarning
in Django 3.2 (and a subclass of the DeprecationWarning
in Django <4.2, but we don't use this version). Specifying PendingDeprecationWarning
should be enough.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i agree, i actually had this removed but forgot to commit it. will do so with the rebase
7cfeb96
to
9ce4c5c
Compare
828954b
to
2b11481
Compare
related issue: openedx#33572
related issue: openedx#33584 note: this warning is rased from a third party library (elasticsearch)
related issue: openedx#33584 note: this warning is from a third party library (libsass)
related issue: openedx#33584 note: it has been replaced with add_custom_attribute. it is just a rename https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-80300/
related issue: openedx#33585
Related issue: openedx#32888
2b11481
to
398c84e
Compare
@Agrendalath rebased and now the PR is ready for merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
- I tested this: checked that the warnings are suppressed
- I read through the code
- I checked for accessibility issues: n/a
- Includes documentation: n/a
@DanielVZ96 🎉 Your pull request was merged! Please take a moment to answer a two question survey so we can improve your experience in the future. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
1 similar comment
2U Release Notice: This PR has been deployed to the edX production environment. |
2U Release Notice: This PR has been deployed to the edX staging environment in preparation for a release to production. |
2U Release Notice: This PR has been deployed to the edX production environment. |
Description
This warning are appearing too many times during provisioning. They clutter logs and hinder dev experience (#32888).
Changes:
pkg_resources.declare_namespace
. #33592Useful information to include:
"Developer", and "Operator".
changes.
Testing instructions
Please provide detailed step-by-step instructions for testing this change.