mosescha1972 commented on issue #38460:
URL: https://github.com/apache/superset/issues/38460#issuecomment-4009001863

   Limitation of the current webhook payload
   
   The raw body received by the webhook looks like this:
   
   {
     "name": "test8: Table",
     "header": {
       "notification_format": "TEXT",
       "notification_type": "Alert",
       "notification_source": "chart",
       "chart_id": 73,
       "dashboard_id": null
     },
     "text": null,
     "description": null,
     "url": 
"http://:8888/explore/?form_data=%7B%22slice_id%22:+73%7D&force=true";
   }
   
   This payload does not contain any file-related information (such as a 
PNG/PDF file, file URL, or binary data).
   Because of this, it is not possible to implement a proxy server that uploads 
files to Mattermost.
   
   The proxy server only receives metadata such as the chart name, description, 
and explore URL. Without a file reference or attachment in the webhook payload, 
the proxy cannot retrieve or forward a file to Mattermost.
   
   To support file uploads via a proxy server, the webhook payload would need 
to include one of the following:
   
   A file URL (PNG/PDF) generated by Superset
   
   A downloadable attachment reference
   
   Base64-encoded file data
   
   Without such information in the payload, the proxy server can only forward 
text messages, not files.


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