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

ComputedFolders do not show a Disable/Enable button

    XMLWordPrintable

Details

    • cloudbees-folder:6.12

    Description

      Although a ComputedFolder supports the disable functionality and can be used by appending /disable to the folder URL, they do not show the Enable/Disable button in the UI.

      According to the code, I think it should work https://github.com/jenkinsci/cloudbees-folder-plugin/blob/cloudbees-folder-6.11/src/main/resources/com/cloudbees/hudson/plugins/folder/AbstractFolder/view-index-top.jelly#L45-L68 but Multibranch / Organization folder fo not show that button. The UI seeems to match that Jelly but never passes the condition !it.supportsMakeDisabled()

      Attachments

        Issue Links

          Activity

            allan_burdajewicz Allan BURDAJEWICZ created issue -
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Field Original Value New Value
            Assignee Francisco Fernández [ fcojfernandez ] Allan BURDAJEWICZ [ allan_burdajewicz ]
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Status In Progress [ 3 ] In Review [ 10005 ]

            After further investigation, the problem is that the AbstractFolder#supportsMakeDisabled and ComputedFolder#supportsMakeDisabled are protected methods and in that case jelly just pass through <j:when test="${!it.supportsMakeDisabled()}">.
            Could not find the documentation about method visibility requirements for jelly though.

            allan_burdajewicz Allan BURDAJEWICZ added a comment - After further investigation, the problem is that the AbstractFolder#supportsMakeDisabled and ComputedFolder#supportsMakeDisabled are protected methods and in that case jelly just pass through <j:when test="${!it.supportsMakeDisabled()}"> . Could not find the documentation about method visibility requirements for jelly though.
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Remote Link This issue links to "cloudbees-folder-plugin #143 (Web Link)" [ 24352 ]
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Released As cloudbees-folder:6.12
            Resolution Fixed [ 1 ]
            Status In Review [ 10005 ] Fixed but Unreleased [ 10203 ]
            allan_burdajewicz Allan BURDAJEWICZ made changes -
            Status Fixed but Unreleased [ 10203 ] Resolved [ 5 ]

            People

              allan_burdajewicz Allan BURDAJEWICZ
              allan_burdajewicz Allan BURDAJEWICZ
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: