Uploaded image for project: 'OpenShift Java Client'
  1. OpenShift Java Client
  2. OSJC-38

openshift-java-client: IDomain#refresh does not refresh the applications within it.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2.5.0
    • None
    • None
    • None

    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:

      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();
      	}
      }
      

      we should always load the list of applications and we should update applications that we already have (not replace them with new instances).

      Attachments

        Activity

          People

            adietish@redhat.com André Dietisheim
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: