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

Hide Empty Tabs (Views) in the GUI

    XMLWordPrintable

Details

    • Improvement
    • Status: Resolved (View Workflow)
    • Major
    • Resolution: Fixed
    • core
    • None
    • Platform: All, OS: All

    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

            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.

            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.

            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.

            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.
            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
            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
            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
            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
            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.

            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

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

              Dates

                Created:
                Updated:
                Resolved: