jenkinsci / jenkinsci/support-core-plugin

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

Open
#899 0 comments 0 reactions 0 assignees View on GitHub
component:support-core-plugin imported-jira-issue priority:minor resolution:unresolved
Dominant language
Java
Stars
19
Forks
77
Avg merge
17h 53m
Merged PRs (30d)
3

Description

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

---
Originally reported by allan_burdajewicz, imported from: Print user count 0 instead of nothing in users/count.md


  • assignee: allan_burdajewicz
  • status: Open
  • priority: Minor
  • component(s): support-core-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 1
  • imported: 20251212-090250

Raw content of original issue

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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.