-
Notifications
You must be signed in to change notification settings - Fork 92
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
Conditionally set url label for 404 responses #111
Conversation
Please add test(s) |
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.
Test(s) are missing
I've added two tests covering the new scenario. Thanks for reminding me. |
Dear @aldas, |
I think instead of |
Thanks, dear @aldas. I renamed the field. About using pointers, I used a pointer to be able to distinguish between the default I can think of setting a default |
I do not think we need 3 cases. We only need config flag to invert current behavior. |
Sorry, I was missing the change in semantics after renaming the variable. It's fixed now. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #111 +/- ##
=======================================
Coverage 64.08% 64.08%
=======================================
Files 9 9
Lines 944 944
=======================================
Hits 605 605
Misses 300 300
Partials 39 39 ☔ 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.
LGTM
The MR addresses #86. I've explained about it in the original issue. TLDR; It adds a new field to the
MiddlewareConfig
to control the URL label when the response status code is 404.