Skip to content

A different separator should be used in the names of roles and privileges #49

@PhilWun

Description

@PhilWun

The names of resource specific roles and privileges are made out of different parts e.g. HELPER_PATTERN_LANGUAGE_1234. HELPER is the first part and describes the role. PATTERN_LANGUAGE is the second part and describes the type of resource, 1234 is the last part and it's the ID of the resource. Currently different words are separated with an underscore e.g. PATTERN_LANGUAGE and the different parts are also separated by an underscore.

Is your feature request related to a problem? Please describe.
It makes it difficult to separate the different parts of a role or privilege name. It can also lead to problems if new roles or resource types are added in the future that contain another name as prefix and postfix e.g. if HELPER and HELPER_TEMPORARY exist as well as PATTERN_CANDIDATE and TEMPORARY_PATTERN_CANDIDATE it would be impossible to know if HELPER_TEMPORARY_PATTERN_CANDIDATE_1234 is a HELPER_TEMPORARY for a PATTERN_CANDIDATE or a HELPER for a TEMPORARY_PATTERN_CANDIDATE.

Describe the solution you'd like
Use a different separator for the parts that is not used in a role or privilege name for example a colon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions