-
Notifications
You must be signed in to change notification settings - Fork 0
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
Task/wp 209 fix deprecated warnings (part II) #852
Merged
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
fc4611e
urls and gettext_lazy
van-go a7edd56
server-side linting fix
van-go fa1bffa
Merge remote-tracking branch 'origin/main' into task/wp-171-fix-depre…
van-go af342a5
task/wp-171-fix-deprecated-django-warnings
van-go 52d61ea
task/wp-209-fix-deprecated-warnings
van-go 1fc16f5
removed commented out code
van-go a80eab9
Merge branch 'main' into task/wp-209-fix-deprecated-warnings-II
shayanaijaz a710969
Update signals.py
van-go e616929
Update pytest.ini
van-go f034d9d
Merge branch 'main' into task/wp-209-fix-deprecated-warnings-II
chandra-tacc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
from django.dispatch import Signal | ||
|
||
# Generic event signal. Not in use as of 6.29.20 | ||
portal_event = Signal(providing_args=['event_type', 'event_data', 'event_users']) | ||
portal_event = Signal() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,17 @@ | ||
[pytest] | ||
DJANGO_SETTINGS_MODULE = portal.settings.unit_test_settings | ||
python_files = tests.py *unit_test.py | ||
|
||
filterwarnings = | ||
ignore::DeprecationWarning:django.*: | ||
ignore::DeprecationWarning:openapi_schema_validator.*: | ||
ignore::DeprecationWarning:openapi_spec_validator.*: | ||
ignore::DeprecationWarning:openapi_core.*: | ||
ignore::DeprecationWarning:kombu.*: | ||
ignore::DeprecationWarning:pkg_resources.*: | ||
ignore:.*Django now detects this configuration.*:django.utils.deprecation.RemovedInDjango41Warning | ||
|
||
markers = | ||
asyncio: mark a test as asyncio. | ||
|
||
# refer to WP-271 for follow up on Deprecation Warnings |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Do we want these warnings removed? I think it might be better if we resolved the deprecation warnings, as in changed code to resolve the warnings, rather than suppressed the warnings.
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.
This would require updating the Django version. There aren't any changes in our code to make that would resolve these warnings. Do you know when we are planning to update the Django version? We can add a note or ticket to review these warnings.
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.
@van-go , just so that we do not ignore this permanently, would it be possible to add tracking jira tasks and add the task number to the ini file (comments start with ';' in ini file, afaik).
openapi_spec_validator 0.5.0
openapi_schema_validator 0.6.0
openapi_core 0.18
Move channels to 4.0.0.
The edits for these will be in dependency list
Adding a note in task to remove the ignore when the task is fixed will ensure that the ignore is not left behind permanently.