codeant-ai-for-open-source[bot] commented on PR #38584:
URL: https://github.com/apache/superset/pull/38584#issuecomment-4040311855

   ## **Sequence Diagram**
   
   This PR updates the chart save flow so that externally managed dashboards 
are hidden from the save dialog and blocked server-side when creating or 
updating chart dashboard assignments.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant Frontend
       participant DashboardAPI
       participant ChartAPI
       participant Backend
   
       User->>Frontend: Open save chart dialog
       Frontend->>DashboardAPI: Get user dashboards excluding externally managed
       DashboardAPI-->>Frontend: Dashboards with external flag info
   
       User->>Frontend: Select dashboard and save chart
       Frontend->>ChartAPI: Create or update chart with dashboard ids
       ChartAPI->>Backend: Validate dashboard relationships
   
       alt Dashboard is externally managed
           Backend-->>ChartAPI: Dashboards forbidden error
           ChartAPI-->>Frontend: 403 forbidden cannot assign to managed 
dashboard
       else Dashboard is editable
           Backend-->>ChartAPI: Chart saved
           ChartAPI-->>Frontend: Success with chart id
       end
   ```
   
   ---
   *Generated by [CodeAnt AI](https://codeant.ai)*
   


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