-
Notifications
You must be signed in to change notification settings - Fork 401
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
fix(event_handler): Router prefix mismatch regression after Middleware feat #3302
fix(event_handler): Router prefix mismatch regression after Middleware feat #3302
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## develop #3302 +/- ##
===========================================
+ Coverage 95.26% 95.27% +0.01%
===========================================
Files 207 207
Lines 9581 9581
Branches 1756 798 -958
===========================================
+ Hits 9127 9128 +1
+ Misses 337 335 -2
- Partials 117 118 +1
☔ View full report in Codecov by Sentry. |
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.
GREAT catch! Made suggestions to clean up the test. We ran out of time back then to get rid of parametrize, so we can do better now.
One additional suggestion I couldn't due to the UI limiting it... is to add a comment in the for loop block so we don't lose that much time figuring out that logic..
It isn't immediately clear this block: https://github.com/aws-powertools/powertools-lambda-python/pull/3302/files#diff-bdb4b43087f89fdf398381f3d88048f6182562ca67e8907259d5c56d658465c1R2012
There's another test we're missing to catch a regression like this --- we don't have a test where we have both strip_prefix + router prefix. Could you add that one in too, please? |
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.
tiny change in the latest test to make it easier to go back in the future.
Can be merged after that 🎉 !!!!!!
Kudos, SonarCloud Quality Gate passed! |
GREEEEEAAAAT JOB. That was a pesky regression to detect |
Issue number: #3255
Summary
Changes
When using a route with a prefix the Middleware execution was failing.
User experience
There are no changes to the user experience other than fixing the bug.
Checklist
If your change doesn't seem to apply, please leave them unchecked.
Is this a breaking change?
RFC issue number:
Checklist:
Acknowledgment
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.
Disclaimer: We value your time and bandwidth. As such, any pull requests created on non-triaged issues might not be successful.