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

Definition Diffs: Only emit annotation changes for hash changes #5269

Merged
merged 2 commits into from
Aug 9, 2024

Conversation

ChrisPenner
Copy link
Contributor

Overview

In a definition diff we tag changes where only the hash changed differently by emitting an annotationChange; but previously we would emit one for ANY annotation changes, even if the annotations were completely unrelated things. This restricts it so we only treat something as an annotation change if it's a hash change.

Implementation notes

When collapsing annotation changes, check that both annotations are hashy syntax elements beforehand.

Interesting/controversial decisions

Nah not really, talked it over with @hojberg

Test coverage

Added a regression test containing one of the examples where this got weird.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These definition diffs are BIG lol.

@ChrisPenner ChrisPenner force-pushed the cp/restrict-annotation-changes-in-diffs branch from 814d4a8 to c341cc4 Compare August 9, 2024 17:58
@aryairani aryairani merged commit 096aeea into trunk Aug 9, 2024
35 checks passed
@aryairani aryairani deleted the cp/restrict-annotation-changes-in-diffs branch August 9, 2024 18:57
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.

3 participants