berntpopp / sysndd

GitHub Repository for the SysNDD database, web app and api used to curate gene disease relationships in neurodevelopmental disorders (NDD).
https://sysndd.dbmr.unibe.ch
MIT No Attribution
4 stars 0 forks source link

Bug: Re-Review in approval although not submitted #31

Open berntpopp opened 5 months ago

berntpopp commented 5 months ago

Description

In the re-review process for lamb1, there seems to be an issue. The entity lamb1 is appearing in the approval list prematurely, before it has been officially submitted for approval by the reviewer.

Steps to Reproduce

  1. Navigate to the re-review section.
  2. Observe the appearance of lamb1 in the approval list.
  3. Confirm whether lamb1 has been submitted for review.

Expected Behavior

Entities should only appear in the approval list post-submission for re-review.

Actual Behavior

The entity lamb1 is visible in the approval list before submission, indicating a potential flaw in the submission or listing process.

Additional Context

This issue may affect the workflow and efficiency of the re-review process, necessitating a prompt fix.

berntpopp commented 5 months ago

This is actually true for all genes. The status "re_review_submitted" and "re_review_approved" are only tracked in the table re_review_entity_connect. In the standard curation approval views all status and reviews are displayed which casues this "bug". This is also related to the problem of "re_review_approved" not being saved as some curators do not use the dedicated approval view for that.

berntpopp commented 5 months ago

Possible fix in logic: