halbritter-lab / gene-curator

Gene Curator is an open-source platform for managing and curating genetic data. It facilitates gene data analysis, entry, and reporting, serving genetics researchers with tools for efficient data handling.
MIT License
4 stars 1 forks source link

fix(genes-table): Update individual table entry after curation or precuration #112

Closed berntpopp closed 5 months ago

berntpopp commented 5 months ago

Description

When a gene is curated or precured, the corresponding entry in the Genes Table does not reflect the updated status unless the entire table is reloaded. This can lead to inconsistent data being displayed to the user. We need a mechanism to refresh the individual entry within the table to show the latest data without reloading the entire table.

Steps to Reproduce

  1. Go to the Genes Table view.
  2. Click on the 'Curate' button for a gene.
  3. Save changes in the curation modal.
  4. Close the modal.
  5. Notice that the table entry for the gene does not show the updated curation status.

Expected Behavior

The Genes Table should reflect the updated curation status for the specific gene that was curated or precured.

Actual Behavior

The Genes Table continues to display the old curation status for the gene.

Possible Solution

Implement an update mechanism within the closeModal function in GenesTable.vue that refreshes the data of the affected gene entry. This can be achieved by calling a store function that fetches the latest gene data from the backend and updates the corresponding entry in the table.

Acceptance Criteria

Additional Context

The user experience is hampered by the lack of real-time data updates in the table, which this fix aims to address.