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

Organization restricted datastore #4892

Merged
merged 13 commits into from
Oct 29, 2020
Merged

Conversation

youri-k
Copy link
Contributor

@youri-k youri-k commented Oct 23, 2020

URL of deployed dev instance (used for testing):

  • https://___.webknossos.xyz

Steps to test:

  • set up local standalone datastore
  • change db column onlyAllowedOrganization to random id => upload to that ds should fail
  • change db column onlyAllowedOrganization to organization id => upload to that ds should work when logged in as user of that org

Issues:


@youri-k youri-k requested a review from fm3 October 23, 2020 11:51
@youri-k youri-k self-assigned this Oct 23, 2020
@fm3
Copy link
Member

fm3 commented Oct 26, 2020

Changes thus far LGTM, but I think another change is required: datasets reported by that datastore should be ignored (probably with command line warning) if they are not for its organization

Copy link
Member

@fm3 fm3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Backend LGTM.

Sorry, one more concern: should the datastore be visible to users of other organizations? Maybe adapt the accessQuery? (Or if that causes trouble, at least hide it from the upload form dropdown menu? The refresh button should probably also not talk to datastores specific to other organizations)

conf/messages Show resolved Hide resolved
app/models/binary/DataSetService.scala Outdated Show resolved Hide resolved
@youri-k youri-k merged commit 5c06706 into master Oct 29, 2020
@fm3 fm3 deleted the organization-restricted-datastore branch January 18, 2021 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Organization-specific datastore
2 participants