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

   ## **Sequence Diagram**
   
   Shows how the frontend prompts for masked encrypted extra fields during 
import, sends provided secrets to the backend, and completes the import. This 
captures the core user+UI+hook+API interactions added in this PR.
   
   ```mermaid
   sequenceDiagram
       participant User
       participant ImportModal as UI
       participant Hook as useImportResource
       participant Server as API
   
       User->>UI: Upload import bundle
       UI->>Hook: importResource(bundle, passwords..., encryptedExtraSecrets={})
       Hook->>Server: POST /api/v1/<resource>/import (formData without 
encrypted_extra_secrets)
       Server-->>Hook: 200 with validation error: masked_encrypted_extra fields 
needed
       Hook-->>UI: set encryptedExtraFieldsNeeded (file + field paths/labels)
       UI-->>User: Render inputs asking for encrypted extra secrets
       User->>UI: Fill secrets and click Import
       UI->>Hook: importResource(bundle, ..., encryptedExtraSecrets={file: 
{path: secret}})
       Hook->>Server: POST /api/v1/<resource>/import (formData includes 
encrypted_extra_secrets)
       Server-->>Hook: 200 OK (import success)
       Hook-->>UI: clear needed flags, return success
       UI-->>User: Show success toast
   ```
   
   ---
   *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