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

fix: policy key is not GC while a expired policy is GC #511

Merged
merged 5 commits into from
Oct 30, 2023

Conversation

alexgao001
Copy link
Collaborator

@alexgao001 alexgao001 commented Oct 27, 2023

Description

When a account policy is expired, it should be automatically removed from the store with these two mappings:

  1. policyId -> policy
  2. policyKey -> policyId

currently policyKey -> policyId is missing so that user would fail to re-put policy on the same resource.

When a group policy expired, also need to remove it from the policyGroup.

Rationale

tell us why we need these changes...

Example

add an example CLI or API response...

Changes

Notable changes:

  • add each change in a bullet point here
  • ...

Copy link
Collaborator

@unclezoro unclezoro left a comment

Choose a reason for hiding this comment

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

Need more discussion

Copy link
Contributor

@fynnss fynnss left a comment

Choose a reason for hiding this comment

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

LGTM

@alexgao001 alexgao001 force-pushed the fix-delete-policy-key branch 2 times, most recently from 78a87c9 to 151dfa5 Compare October 27, 2023 10:14
@unclezoro unclezoro added this pull request to the merge queue Oct 30, 2023
Merged via the queue into bnb-chain:develop with commit 7fd7122 Oct 30, 2023
5 checks passed
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.

4 participants