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
change "from" to "to" for odo link #2334
change "from" to "to" for odo link #2334
Conversation
Hi @danielhelfand. Thanks for your PR. I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
It was probably done like this to to safe some coding, but now this is just complicating the messaging :-(
Now this doesn't look right to me. But the original message in We might have to split the messages into two independent messages. switch operationName {
case "link":
log.Successf("%s %s has been successfully linked to the component %s\n", linkType, o.suppliedName, o.Component())
case "unlink":
log.Successf("%s %s has been successfully unlinked from the component %s\n", linkType, o.suppliedName, o.Component())
default:
return fmt.Errorf("unknwon operation %s", operationName)
} |
/approve @danielhelfand thank you for helping us making odo much more understandable. |
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.
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cdrage, kadel The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/lgtm |
What kind of PR is this?
/kind cleanup
What does does this PR do / why we need it:
Changes successful
odo link
message fromComponent backend has been successfully linked from the component frontend
to
Component backend has been successfully linked to the component frontend
This reads a lot more clearly since information is being shared from the first component as part of
odo link
. The current implementation makes it sound as if information is coming from the component specified via the--component
flag or via the context being worked in.Looking for advice on whatever
operationName
options are available that could potentially not work with this message. Link was the only option considered here.Which issue(s) this PR fixes:
None