Skip to content

Provide keybinding for Login, push and refresh commands#835

Merged
dgolovin merged 4 commits intoredhat-developer:masterfrom
sudhirverma:820
Jun 11, 2019
Merged

Provide keybinding for Login, push and refresh commands#835
dgolovin merged 4 commits intoredhat-developer:masterfrom
sudhirverma:820

Conversation

@sudhirverma
Copy link
Copy Markdown
Contributor

@sudhirverma sudhirverma commented May 2, 2019

Fix: #820

@codecov
Copy link
Copy Markdown

codecov bot commented May 2, 2019

Codecov Report

Merging #835 into master will decrease coverage by 0.15%.
The diff coverage is 76.92%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #835      +/-   ##
==========================================
- Coverage   93.43%   93.27%   -0.16%     
==========================================
  Files          23       23              
  Lines        1416     1428      +12     
  Branches      234      235       +1     
==========================================
+ Hits         1323     1332       +9     
- Misses         93       96       +3
Impacted Files Coverage Δ
src/extension.ts 76.56% <100%> (+0.18%) ⬆️
src/openshift/component.ts 98.42% <75%> (-1.58%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0146d70...935b3e7. Read the comment docs.

Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread package.json Outdated
Comment thread src/openshift/component.ts Outdated
if (!component) return null;
Component.odo.executeInTerminal(Command.pushComponent(component.getParent().getParent().getName(), component.getParent().getName(), component.getName()));
const getPushCmd = await Component.getPushCmd();
if (getPushCmd && !context) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

With this check in place there is no way to use push command from command palette. After first push it will always push the same component until context menu for component in tree is used.
You need to create new command 'OpenShift: Repeat last push command'.

Comment thread src/openshift/component.ts Outdated
"In which Application you want to push the changes",
"For which Component you want to push the changes");
if (!component) return null;
Component.setPushCmd(component.getName(), component.getParent().getName(), component.getParent().getParent().getName());
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

You should be just saving

() => {
    Component.odo.executeInTerminal(Command.pushComponent(component.getParent().getParent().getName(), component.getParent().getName(), component.getName()));
}

here.

@sudhirverma sudhirverma requested a review from dgolovin June 7, 2019 10:18
@dgolovin
Copy link
Copy Markdown
Collaborator

Issue: #820

@sudhirverma please use: Fix #820 description instead, so merging the PR would automatically close the issue.

@dgolovin dgolovin merged commit f0c9a17 into redhat-developer:master Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Provide keybinding for all the commands

2 participants