Skip to content

Change internal data structure in SecurityPolicyEnforcer#1171

Merged
anmaxvl merged 1 commit intomicrosoft:masterfrom
SeanTAllen:less-complicated-policy-container-index
Sep 21, 2021
Merged

Change internal data structure in SecurityPolicyEnforcer#1171
anmaxvl merged 1 commit intomicrosoft:masterfrom
SeanTAllen:less-complicated-policy-container-index

Conversation

@SeanTAllen
Copy link
Contributor

This commit changes the data structure that we use to track possible
GCS container ids for a given security policy container from an array
to a set.

Set is the correct data structure to represent our constraint of "id
should only appear once".

Additionally, it makes this tricky bit of code slightly easier to understand.

Signed-off-by: Sean T. Allen seanallen@microsoft.com

This commit changes the data structure that we use to track possible
GCS container ids for a given security policy container from an array
to a set.

Set is the correct data structure to represent our constraint of "id
should only appear once".

Additionally, it makes this tricky bit of code slightly easier to understand.

Signed-off-by: Sean T. Allen <seanallen@microsoft.com>
@SeanTAllen SeanTAllen requested a review from a team as a code owner September 21, 2021 13:13
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.

2 participants