Bug: tea milestone ls
and tea labels ls
don't show all the results, despite --limit
#463
Labels
No Label
kind/breaking
kind/bug
kind/build
kind/dependency
kind/deployment
kind/docs
kind
enhancement
kind
feature
kind/proposal
kind
question
kind
refactor
kind/security
kind/testing
kind/translation
priority/critical
priority/high
priority/low
priority/medium
reviewed/duplicate
reviewed/invalid
reviewed/wontfix
skip-changelog
status/blocked
status/has-backport
status/has-pull
status/needs-backport
status/needs-feedback
status/needs-reviews
status/wip
upstream/gitea
upstream/sdk
No Milestone
No Assignees
2 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: gitea/tea#463
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
describe your environment
tea -v
): 0.8.0main
,master
, ortrunk
)Please provide the output of
git remote -v
(if the issue is related to tea not finding resources on Gitea):describe the issue (observed vs expected behaviour)
I am running
tea
from a script to try to get lists of my current milestones and labels. But I have 100+ milestones and 60+ labels, and it was only returning the first page. Even when using a very high--limit
, it seems to give me a max of 50. I also tried increasing the limits in the app.ini:but it still doesn't give me more than 50 at a time. I am able to get the remaining items by using additional invocations of
tea
with a different--page
, but that's not very convenient in a script.This is (at least partially) an issue with the Gitea API, not tea.
Try the following examples. That repo currently has 91 labels:
MAX_RESPONSE_ITEMS = 50
, but probably for backwards compat reasons.MAX_RESPONSE_ITEMS = 50
DEFAULT_PAGING_NUM = 30
, though strange UXI didn't test yet locally with different values of
MAX_RESPONSE_ITEMS
andDEFAULT_PAGING_NUM
, there might be more weirdness hiding.Additionally there seems to be a bug with tea, as I can't reproduce it with raw API calls:
The second & third part of my reply are caused by the go-sdk, see gitea/go-sdk#571.
The remaining issue upstream in gitea is tracked at https://github.com/go-gitea/gitea/issues/21158