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

Remove empty tag sets when flattening a buildable. #358

Merged
merged 1 commit into from
Apr 5, 2023

Conversation

copybara-service[bot]
Copy link

Remove empty tag sets when flattening a buildable.

While this is a trivial change from the perspective of what's being
serialized, this is quite important due to the use of __flatten__ powering
the diffing infrastructure. In particular, if a config has tag added, and
subsequently removed, it will now have an empty set associated with that
argument. Before this change, the diffing tooling will find that this
added-and-removed config is different than the one that never had the tag
set in the first place. This is naturally extremely confusing and also a
bug.

@copybara-service copybara-service bot force-pushed the test_521022964 branch 2 times, most recently from 9083843 to dc911bb Compare April 5, 2023 23:45
While this is a trivial change from the perspective of what's being
serialized, this is quite important due to the use of `__flatten__` powering
the diffing infrastructure. In particular, if a config has tag added, and
subsequently removed, it will now have an empty set associated with that
argument. Before this change, the diffing tooling will find that this
added-and-removed config is different than the one that never had the tag
set in the first place. This is naturally extremely confusing and also a
bug.

PiperOrigin-RevId: 522189292
@copybara-service copybara-service bot merged commit b565640 into main Apr 5, 2023
@copybara-service copybara-service bot deleted the test_521022964 branch April 5, 2023 23:49
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.

1 participant