Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-43322

Nested view should be also searchable by name

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Similar Issues:
    • Released As:
      jenkins-2.174

      Description

      As of Jenkins 2.53 searching for view by name works only for top level views. It can be frustrating when you use nested views especially in companion with Delivery Pipeline Plugin - nested pipelines are not searchable.

       

      Looking in the code the reason is to have the "views" field in Jenkins only references to top level views. Nested ones (ViewGroup) are ignored in getViews() and getView(name). Proposed solution adds an extra method getAllViews() (a similar convention to getItems() and getAllItems()) which returns all views recursively and enhance getView(name) to use it.

       

      Related thread on the mailing list: https://groups.google.com/forum/#!topic/jenkinsci-dev/GTjiXQkN4Fs

        Attachments

          Issue Links

            Activity

            emszpak Marcin Zajączkowski created issue -
            emszpak Marcin Zajączkowski made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            batmat Baptiste Mathus made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]
            batmat Baptiste Mathus made changes -
            Remote Link This issue links to "PR (Web Link)" [ 22583 ]
            danielbeck Daniel Beck made changes -
            Released As jenkins-2.17
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Fixed but Unreleased [ 10203 ]
            danielbeck Daniel Beck made changes -
            Released As jenkins-2.17 jenkins-2.174
            batmat Baptiste Mathus made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

              People

              Assignee:
              emszpak Marcin Zajączkowski
              Reporter:
              emszpak Marcin Zajączkowski
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: