Skip to content
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/arsn 363 retention day condition #2191

Merged
merged 3 commits into from
Dec 26, 2023

Conversation

KazToozs
Copy link

@KazToozs KazToozs commented Dec 8, 2023

In conjunction with CLDSRV-436 this PR adds bucket policy condition handling for IP limiting and Object lock retention day limiting.

@bert-e
Copy link
Contributor

bert-e commented Dec 8, 2023

Hello kaztoozs,

My role is to assist you with the merge of this
pull request. Please type @bert-e help to get information
on this process, or consult the user documentation.

Status report is not available.

@bert-e
Copy link
Contributor

bert-e commented Dec 8, 2023

Incorrect fix version

The Fix Version/s in issue ARSN-363 contains:

  • 7.70.13

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.10.51

  • 7.70.15

  • 8.1.116

Please check the Fix Version/s of ARSN-363, or the target
branch of this pull request.

@KazToozs KazToozs marked this pull request as ready for review December 13, 2023 16:42
@bert-e
Copy link
Contributor

bert-e commented Dec 13, 2023

Incorrect fix version

The Fix Version/s in issue ARSN-363 contains:

  • 7.10.50

  • 7.70.13

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.10.51

  • 7.70.15

  • 8.1.116

Please check the Fix Version/s of ARSN-363, or the target
branch of this pull request.

@KazToozs KazToozs requested a review from anurag4DSB December 13, 2023 16:47
@bert-e
Copy link
Contributor

bert-e commented Dec 13, 2023

Incorrect fix version

The Fix Version/s in issue ARSN-363 contains:

  • 7.10.51

  • 7.70.14

  • 8.1.116

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.10.51

  • 7.70.15

  • 8.1.116

Please check the Fix Version/s of ARSN-363, or the target
branch of this pull request.

@anurag4DSB anurag4DSB requested a review from tmacro December 14, 2023 13:14
@bert-e
Copy link
Contributor

bert-e commented Dec 14, 2023

Incorrect fix version

The Fix Version/s in issue ARSN-363 contains:

  • 7.10.52

  • 7.70.14

  • 8.1.117

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.10.52

  • 7.70.16

  • 8.1.117

Please check the Fix Version/s of ARSN-363, or the target
branch of this pull request.

Copy link
Contributor

@benzekrimaha benzekrimaha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Contributor

@anurag4DSB anurag4DSB left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, worth updating package.json
Feel free to message me once you have it, I will review that as well.

@KazToozs KazToozs force-pushed the improvement/ARSN-363-retention-day-condition branch 2 times, most recently from c4c9b0d to fac2d1d Compare December 15, 2023 10:23
@anurag4DSB
Copy link
Contributor

ping

@bert-e
Copy link
Contributor

bert-e commented Dec 15, 2023

Request integration branches

Waiting for integration branch creation to be requested by the user.

To request integration branches, please comment on this pull request with the following command:

/create_integration_branches

Alternatively, the /approve and /create_pull_requests commands will automatically
create the integration branches.

@anurag4DSB
Copy link
Contributor

/create_integration_branches

@bert-e
Copy link
Contributor

bert-e commented Dec 15, 2023

Conflict

A conflict has been raised during the creation of
integration branch w/7.70/improvement/ARSN-363-retention-day-condition with contents from improvement/ARSN-363-retention-day-condition
and development/7.70.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 $ git fetch
 $ git checkout -B w/7.70/improvement/ARSN-363-retention-day-condition origin/development/7.70
 $ git merge origin/improvement/ARSN-363-retention-day-condition
 $ # <intense conflict resolution>
 $ git commit
 $ git push -u origin w/7.70/improvement/ARSN-363-retention-day-condition

The following options are set: create_integration_branches

@KazToozs
Copy link
Author

ping

@bert-e
Copy link
Contributor

bert-e commented Dec 15, 2023

Conflict

A conflict has been raised during the creation of
integration branch w/8.1/improvement/ARSN-363-retention-day-condition with contents from w/7.70/improvement/ARSN-363-retention-day-condition
and development/8.1.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 $ git fetch
 $ git checkout -B w/8.1/improvement/ARSN-363-retention-day-condition origin/development/8.1
 $ git merge origin/w/7.70/improvement/ARSN-363-retention-day-condition
 $ # <intense conflict resolution>
 $ git commit
 $ git push -u origin w/8.1/improvement/ARSN-363-retention-day-condition

The following options are set: create_integration_branches

@KazToozs
Copy link
Author

ping

@bert-e
Copy link
Contributor

bert-e commented Dec 15, 2023

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

The following options are set: create_integration_branches

@KazToozs
Copy link
Author

/create_pull_requests

@bert-e
Copy link
Contributor

bert-e commented Dec 15, 2023

Integration data created

I have created the integration data for the additional destination branches.

The following branches will NOT be impacted:

  • development/6.4
  • development/7.4

Follow integration pull requests if you would like to be notified of
build statuses by email.

The following options are set: create_pull_requests, create_integration_branches

@bert-e
Copy link
Contributor

bert-e commented Dec 15, 2023

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

The following options are set: create_pull_requests, create_integration_branches


return days;
}
this._days = validTime.timeType === 'years' ? getDaysForYears(validTime.timeValue) : validTime.timeValue;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can it be tested?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see this

@@ -36,6 +36,7 @@ export type ParsedRetention =
export default class ObjectLockConfiguration {
_parsedXml: any;
_config: Config;
_days: number | null;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how/where _days is being used?

Copy link
Author

@KazToozs KazToozs Dec 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was initially added for cases where the object lock configuration retention length would need to be checked, such as the intended epic objective:

Update putBucketObjectLockConfig to check for the bucket policy and prevent setting retention period outside of the allowed limit of bucket policy

This proved to not be AWS standard, and as such this addition is indeed not used anywhere. I have removed the changes to this file, and updated the CS PR. It is passing, both in CI and hand testing.
Good catch!

@KazToozs KazToozs force-pushed the improvement/ARSN-363-retention-day-condition branch from feb89ea to 62736ab Compare December 21, 2023 16:25
@bert-e
Copy link
Contributor

bert-e commented Dec 21, 2023

History mismatch

Merge commit #9ec66b779b811f624408cb4487516554a8179979 on the integration branch
w/7.70/improvement/ARSN-363-retention-day-condition is merging a branch which is neither the current
branch improvement/ARSN-363-retention-day-condition nor the development branch
development/7.70.

It is likely due to a rebase of the branch improvement/ARSN-363-retention-day-condition and the
merge is not possible until all related w/* branches are deleted or updated.

Please use the reset command to have me reinitialize these branches.

The following options are set: create_pull_requests, create_integration_branches

@KazToozs
Copy link
Author

/reset

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

Reset complete

I have successfully deleted this pull request's integration branches.

The following options are set: create_pull_requests, create_integration_branches

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

Incorrect fix version

The Fix Version/s in issue ARSN-363 contains:

  • 7.10.53

  • 7.70.17

  • 8.1.118

Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:

  • 7.10.53

  • 7.70.18

  • 8.1.118

Please check the Fix Version/s of ARSN-363, or the target
branch of this pull request.

The following options are set: create_pull_requests, create_integration_branches

@KazToozs
Copy link
Author

ping

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

Conflict

A conflict has been raised during the creation of
integration branch w/7.70/improvement/ARSN-363-retention-day-condition with contents from improvement/ARSN-363-retention-day-condition
and development/7.70.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 $ git fetch
 $ git checkout -B w/7.70/improvement/ARSN-363-retention-day-condition origin/development/7.70
 $ git merge origin/improvement/ARSN-363-retention-day-condition
 $ # <intense conflict resolution>
 $ git commit
 $ git push -u origin w/7.70/improvement/ARSN-363-retention-day-condition

The following options are set: create_pull_requests, create_integration_branches

@KazToozs
Copy link
Author

ping

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

Conflict

A conflict has been raised during the creation of
integration branch w/8.1/improvement/ARSN-363-retention-day-condition with contents from w/7.70/improvement/ARSN-363-retention-day-condition
and development/8.1.

I have not created the integration branch.

Here are the steps to resolve this conflict:

 $ git fetch
 $ git checkout -B w/8.1/improvement/ARSN-363-retention-day-condition origin/development/8.1
 $ git merge origin/w/7.70/improvement/ARSN-363-retention-day-condition
 $ # <intense conflict resolution>
 $ git commit
 $ git push -u origin w/8.1/improvement/ARSN-363-retention-day-condition

The following options are set: create_pull_requests, create_integration_branches

@KazToozs
Copy link
Author

ping

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

Integration data created

I have created the integration data for the additional destination branches.

The following branches will NOT be impacted:

  • development/6.4
  • development/7.4

Follow integration pull requests if you would like to be notified of
build statuses by email.

The following options are set: create_pull_requests, create_integration_branches

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

Waiting for approval

The following approvals are needed before I can proceed with the merge:

  • the author

  • 2 peers

The following options are set: create_pull_requests, create_integration_branches

@KazToozs
Copy link
Author

/approve

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

In the queue

The changeset has received all authorizations and has been added to the
relevant queue(s). The queue(s) will be merged in the target development
branch(es) as soon as builds have passed.

The changeset will be merged in:

  • ✔️ development/7.10

  • ✔️ development/7.70

  • ✔️ development/8.1

The following branches will NOT be impacted:

  • development/6.4
  • development/7.4

There is no action required on your side. You will be notified here once
the changeset has been merged. In the unlikely event that the changeset
fails permanently on the queue, a member of the admin team will
contact you to help resolve the matter.

IMPORTANT

Please do not attempt to modify this pull request.

  • Any commit you add on the source branch will trigger a new cycle after the
    current queue is merged.
  • Any commit you add on one of the integration branches will be lost.

If you need this pull request to be removed from the queue, please contact a
member of the admin team now.

The following options are set: approve, create_pull_requests, create_integration_branches

@KazToozs
Copy link
Author

ping

@bert-e
Copy link
Contributor

bert-e commented Dec 26, 2023

I have successfully merged the changeset of this pull request
into targetted development branches:

  • ✔️ development/7.10

  • ✔️ development/7.70

  • ✔️ development/8.1

The following branches have NOT changed:

  • development/6.4
  • development/7.4

Please check the status of the associated issue ARSN-363.

Goodbye kaztoozs.

@bert-e bert-e merged commit 45cc4aa into development/7.10 Dec 26, 2023
5 checks passed
@bert-e bert-e deleted the improvement/ARSN-363-retention-day-condition branch December 26, 2023 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants