GitHub user rsaleev created a discussion: Warm up charts cache via API
@dosu
I need to warm up cache via API if data changed in dataset, and charts were
updated
my logic
GET /api/v1/explore/?slice_id=1 - get form data
POST /api/v1/chart/1/data/ - execute query and get query context
PUT /api/v1/chart/warm_up_cache - cache
When I do request on explore HTTP 403 status is returned
My custom role has almost all permissions for charts and data
```
["ExploreFormdataRestApi", "can_read"],
["ExploreFormdataRestApi", "can_write"],
["ExploreFormdataRestApi", "can_put"],
["ExploreFormdataRestApi", "can_post"],
["ExploreFormdataRestApi", "can_get"],
["ExploreFormDataRestApi", "can_read"],
["ExploreFormDataRestApi", "can_write"],
["ExplorePermalinkRestApi", "can_read"],
["ExplorePermalinkRestApi", "can_write"],
["ExploreRestApi", "can_get"],
["ExploreRestApi", "can_read"],
["ExploreRestApi", "can_write"],
```
GitHub link: https://github.com/apache/superset/discussions/38718
----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]