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

New API endpoint to list issues #2533

Open
La0 opened this issue Nov 20, 2024 · 0 comments · May be fixed by #2534
Open

New API endpoint to list issues #2533

La0 opened this issue Nov 20, 2024 · 0 comments · May be fixed by #2534
Assignees
Labels
backend Code review backend teklia-2024 Issue for Teklia work in 2024

Comments

@La0
Copy link
Collaborator

La0 commented Nov 20, 2024

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

@La0 La0 added backend Code review backend teklia-2024 Issue for Teklia work in 2024 labels Nov 20, 2024
@vrigal vrigal linked a pull request Nov 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Code review backend teklia-2024 Issue for Teklia work in 2024
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants