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

Add cache warmup endpoint #1063

Merged
merged 5 commits into from
Sep 6, 2016
Merged

Add cache warmup endpoint #1063

merged 5 commits into from
Sep 6, 2016

Conversation

bkyryliuk
Copy link
Member

Implements the FR: #1021
Based on the PR: #1062

This PR adds 2 types of the cache warm up endpoints:

  • Via table name and db name:
    /caravel/warm_up_cache?table_name=energy_usage&db_name=main
  • Via slice id: /caravel/warm_up_cache?slice_id=1

@bkyryliuk bkyryliuk changed the title Cache warmup endpoint Add cache warmup endpoint Sep 4, 2016
def get_viz(self, url_params_multidict=None):
"""Creates BaseViz object from the url_params_multidict.

Parameters
Copy link
Member

Choose a reason for hiding this comment

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

If we want to auto generate docs for the code we should stick with Sphinx's (the documentation framework we use) way of specifying docstrings:
http://www.sphinx-doc.org/en/stable/domains.html#info-field-lists

@mistercrunch
Copy link
Member

Nice. A few minor nits but the code looks much better overall!

@mistercrunch
Copy link
Member

Oh looks like this PR is a superset of #1062 isn't it? I won't review 1062 if that's the case.

@bkyryliuk
Copy link
Member Author

@mistercrunch - yes. I wasn't sure how stack the PRs on top of each other here.

@mistercrunch
Copy link
Member

LGTM!

@bkyryliuk
Copy link
Member Author

thanks @mistercrunch for the review!

@bkyryliuk bkyryliuk merged commit e783219 into apache:master Sep 6, 2016
@bkyryliuk bkyryliuk deleted the cache_warmup_endpoint branch September 6, 2016 20:58
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 17, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 24, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 25, 2021
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this pull request Nov 26, 2021
@mistercrunch mistercrunch added 🏷️ bot A label used by `supersetbot` to keep track of which PR where auto-tagged with release labels 🚢 0.11.0 labels Feb 19, 2024
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 🚢 0.11.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants