Skip to content
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

Fix watch error message for git components #713

Merged
merged 1 commit into from
Sep 11, 2018

Conversation

mik-dass
Copy link
Contributor

@mik-dass mik-dass commented Sep 10, 2018

fixes #665

A new error message is introduced for cases where 'watch' is initiated on a git component.

@cdrage
Copy link
Member

cdrage commented Sep 10, 2018

@mik-dass You need to add descriptive messages to your PR's as well as Git commit messages. Describe the issue as well as why the fix is needed 👍

After you've updated that (git commit --amend as well), this code LGTM!

Copy link
Member

@syamgk syamgk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, lets merge once you add description to commit message

Copy link
Contributor

@surajnarwade surajnarwade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 😄

A new error message is introduced for cases where 'watch' is initiated on a git component.

Signed-off-by: mdas <mrinald7@gmail.com>
@mik-dass
Copy link
Contributor Author

mik-dass commented Sep 11, 2018

@cdrage Done. I also added a only after local components

@cdrage
Copy link
Member

cdrage commented Sep 11, 2018

LGTM! 👍

@cdrage cdrage merged commit c2990d6 into redhat-developer:master Sep 11, 2018
checkError(err, "Unable to get source for %s component.", componentName)

if sourceType != "binary" && sourcePath != "local" {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❗️ ❗️ ❗️
I think you wanted:
sourceType != "binary" && sourceType != "local"
not:
sourceType != "binary" && sourcePath != "local"

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah! Sorry my bad

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That happens, no worries.

What is disappointing is that no one bothered to run and test this manually, not one of 3 people
that reviewed and approved this and apparently not even you who wrote it :-(

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry again. I tested locally but only some of the negative cases as it was a small fix. Will be careful in the future.

mik-dass added a commit to mik-dass/odo that referenced this pull request Oct 17, 2018
A new error message is introduced for cases where 'watch' is initiated on a git component.

Signed-off-by: mdas <mrinald7@gmail.com>
@mik-dass mik-dass deleted the fix_watch branch October 18, 2018 08:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

odo watch fails for component created as `odo create comp-name --git http://github.com/user/repo
5 participants