-
Notifications
You must be signed in to change notification settings - Fork 771
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
Deprecations for 2.0 #792
Deprecations for 2.0 #792
Conversation
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.
Yep. I think that'll do.
Ach. Why do you forsake my python 2??? |
I am perplexed - this does not fail locally for me. |
Give me a sec. I will give it a run. |
Right, I'm perplexed too. Travis has two failures. (One for each test). I'm getting a failure just for the second.
Given that it's exactly the same as the first, that doesn't make much sense to me. |
I'll have to come back to this tomorrow - I can't figure out what's going on :/ |
300a808
to
37aea43
Compare
4a7ee18
to
3d67c18
Compare
9a0f9d7
to
d8b5d54
Compare
Codecov Report
@@ Coverage Diff @@
## develop #792 +/- ##
==========================================
+ Coverage 97.45% 97.56% +0.1%
==========================================
Files 15 15
Lines 1220 1234 +14
==========================================
+ Hits 1189 1204 +15
+ Misses 31 30 -1
Continue to review full report at Codecov.
|
I'm still not entirely sure why the tests were failing on CI and not locally, but the issue was related to a bad stacklevel on a few of the warnings. |
@carltongibson, so I think this is ready, but I'm not sure if we want to include this in 1.1 In short, I don't see a clean migration path that accommodates both the old FilterSet strictness behaviors and the proposed strict handling in the views. I also don't think it's really worth the effort even try, given that it would require a bunch of tests that are going to be short lived. If we merge this, there will be no migration path for strictness, so v1.1 will always raise warnings for the user. Alternatively, this can be merged into a v1.1.1 or v1.2 deprecation/migration release. What do you think? |
Either of:
|
The latter seems preferable. The release notes can make mention of the strictness deprecations instead. |
d8b5d54
to
ded646b
Compare
Alright, this should be done. I've removed the strictness warnings, but left the deprecation note. |
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.
OK. This is good. Well done.
* Deprecate the 'Meta.together' option * 'Filter.name' => 'Filter.field_name' * Add strictness migration note
Filter.name
=>Filter.field_name
Meta.together
FILTERS_STRICTNESS
,Meta.strict
,FilterSet.strict