patricio-gonzalez-ventures opened a new issue, #37191:
URL: https://github.com/apache/airflow/issues/37191

   ### Apache Airflow Provider(s)
   
   slack
   
   ### Versions of Apache Airflow Providers
   
   _No response_
   
   ### Apache Airflow version
   
   latest
   
   ### Operating System
   
   macos
   
   ### Deployment
   
   Official Apache Airflow Helm Chart
   
   ### Deployment details
   
   Astronomer
   
   ### What happened
   
   I am using the class SqlToSlackApiFileOperator which does not allow me to 
avoid sending messages to slack with an empty file.
   
   ### What you think should happen instead
   
   I would to add a new parameter to the class that will add the possibility to 
allow us to avoid sending empty files (len condition in 
https://github.com/apache/airflow/blob/main/airflow/providers/slack/transfers/sql_to_slack_webhook.py#L160).
   
   ### How to reproduce
   
   It can be easily reproduced after configuring a query that will retrieve no 
data.
   
   ### Anything else
   
   I can work in the PR (it'd be my first one), although I would need guidance 
if the approach is right.
   
   ### Are you willing to submit PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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

Reply via email to