You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/05 18:11:55 UTC

[GitHub] [airflow] serkef commented on pull request #5519: [AIRFLOW-4543] Update slack operator to support slackclient v2

serkef commented on pull request #5519:
URL: https://github.com/apache/airflow/pull/5519#issuecomment-624219960


   @kaxil thanks for testing this. I made the required changes.
   
   > Have you tested that the `SlackAPIPostOperator` still works with attachments?
   
   Yes, I tested an example DAG locally with the follow task:
   ```
   run_this = SlackAPIPostOperator(
       task_id="post_hello",
       dag=dag,
       token="xxx",
       text="Hello",
       channel="#welcome",
       attachments=[{"pretext": "pre-hello", "text": "text-world"}],
   )
   ```
   And result 
   ![image](https://user-images.githubusercontent.com/3225779/81100218-7562a500-8f0c-11ea-8ad1-b57c319f3966.png)
   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org