Skip to content
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

S3DeleteObjectsOperator Added ability to filter keys by last modified time #39151

Merged

Conversation

idantepper
Copy link
Contributor

expose cabability from the s3 hook to the delete operator


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added area:providers provider:amazon-aws AWS/Amazon - related issues labels Apr 21, 2024
@idantepper idantepper force-pushed the add-options-to-S3DeleteObjectsOperator branch from 34c788d to d5ecc23 Compare April 21, 2024 07:20
@idantepper idantepper force-pushed the add-options-to-S3DeleteObjectsOperator branch from d5ecc23 to 27be7e5 Compare April 22, 2024 23:23
@idantepper
Copy link
Contributor Author

idantepper commented Apr 22, 2024

hi, I added the at least one function and changed the validation of params to use it

airflow/utils/helpers.py Outdated Show resolved Hide resolved
@idantepper idantepper force-pushed the add-options-to-S3DeleteObjectsOperator branch from 27be7e5 to bdf2275 Compare May 4, 2024 15:34
@eladkal eladkal requested review from vincbeck and ferruzzi May 5, 2024 06:15
Copy link
Contributor

@ferruzzi ferruzzi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks for your patience.

@eladkal eladkal merged commit 9c739d7 into apache:main May 7, 2024
40 checks passed
pateash pushed a commit to pateash/airflow that referenced this pull request May 13, 2024
…ed time (apache#39151)

* (S3DeleteObjectsOperator): Added ability to delete keys by last modified time

* (operator/s3.py): changed the import class to datetime and moved it to TYPE_CHECKING section

* (utils/helpers.py): added at_least_one function

* (operators/s3.py): changed validations to use at_least_one helper

* (operators/s3.py): changed validation of given variables in init and execute

* (operators/s3.py): changed validation of given variables in init and execute

---------

Co-authored-by: idantepper <idantepper@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:providers provider:amazon-aws AWS/Amazon - related issues
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants