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

api: Fix duplicate tag bug. #1074

Merged
merged 2 commits into from
Aug 29, 2023
Merged

api: Fix duplicate tag bug. #1074

merged 2 commits into from
Aug 29, 2023

Conversation

manolama
Copy link
Contributor

It was possible to provide a list of Tags to an ArrayTagSet with duplicate values. The duplicates would not be de-duped at merge time if the duplicate keys in the list were lexically less than that of existing tags. Merge now checks the last written tag value to make sure we don't write a duplicate key.

It was possible to provide a list of `Tag`s to an `ArrayTagSet` with duplicate
values. The duplicates would not be de-duped at merge time if the duplicate keys in
the list were lexically less than that of existing tags. Merge now checks the last
written tag value to make sure we don't write a duplicate key.
@brharrington brharrington added this to the 1.6.10 milestone Aug 29, 2023
Copy link
Contributor

@brharrington brharrington left a comment

Choose a reason for hiding this comment

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

I adjusted the fix a bit so it would have consistent behavior with the other condition and prefer the last value for a given key.

@brharrington brharrington merged commit 8d8e2b5 into Netflix:main Aug 29, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants