Skip to content

Commit

Permalink
ARSN-218: enable lifecycle noncurrent version transition
Browse files Browse the repository at this point in the history
  • Loading branch information
alexanderchan-scality committed May 28, 2022
1 parent e95d07a commit 15f0753
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
2 changes: 2 additions & 0 deletions lib/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,8 @@ export const supportedLifecycleRules = [
'expiration',
'noncurrentVersionExpiration',
'abortIncompleteMultipartUpload',
'transitions',
'noncurrentVersionTransition',
];
// Maximum number of buckets to cache (bucket metadata)
export const maxCachedBuckets = process.env.METADATA_MAX_CACHED_BUCKETS ?
Expand Down
6 changes: 0 additions & 6 deletions lib/models/LifecycleConfiguration.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,12 +216,6 @@ class LifecycleConfiguration {
*/
_parseRule(rule) {
const ruleObj = {};
if (rule.NoncurrentVersionTransition) {
ruleObj.error = errors.NotImplemented.customizeDescription(
'NoncurrentVersionTransition lifecycle action not yet ' +
'implemented');
return ruleObj;
}
// Either Prefix or Filter must be included, but can be empty string
if ((!rule.Filter && rule.Filter !== '') &&
(!rule.Prefix && rule.Prefix !== '')) {
Expand Down

0 comments on commit 15f0753

Please sign in to comment.