Inconsistent count of repositories #9651

Closed
opened 2025-11-02 08:45:32 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @harryzcy on GitHub (Oct 3, 2022).

Description

The count badges for repositories are not consistent, as shown in the screenshot

Gitea Version

1.17.2

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

image

Git Version

No response

Operating System

No response

How are you running Gitea?

Running from docker

Database

PostgreSQL

Originally created by @harryzcy on GitHub (Oct 3, 2022). ### Description The count badges for repositories are not consistent, as shown in the screenshot ### Gitea Version 1.17.2 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots <img width="423" alt="image" src="https://user-images.githubusercontent.com/37034805/193621721-4d545e0a-e552-4af0-9828-5a920be45dba.png"> ### Git Version _No response_ ### Operating System _No response_ ### How are you running Gitea? Running from docker ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 08:45:32 -06:00
Author
Owner

@yardenshoham commented on GitHub (Oct 8, 2022):

I managed to reproduce

image

The "Repositories count" badge includes archived repositories whereas the "All count" does not

Query for Repositories: https://gitea.com/repo/search?count_only=1&uid=37147&team_id=0&q=&page=1&mode=

Query for All: https://gitea.com/repo/search?sort=updated&order=desc&uid=37147&team_id=0&q=&page=1&limit=15&mode=&archived=false

You can set the filter to include archived repositories

image

@yardenshoham commented on GitHub (Oct 8, 2022): I managed to reproduce ![image](https://user-images.githubusercontent.com/20454870/194721201-a6f15e31-ac8e-4003-9a01-a64154174da5.png) The "Repositories `count`" badge includes archived repositories whereas the "All `count`" does not Query for `Repositories`: `https://gitea.com/repo/search?count_only=1&uid=37147&team_id=0&q=&page=1&mode=` Query for `All`: `https://gitea.com/repo/search?sort=updated&order=desc&uid=37147&team_id=0&q=&page=1&limit=15&mode=&archived=false` You can set the filter to include archived repositories ![image](https://user-images.githubusercontent.com/20454870/194721563-84493b8b-45a2-4364-824e-e016c30c1616.png)
Author
Owner

@harryzcy commented on GitHub (Oct 14, 2022):

Thank you @yardenshoham. Then it seems that's done on purpose. I'm closing this issue.

@harryzcy commented on GitHub (Oct 14, 2022): Thank you @yardenshoham. Then it seems that's done on purpose. I'm closing this issue.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#9651