esgf2-us / metagrid

ESGF Search UI
https://metagrid.readthedocs.io/en/latest/
MIT License
17 stars 4 forks source link

Sign out appears to clear search #633

Open sashakames opened 3 months ago

sashakames commented 3 months ago

I had a search I intended to save but it did not save with a "Forbidden" message. Then I thought to signout and back in again. That cleared the search. Should not happen!!

sturoscy-personal commented 3 months ago

Session data is cleared on Django logout https://docs.djangoproject.com/en/5.0/topics/auth/default/#how-to-log-a-user-out

https://github.com/esgf2-us/metagrid/blob/master/backend/metagrid/api_proxy/views.py#L46-L49

sashakames commented 3 months ago

Thanks @sturoscy-personal - then it would be great to figure out how to either work around that on the frontend, or have to be very clear that sign out will clear the search context. Right now there are too many glitches that the product lacks the stability. Hopefully many of these things well get resolved.