]
Josef Kopriva updated JBIDE-25814:
----------------------------------
Sprint: devex #163 March 2019
Server adapter wizard: should preselected most recently used
connection, not simply the 1st in the list
-------------------------------------------------------------------------------------------------------
Key: JBIDE-25814
URL:
https://issues.jboss.org/browse/JBIDE-25814
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: openshift
Affects Versions: 4.5.3.AM2
Reporter: Andre Dietisheim
Assignee: Josef Kopriva
Priority: Major
Labels: server_adapter_wizard
Fix For: 4.11.0.Final
steps:
# ASSERT: have several connections in the OpenShift explorer (ex. CDK, OpenShift online)
# EXEC: launch new application wizard via File > New > Other > OpenShift >
OpenShift Application
# ASSERT: Connection selection page pops up
# EXEC: select your 2nd connection, get to the next page. But then, cancel the wizard,
dont get any further.
# EXEC: launch server adapter wizard via File > New > Other > Server >
OpenShift > OpenShift 3 Server adapter
# ASSERT: Connection selection page pops up
Result:
the connection selection page has the 1st connection selected, not the one that we used
most recently.
(If you use the application wizard again, you'll notice how it is using the 2nd
connection, the one that we used most recently)
Bonus: some wizards even inspect the currently selected element in the OpenShift Explorer
and deduce what they need. The server adapter wizard could inspect the resource that's
selected and infer the connection from it.