-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Organization restricted datastore (#4892)
* add db column to datastore * backend changes * ignore forbidden orgs when reporting datasets * Update app/models/binary/DataSetService.scala Co-authored-by: Florian M <[email protected]> * add readAccessQ * bump schema version Co-authored-by: Florian M <[email protected]>
- Loading branch information
Showing
11 changed files
with
52 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
-- https://github.com/scalableminds/webknossos/pull/4892 | ||
|
||
START TRANSACTION; | ||
|
||
DROP VIEW webknossos.dataStores_; | ||
|
||
ALTER TABLE webknossos.dataStores ADD COLUMN onlyAllowedOrganization CHAR(24); | ||
|
||
CREATE VIEW webknossos.dataStores_ AS SELECT * FROM webknossos.dataStores WHERE NOT isDeleted; | ||
|
||
UPDATE webknossos.releaseInformation SET schemaVersion = 58; | ||
|
||
COMMIT TRANSACTION; |
11 changes: 11 additions & 0 deletions
11
conf/evolutions/reversions/058-add-onlyAllowedOrganization.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
START TRANSACTION; | ||
|
||
DROP VIEW webknossos.dataStores_; | ||
|
||
ALTER TABLE webknossos.dataStores DROP onlyAllowedOrganization; | ||
|
||
CREATE VIEW webknossos.dataStores_ AS SELECT * FROM webknossos.dataStores WHERE NOT isDeleted; | ||
|
||
UPDATE webknossos.releaseInformation SET schemaVersion = 57; | ||
|
||
COMMIT TRANSACTION; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
name,url,publicUrl,key,isScratch,isDeleted,isForeign,isConnector,allowsUpload | ||
'localhost','http://localhost:9000','http://localhost:9000','something-secure',f,f,f,f,t | ||
'connect','http://localhost:8000','http://localhost:8000','secret-key',f,f,f,t,f | ||
name,url,publicUrl,key,isScratch,isDeleted,isForeign,isConnector,allowsUpload,onlyAllowedOrganization | ||
'localhost','http://localhost:9000','http://localhost:9000','something-secure',f,f,f,f,t, | ||
'connect','http://localhost:8000','http://localhost:8000','secret-key',f,f,f,t,f, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters