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

Include 'rejected' status in api/reviews/all API Endpoint #294

Open
kouloumos opened this issue Jun 5, 2024 · 0 comments · May be fixed by #296
Open

Include 'rejected' status in api/reviews/all API Endpoint #294

kouloumos opened this issue Jun 5, 2024 · 0 comments · May be fixed by #296
Assignees
Labels
enhancement New feature or request medium priority

Comments

@kouloumos
Copy link
Member

We currently have the api/reviews/all API endpoint that lets us fetch reviews based on their status: expired, pending, active, or merged. However, we are missing one important status: rejected reviews. These are reviews where the pull request (PR) was closed without merging.

Identifying Rejected Reviews
A review can be classified as 'rejected' if it meets all of the following criteria (to be confirmed by @Extheoisah):

  • The review has been submitted.
  • It has not been merged.
  • It has been archived.

Proposed Change
We need to update the api/reviews/all endpoint to include 'rejected' as a status option. This will allow us to track and manage these reviews more effectively, ensuring that all types of review outcomes are visible and accounted for in our system.

@kouloumos kouloumos added enhancement New feature or request medium priority labels Jun 5, 2024
@Extheoisah Extheoisah self-assigned this Jun 10, 2024
Extheoisah added a commit that referenced this issue Jun 20, 2024
This commit adds
1. the functionality to compute the review status for all reviews when queried from the database. This computation is done on the API level and is not stored in the db.

2. a new "rejected" review status based on the criteria outlined [here](#294)
@Extheoisah Extheoisah linked a pull request Jun 20, 2024 that will close this issue
@Extheoisah Extheoisah linked a pull request Jun 24, 2024 that will close this issue
@Extheoisah Extheoisah moved this from 🆕 Todo to 🏗 In Progress in The Bitcoin Development Project Roadmap Jun 24, 2024
@Extheoisah Extheoisah moved this from 🏗 In Progress to 👀 In Review in The Bitcoin Development Project Roadmap Jun 24, 2024
@kouloumos kouloumos moved this from 👀 In Review to 🏗 In Progress in The Bitcoin Development Project Roadmap Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium priority
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants