-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
aiohttp/web.py: fixing middleware resolution order accross multiple applications #1854
Conversation
I honestly don't know if the right way is what I've done, or changing the But in any case, you've got the point: the list |
That's probably regression in 2.x version. @asvetlov could you look? |
Codecov Report
@@ Coverage Diff @@
## 2.0 #1854 +/- ##
=======================================
Coverage 96.71% 96.71%
=======================================
Files 37 37
Lines 7433 7433
Branches 1294 1294
=======================================
Hits 7189 7189
Misses 114 114
Partials 130 130
Continue to review full report at Codecov.
|
I'll have a time for it tomorrow evening. |
@Anvil could you add a unit test? |
The test is actually already written, but with a wrong assumption. I'll fix that. |
See, Application inherits from MutableMapping, which leads to |
FTR, I think many tests are broken because of this assumption. |
@asvetlov ping |
ddc1471
to
68d351d
Compare
See #1866 (comment) |
Do you want me to revert the changes on the test so that we can close this MR and the corresponding issue ? |
Yes. Let's fix application comparison (and middleware ordering along with other potential issues). |
@asvetlov what is the status on this PR? whet is next? |
68d351d
to
1954e99
Compare
I've rolled back the commits on the unit tests, yesterday. So, IMHO, it's good to merge. And I'd be interested in a bugfix release in the next few weeks, to be honest. ;) |
@Anvil could you rebase against master? |
1954e99
to
a9b8cf7
Compare
Done. FWIW, this bug is a blocker here. We'd like to see it fixed in 2.0 series, if possible. |
I think this is indeed a breaking change, even if it's fixes the issue. It is indeed about behaviour change. The change itself looks reasonable and good for me. I would only be a bit more clear and correct about it in change log. The |
thanks! I am planing to release 2.1 this weekend |
Thanks for the merge. |
What do these changes do?
This should fix #1853
Are there changes in behavior for the user?
Yes, likely.
Related issue number
#1853
Checklist
CONTRIBUTORS.txt
CHANGES.rst
#issue_number
format at the end of changelog message. Use Pull Request number if there are no issues for PR or PR covers the issue only partially.