8000 chore(policy): add policiesMapByName to Policies by geyslan · Pull Request #3956 · aquasecurity/tracee · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

chore(policy): add policiesMapByName to Policies #3956

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

Merged
merged 1 commit into from
Apr 4, 2024

Conversation

geyslan
Copy link
Member
@geyslan geyslan commented Apr 3, 2024

1. Explain what the PR does

043d031 chore(policy): add policiesMapByName to Policies

- Introduce policiesMapByName to speed up LookupByName() and support
  Add(), Set() and Remove().
- Reintroduce PolicyAlreadyExistsError with different signature.
- Add() now checks against already existing policy name.
- Set() now only overwrites if name and ID of the given policy are
  identical.
- Add count() to be used internally.

Signed-off-by: Geyslan Gregório <geyslan@gmail.com>

2. Explain how to test it

3. Other comments

chore(policy): add policiesMapByName to Policies < 8000 button aria-expanded="false" type="button" data-view-component="true" class="ellipsis-expander js-details-target btn"> …
- Introduce policiesMapByName to speed up LookupByName() and support
  Add(), Set() and Remove().
- Reintroduce PolicyAlreadyExistsError with different signature.
- Add() now checks against already existing policy name.
- Set() now only overwrites if name and ID of the given policy are
  identical.
- Add count() to be used internally.

Signed-off-by: Geyslan Gregório <geyslan@gmail.com>
@geyslan geyslan requested a review from NDStrahilevitz April 3, 2024 21:35
@geyslan geyslan self-assigned this Apr 3, 2024
@geyslan geyslan requested a review from yanivagman April 3, 2024 21:35
Copy link
Collaborator
@yanivagman yanivagman left a comment

Choose a reason for hiding this comment

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

LGTM

@geyslan geyslan merged commit b2ff1fe into aquasecurity:main Apr 4, 2024
@geyslan geyslan deleted the policies-by-name branch June 28, 2024 18:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0