Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Endpoint suggestions: /repos/{owner}/{repo}/issue_times and /repos/{owner}/{repo}/issue_labels #9839

Closed
Breee opened this issue Jan 17, 2020 · 3 comments

Comments

@Breee
Copy link

Breee commented Jan 17, 2020

Description

If you want to get times for an issue you have to call /repos/{owner}/{repo}/issues/{id}/times
If you do this for alot of issues, it takes literally ages because of the high amount of requests,
In our case it takes ~20 minutes to fetch all times of all issues.

I suggest to introduce a new endpoint /repos/{owner}/{repo}/issue_times,
which returns all issues (or just their IDs) and the times tied to it.

The same for /repos/{owner}/{repo}/issue_labels.

I would find this useful, to reduce API calls and save alot of time, because the backend can prepare such an response really fast.

@6543
Copy link
Member

6543 commented Jan 17, 2020

@Breee the times api was extended at #9200 and #9373 (first is included in 1.11.0, second will be in 1.12.0)

@6543
Copy link
Member

6543 commented Jan 17, 2020

@Breee I think you use 1.10.x right now?

@Breee
Copy link
Author

Breee commented Jan 17, 2020

@6543 Thx! <3

@Breee Breee closed this as completed Jan 17, 2020
@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants