-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
schemadiff
textual annotation fix + tests
#17630
base: main
Are you sure you want to change the base?
schemadiff
textual annotation fix + tests
#17630
Conversation
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
Review ChecklistHello reviewers! 👋 Please follow this checklist when reviewing this Pull Request. General
Tests
Documentation
New flags
If a workflow is added or modified:
Backward compatibility
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17630 +/- ##
==========================================
- Coverage 67.64% 67.63% -0.01%
==========================================
Files 1586 1586
Lines 255629 255646 +17
==========================================
+ Hits 172910 172918 +8
- Misses 82719 82728 +9 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Shlomi Noach <2607934+shlomi-noach@users.noreply.github.com>
switch { | ||
case annotatedText.typ == AddedTextualAnnotationType: | ||
annotatedText.text = "+" + annotatedText.text | ||
case RemovedTextualAnnotationType: | ||
case annotatedText.typ == RemovedTextualAnnotationType: | ||
annotatedText.text = "-" + annotatedText.text | ||
case a.hasAnyChanges: | ||
// This text is unchanged, but indented to align with changes | ||
annotatedText.text = " " + annotatedText.text | ||
default: | ||
// text unchanged | ||
if a.hasAnyChanges { | ||
// If there is absolutely no change, we don't add a space anywhere | ||
annotatedText.text = " " + annotatedText.text | ||
} | ||
// If there is absolutely no change, we don't add a space anywhere |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change here is merely beautifying the switch
statement flow and there is no logic change.
Description
This PR adds one fix to
RENAME KEY
annotation, and adds full annotation coverage in all relevant tests (thus far annotations were only tested for selected cases; from now on this is mandatory for all relevant tests).Related Issue(s)
schemadiff
to produce textual diff #15387schemadiff
: supporting textual diff #15388Checklist
Deployment Notes