tsdataclinic / scout

Scout is a data discovery tool to explore open data portals worldwide.
https://scout.tsdataclinic.com
Apache License 2.0
33 stars 12 forks source link

[BUG] Creating a collection while authenticated still shows up when logging out #273

Open jps327 opened 2 years ago

jps327 commented 2 years ago

Describe the bug If you are authenticated and create a collection, and then log out, the collection will still show up in the Collections popover. It should not show up anymore if you are logged out.

If you then sign in again and then sign back out, the collection no longer shows up in the popover. So signing in/out clears the local cache, but there is something going on when you first create a collection while authenticated that is making the collection stay in the local cache (in indexedDB).

To Reproduce Steps to reproduce the behavior:

  1. Log in
  2. Create a collection
  3. Sign out
  4. Click on the "Collections" tab in the side bar to open the popover. The collection you just created will be there. It shouldn't be there if we're logged out!
  5. Log in again
  6. Sign back out
  7. Click on the "Collections" tab in the sidebar. The collection is now gone (as it should be).
  8. See error

Expected behavior The collections we create while authenticated should only be seen while we are authenticated! When logged out they should not be showing up.

Screenshots n/a

Desktop (please complete the following information):

Additional context n/a