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

Hide Empty Tabs (Views) in the GUI

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:
      Show 5 results

      Description

      I'd like the ability to hide tabs that have no visible jobs. We use Project
      Based Security to limit development access to only their projects. I don't like
      that developers can still see all tabs used by the other groups, even though
      they are empty due to the security settings.

        Attachments

          Issue Links

            Activity

            Hide
            saheba saheba added a comment -

            thanks for the pull request. I am scheduling an update session as soon as it is merged to jenkins:master.

            Show
            saheba saheba added a comment - thanks for the pull request. I am scheduling an update session as soon as it is merged to jenkins:master.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Kohsuke Kawaguchi
            Path:
            changelog.html
            core/src/main/java/hudson/model/View.java
            core/src/main/java/hudson/model/ViewGroupMixIn.java
            core/src/main/java/hudson/security/AuthorizationStrategy.java
            core/src/main/resources/hudson/model/Messages.properties
            http://jenkins-ci.org/commit/jenkins/85e13303f8cfbebeb7dab347fda8ccf4069070b6
            Log:
            [FIXED JENKINS-3681] Added View.READ permission.

            The trick for backward compatibility is in the default implementation
            that grants View.READ to those who have access to items.

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Kohsuke Kawaguchi Path: changelog.html core/src/main/java/hudson/model/View.java core/src/main/java/hudson/model/ViewGroupMixIn.java core/src/main/java/hudson/security/AuthorizationStrategy.java core/src/main/resources/hudson/model/Messages.properties http://jenkins-ci.org/commit/jenkins/85e13303f8cfbebeb7dab347fda8ccf4069070b6 Log: [FIXED JENKINS-3681] Added View.READ permission. The trick for backward compatibility is in the default implementation that grants View.READ to those who have access to items.
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #1628
            [FIXED JENKINS-3681] Added View.READ permission. (Revision 85e13303f8cfbebeb7dab347fda8ccf4069070b6)

            Result = SUCCESS
            Kohsuke Kawaguchi : 85e13303f8cfbebeb7dab347fda8ccf4069070b6
            Files :

            • changelog.html
            • core/src/main/java/hudson/model/View.java
            • core/src/main/java/hudson/security/AuthorizationStrategy.java
            • core/src/main/resources/hudson/model/Messages.properties
            • core/src/main/java/hudson/model/ViewGroupMixIn.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #1628 [FIXED JENKINS-3681] Added View.READ permission. (Revision 85e13303f8cfbebeb7dab347fda8ccf4069070b6) Result = SUCCESS Kohsuke Kawaguchi : 85e13303f8cfbebeb7dab347fda8ccf4069070b6 Files : changelog.html core/src/main/java/hudson/model/View.java core/src/main/java/hudson/security/AuthorizationStrategy.java core/src/main/resources/hudson/model/Messages.properties core/src/main/java/hudson/model/ViewGroupMixIn.java
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_ui-changes_branch #21
            [FIXED JENKINS-3681] Added View.READ permission. (Revision 85e13303f8cfbebeb7dab347fda8ccf4069070b6)

            Result = SUCCESS
            Kohsuke Kawaguchi : 85e13303f8cfbebeb7dab347fda8ccf4069070b6
            Files :

            • core/src/main/java/hudson/model/ViewGroupMixIn.java
            • core/src/main/resources/hudson/model/Messages.properties
            • core/src/main/java/hudson/security/AuthorizationStrategy.java
            • changelog.html
            • core/src/main/java/hudson/model/View.java
            Show
            dogfood dogfood added a comment - Integrated in jenkins_ui-changes_branch #21 [FIXED JENKINS-3681] Added View.READ permission. (Revision 85e13303f8cfbebeb7dab347fda8ccf4069070b6) Result = SUCCESS Kohsuke Kawaguchi : 85e13303f8cfbebeb7dab347fda8ccf4069070b6 Files : core/src/main/java/hudson/model/ViewGroupMixIn.java core/src/main/resources/hudson/model/Messages.properties core/src/main/java/hudson/security/AuthorizationStrategy.java changelog.html core/src/main/java/hudson/model/View.java
            Hide
            salsa Sami Salonen added a comment -

            This change introduces a small side effect. I use Sectioned View plugin to create a view, which does not contain projects, but informative content in textual format like FAQs, announcements, etc. With this change, this "info view" became unavailable for end users.

            As a workaround I added a List View section with one project to the bottom of the view. I also removed all columns from the section. This leaves two empty bars at the end of the view. It does not look pretty, but at least the view is visible to end users again.

            Jenkins version is 1.460.

            Show
            salsa Sami Salonen added a comment - This change introduces a small side effect. I use Sectioned View plugin to create a view, which does not contain projects, but informative content in textual format like FAQs, announcements, etc. With this change, this "info view" became unavailable for end users. As a workaround I added a List View section with one project to the bottom of the view. I also removed all columns from the section. This leaves two empty bars at the end of the view. It does not look pretty, but at least the view is visible to end users again. Jenkins version is 1.460.

              People

              • Assignee:
                Unassigned
                Reporter:
                rnell rnell
              • Votes:
                6 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: