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

Introduce a default fallback view in ViewGroupMixIn#getPrimaryView() when no views defined

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Follow-up to https://github.com/jenkinsci/jenkins/pull/4348 and JENKINS-60092. As proposed by Jesse Glick in https://github.com/jenkinsci/jenkins/pull/4348#issuecomment-554381425 , it would be great to return a default view in ViewGroupMixIn#getPrimaryView() so that the API users do not have to worry about edge cases when views are not defined.

      IIRC I tried it also and hit some other obstacles, but I do not remember which ones. So there *might* be some obstacles like view persistence

       

        Attachments

          Issue Links

            Activity

            oleg_nenashev Oleg Nenashev created issue -
            oleg_nenashev Oleg Nenashev made changes -
            Field Original Value New Value
            Link This issue is related to JENKINS-60092 [ JENKINS-60092 ]
            oleg_nenashev Oleg Nenashev made changes -
            Labels views
            oleg_nenashev Oleg Nenashev made changes -
            Labels views nullpointer view views
            jglick Jesse Glick made changes -
            Labels nullpointer view views api nullpointer view views

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              oleg_nenashev Oleg Nenashev
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: