-
Notifications
You must be signed in to change notification settings - Fork 14.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Example dag slackfile #17400
Example dag slackfile #17400
Conversation
…slack_upload_file
Fixed indentation. Co-authored-by: Tzu-ping Chung <[email protected]>
…slack_upload_file
…g_slackfile � Conflicts: � airflow/providers/slack/operators/slack.py
some docs and test failures |
The PR is likely OK to be merged with just subset of tests for default Python and Database versions without running the full matrix of tests, because it does not modify the core of Airflow. If the committers decide that the full tests matrix is needed, they will add the label 'full tests needed'. Then you should rebase to the latest main or amend the last commit of the PR, and push it with --force-with-lease. |
log += ( | ||
"*** !!!! Please make sure that all your webservers and workers have" | ||
" the same 'secret_key' configured in 'webserver' section !!!!!\n***" | ||
) | ||
log += ( | ||
"*** See more at https://airflow.apache.org/docs/apache-airflow/" | ||
"stable/configurations-ref.html#secret-key\n***" | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This isn't related to this PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I broke it and just fixed it in main (bad Jarek!)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs rebase
ui_color = '#44BEDF' | ||
|
||
def __init__( | ||
self, | ||
channel: str = '#general', | ||
initial_comment: str = 'No message has been set!', | ||
filename: str = None, | ||
file: str = None, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like a breaking change. Is there any way we can keep backward compatibility? If not, can you add a note to the changelog? For example note, see: google provider https://github.com/apache/airflow/blob/main/airflow/providers/google/CHANGELOG.rst
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mik-laj I dont think it was working before, the file parameter. I thought I fixed the file-content in an earlier PR, but the passing file was also broken.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please let me know , I can add to CHANGELOG, but as I mentioned before, for files, we need to open the file and pass the bufferedreader to Slack API, it was not done before
Some related slack tests are failing. Can you please rebase and fix those ? |
Thanks @potiuk , Updated, classic case of not digging deeper and assuming that the failure is not related to the change. |
@subkanthi it's probably related because the failing tests are of Slack
|
Yes thanks I noticed that too, cant reproduce it on my local, still checking.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the file/file_name meaning is reversed here (and add backwards_compatibility change) - they should be swapped
@potiuk can u please check again when u get a chance |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
filename="hello_world.csv", | ||
filetype="csv", | ||
) | ||
with open("test.txt", "rb") as file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's changing here? file
variable looks unused.
closes: #17368