Skip to content
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: respect chart cache timeout setting #21637

Merged
merged 4 commits into from
Sep 29, 2022
Merged

fix: respect chart cache timeout setting #21637

merged 4 commits into from
Sep 29, 2022

Conversation

mayurnewase
Copy link
Contributor

@mayurnewase mayurnewase commented Sep 29, 2022

SUMMARY

fixes: #21635

BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF

TESTING INSTRUCTIONS

start redis locally, and setup redis cache in config for data
create any chart on 1 dataset
set dataset cache timeout to 120 seconds
set chart cache timeout to 20 seconds (from properties modal).
open chart, and click on update chart
use redis cli, to check the expiry set on the cache key using ttl {cache_key} -> ishould be around 20 seconds.
after 20 seconds, click on update chart -> should not show cached tag on top right corner.

ADDITIONAL INFORMATION

  • Has associated issue: Chart cache timeout is ignored #21635
  • Required feature flags:
  • Changes UI
  • Includes DB Migration (follow approval process in SIP-59)
    • Migration is atomic, supports rollback & is backwards-compatible
    • Confirm DB migration upgrade and downgrade tested
    • Runtime estimates and downtime expectations provided
  • Introduces new feature or API
  • Removes existing feature or API

@mayurnewase mayurnewase mentioned this pull request Sep 29, 2022
3 tasks
@mayurnewase mayurnewase changed the title fix[chart cache]: respect chart cache timeout setting fix: respect chart cache timeout setting Sep 29, 2022
@codecov
Copy link

codecov bot commented Sep 29, 2022

Codecov Report

Merging #21637 (65968cc) into master (71bf267) will decrease coverage by 11.37%.
The diff coverage is 75.00%.

@@             Coverage Diff             @@
##           master   #21637       +/-   ##
===========================================
- Coverage   66.82%   55.45%   -11.38%     
===========================================
  Files        1797     1797               
  Lines       68753    68765       +12     
  Branches     7325     7325               
===========================================
- Hits        45944    38132     -7812     
- Misses      20934    28758     +7824     
  Partials     1875     1875               
Flag Coverage Δ
hive 52.91% <75.00%> (+<0.01%) ⬆️
mysql ?
postgres ?
presto 52.81% <75.00%> (+<0.01%) ⬆️
python 57.89% <75.00%> (-23.52%) ⬇️
sqlite ?
unit 50.91% <41.66%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
superset/common/query_context_factory.py 91.42% <71.42%> (-5.00%) ⬇️
superset/common/query_context.py 85.00% <80.00%> (-9.55%) ⬇️
superset/utils/dashboard_import_export.py 0.00% <0.00%> (-100.00%) ⬇️
superset/tags/core.py 4.54% <0.00%> (-95.46%) ⬇️
superset/key_value/commands/update.py 0.00% <0.00%> (-88.89%) ⬇️
superset/key_value/commands/delete.py 0.00% <0.00%> (-85.30%) ⬇️
superset/key_value/commands/delete_expired.py 0.00% <0.00%> (-80.77%) ⬇️
superset/dashboards/commands/importers/v0.py 15.62% <0.00%> (-76.25%) ⬇️
superset/datasets/commands/update.py 25.00% <0.00%> (-69.05%) ⬇️
superset/datasets/commands/create.py 31.25% <0.00%> (-68.75%) ⬇️
... and 284 more

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@1845725202
Copy link

1845725202 commented Sep 29, 2022 via email

@mayurnewase mayurnewase reopened this Sep 29, 2022
@pull-request-size pull-request-size bot added size/L and removed size/S labels Sep 29, 2022
Copy link
Member

@villebro villebro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for the added tests 👍

@rusackas rusackas merged commit 5ea9249 into master Sep 29, 2022
@mistercrunch mistercrunch added 🍒 2.0.1 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 2.1.0 and removed 🚢 2.1.3 labels Mar 13, 2024
@mistercrunch mistercrunch deleted the fix-21635 branch March 26, 2024 16:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels size/L v2.0 v2.0.1 🍒 2.0.1 🚢 2.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Chart cache timeout is ignored
6 participants