Vitor-Avila commented on code in PR #44992:
URL: https://github.com/apache/superset/pull/44992#discussion_r4200312893


##########
superset/commands/report/update.py:
##########
@@ -42,17 +47,61 @@
 from superset.exceptions import SupersetSecurityException
 from superset.reports.models import (
     ReportCreationMethod,
+    ReportDataFormat,
     ReportRecipientType,
     ReportSchedule,
     ReportScheduleType,
     ReportState,
 )
+from superset.tasks.exceptions import ExecutorNotFoundError
+from superset.tasks.types import ExecutorType
+from superset.tasks.utils import get_executor
 from superset.utils import json
-from superset.utils.core import get_user_email
+from superset.utils.core import get_user, get_user_email, get_user_id
 from superset.utils.decorators import on_error, transaction
 
 logger = logging.getLogger(__name__)
 
+# Payload fields that change the delivered asset, its rendering, or its 
recipients.
+# When a schedule executes as another user, only admins may change these.
+CONTENT_FIELDS: frozenset[str] = frozenset(

Review Comment:
   @sadpandajoe it's a good question. I had these fields in there initially, 
but my original thought was that changes to DB/SQL/validation would only change 
when the alert is triggered, not really the actual attachment that's being 
sent. I didn't think about the `last_value_row_json`, tho. I'll look into this. 



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