waldronlab / BugSigDB

A microbial signatures database
https://bugsigdb.org
7 stars 6 forks source link

Editing an experiment causes that experiment to disappear from the study when logged in as the user that edited that experiment #168

Closed cmirzayi closed 1 year ago

cmirzayi commented 1 year ago

I edited https://bugsigdb.org/Study_588/Experiment_1 changing the location of subjects. After saving the edit, I can no longer see Experiment 1 or the accompanying Signatures for Study 588 on the study page itself: image

Note I can still see that the experiment exists if I go to its url: image

Logging out of my account seems to resolve this issue and I can then see the experiment under the study again: image

However if I log back into my account, the experiment is once again gone: image

cmirzayi commented 1 year ago

Running the Refresh action from the ... menu on the study page resolves the issue. Perhaps Refresh should run automatically after editing an Experiment. image

tosfos commented 1 year ago

We'll see if we can reproduce this. It might be difficult to resolve.

tosfos commented 1 year ago

We detected that these were two separate issues. One was related to cache purges happening too slowly, which was causing different views for logged-in/out users. That should be resolved now.

We did detect that there could be a separate issue when adding Experiments where the Study page is not being reliably refreshed. But it really shouldn't be happening based on the way BugSigDB is set up. I recommend holding things here, and reopening if it happens again. Hopefully, the cache improvements will solve it fully. If it does happen, please copy the HTML source of the page and send it to us.

lwaldron commented 1 year ago

Sounds good, we will re-open if the issue resurfaces.