• 1.0-japan-m9, 1.0-m10

      When items are shown on the main dashboard (/pipelines) they may include items that are from nested folders.
      When clicking on an item that is in a folder, it needs to be loaded with the URI reflecting what its folder path is.

      In Scope

      • When UX-276 is completed we need to handle nested folder jobs in the frontend
      • Always use the fullName as the display name
      • Browsing to a pipeline should work if its in a folder
      • Browsing to a folder should 404
        Browsing to a folder just show a list of the folder contents as if that folder was the "root" of the dashboard
        [1:24 PM] James Dumay: e.g if I browse to /org/my/sub/folder/
        [1:24 PM] James Dumay: show everything under /org/my/sub/folder/ as it is "/"

          [JENKINS-35866] Handle jobs that are stored within folders

          Michael Neale added a comment - - edited

          So if we look at the REST url:

          https://github.com/jenkinsci/blueocean-plugin/tree/master/blueocean-rest#get-nested-pipeline-inside-a-folder

          http://localhost:62054/jenkins/blue/rest/organizations/jenkins/pipelines/folder1/pipelines/folder2/test2/

          breaking it down:

          http://localhost:62054/jenkins/blue/rest/organizations/$orgname/pipelines/$folderA/pipelines/$folderB/$pipelineName/
          

          so "pipelines" acts as a separator

          Michael Neale added a comment - - edited So if we look at the REST url: https://github.com/jenkinsci/blueocean-plugin/tree/master/blueocean-rest#get-nested-pipeline-inside-a-folder http://localhost:62054/jenkins/blue/rest/organizations/jenkins/pipelines/folder1/pipelines/folder2/test2/ breaking it down: http://localhost:62054/jenkins/blue/rest/organizations/$orgname/pipelines/$folderA/pipelines/$folderB/$pipelineName/ so "pipelines" acts as a separator

          Michael Neale added a comment -

          jdumay this will involve the design as per the mockups in https://cloudbees.atlassian.net/browse/UX-196 right?

          Michael Neale added a comment - jdumay this will involve the design as per the mockups in https://cloudbees.atlassian.net/browse/UX-196 right?

          Vivek Pandey added a comment -

          mnealeAs mentioned in comment in https://cloudbees.atlassian.net/browse/UX-196, "There is issue of how to detect folder vs pipeline, that gets addressed with data extensibility/capability work.", this is cross cutting concern and going to be addressed in UX-68/UX-350.

          Vivek Pandey added a comment - mneale As mentioned in comment in https://cloudbees.atlassian.net/browse/UX-196 , "There is issue of how to detect folder vs pipeline, that gets addressed with data extensibility/capability work.", this is cross cutting concern and going to be addressed in UX-68 / UX-350 .

          Michael Neale added a comment - - edited

          vpandey actually can use the numOfFolders etc to know if something is a folder at least (so they can not be shown at top level).

          Michael Neale added a comment - - edited vpandey actually can use the numOfFolders etc to know if something is a folder at least (so they can not be shown at top level).

          Vivek Pandey added a comment -

          mneale yes, thats works.

          Vivek Pandey added a comment - mneale yes, thats works.

          Michael Neale added a comment -

          Doesn't make sense to tackle this without fixing up the URIs

          Michael Neale added a comment - Doesn't make sense to tackle this without fixing up the URIs

          Michael Neale added a comment -

          cmeyers sorry I may have mislead this morning when talking through URIs.

          The aim is that the main dashboard does show (paginated) all pipelines from all folders (but not the folders themselves). This is a big long flat list. When we have that, we will need to be able to let the user click on something that is in a folder (even though it is flattened out on the main dashboard) and have it load, with the correct data URL for rest, and the URI in the browser set correctly - which is what this ticket is about.

          Michael Neale added a comment - cmeyers sorry I may have mislead this morning when talking through URIs. The aim is that the main dashboard does show (paginated) all pipelines from all folders (but not the folders themselves). This is a big long flat list. When we have that, we will need to be able to let the user click on something that is in a folder (even though it is flattened out on the main dashboard) and have it load, with the correct data URL for rest, and the URI in the browser set correctly - which is what this ticket is about.

          Michael Neale added a comment -

          cliffmeyers here is the whiteboard where we talked about where to put the path:

          I am not sure if tscherler was also attacking this - I don't think so.

          Michael Neale added a comment - cliffmeyers here is the whiteboard where we talked about where to put the path: I am not sure if tscherler was also attacking this - I don't think so.

          Cliff Meyers added a comment -

          Yes, this is in-progress. I was in training on Wed, but had time to squash a few small bugs during breaks. I plan to focus on this on Thu.

          Cliff Meyers added a comment - Yes, this is in-progress. I was in training on Wed, but had time to squash a few small bugs during breaks. I plan to focus on this on Thu.

          Cliff Meyers added a comment -

          Cliff Meyers added a comment - PR: https://github.com/jenkinsci/blueocean-plugin/pull/299

            cliffmeyers Cliff Meyers
            jamesdumay James Dumay
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: