QutEcoacoustics / workbench-client

workbench-client: a client side browser application for interacting with acoustic workbenches
Other
8 stars 1 forks source link

Intermitent bug where primary menu items which require authentication don't show on reload #2084

Closed hudson-newey closed 1 year ago

hudson-newey commented 1 year ago

Describe the bug Approximately 70% of the time when I reload the A2O project details page (using Ctrl + R or F5) it doesn't show the primary menu action items that I need to be authenticated for.

To Reproduce Steps to reproduce the behavior:

  1. Authenticate yourself using the "Log In" page
  2. Go to https://data.acousticobservatory.org/projects/1
  3. Refresh using Ctrl + R or F5 and observe that (approximately) 70% of the time, "Recording Uploads", "New Site", "Edit this project", and "Edit Permissions" aren't shown

Expected behavior All primary menu items which I have access to should be shown when refreshing the page

Screenshots

image Screenshot of my account being logged into the A2O without all menu items present

Desktop (please complete the following information):

atruskie commented 1 year ago

Related to #1979 ?

In that case I suspected it was the resolvers doing caching.

hudson-newey commented 1 year ago

Related to #1979 ?

In that case I suspected it was the resolvers doing caching.

Appears to be the same bug, however, I'm not 100% sure if this is due to resolver caching

Another strange point of note is I can't replicate either #1979 or this issue on staging or Ecosounds, only A2O. I've also tried setting "hideProjects": true in the development environment settings, but I can't replicate it with projects hidden either.

I'll be closing the issue nonetheless because resolving #1979 will resolve this issue too