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

Print user count 0 instead of nothing in users/count.md

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Minor Minor
    • support-core-plugin
    • None

      When there is no authenticated user or no non authenticated users, the users/count.md does not print the respective count of 0. Instead it does not print anything.

      In those case, the file should rather display:

       * Authenticated User Count: 0
       * Non Authenticated User Count: 0
      

      https://github.com/jenkinsci/support-core-plugin/blob/support-core-2.78/src/main/java/com/cloudbees/jenkins/support/impl/UserCount.java#L67-L76

          [JENKINS-67179] Print user count 0 instead of nothing in users/count.md

          Allan BURDAJEWICZ created issue -
          Allan BURDAJEWICZ made changes -
          Description Original: When there is no authenticated user or no non authenticated users, the users/count.md does not print the respective count of 0. Instead it does not print anything.

          In those case, the file should rather display:

          {code}
           * Authenticated User Count: 0
           * Non Authenticated User Count: 0
          {code}
          New: When there is no authenticated user or no non authenticated users, the users/count.md does not print the respective count of 0. Instead it does not print anything.

          In those case, the file should rather display:

          {code}
           * Authenticated User Count: 0
           * Non Authenticated User Count: 0
          {code}

          https://github.com/jenkinsci/support-core-plugin/blob/support-core-2.78/src/main/java/com/cloudbees/jenkins/support/impl/UserCount.java#L67-L76

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

              Created:
              Updated: