- SB-10531Getting issue details... STATUS
Overview
As part of the linked story - we need to add the new role to set of existing roles for Data dashboards.
Solution
Approach 1
We will add the following record to existing Roles table:
(id, name, rolegroupid, status) → ( "REPORT_ADMIN", "Report Admin", "REPORT_ADMIN", 1)
We will also have to add the migration file for up-gradation purposes.
Pros:
- Easy to maintain
- Can store complex definitions or extend in future if required
Approach 2: Hard-code into System Settings.
Cons:
- Difficult to store more structured data
- In future if the role definition gets complex, this is not ideal place to maintain
- Difficult for migrations - when roles get updated.