-
Notifications
You must be signed in to change notification settings - Fork 14.6k
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(dashboard): Add caching for dashboard datasets #14306
Conversation
Codecov Report
@@ Coverage Diff @@
## master #14306 +/- ##
==========================================
+ Coverage 77.01% 77.22% +0.20%
==========================================
Files 954 954
Lines 48071 48962 +891
Branches 5973 5973
==========================================
+ Hits 37024 37812 +788
- Misses 10850 10953 +103
Partials 197 197
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Looks like there's still some unit test issues to resolve tomorrow |
I suspect it's not kosher to add caching to a function that returns a sqlalchemy object |
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.
this lgtm, I think you'll need to rebase on master to unbreak CI though.
Let's see what the perf impact is here, and i'll have etag stuff soon (as soon as i can actually find time to write code for my job as a software engineer :P )
01e2375
to
2f6b74e
Compare
* fix(dashboard): [WIP] add caching back in to the dashboard dataset api * caching works! remove log message * remove unused full_data method * add caching to the charts endpoint as well * spread the cache love * lint * Revert "spread the cache love" This reverts commit ef322a3. * Revert "add caching to the charts endpoint as well" This reverts commit d3d1584. * it's a list
SUMMARY
Fixes issues discussed here: #13306 (comment)
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
Turn on caching, add a breakpoint or log message or other side effect to the cached function, refresh dashboard, verify side effect only happened once.
ADDITIONAL INFORMATION