-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Remove group.Use registering Any routes that break other routes #1674
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
Conversation
Codecov Report
@@ Coverage Diff @@
## master #1674 +/- ##
==========================================
- Coverage 85.28% 84.33% -0.96%
==========================================
Files 28 28
Lines 2216 1909 -307
==========================================
- Hits 1890 1610 -280
+ Misses 212 189 -23
+ Partials 114 110 -4
Continue to review full report at Codecov.
|
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 actually expected some tests to break with your changes.
Please add tests for that behaviour (like shown in #1657), so we can ensure consistent behaviour later on.
I need to tackle some router tickets anyway, so I'll try to take a deeper look then.
I did too. I was surprised when none did. Guess the previous behavior this sought to achieve is not covered.
I added the sample from the issue as a test, modified a bit to be slightly more consistent with the rest of them. |
I'll need some time to review that, as there might be implications that we do not see or test currently. |
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.
There really seems to be no real impact.
So I'm in favor of merging.
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.
LGTM!
I found why at least one of those two removed lines were "needed". After the merge of this PR, the tests on master start failing (https://github.com/labstack/echo/runs/1561607655?check_suite_focus=true) |
Why would you add a group with only a middleware? Why not make it an handler? As in, why a static middleware and not a static handler? |
Why did the tests not fail on the PR? Sadly I do not know how that was handled before. I'd love to have an unmerge button ;-) |
Our master branch shall be stable, so tests must not fail there. We need to resolve that. |
Note that if you revert it on master, to restore it, you need to "unrevert" the revert. That is, revert the revert commit. |
To avoid reverting of reverted reverts, please resubmit this PR as a new one again (referencing this one). |
This can be a breaking change if this behavior is somehow important to anyone.
Fixes #1657