dpgaspar commented on a change in pull request #8947: [thumbnails] thumbnails
for dashboards and charts
URL:
https://github.com/apache/incubator-superset/pull/8947#discussion_r406283745
##########
File path: superset/charts/api.py
##########
@@ -340,3 +350,58 @@ def bulk_delete(self, **kwargs) -> Response: # pylint:
disable=arguments-differ
return self.response_403()
except ChartBulkDeleteFailedError as e:
return self.response_422(message=str(e))
+
+ @expose("/<pk>/thumbnail/<digest>/", methods=["GET"])
+ @protect()
+ @rison(thumbnail_query_schema)
+ @safe
+ def thumbnail(self, pk, digest, **kwargs): # pylint: disable=invalid-name
+ """Get Chart thumbnail
+ ---
+ get:
+ description: Compute or get already computed chart thumbnail from
cache
+ parameters:
+ - in: path
+ schema:
+ type: integer
+ name: pk
+ - in: path
+ schema:
+ type: string
+ name: sha
+ responses:
+ 200:
Review comment:
It's now 302 has we talked
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]