codeant-ai-for-open-source[bot] commented on PR #38847:
URL: https://github.com/apache/superset/pull/38847#issuecomment-4132973820
## **Sequence Diagram**
This PR ensures that when updating reports created from charts or
dashboards, the email recipient is always forced to the current user's address,
and adds schema-level validation for email recipient fields. Invalid email
addresses in recipient configuration now cause a validation error instead of
being accepted.
```mermaid
sequenceDiagram
participant Client
participant API
participant ReportsBackend
Client->>API: Update chart or dashboard report with recipients
API->>ReportsBackend: Validate and apply report update
ReportsBackend->>ReportsBackend: For chart or dashboard, replace
recipients with current user email
ReportsBackend-->>API: Report schedule saved with locked recipient
API-->>Client: Response with updated report
Client->>API: Submit report recipient with email addresses
API->>ReportsBackend: Validate recipient schema
ReportsBackend->>ReportsBackend: Check target cc and bcc are valid emails
ReportsBackend-->>API: Return validation error if any email is invalid
```
---
*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]