Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Introduce tag scope #275

Open
moebiusband73 opened this issue Jun 28, 2024 · 1 comment · May be fixed by #289
Open

Introduce tag scope #275

moebiusband73 opened this issue Jun 28, 2024 · 1 comment · May be fixed by #289
Assignees
Labels
backend backend API related issues enhancement New feature or request
Milestone

Comments

@moebiusband73
Copy link
Member

Currently tags are globally visible. Everybody including regular users can see all tags.

It would be useful if tags set by users are restricted to one user and globale tags are not visible to regular users.

A possible implementation would add a column scope which is then either global oder a user_id. For a regular user only his own tags are shown.
The scope column can be set implicitly by considering the highest role.

@moebiusband73 moebiusband73 added enhancement New feature or request backend backend API related issues labels Jun 28, 2024
@moebiusband73 moebiusband73 added this to the Release 1.4.0 milestone Jul 11, 2024
@spacehamster87 spacehamster87 self-assigned this Aug 2, 2024
@spacehamster87
Copy link
Contributor

spacehamster87 commented Aug 2, 2024

  • New column scopein tag table
  • Value is String with one of three (for now) classes
    • $Username: The username of the user creating the tag, equivalent to Private, thus only visible to the user
    • global: Tags visible for everyone, e.g. auto-tagged software tags via API
    • admin: Tags visible for administrative staff only (roles admin, support), e.g. tags relating to job health
  • Creating tags in the interface
    • User role users will see no difference, tags will automatically be private in scope
    • Admin role users will see an additional selector, allowing to select the scope of the new tag (Defaults to Private)
  • Creating tags via API
    • type ApiTag now includes field for the scope of the to be created tag
  • Visibility of Tags
    • Tag scopes are colored differently
    • Tags will be filtered by scope before being delivered to filter component, tags view and tagManagement modal

@spacehamster87 spacehamster87 linked a pull request Sep 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend backend API related issues enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants