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

Default view selected in Jenkins configuration is not reported properly via remote API.

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      When pulling view data from the remote JSON API, the default view selected in the Jenkins configuration is not reported properly.

      Example:
      URL: http://ci.jenkins-ci.org/api/json?tree=views%5Bname,url,description%5D

      Response:
      jsonData: {"views":[

      {"description":null,"name":"All","url":"http://ci.jenkins-ci.org/view/All/"}

      ,

      {"description":null,"name":"All Disabled","url":"http://ci.jenkins-ci.org/view/All%20Disabled/"}

      ,

      {"description":null,"name":"All Failed","url":"http://ci.jenkins-ci.org/"}

      ,

      {"description":null,"name":"All QA","url":"http://ci.jenkins-ci.org/view/All%20QA/"}

      ,

      {"description":null,"name":"All Site","url":"http://ci.jenkins-ci.org/view/All%20Site/"}

      ,

      {"description":null,"name":"All Unstable","url":"http://ci.jenkins-ci.org/view/All%20Unstable/"}

      ,

      {"description":"<big>Jenkins project infrastructure jobs</big>","name":"Infrastructure","url":"http://ci.jenkins-ci.org/view/Infrastructure/"}

      ,

      {"description":null,"name":"Jenkins core","url":"http://ci.jenkins-ci.org/view/Jenkins%20core/"}

      ,

      {"description":"<big>Jenkins libraries - both patched third-party libraries and our own</big>","name":"Libraries","url":"http://ci.jenkins-ci.org/view/Libraries/"}

      ,

      {"description":null,"name":"Other Projects","url":"http://ci.jenkins-ci.org/view/Other%20Projects/"}

      ,

      {"description":"<big>Jenkins solo plugin builds</big>","name":"Plugins","url":"http://ci.jenkins-ci.org/view/Plugins/"}

      ,

      {"description":null,"name":"Ruby","url":"http://ci.jenkins-ci.org/view/Ruby/"}

      ]}

      Browsing the website, the default view is set to "All Failed" and as such the jobs under All Failed are shown correctly. However, when using the remote API, the default view isn't explicitly identified. Looking at the response above the All Failed URL key isn't linked to the view ../view/All%20Failed as expected but the root.

      Expected Behavior:
      That the view configured to be the default view in Jenkins should have some sort of identifier (i.e. default:true) and the url should point to the correct URL. At a minimum the url should be accurate.

        Attachments

          Activity

          Hide
          danielbeck Daniel Beck added a comment -

          No viewers, no voters, so assuming there's no interest in getting this improvement.

          Show
          danielbeck Daniel Beck added a comment - No viewers, no voters, so assuming there's no interest in getting this improvement.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            flyingfish Jason Howk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: