-
Notifications
You must be signed in to change notification settings - Fork 83
NC | lifecycle | add newer noncurrent versions rule #8949
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
NC | lifecycle | add newer noncurrent versions rule #8949
Conversation
80e457f
to
4e8cce9
Compare
4e8cce9
to
d0812c8
Compare
91b22d3
to
a7a2dd8
Compare
a7a2dd8
to
c4d2e56
Compare
42ee938
to
995cba6
Compare
995cba6
to
0cd81c4
Compare
} else { | ||
rule_state.is_finished = true; | ||
} | ||
const bucket_state = this.lifecycle_run_status.buckets_statuses[bucket_json.name].state; |
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.
not necessarily on this PR if you don't want, I think we can move the accumulation of num_processed_objects to update_status(), can you add it as a gap?
* @returns {Promise<Object[]>} | ||
*/ | ||
async get_candidates_by_expiration_rule_posix(lifecycle_rule, bucket_json, object_sdk) { | ||
const rule_state = this.lifecycle_run_status.buckets_statuses[bucket_json.name].rules_statuses[lifecycle_rule.id].state.expire; |
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.
seems like my GPFS code is not aligned with the state.expire change,
let's talk on our meeting today what we need to do there
Signed-off-by: nadav mizrahi <[email protected]>
0cd81c4
to
800a847
Compare
Describe the Problem
add lifecycle rule to delete noncurrent objects based on number of newer version. save progress in state struck to enable work in batches. change the state structure to enable working on both expire and noncurrent actions in the same rule
Explain the Changes
load_versions_list
andload_object_list
Gaps
Testing Instructions:
sudo npx jest test_nc_lifecycle_cli