Skip to content

Conversation

@bolmsten
Copy link
Contributor

@bolmsten bolmsten commented Dec 3, 2025

Screenshot 2025-12-10 at 11 46 35

Description

My proposal is to continue using pre-defined roles (now called root roles) and dashboards, but allow for the creation of dervied roles that has two attributes: “data access” and “permissions/config”. The derived roles link to the root roles and inherits the dashboard and the permissions of the root role. This means that much of the code can stay the same.

For example: I added a new root role with associated dashboard and created two derived roles ISIS_READ and CLF_READ—both using from the root role proposal_reader role. The only difference between the dervied roles is the data access tags. That would allow users to login and see a proposal table with only the proposals that has the instrument associated with their data access tag.

We can do minor configurations for each dashboard using a permission/config defined on the derived role and we can set the data access either by using tags.

It would also allow for different facilities to rename roles like FAP Reviewer to PEP Reviewer.

image image

@bolmsten bolmsten requested a review from a team as a code owner December 3, 2025 13:38
@bolmsten bolmsten requested review from TCMeldrum and removed request for a team December 3, 2025 13:38
@bolmsten bolmsten requested a review from janosbabik December 4, 2025 08:39
@bolmsten bolmsten changed the title Poc dynamic role creation Poc derivated role creation Dec 10, 2025
Copy link
Contributor

Choose a reason for hiding this comment

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

suggestion: Looks like an empty file

},
{} as Record<string, { dataAccess: string[] }>
);
proposalIsntruments.forEach((instrument) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

nitpick: typo

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.

3 participants