[JBoss JIRA] (JBIDE-11903) Explorer: add Application start/stop/restart
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-11903?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-11903:
------------------------------------------
[~mlabuda] please test before we merge into maintenance branch.
> Explorer: add Application start/stop/restart
> ---------------------------------------------
>
> Key: JBIDE-11903
> URL: https://issues.jboss.org/browse/JBIDE-11903
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Affects Versions: 3.3.0.Beta2
> Environment: Eclipse plugin
> Reporter: Nam Duong
> Assignee: Marián Labuda
> Priority: Blocker
> Labels: explorer, new_and_noteworthy
> Fix For: 4.2.1.Final, 4.3.x
>
>
> The OpenShift Console view should contain controls for application start|stop|restart to match the functionality of the CLI. Currently, if you select Window->Show View->Others->OpenShift Express Console, then login in and select an application. The right-click menu doesn't have start|stop|restart so users have to either install the rhc client tools or ssh onto the OpenShift host gear.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 8 months
[JBoss JIRA] (JBIDE-11903) Explorer: add Application start/stop/restart
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-11903?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-11903:
-------------------------------------
Assignee: Marián Labuda (was: Max Rydahl Andersen)
> Explorer: add Application start/stop/restart
> ---------------------------------------------
>
> Key: JBIDE-11903
> URL: https://issues.jboss.org/browse/JBIDE-11903
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Affects Versions: 3.3.0.Beta2
> Environment: Eclipse plugin
> Reporter: Nam Duong
> Assignee: Marián Labuda
> Priority: Blocker
> Labels: explorer, new_and_noteworthy
> Fix For: 4.2.1.Final, 4.3.x
>
>
> The OpenShift Console view should contain controls for application start|stop|restart to match the functionality of the CLI. Currently, if you select Window->Show View->Others->OpenShift Express Console, then login in and select an application. The right-click menu doesn't have start|stop|restart so users have to either install the rhc client tools or ssh onto the OpenShift host gear.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 8 months
[JBoss JIRA] (JBIDE-18824) Server adapter: Remove replicated actions, use default actions instead
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18824?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-18824:
-------------------------------------
Estimated Difficulty: Medium
> Server adapter: Remove replicated actions, use default actions instead
> ----------------------------------------------------------------------
>
> Key: JBIDE-18824
> URL: https://issues.jboss.org/browse/JBIDE-18824
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.2.0.Final
> Reporter: Andre Dietisheim
> Fix For: 4.3.x
>
> Attachments: duplicate-application-actions.png
>
>
> In JBIDE-11903 we added Start and Stop to the Explorer and Server adapter. In the server adapter we already have default items for start, stop and restart. We should remove our items from the OpenShift submenu and use the default actions instead:
> !duplicate-application-actions.png!
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 8 months
[JBoss JIRA] (JBIDE-18824) Server adapter: Remove replicated actions, use default actions instead
by Andre Dietisheim (JIRA)
Andre Dietisheim created JBIDE-18824:
----------------------------------------
Summary: Server adapter: Remove replicated actions, use default actions instead
Key: JBIDE-18824
URL: https://issues.jboss.org/browse/JBIDE-18824
Project: Tools (JBoss Tools)
Issue Type: Enhancement
Components: openshift
Affects Versions: 4.2.0.Final
Reporter: Andre Dietisheim
Attachments: duplicate-application-actions.png
In JBIDE-11903 we added Start and Stop to the Explorer and Server adapter. In the server adapter we already have default items for start, stop and restart. We should remove our items from the OpenShift submenu and use the default actions instead:
!duplicate-application-actions.png!
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 8 months
[JBoss JIRA] (JBIDE-18824) Server adapter: Remove replicated actions, use default actions instead
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-18824?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-18824:
-------------------------------------
Attachment: duplicate-application-actions.png
> Server adapter: Remove replicated actions, use default actions instead
> ----------------------------------------------------------------------
>
> Key: JBIDE-18824
> URL: https://issues.jboss.org/browse/JBIDE-18824
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.2.0.Final
> Reporter: Andre Dietisheim
> Attachments: duplicate-application-actions.png
>
>
> In JBIDE-11903 we added Start and Stop to the Explorer and Server adapter. In the server adapter we already have default items for start, stop and restart. We should remove our items from the OpenShift submenu and use the default actions instead:
> !duplicate-application-actions.png!
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 8 months
[JBoss JIRA] (JBIDE-11903) Explorer: add Application start/stop/restart
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-11903?page=com.atlassian.jira.plugi... ]
Andre Dietisheim updated JBIDE-11903:
-------------------------------------
Fix Version/s: 4.3.x
> Explorer: add Application start/stop/restart
> ---------------------------------------------
>
> Key: JBIDE-11903
> URL: https://issues.jboss.org/browse/JBIDE-11903
> Project: Tools (JBoss Tools)
> Issue Type: Feature Request
> Components: openshift
> Affects Versions: 3.3.0.Beta2
> Environment: Eclipse plugin
> Reporter: Nam Duong
> Assignee: Max Rydahl Andersen
> Priority: Blocker
> Labels: explorer, new_and_noteworthy
> Fix For: 4.2.1.Final, 4.3.x
>
>
> The OpenShift Console view should contain controls for application start|stop|restart to match the functionality of the CLI. Currently, if you select Window->Show View->Others->OpenShift Express Console, then login in and select an application. The right-click menu doesn't have start|stop|restart so users have to either install the rhc client tools or ssh onto the OpenShift host gear.
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 8 months
[JBoss JIRA] (JBIDE-18823) Invalid generated code in JAX-RS Endpoint
by Xavier Coulon (JIRA)
Xavier Coulon created JBIDE-18823:
-------------------------------------
Summary: Invalid generated code in JAX-RS Endpoint
Key: JBIDE-18823
URL: https://issues.jboss.org/browse/JBIDE-18823
Project: Tools (JBoss Tools)
Issue Type: Bug
Components: webservices
Affects Versions: 4.2.0.Final
Reporter: Xavier Coulon
Assignee: Xavier Coulon
Fix For: 4.2.1.Final, 4.3.0.Alpha1
The generated code in the 'create' method contains something like this:
{code}
return Response.created(
UriBuilder.fromResource(Session.class)
.path(String.valueOf(session.getId())).build()).build();
{code}
but the {{Session.class}} should be {{SessionEndpoint.class}} since it must be the resource class annotated with {{@Path}}
Also, after discussion with [~maxandersen], here the plan to fix this issue:
- if the {{create}} method generation is selected and the target entity is selected and contains a 'getId()' method, then generate the following method body:
{code}
//TODO: process the given pojo
// here we use Pojo#getId(), assuming it provides the end-user with the identifier to retrieve the created Pojo resource
Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build())
.build();
{code}
- if the {{create}} method generation is selected and the target entity is selected and *does not contain* a 'getId()' method, then generate the following method body:
{code}
//TODO: process the given pojo
// you may want to do something like this
// return Response.created(UriBuilder.fromResource(PojoEndpoint.class).path(String.valueOf(pojo.getId())).build();
// assuming that Pojo#getId() or a similar method would provide the end-user with the identifier to retrieve the created Pojo resource
Response.created(null).build();
{code}
If no target entity is provided, there is no way to generate the method skeletons.
The goal if this change is to make sure we generate code that compiles (that was not the case if the target entity class did not have a {{getId()}} method) and that returns a sensitive Response object (hence, we don't return {{null}}).
--
This message was sent by Atlassian JIRA
(v6.3.8#6338)
11 years, 8 months