Skip to content

Add system to keep track of records under review#362

Draft
dglemos wants to merge 4 commits intoEBI-G2P:mainfrom
dglemos:add/track_review_records_v16
Draft

Add system to keep track of records under review#362
dglemos wants to merge 4 commits intoEBI-G2P:mainfrom
dglemos:add/track_review_records_v16

Conversation

@dglemos
Copy link
Copy Markdown
Collaborator

@dglemos dglemos commented Mar 20, 2026

Description

New endpoints:

  • gene2phenotype/api/review_queue/
  • gene2phenotype/api/review_queue/<case_id>/

To flag a record for review you need to create a case

Endpoint: gene2phenotype/api/review_queue/
Action: POST
Input data:

{
    "stable_id": "G2P00010",
    "created_by": "dlemos@ebi.ac.uk",
    "assigned_to": null,
    "items": [
        {"component": "disease", "details": {}, "status": "open"},
        {"component": "disease_cross_reference", "details": {"omim": "wrong ID"}, "status": "open"}
    ]
}

To update an existing case (for example update the status of each item)

Endpoint: gene2phenotype/api/review_queue/<case_id>/
Action: PATCH
Input data:

{
    "stable_id": "G2P00010",
    "created_by": "dlemos@ebi.ac.uk",
    "assigned_to": "dlemos@ebi.ac.uk",
    "items": [
        {"component": "disease", "status": "resolved", "comment": "Updated on 2026-03-25"},
        {"component": "disease_cross_reference", "status": "resolved"}
    ]
}

JIRA Ticket

G2P-701


Web update: EBI-G2P/gene2phenotype_web#208


Contributor Checklist

  • The code compiles and runs as expected
  • Relevant unit tests are added or updated
  • All unit tests are passing
  • Code follows the G2P Coding Guidelines
  • Documentation (code comments, confluence, etc.) has been updated as needed

Reviewer Checklist

Please follow the Code Review Guidelines when reviewing this PR.

  • I have followed all review guidelines

@dglemos dglemos changed the title Add/track review records v16 Add system to keep track of records under review Mar 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant