Skip to content

Technical Story: Map roles directly to roles #581

@MasterEvarior

Description

@MasterEvarior

Description

Currently the roles are mapped only to calculations. Because one cannot add a new calculations without a role and also cannot add a new role without a calculation, this makes it currently impossible to create new calculations non-associated roles.

The roles should now also be possible to add to a specific user. Each role that is associated with a user, should be displayed as a tab on their page. See image for clarification:

Image

Which roles are associated should be configurable through the member edit page. A user does not need to have a role associated but if no role is associated, no calculcations can be created. The interaction should be done through a multi-select autocomplete.

The database association can be done through a three-way intermediate table.

Acceptance Criteria

  • Each user can have 0..n roles
  • Each calculation can only have one role
  • For each role, a corresponding calculation tab is displayed
  • The roles can be selected on the member edit page
  • All existing roles/calculations get migrated
  • Tests have been written where appropriate

Additional Information

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions