-
Notifications
You must be signed in to change notification settings - Fork 19
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
Improvement/bb 514 handle lifecycle rules #2548
base: development/8.7
Are you sure you want to change the base?
Improvement/bb 514 handle lifecycle rules #2548
Conversation
Hello benzekrimaha,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files
... and 1 file with indirect coverage changes
@@ Coverage Diff @@
## development/8.7 #2548 +/- ##
================================================
Coverage 69.40% 69.41%
================================================
Files 194 194
Lines 12792 12792
================================================
+ Hits 8878 8879 +1
+ Misses 3904 3903 -1
Partials 10 10
Flags with carried forward coverage won't be shown. Click here to find out more. |
ac34e2f
to
bdedb98
Compare
e70ec89
to
3bf7414
Compare
3bf7414
to
7b654e0
Compare
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
@@ -3,7 +3,6 @@ | |||
const async = require('async'); | |||
const { errors, versioning } = require('arsenal'); | |||
const { ObjectMD } = require('arsenal').models; |
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.
we need to create a ticket to remove this from Arsenal, eventually
(i.e. after we have migrated all branches to this new backbeat)
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.
Ticket created here => https://scality.atlassian.net/browse/ARSN-435
@@ -67,6 +67,13 @@ const joiSchema = joi.object({ | |||
coldStorageRestoreAdjustTopicPrefix: joi.string().default('cold-restore-adjust-req-'), | |||
coldStorageGCTopicPrefix: joi.string().default('cold-gc-req-'), | |||
coldStorageStatusTopicPrefix: joi.string().default('cold-status-'), | |||
supportedLifecycleRules: joi.array().items(joi.string()).default([ |
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.
we may also want to validate each item from this list : i.e. to ensure each value is indeed of the potentially supported rule type
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.
Joi.string().valid( | ||
'expiration', | ||
'noncurrentVersionExpiration', | ||
'abortIncompleteMultipartUpload', | ||
'transitions', | ||
'noncurrentVersionTransition' | ||
) | ||
).default([ | ||
'expiration', | ||
'noncurrentVersionExpiration', | ||
'abortIncompleteMultipartUpload', | ||
'transitions', | ||
'noncurrentVersionTransition', | ||
]), |
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.
Could this array be a constant in a single place?
Something like this (not tested)
Joi.string().valid( | |
'expiration', | |
'noncurrentVersionExpiration', | |
'abortIncompleteMultipartUpload', | |
'transitions', | |
'noncurrentVersionTransition' | |
) | |
).default([ | |
'expiration', | |
'noncurrentVersionExpiration', | |
'abortIncompleteMultipartUpload', | |
'transitions', | |
'noncurrentVersionTransition', | |
]), | |
Joi.string().valid(...supportedLifecycleRules) | |
).default(supportedLifecycleRules), |
56bdcc6
to
7b738ea
Compare
7b738ea
to
f953ffd
Compare
fca5311
to
45393de
Compare
@@ -150,6 +151,10 @@ const qpKafkaJoi = kafkaJoi.append({ | |||
replication: extensionKafkaJoi, | |||
}); | |||
|
|||
const supportedLifecycleRulesJoi = joi.array().items( |
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.
const supportedLifecycleRulesJoi = joi.array().items( | |
const supportedLifecycleRulesJoi = joi.array().items( |
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.
(maybe not very useful to store this one here if we only use it once, but the array can stay here)
Issue : BB-514