Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13075

Openshift Wizard should ask "would you like to push your project"?




      I believe the end-user will rarely remember to perform a git push once he has completed the OpenShift New Application Wizard - it is totally "not obvious" that is what is the next step - especially when the end-user is warned away from a push (see screenshot).

      In JBIDE-12122 Fred suggested the following:

      When creating an new openshift application from an existing workspace project, I expect my project to be deployed automatically once the Openshift app is created.
      Since not all projects are openshift-ready, we should have a checkbox on the openshift wizard (enabled when using an existing project) that basically says "deploy my app once created".
      The state of that checkbox should be stored in the workspace preferences.
      And obviously, when the box is checked, the local git repo would be pushed after the openshift app is created.
      Workflow should be :

      • create a project 'myapp' from JBoss Central (say HTML5)
      • create a new OpenShift application 'myapp', based on the jbossas7 cartridge, using the existing 'myapp' project
      • check the deploy checkbox
      • once the myapp.<mydomain>.rhcloud.com server is ready, Opening http://myapp.<mydomain>.rhcloud.com should display the HTML5 app

      To verify this do the following:

      1) import existing OpenShift application to your workspace:
      -> You should get prompted to publish local changes since local clone is ahead of the remote (we changed the .gitignore)

      2) once you published the new application back to OpenShift, delete the project from your workspace and import it again.
      -> You should NOT get prompted to publish it since the import has not done any further changes (we did not modify anything that's not already on OpenShift)

      3) import your OpenShift application to your workspace again. Since you already have the project in your workspace, you'll have to tell the wizard to import into your existing workspace project
      -> You should NOT get prompted to publish since there are no new changes that were applied

      4) Create a new OpenShift application and then import it into the first project.
      -> You should get prompted to publish since we now applied changes that need to get published.


        1. 1-local-change.png
          14 kB
        2. clone-is-ahead.png
          11 kB
        3. commited-changes-that-were-not-pushed.png
          11 kB
        4. commit-when-importing.png
          46 kB
        5. no_changes_yes.png
          28 kB
        6. pushing-if-no-changes.png
          11 kB

        Issue Links



              adietish@redhat.com André Dietisheim
              bsutter@redhat.com Burr Suter
              0 Vote for this issue
              4 Start watching this issue