blob: introduce conditional write option for storage#3533
blob: introduce conditional write option for storage#3533vangent merged 1 commit intogoogle:masterfrom
Conversation
|
Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA). View this failed invocation of the CLA check for more information. For the most up to date status, view the checks section at the bottom of the pull request. |
cae6693 to
49d8bce
Compare
vangent
left a comment
There was a problem hiding this comment.
Can you add a drivertest that exercises this new feature?
It'll be tricky for you to verify on GCP/Azure/AWS, but you should be able to get it working with memblob and fileblob. Once you've done that, you can comment it out, we can get this merged, and then I can generate the goldens for the GCP/Azure/AWS packages.
d2fdaeb to
4114b43
Compare
8e5a572 to
69616e7
Compare
|
Thanks @vangent for the quick feedback. I have provided the implementation for the Following your suggestion, I ran the tests for the Let me know if there is anything else that needs to be fixed. |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3533 +/- ##
==========================================
- Coverage 70.55% 70.47% -0.09%
==========================================
Files 113 113
Lines 14347 14382 +35
==========================================
+ Hits 10123 10135 +12
- Misses 3497 3515 +18
- Partials 727 732 +5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
69616e7 to
6d9598f
Compare
This commit introduces support for conditional writes. It does so my adding a new write options: IfNotExist. When set to true, conditions are set for each driver to enable the desired behavior.
6d9598f to
2b8057c
Compare
|
For future reference, please don't rebase/force-push. It makes it so I have to review the whole PR again every time rather than just the commits/changes since my last review. |
|
Thanks for the contribution! |
This commit introduces support for conditional writes for major cloud providers: aws, gcp, azure.
It does so by adding a new write options:
IfNotExist.When set to true, conditions are set for each cloud storage driver to enable the desired behavior.
Addresses #3518