molgenis / molgenis-emx2

MOLGENIS EMX2, the latest version of the MOLGENIS data platform.
GNU Lesser General Public License v3.0
11 stars 16 forks source link

feat: beacon permissions #3846

Closed harmbrugge closed 3 weeks ago

harmbrugge commented 1 month ago

What are the main changes you did: Added three permission levels secure the beacon responses BOOLEAN, COUNT and RANGE : Exists (boolean yes/no response to queries) Range (inexact number of results found) Count (exact number of counts)

Other permissions: if you have view permission you always get the exact count as an aggregator you only get an exact match if user only if counts >= 10

Step size for range queries are currently hardcoded at 10.

todo:

harmbrugge commented 3 weeks ago

Looks great, but I would like to request an additional 'count' permission to allow fine-grained discovery for rare disease use cases.

Agreed: added a count user allowing to see count queries with results < 10

sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed

Issues
37 New issues
0 Accepted issues

Measures
0 Security Hotspots
86.1% Coverage on New Code
0.4% Duplication on New Code

See analysis details on SonarCloud