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

JBIDE-21701 - Enable port forwarding on a given pod and a given debug port #1015

Merged
merged 1 commit into from Mar 16, 2016
Merged

Conversation

xcoulon
Copy link
Member

@xcoulon xcoulon commented Mar 9, 2016

Refactored the PortForwardingWizardModel to move all the port-forwarding
core functionnalities in a new PortforwardingUtils class
in plugins/org.jboss.tools.openshift.core.
Refactored the PortForwardingWizardPage to use local variables instead
of fields for the widgets.

@fbricon
Copy link
Member

fbricon commented Mar 9, 2016

Any chance you can add some tests?

@xcoulon
Copy link
Member Author

xcoulon commented Mar 10, 2016

@fbricon I just updated the patch with a test class to cover the methods moved into the new PortForwardingUtils utility class.

updatePortForwardingAllowed();
}finally {
ConsoleUtils.deregisterConsoleListener(consoleListener);
final MessageConsole console = ConsoleUtils.findMessageConsole(getMessageConsoleName());
Copy link
Member

Choose a reason for hiding this comment

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

why was the try-catch block removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

My bad. I restored it.

@fbricon
Copy link
Member

fbricon commented Mar 15, 2016

Can you please rebase against 4.3.x so I can merge it?

@xcoulon
Copy link
Member Author

xcoulon commented Mar 16, 2016

@fbricon I rebase against 4.3.x and refactored a few other methods added in the mean time.

@fbricon
Copy link
Member

fbricon commented Mar 16, 2016

Find free local ports checkbox is always disabled now http://screencast.com/t/eKBFosQt9tiQ, that's a problem

… port

Refactored the PortForwardingWizardModel to move all the port-forwarding
 core functionnalities in a new PortforwardingUtils class
 in plugins/org.jboss.tools.openshift.core.
Refactored the PortForwardingWizardPage to use local variables instead
 of fields for the widgets.
@xcoulon
Copy link
Member Author

xcoulon commented Mar 16, 2016

@fbricon I pushed a new version of the patch that fixes this bug. Sorry about that :-/

@fbricon fbricon merged commit 97e2a37 into jbosstools:jbosstools-4.3.x Mar 16, 2016
org.apache.commons.io;bundle-version="2.2.0"
org.apache.commons.io;bundle-version="2.2.0",
org.eclipse.jdt.launching;bundle-version="3.8.0",
org.eclipse.jdt.launching.macosx;bundle-version="3.3.0";resolution:=optional
Copy link
Member

Choose a reason for hiding this comment

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

this caused jenkins to fail
'''
[ERROR] Cannot resolve project dependencies:
[ERROR] Software being installed: org.jboss.tools.openshift.test 3.2.0.qualifier
[ERROR] Missing requirement: org.jboss.tools.openshift.test 3.2.0.qualifier requires 'bundle org.eclipse.jdt.launching.macosx 3.3.0' but it could not be found
'''

Copy link
Member Author

Choose a reason for hiding this comment

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

@adietish please take a look at #1037 for a patch to this problem (since this PR was already merged)

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.

None yet

3 participants