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

"Hide zero warnings projects" can not be enabled from GUI

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      The android lint project can show the projects with lint issues in a Dashboard view ("Android Lint issues per project" - Portlet). This works fine so far. However, all the projects are shown thene, even the ones with zero warnings.

      In theory there is a checkbox where you can enable "Hide zero warnings projects". However, enabling this and Applying it to the view has no effect, and after reload, the checkbox is disabled again. This works fine for the "Compiler warnings per project" portlet.

      However, changing the value in the config file manually (jenkins/config.xml):

      fromm

      <org.jenkinsci.plugins.android__lint.dashboard.WarningsTablePortlet plugin="android-lint@2.1">
      <id>dashboard_portlet_20550</id>
      <name>Android Lint issues per project</name>
      <canHideZeroWarningsProjects>true</canHideZeroWarningsProjects>
      </org.jenkinsci.plugins.android__lint.dashboard.WarningsTablePortlet>

      to

      <org.jenkinsci.plugins.android__lint.dashboard.WarningsTablePortlet plugin="android-lint@2.1">
      <id>dashboard_portlet_20550</id>
      <name>Android Lint issues per project</name>
      <canHideZeroWarningsProjects>true</canHideZeroWarningsProjects>
      </org.jenkinsci.plugins.android__lint.dashboard.WarningsTablePortlet>

      works and enables the checkbox!

      The problem is that changing anything in the view disables the checkbox again...

        Attachments

          Activity

          Hide
          scm_issue_link SCM/JIRA link daemon added a comment -

          Code changed in jenkins
          User: Christopher Orr
          Path:
          src/main/java/org/jenkinsci/plugins/android_lint/dashboard/WarningsTablePortlet.java
          http://jenkins-ci.org/commit/android-lint-plugin/1840ae66ae3b413c32950cd1b6b78ebdc0f160e0
          Log:
          [FIXED JENKINS-19713] Ensure zero warnings option in the portlet can be enabled.

          Show
          scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Christopher Orr Path: src/main/java/org/jenkinsci/plugins/android_lint/dashboard/WarningsTablePortlet.java http://jenkins-ci.org/commit/android-lint-plugin/1840ae66ae3b413c32950cd1b6b78ebdc0f160e0 Log: [FIXED JENKINS-19713] Ensure zero warnings option in the portlet can be enabled.
          Hide
          orrc Christopher Orr added a comment -

          Version 2.3 of the plugin has been released, which includes this fix.

          Show
          orrc Christopher Orr added a comment - Version 2.3 of the plugin has been released, which includes this fix.

            People

            • Assignee:
              orrc Christopher Orr
              Reporter:
              rggjan rggjan
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: