-
-
Notifications
You must be signed in to change notification settings - Fork 234
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
[Waste] Calendar performance improvements #5193
base: master
Are you sure you want to change the base?
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.
Good spot - think it'd be clearer to stop the help page being chained entirely.
@@ -588,6 +588,13 @@ sub property : Chained('/') : PathPart('waste') : CaptureArgs(1) { | |||
$c->detach; | |||
} | |||
|
|||
# The calendar help page doesn't need anything but the property ID, |
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 think a clearer way to do this would be to stop calendar being Chained to property entirely - if it was its own route then you wouldn't need to complicate this with a special case. ie sub calendar : Path : Args(1) {
or similar, then sticking the ID on the stash.
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 did try this to begin with but couldn't figure out the right incantation - will have another go based off your suggestion 👍
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.
Have moved to LocalRegex
in a22a400, though that seems to be deprecated and the docs suggest using chains instead. But I can't see a way to do that without chaining off property
...
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.
Ugh, sorry, I must have had it in my head it was calendar/ID... So this way is fine (we have a number of other LocalRegexes), or your original way - I guess the actual cleanest would be to change property
to Chain off a new tiny function (property_id?) that fetched the ID and didn't do anything else, and then calendar could Chain off of property_id, leaving rest of property alone.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #5193 +/- ##
===========================================
- Coverage 82.50% 69.30% -13.20%
===========================================
Files 406 405 -1
Lines 31743 31891 +148
Branches 5050 5072 +22
===========================================
- Hits 26188 22103 -4085
- Misses 4065 8293 +4228
- Partials 1490 1495 +5
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Cache-Control
header tocalendar.ics
responses[skip changelog]