✨(CLDSRV-813) update CloudServer XML ListObjectsV2 to support optional attributes#6043
✨(CLDSRV-813) update CloudServer XML ListObjectsV2 to support optional attributes#6043DarkIsDude wants to merge 11 commits intodevelopment/9.1from
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files
@@ Coverage Diff @@
## development/9.1 #6043 +/- ##
===================================================
- Coverage 83.81% 83.79% -0.02%
===================================================
Files 191 191
Lines 12328 12350 +22
===================================================
+ Hits 10333 10349 +16
- Misses 1995 2001 +6
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
1fde211 to
a8eba02
Compare
| for (const version of versions) { | ||
| if (version.value) { | ||
| version.value.uploadId = undefined; | ||
| version.value.restoreStatus = undefined; |
There was a problem hiding this comment.
why do we need to clear RestoreStatus from all of these tests?
RestoreStatus is only set by cold storage, so will not be set in most case : so seems best to keep this "as is" and handle the cold-storage tests
There was a problem hiding this comment.
The issue is that we call directly metadata.listObject in tests. Regarding arsenal PR, the restoreStatus attribute will be returned as soon as we have an archive field.
And we have a diff. The issue is that the versionBefore do a fakeMetadataArchive that update the object. So the version before contains it. This is not done in the second one (versionAfter) and so we have this diff. Regarding the test, that make sense and our API don't change, here we have this diff just because we don't call our API but internal arsenal function.
|
|
||
| for (const version of versions) { | ||
| if (version.value) { | ||
| version.value.restoreStatus = undefined; |
There was a problem hiding this comment.
why do we need to clear RestoreStatus in every test?
all APIs should behave the same as before, so you should not need to tweak the tests
(and resetting restoreStatus may be expected -if anywhere- only in tests where you do actually invoke the list object v2 api with optional attributes)
3711fb9 to
037e011
Compare
0d9a18a to
3ceb257
Compare
9872996 to
ccaf400
Compare
…e and switch to a subobject usermetadata Issue: CLDSRV-813
62c1ce8 to
66a8264
Compare
Hello darkisdude,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
|
/create_pull_requests |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: git fetch
git checkout -B w/9.2/feature/CLDSRV-813/optional-attributes-response origin/development/9.2
git merge origin/feature/CLDSRV-813/optional-attributes-response
# <intense conflict resolution>
git commit
git push -u origin w/9.2/feature/CLDSRV-813/optional-attributes-responseThe following options are set: create_pull_requests |
ConflictA conflict has been raised during the creation of I have not created the integration branch. Here are the steps to resolve this conflict: git fetch
git checkout -B w/9.3/feature/CLDSRV-813/optional-attributes-response origin/development/9.3
git merge origin/w/9.2/feature/CLDSRV-813/optional-attributes-response
# <intense conflict resolution>
git commit
git push -u origin w/9.3/feature/CLDSRV-813/optional-attributes-responseThe following options are set: create_pull_requests |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
Follow integration pull requests if you would like to be notified of The following options are set: create_pull_requests |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_pull_requests |
Related issues
https://scality.atlassian.net/browse/CLDSRV-813