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 an endpoint to warm up the cache. #1021

Closed
3 of 4 tasks
bkyryliuk opened this issue Aug 26, 2016 · 1 comment
Closed
3 of 4 tasks

Add an endpoint to warm up the cache. #1021

bkyryliuk opened this issue Aug 26, 2016 · 1 comment
Assignees
Labels
airbnb Airbnb related enhancement:request Enhancement request submitted by anyone from the community

Comments

@bkyryliuk
Copy link
Member

bkyryliuk commented Aug 26, 2016

The api would receive the dashboard id and warm up the cache.

  • Refactor the explore method into separate html and csv endpoint
  • Add get_viz to the Slice and refactore the explore endpoint to use it
  • Implement warmup_cache_dashboard/<dashboard_id> endpoint for the dashboard
  • Implement warmup_cache_table/<table_id> endpoint for the table

The viz creation should look like this in the explore view:

if slice:
    viz = slice.get_viz(form_data)
else
    viz = viz.viz_types[viz_type](form_data)

Cache update for the dashboard:

for slice in dashboard:
    viz = slice.get_viz(force=True)
    viz.get_json()

similarly for a table
Cache update for the dashboard:

for slice in table:
    viz = slice.get_viz(force=True)
    viz.get_json()
@bkyryliuk bkyryliuk added enhancement:request Enhancement request submitted by anyone from the community airbnb Airbnb related labels Aug 26, 2016
@bkyryliuk bkyryliuk self-assigned this Aug 26, 2016
@mistercrunch
Copy link
Member

I'd like to remove all references to self.slice from the viz object.

I think it's just a matter of passing the cache_timeout as its own argument, or bundling it along with the rest of form_data

zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 17, 2021
* feat: extra_jwt support to be used in dashboard_rbac for BE validation of data-access based on dashboard access

* test: extra_jwt existence

* chore: extra_jwt in BaseFormData

* fix: add missing ff to enum

* fix: missing :

* chore: add extra_jwt to QueryContext

* Update QueryFormData.ts

* Update buildQueryContext.ts

* Update buildQueryContext.test.ts

* fix: text

* Update Query.ts

* Update QueryFormData.ts
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 24, 2021
* feat: extra_jwt support to be used in dashboard_rbac for BE validation of data-access based on dashboard access

* test: extra_jwt existence

* chore: extra_jwt in BaseFormData

* fix: add missing ff to enum

* fix: missing :

* chore: add extra_jwt to QueryContext

* Update QueryFormData.ts

* Update buildQueryContext.ts

* Update buildQueryContext.test.ts

* fix: text

* Update Query.ts

* Update QueryFormData.ts
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 25, 2021
* feat: extra_jwt support to be used in dashboard_rbac for BE validation of data-access based on dashboard access

* test: extra_jwt existence

* chore: extra_jwt in BaseFormData

* fix: add missing ff to enum

* fix: missing :

* chore: add extra_jwt to QueryContext

* Update QueryFormData.ts

* Update buildQueryContext.ts

* Update buildQueryContext.test.ts

* fix: text

* Update Query.ts

* Update QueryFormData.ts
zhaoyongjie pushed a commit to zhaoyongjie/incubator-superset that referenced this issue Nov 26, 2021
* feat: extra_jwt support to be used in dashboard_rbac for BE validation of data-access based on dashboard access

* test: extra_jwt existence

* chore: extra_jwt in BaseFormData

* fix: add missing ff to enum

* fix: missing :

* chore: add extra_jwt to QueryContext

* Update QueryFormData.ts

* Update buildQueryContext.ts

* Update buildQueryContext.test.ts

* fix: text

* Update Query.ts

* Update QueryFormData.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
airbnb Airbnb related enhancement:request Enhancement request submitted by anyone from the community
Projects
None yet
Development

No branches or pull requests

2 participants