-
Notifications
You must be signed in to change notification settings - Fork 63
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
Sharing dataset with user does not persist #480
Comments
I am having trouble recreating this error. I have a few questions that might be able to help us track it down:
Some findings when trying to recreate this error for us:
|
After some testing, I notice that when I first make the dataset "public", then add the user, and refresh the page, the added user "persists". When I then make the dataset private again, the user is there. So this seems like a sort of workaround? |
Well, that is weirder. There are no checks related to a dataset being private in relation to adding new owners/viewers. If you own the dataset (or are an admin with rights to manipulate dataset), you can share it. You can monitor the frontend logs when you are trying to add a user to see if any error shows up. They located in Found another oddity:
|
I have done some more testing. Nothing shows up for this in the various log files in the frontend: |
That is quite strange! The query should either work immediately, or not at all. I don't know of any code in 4CAT that would make the query execute, but only after a delay. Two possibilities come to mind:
The second is relatively easy to check - add a user, and then force a refresh of the page (e.g. with ctrl + f5). Does the new user show up? The former is harder to ascertain, but are you connecting 4CAT to a different database than the one that would usually be used when running it via Docker? Did you change |
Yes, forcing a refresh of the page (i.e. not using the cached files) worked Other than running docker-compose with rootless podman instead of docker (and changing some port numbers, and version of postgres), the setup is otherwise the same (including no changes to (message edited because formatting made unclear that force refreshing page worked) |
I am trying to share my dataset with another user (4CAT v1.46). See xample below (a random dataset)

This seems to work, but when refreshing the page, the user disappears from "Dataset access" (i.e. it reverts back to the previous state).
The text was updated successfully, but these errors were encountered: