-
Notifications
You must be signed in to change notification settings - Fork 2
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
Added replace_objects and replace_container_contents options #16
Conversation
attributes, | ||
base_cmd, | ||
put_timeout, | ||
files = get_file_info(directory, url_path_prefix) |
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.
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 used the same approach introduced in the original code, but the os.walk() part is now in a function since I need the file list more than once.
051af92
to
1d165c4
Compare
d8bbd63
to
299e8b5
Compare
6669724
to
0908e4e
Compare
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.
Looks OK. How about testing these parameters in our tests?
Please also mention #15, btw. |
@roman-khimov How do we want the action to behave by default with these flags? Right now the default behavior is to upload (old behavior) without deleting objects. |
The least surprising is likely |
0908e4e
to
38293a2
Compare
Fixes #2 and #15 Signed-off-by: MaxGelbakhiani <[email protected]>
e73ee4a
to
e64fd05
Compare
d5d1440
to
c4526d8
Compare
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 don't see a test that does REPLACE_CONTAINER_CONTENTS
.
Do we have a separate container tied to the current Github repo? Is it safe to rewrite the entire container? |
It's for tests only, it can be rewritten in any way. |
Signed-off-by: MaxGelbakhiani <[email protected]>
c4526d8
to
323706b
Compare
I've pushed tests with container contents replacement. The last 25 minutes test run is the one with deleting all the old objects in the container. |
Signed-off-by: MaxGelbakhiani <[email protected]>
Fixes #2 and #15