Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

After switching user, there are errors due to requests for previous user's corpora #55

Open
arildm opened this issue Jan 31, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@arildm
Copy link
Member

arildm commented Jan 31, 2023

Corpus ids are saved in browser state, and those corpora are requested as the new user. Until the list-corpora call returns the new list of ids.

Error messages can be improved in #52 but we probably should avoid requesting the wrong corpora at all.

@arildm arildm added bug Something isn't working effort 2 medium labels Jan 31, 2023
@arildm
Copy link
Member Author

arildm commented Apr 6, 2023

Same if working on one machine/browser, continuing in another and removing a corpus, and then switching back to the first. The state in the first will still contain the deleted corpus.

@arildm
Copy link
Member Author

arildm commented Jun 12, 2023

Store the user id in local store. When handling the jwt response, if the active user is different than the stored id, clear the corpus store.

@arildm
Copy link
Member Author

arildm commented Oct 3, 2023

This also happens when enabling and disabling the admin mode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant