ResearchEquals.com icon indicating copy to clipboard operation
ResearchEquals.com copied to clipboard

Cannot add a previously removed external reference by DOI, without a page reload 🐛

Open nsunami opened this issue 3 years ago • 3 comments

URL of the Page

https://www.researchequals.com/drafts

What happened?

When drafting a module, I could not add a reference by DOI that I removed previously without a reload.

After a full reload of the page, entering a DOI will show the added research output.

https://user-images.githubusercontent.com/17035406/192352948-0822f651-f01c-4374-8dc8-ba9519675edb.mov

Steps to reproduce

  1. Create a new draft
  2. Add a new research output via DOI (one that's not in R='s database) as a linked module
  3. Select "Links to..."
  4. Delete the added research output
  5. Enter the DOI of the research output again

What browser(s) did you use?

Chrome

Anything else?

This is a tiny bug, but it can be confusing if the user repeatedly adds and removes the modules.

Noticed this bug while working on #625

nsunami avatar Sep 26 '22 18:09 nsunami

While working on this, I found that the createReferenceModule mutation will try using CrossRef first, and if that fails, try to use DataCite. If there's an error in mutation (for example, violation of the unique constraint of suffix, that would lead to a hard-to-debug error, since the resulting error message will be from DataCite.

nsunami avatar Oct 04 '22 19:10 nsunami

After doing some trial and error, I started to think addressing this issue may not be a priority, given the small amount of improvement over a considerable amount of effort.

I also found that the following warnings and issues makes it hard to debug this issue:

  1. https://github.com/libscie/ResearchEquals.com/issues/364
  2. #783
  3. #757
  4. #326

Probably, addressing any of these issues before moving forward may make sense.

nsunami avatar Oct 04 '22 20:10 nsunami

This issue is stale because it has been open 60 days with no activity.

github-actions[bot] avatar Dec 05 '22 00:12 github-actions[bot]

Closing this as it has become quite stale. Could reopen if we deem it worth it to fix this.

chartgerink avatar Dec 15 '22 16:12 chartgerink