biigle / label-trees

:m: BIIGLE module to create, edit and manage label trees
0 stars 0 forks source link

Label tree not visible in the annotation screen #30

Closed dlangenk closed 6 years ago

dlangenk commented 6 years ago

In a 3 (+me) user project (https://biigle.de/projects/121) the label tree in the annotation view seems to be visible for 2 of them but not for Camila Arnes. But she can see them on the image annotation tab and in the project overview. Screenshots attached camila_annotation_label_tree_no camila_image_annotation_label_tree_yes camila_project_page

mzur commented 6 years ago

The first screenshot shows the annotation tool in "guest mode". The missing Largo button in the last screenshot also indicates that the user is only a guest of the project. But in this case the label trees tab should not be shown in the volume overview.

I just checked and the user is (now) an editor. I also double checked the add-annotation and edit-in authorization policies that control the display of the label trees tabs. Everything works as intended from my point of view.

Is she still seeing the guest mode of the annotation tool? Maybe she just experienced a short period of time where she was a project guest and was then switched to be an editor.

mzur commented 6 years ago

She was added to the project at 23/Apr/2018 16:26:23 and her user role has been changed once at 25/Apr/2018 21:56:56.

dlangenk commented 6 years ago

I think the problem persists. At the time I got the email she was already an editor. We could switch her to guest and back to editor and see if the problem persists. Debugging is a bit tedious because they are on Galapagos, i.e. time difference. Could it be related to annotation sessions in any way?

mzur commented 6 years ago

If this problem persists this is definitely a bug. I'll see what we can do to debug this.

mzur commented 6 years ago

I grabbed the latest database backup from 14:00 and restored it to my local BIIGLE instance. Then I logged in as Camila and checked the views. Everything is looking fine:

screen shot 2018-04-26 at 14 45 16

It can't be any different in the production instance.

dlangenk commented 6 years ago

What about a timeout when loading the trees? Probably the image is loaded first blocks the next requests and they time out. Another researcher said that they had problems loading images on Galapagos because of the bad internet connection.

mzur commented 6 years ago

The label trees are embedded as JSON into the HTML. There is no extra request to fetch the label tree information. Only images and annotations are fetched through extra requests. The view on the screenshot is clearly "guest mode" which is not an error state. If the label trees couldn't be loaded somehow, the label trees tab would still be there, just empty.

You could ask Camila if she sees any JavaScript errors in the console (F12).

dlangenk commented 6 years ago

It's probably some caching problem or something like this. But they have a solution for now.

Email from Leigh:

Thanks for your email. So, we have logged in using Camila's account on Salomes's computer and it all works correctly. Apologies, we should have tried this sooner.

As Camila is a volunteer, she has to work over a WiFi connection, whereas Salome is staff, so has an ethernet cable.

I had wondered whether Camila's Macbook has cached the webpage - we cleared her history on Chrome, but still had no luck.

However, we have just tried with an alternate browser and it works! I have no idea why Chrome was causing issues, but problem solved!

mzur commented 6 years ago

Caching of the HTML page could indeed explain this. But it should definitely not happen as Biigle sets the cache-control: no-cache, private header on these pages. Even if the browser (erroneously) did that, clearing the browser cache should fix it. I seriously don't know what's going on there.

mzur commented 6 years ago

Closed until this happens again.