-
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: ViewDependencyUnresolvedError
lists missing referenced entities
#17711
schemadiff: ViewDependencyUnresolvedError
lists missing referenced entities
#17711
Conversation
…tities Signed-off-by: Shlomi Noach <[email protected]>
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
|
s := make([]string, len(e.MissingReferencedEntities)) | ||
for i, entity := range e.MissingReferencedEntities { | ||
s[i] = sqlescape.EscapeID(entity) | ||
} |
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.
If we do this loop, we can already add them to a buffer here as well?
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.
How do you mean add them to a buffer?
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.
Something like this (not actually validated, but for the idea):
var buf strings.Builder
for i, entity := range e.MissingReferencedEntities {
if i > 0 {
buf.WriteString(", ")
}
sqlescape.WriteEscapeID(&buf, entity)
}
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.
done
Signed-off-by: Shlomi Noach <[email protected]>
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #17711 +/- ##
=======================================
Coverage 67.97% 67.98%
=======================================
Files 1586 1586
Lines 255218 255173 -45
=======================================
- Hits 173494 173477 -17
+ Misses 81724 81696 -28 ☔ View full report in Codecov by Sentry. |
Signed-off-by: Dirkjan Bussink <[email protected]>
Description
An enhancement to
ViewDependencyUnresolvedError
, which is now more detailed and lists the names of missing referenced entities.Related Issue(s)
#10203
Checklist
Deployment Notes