-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[cache] Providing a mechanism for disabling the datasource/database cache #5315
[cache] Providing a mechanism for disabling the datasource/database cache #5315
Conversation
3526d1f
to
ae95be2
Compare
Codecov Report
@@ Coverage Diff @@
## master #5315 +/- ##
==========================================
+ Coverage 61.33% 61.33% +<.01%
==========================================
Files 369 369
Lines 23483 23484 +1
Branches 2713 2713
==========================================
+ Hits 14404 14405 +1
Misses 9067 9067
Partials 12 12
Continue to review full report at Codecov.
|
I think it's possible for Also another good thing to do would be adding info in the help text which I think has been missing. We should make it clear we're expecting seconds and that |
@mistercrunch cache_timeout is an int and thus is NULL in the database if cleared in the CRUD view. The one caveat is -1 will evaluate to True. |
I can update the form description. Note |
LGMT |
ae95be2
to
7ddfbdd
Compare
@mistercrunch I've updated the description in the FAB forms which should provide more transparency around caching and the fall back logic. |
LGTM |
7ddfbdd
to
662874b
Compare
(cherry picked from commit 72d815c)
This PR updates the cache-timeout delegation logic which previously checked whether the datasource or database
cache_timeout
evaluated toTrue
rather than whether it wasNone
. The distinction here is you should be able to set a cache-timeout of zero at the datasource/database level to indicate that the slice will not timeout.I've also updated the form descriptions which explicitly mention the timeout is in seconds and what the fall back logic is, i.e.,
chart:
table:
database:
datasource:
cluster:
to: @graceguo-supercat @michellethomas @mistercrunch @timifasubaa