iobio / gene.iobio

Gene.iobio vue
MIT License
55 stars 11 forks source link

Clear warning from alerts when retry of PubMed, OMIM, etc results in successful response #977

Closed tonydisera closed 1 year ago

tonydisera commented 1 year ago

We show a warning glyph next to a gene that failed to on an NCBI request (e.g. get PubMed entries, get NCBI gene, etc). When the user clicks on the gene a second time, the NCBI request will likely succeed. In this case, the 'warning' alert should be removed from the alert panel and the warning glyph should no longer show next to the gene button in the genes side panel.

tonydisera commented 1 year ago

To test, you can force an error with PubMed by clicking very quickly through the genes during or after 'analyze all'. The NCBI request will fail because we have exceeded the number of requests allowed in an interval of time (a minute?).

So you should see some warnings next to the genes in the side panel:

Screenshot 2023-08-17 at 12 28 35 PM

You can click on the warning glyph to see the warning in the alerts right side panel.

Screenshot 2023-08-17 at 12 28 40 PM

How click on the gene with the warning. You should see a loading gif in the genes card, below the PubMed heading. Then the PubMed entries should load successfully.

The warning glyph next to the gene should disappear and the warning should go away from the alerts right side panel.

Screenshot 2023-08-17 at 12 28 59 PM