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

Can not add new sub view to the "default" view

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I have several top level views. One of them is my default view called "Default", as specified in the Jenkins Configuration "Default View" popup.

      It is not possible to add a sub view to that default view. When I click on "New view", it will insert the new view into the top level.

      This is because the URL for the default view is "/", instead of "/view/<view name>" as it is for all other views. So when I click on New View, I get "/newView" instead of "/view/<view name>/newView", which will create a new top level view of course.

      The only way to create a sub view in the default view is to enter that url manually.

      Solution:

      • The URL of the "New View" entry in the menu should be "/view/<view name>/newView". This will create the new view in the correct place.
      • For creating a new top level view, we already have the + button to the right of the tab list

        Attachments

          Activity

          Hide
          yoichi Yoichi Nakayama added a comment -

          With Nested View Plugin 1.10, "New View" link seems OK.
          On the other hand, "add some" link in empty nested view still have the problem.

          Show
          yoichi Yoichi Nakayama added a comment - With Nested View Plugin 1.10, "New View" link seems OK. On the other hand, "add some" link in empty nested view still have the problem.
          Hide
          yoichi Yoichi Nakayama added a comment -

          I found "New View" link has been fixed by
          commit 151d129a6a2a7c0d16e20aa64f536edfa78205e7
          Author: Nicolas De Loof <nicolas.deloof@gmail.com>
          Date: Thu Jan 31 15:15:17 2013 +0100

          Show
          yoichi Yoichi Nakayama added a comment - I found "New View" link has been fixed by commit 151d129a6a2a7c0d16e20aa64f536edfa78205e7 Author: Nicolas De Loof <nicolas.deloof@gmail.com> Date: Thu Jan 31 15:15:17 2013 +0100
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Yoichi NAKAYAMA
          Path:
          src/main/resources/hudson/plugins/nested_view/NestedView/main.jelly
          src/test/java/hudson/plugins/nested_view/NestedViewTest.java
          http://jenkins-ci.org/commit/nested-view-plugin/2e5d1f5a4e52d331e9a6887099dc0ef52835d8be
          Log:
          [FIXED JENKINS-17041] fix "add some" link for default view

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Yoichi NAKAYAMA Path: src/main/resources/hudson/plugins/nested_view/NestedView/main.jelly src/test/java/hudson/plugins/nested_view/NestedViewTest.java http://jenkins-ci.org/commit/nested-view-plugin/2e5d1f5a4e52d331e9a6887099dc0ef52835d8be Log: [FIXED JENKINS-17041] fix "add some" link for default view
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: stanislav bashkirtsev
          Path:
          src/main/resources/hudson/plugins/nested_view/NestedView/main.jelly
          src/test/java/hudson/plugins/nested_view/NestedViewTest.java
          http://jenkins-ci.org/commit/nested-view-plugin/4599b5611f1680e371248d33eedcf3f08b1283aa
          Log:
          Merge pull request #8 from yoichi/JENKINS-17041

          [FIXED JENKINS-17041] fix "add some" link for default view

          Compare: https://github.com/jenkinsci/nested-view-plugin/compare/518a384faa78...4599b5611f16

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: stanislav bashkirtsev Path: src/main/resources/hudson/plugins/nested_view/NestedView/main.jelly src/test/java/hudson/plugins/nested_view/NestedViewTest.java http://jenkins-ci.org/commit/nested-view-plugin/4599b5611f1680e371248d33eedcf3f08b1283aa Log: Merge pull request #8 from yoichi/ JENKINS-17041 [FIXED JENKINS-17041] fix "add some" link for default view Compare: https://github.com/jenkinsci/nested-view-plugin/compare/518a384faa78...4599b5611f16
          Hide
          ctapobep Stanislav Bashkyrtsev added a comment -

          Note, that the issue is not fully fixed yet:

          • Create a subview of your default nested view
          • Open your default view
          • Click on the subview - you'll be redirected to that subview, but it will not be under nested view.
          Show
          ctapobep Stanislav Bashkyrtsev added a comment - Note, that the issue is not fully fixed yet: Create a subview of your default nested view Open your default view Click on the subview - you'll be redirected to that subview, but it will not be under nested view.
          Hide
          marc_guenther Marc Günther added a comment -

          Just want to confirm that in version 1.10 of the plugin:
          If you have a nested View in the toplevel:

          • the "New view" button now correctly creates a subview
          • but if the view is empty, the link in the "This view has no subviews associated with it. Please add some." message still shows the old broken behaviour.
          Show
          marc_guenther Marc Günther added a comment - Just want to confirm that in version 1.10 of the plugin: If you have a nested View in the toplevel: the "New view" button now correctly creates a subview but if the view is empty, the link in the "This view has no subviews associated with it. Please add some." message still shows the old broken behaviour.
          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: stanislav bashkirtsev
          Path:
          src/main/java/hudson/plugins/nested_view/NestedView.java
          http://jenkins-ci.org/commit/nested-view-plugin/5fd629a6f6f0322be8004cab8cf5dbc2b7d3692e
          Log:
          Merge pull request #10 from yoichi/JENKINS-17041

          [FIXED JENKINS-17041] fix link to subview in nested view set as default view

          Compare: https://github.com/jenkinsci/nested-view-plugin/compare/a82b5d30c576...5fd629a6f6f0

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: stanislav bashkirtsev Path: src/main/java/hudson/plugins/nested_view/NestedView.java http://jenkins-ci.org/commit/nested-view-plugin/5fd629a6f6f0322be8004cab8cf5dbc2b7d3692e Log: Merge pull request #10 from yoichi/ JENKINS-17041 [FIXED JENKINS-17041] fix link to subview in nested view set as default view Compare: https://github.com/jenkinsci/nested-view-plugin/compare/a82b5d30c576...5fd629a6f6f0
          Hide
          ctapobep Stanislav Bashkyrtsev added a comment -

          Released in 1.11

          Show
          ctapobep Stanislav Bashkyrtsev added a comment - Released in 1.11

            People

            • Assignee:
              Unassigned
              Reporter:
              marc_guenther Marc Günther
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: