-
Notifications
You must be signed in to change notification settings - Fork 361
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 breaking change] add prefix change indicator #4403
Conversation
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.
Thanks! Some questions & comments:
- Does the UI support it out of the box? I think we should at least introduce new colouring to changed prefixes to differentiate them from changed objects.
- We need some testing (new or modify existing) that validates the new behaviour.
- I think we should make the documentation changes in this PR, Docs: Explain metadata operations costs and affects better #4070 is a whole different issue (although it involves docs too..).
pkg/api/transform.go
Outdated
@@ -14,6 +14,8 @@ func transformDifferenceTypeToString(d catalog.DifferenceType) string { | |||
return "changed" | |||
case catalog.DifferenceTypeConflict: | |||
return "conflict" | |||
case catalog.DifferenceTypePrefixChanged: | |||
return "prefix changed" |
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.
return "prefix changed" | |
return "changes under prefix" |
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
@itaiad200 - please, no more colors in the diff screen. The UI shows a folder icon, indicating that this is a prefix and not a single object. I would argue that this enough. |
|
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.
LGTM
Please change the hover message on the directory symbol
closes #4068
documentation will be added as part of #4070
I'm open to better suggestions for a name to indicate prefix change