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

LX-325 Public data groups #328

Open
wants to merge 2 commits into
base: development
Choose a base branch
from
Open

Conversation

rogup
Copy link
Collaborator

@rogup rogup commented Aug 11, 2024

What? Why?

Closes #325

This change allows a user group to be made public, so all its associated datagroups are visible for all LX users. To configure this in the DB, add a row to user_group_memberships with the user_group_id we want to make public and user_id = -1 (i.e. the "public user").

What should we test?

  • Create/choose a user group (with id X) that has at least 1 associated data group
  • Log in to LX as a user who is in the user group. Confirm they can see the data layers.
  • Log in to LX on a separate browser as a user who isn't in the user group. Confirm they can't see the data layers.
  • Add a row to user_group_memberships with the user_group_id = X, user_id = -1, and access = 1 (readonly).
  • Refresh the app and confirm both users can now see the data layers. The first user should still be able to edit the datagroup (e.g. edit object descriptions or copy a map object to the datagroup), but the second user shouldn't be able to edit.
  • Delete the user_group_membership you just added and confirm the state has returned to what it was previously.

Release notes

Deployment notes

Documentation updates

rogup added 2 commits August 11, 2024 02:38
…ary dataGroupTitlesAndIDs state

(cherry picked from commit eaa1f2913bf67bee5960465b52f70659435f9e38)
(cherry picked from commit 64bfe122950706463d4da2a8b4946c37bdf6fcd4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[SF&G] Create option for data groups to be public
1 participant