Statuses API only shows first 10 statuses #3430

Closed
opened 2025-11-02 05:12:42 -06:00 by GiteaMirror · 2 comments
Owner

Originally created by @dr-consit on GitHub (Jun 5, 2019).

  • Gitea version: 1.8.2 built with go1.12.5 : bindata, sqlite, sqlite_unlock_notify
  • Git version: 2.20.1
  • Operating system: Ubuntu Server 19.04
  • Database (use [x]):
    • PostgreSQL
    • MySQL
    • MSSQL
    • SQLite
  • Can you reproduce the bug at https://try.gitea.io:
  • Log gist:
    N/A

Description

I have created much more than 10 statuses on the linked commit above. Yet the statuses API only shows the first 10. If it must be limited to 10, I believe it should at least be the 10 most recent.

Originally created by @dr-consit on GitHub (Jun 5, 2019). <!-- NOTE: If your issue is a security concern, please send an email to security@gitea.io instead of opening a public issue --> <!-- 1. Please speak English, this is the language all maintainers can speak and write. 2. Please ask questions or configuration/deploy problems on our Discord server (https://discord.gg/gitea) or forum (https://discourse.gitea.io). 3. Please take a moment to check that your issue doesn't already exist. 4. Please give all relevant information below for bug reports, because incomplete details will be handled as an invalid report. --> - Gitea version: 1.8.2 built with go1.12.5 : bindata, sqlite, sqlite_unlock_notify - Git version: 2.20.1 - Operating system: Ubuntu Server 19.04 - Database (use `[x]`): - [ ] PostgreSQL - [ ] MySQL - [ ] MSSQL - [X] SQLite - Can you reproduce the bug at https://try.gitea.io: - [X] Yes (https://try.gitea.io/api/v1/repos/dr/test/statuses/c07b30e95383d317fd01d475bbc782e8c79154fc?access_token=bb4a3d4df85b11c3d9777bc4a6d36f3e06b2f3a9) - [ ] No - [ ] Not relevant - Log gist: N/A ## Description I have created much more than 10 statuses on the linked commit above. Yet the statuses API only shows the first 10. If it must be limited to 10, I believe it should at least be the 10 most recent.
GiteaMirror added the type/enhancement label 2025-11-02 05:12:42 -06:00
Author
Owner

@lunny commented on GitHub (Jun 6, 2019):

should be closed by #7141

@lunny commented on GitHub (Jun 6, 2019): should be closed by #7141
Author
Owner

@zeripath commented on GitHub (Jun 6, 2019):

#7141 does fix this - but it's not perfect the API returns a bare []api.Status with no space to say how many statuses there are - so you just have to page until you reach the end.

@zeripath commented on GitHub (Jun 6, 2019): #7141 does fix this - but it's not perfect the API returns a bare []api.Status with no space to say how many statuses there are - so you just have to page until you reach the end.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#3430