New API endpoint to list issues
Open
@vrigal is already working on this.
Since Nov 20, 2024.
backend
- Dominant language
- Python
- Stars
- 67
- Forks
- 52
- Avg merge
- 3d 23h
- Merged PRs (30d)
- 54
Description
This is the last development in the backend before porting code over to Treeherder.
Creation endpoints (revision, diff, issues) are OK now, but the bot also needs a way to retrieve issues in 3 stages:
- unresolved issues in a revision
- known issues (issues from that diff that are already present in DB - linked to another issue)
- closed issues (issues from previous diffs in the parent revision that are not linked to the targeted diff)
We can build a single endpoint that takes as URL parameters:
- Diff ID (it can be the PK as the bot requires these informations after creating its diff)
- mode
unresolved|known|closed
The endpoint serializer returns each Issue ID & hash (that's it).
The Endpoint would be exposed as /diff/{diff_id}/issues/{mode}/
We'll then implement their usage in the bot in a followup
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.