[jbosstools-issues] [JBoss JIRA] (JBIDE-15854) openshift-java-client: IDomain#refresh does not refresh the applications within it.
Andre Dietisheim (JIRA)
jira-events at lists.jboss.org
Mon Nov 4 14:07:01 EST 2013
[ https://issues.jboss.org/browse/JBIDE-15854?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andre Dietisheim updated JBIDE-15854:
-------------------------------------
Description:
IDomain#refresh is implemented so that it would not load the list of applications if it wasnt loaded before and it would replace a list of existing applications with a new list of new instances:
{code:title=DomainResource}
public void refresh() throws OpenShiftException {
final DomainResourceDTO domainResourceDTO = new GetDomainRequest().execute();
this.id = domainResourceDTO.getId();
this.suffix = domainResourceDTO.getSuffix();
if(this.applications != null) {
this.applications = loadApplications();
}
}
{code}
we should always load the list of applications and we should update applications that we already have (not replace them with new instances).
was:
IDomain#refresh is implemented so that it wont refresh the list of applications if it was loaded before:
{code:title=DomainResource}
public void refresh() throws OpenShiftException {
final DomainResourceDTO domainResourceDTO = new GetDomainRequest().execute();
this.id = domainResourceDTO.getId();
this.suffix = domainResourceDTO.getSuffix();
if(this.applications != null) {
this.applications = loadApplications();
}
}
{code}
we have to correct this.
> openshift-java-client: IDomain#refresh does not refresh the applications within it.
> -----------------------------------------------------------------------------------
>
> Key: JBIDE-15854
> URL: https://issues.jboss.org/browse/JBIDE-15854
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.1.1.Beta1, 4.2.0.Alpha1
> Reporter: Andre Dietisheim
> Assignee: Andre Dietisheim
> Fix For: 4.1.1.CR1, 4.2.0.Alpha1
>
>
> IDomain#refresh is implemented so that it would not load the list of applications if it wasnt loaded before and it would replace a list of existing applications with a new list of new instances:
> {code:title=DomainResource}
> public void refresh() throws OpenShiftException {
> final DomainResourceDTO domainResourceDTO = new GetDomainRequest().execute();
> this.id = domainResourceDTO.getId();
> this.suffix = domainResourceDTO.getSuffix();
> if(this.applications != null) {
> this.applications = loadApplications();
> }
> }
> {code}
> we should always load the list of applications and we should update applications that we already have (not replace them with new instances).
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list