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

Various small fixes #255

Merged
merged 7 commits into from
Aug 21, 2019
Merged

Various small fixes #255

merged 7 commits into from
Aug 21, 2019

Conversation

sleshchenko
Copy link
Contributor

What does this PR do?

It contains some minor fixes that are separate by self-describing commits.
Here I'm adding some context to some of them:

  1. fix: fix formatting in ts files
    It's a pretty weird thing when you modify a few lines in a file, use Format document feature and some extra lines are modified as well with formatting fixes only.
    I performing formatting of code, and hopefully, if everyone won't merge unformatted code, then we won't get such situation anymore.
    I tried to automate a process of formatting but failed because of the following issues
    Incorrect (potentially) indentation of function arguments spanning multiple lines microsoft/TypeScript#11629
    Weird formatting indentation vvakame/typescript-formatter#118

  2. fix: Fixes checking if Che Server is available
    isCheServerReady method requires che URL and at the same time checks if namespace already exists.
    And CheURL is supposed to be fetched with a dedicated method that requests resources from k8s/OS API, and it does not check che namespace exists.
    I believe that namespace existence is moved in the right place in the fix.

What issues does this PR fix or reference?

I've found these issues during work on #77
And created a separate PR to make review easier.

Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
src/commands/workspace/start.ts Outdated Show resolved Hide resolved
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
Signed-off-by: Sergii Leshchenko <sleshche@redhat.com>
@sleshchenko
Copy link
Contributor Author

I'm merging this PR since other changes depend on that but Dear Reviewers feel free to comment after the merge and I will create another PR with fixes.

@sleshchenko sleshchenko merged commit 77cf46b into che-incubator:master Aug 21, 2019
@sleshchenko sleshchenko deleted the fixes branch August 21, 2019 10:01
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.

2 participants