mozilla / mozilla/code-review

New API endpoint to list issues

Open
#2,533 0 comments 0 reactions 1 assignee View on GitHub

@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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.