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

Item Categories should not be shipped from /categories

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      It is the follow-up to our discussion with Manuel Recena Soto and Jesse Glick.

      The current Item categorization uses JENKINS_URL/categories endpoint to provide the list of categories.

      It causes several concerns:

      • Categories apply to items only, but the "/categories" endpoint does not mention it in paths. Once we want to implement slave categories, it may become a problem
      • The endpoint may conflict with existing closed-source plugins. E.g. I had the Categorization plugin at one of my previous companies, which used the similar endpoint. Update to 2.0 will cause regressions in such plugins
      • The implementation is not pluggable. E.g. Views and Items cannot filter the categories somehow

      Proposed solution:

      • Ship categories via VIEW_URL/itemCategories
      • Allow overriding of the method in views. Just for the future pluggability

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            recena Manuel Recena Soto made changes -
            Field Original Value New Value
            Status Open [ 1 ] In Progress [ 3 ]
            recena Manuel Recena Soto made changes -
            Labels 2.0 api regression 2.0 2.0-planned api
            recena Manuel Recena Soto made changes -
            Issue Type Bug [ 1 ] Task [ 3 ]
            recena Manuel Recena Soto made changes -
            Remote Link This issue links to "PR (Web Link)" [ 14154 ]
            recena Manuel Recena Soto made changes -
            Status In Progress [ 3 ] Closed [ 6 ]
            Resolution Fixed [ 1 ]
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 169983 ] JNJira + In-Review [ 209904 ]

              People

              • Assignee:
                recena Manuel Recena Soto
                Reporter:
                oleg_nenashev Oleg Nenashev
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: