jayakrishnankk opened a new issue, #30075:
URL: https://github.com/apache/superset/issues/30075

   ## Proposal for Embeddable Charts using the same mechanism as #17187
   
   ### Motivation
   
   The existing method of embedding charts is using iframe method.
   What this means is that the user have to be logged-in in parallel to the 
superset system for the chart to display without a login screen in the embedded 
mode.
   
   Similar to embedding dashboards as outlined in 
[SIP-75](https://github.com/apache/superset/issues/17187), superset dashboard 
developers would like to embed charts in a similar fashion so that the login 
page does not appear and a parallel login is not needed by the end user, 
avoiding the user to have an account created in superset to view the charts.
   
   ### Proposed Change
   
   This SIP is aimed to implement the Embedded Charts capability using the same 
GuestToken method that the Embeddable Dashboards are using.
   
   ### New or Changed Public Interfaces
   
   Added REST endpoints
   ```
   GET    {host}/api/v1/chart/{pk}/embedded
   POST   {host}/api/v1/chart/{pk}/embedded
   DELETE {host}/api/v1/chart/{pk}/embedded
   ```
   Added Views
   
   In addition to existing view {host}/embedded/{uuid}, added the following
   ```
   {host}/embedded/dashboard/{uuid} 
   {host}/embedded/chart/{uuid}
   ```
   
   NOTE: {host}/embedded/dashboard/{uuid}  works the same way as 
{host}/embedded/{uuid}, which should be deprecated and removed in one of the 
subsequent versions.
   
   ### New dependencies
   
   None
   
   ### Migration Plan and Compatibility
   
   Needs a migration. Please see the attached merge request to see the 
migration details.
   A new table called `embedded_charts` will be added and a foreign key 
reference will be made to the `slices` table.
   
   ### Rejected Alternatives
   
   Did not discuss alternate approaches


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to