-
Notifications
You must be signed in to change notification settings - Fork 574
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
cmd,daemon: changes in api data to show components information #14097
cmd,daemon: changes in api data to show components information #14097
Conversation
if only components are going to be installed.
27afed4
to
b5f9a40
Compare
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.
did a first quick pass, a code org suggestion
apiData["components"] = map[string][]string{ | ||
instanceName: {compInfo.Component.ComponentName}, |
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 is the same format that we use as input in the new APIs right?
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.
Yes, this is correct
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.
@pedronis thanks, I've addressed your points now
apiData["components"] = map[string][]string{ | ||
instanceName: {compInfo.Component.ComponentName}, |
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.
Yes, this is correct
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.
nitpicks
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.
Thank you, just one tiny nitpick.
cmd/snap/cmd_snap_op.go
Outdated
// components. | ||
func (csd *changedSnapsData) changedSnaps() (names []string, notOnlyComps map[string]bool) { | ||
names = make([]string, 0, len(csd.comps)+len(csd.names)) | ||
notOnlyComps = map[string]bool{} |
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.
notOnlyComps = map[string]bool{} | |
notOnlyComps = make(map[string]bool, len(csd.names)) |
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
208d370
to
141f862
Compare
Addressed last comments and squashed commits now |
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
141f862
to
c2fa718
Compare
c2fa718
to
77d03c9
Compare
Changes to start send and processing components data on installation. With this we can show better messages on installation of a local component.