Skip to content

Fix: add warning when public tag used for rule and only load tags once for all rules#437

Merged
lukasdotcom merged 2 commits into
mainfrom
tag-warning
Jul 21, 2026
Merged

Fix: add warning when public tag used for rule and only load tags once for all rules#437
lukasdotcom merged 2 commits into
mainfrom
tag-warning

Conversation

@lukasdotcom

@lukasdotcom lukasdotcom commented Jun 3, 2026

Copy link
Copy Markdown
Member
image Fixes: #385 #386

…e for all rules

Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
@lukasdotcom
lukasdotcom requested a review from julien-nc June 3, 2026 13:12

@julien-nc julien-nc left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Optional remarks.

Tested, works fine.

Comment thread src/components/AdminSettings.vue
return [
'id' => $tag->getId(),
'displayName' => $tag->getName(),
'canAssign' => $tag->getAccessLevel() === ISystemTag::ACCESS_LEVEL_PUBLIC,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Shouldn't canAssign express if the current user can assign this tag? Currently is expressed if the tag is public. Might be fine, just curious.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

public tags are the only ones that can be assigned by any user. The wording isn't great though. I don't remember exactly why I chose that wording. It might have to do with the NcSelectTags component.

Signed-off-by: Lukas Schaefer <lukas@lschaefer.xyz>
@lukasdotcom
lukasdotcom merged commit 1aa2b0c into main Jul 21, 2026
44 checks passed
@lukasdotcom
lukasdotcom deleted the tag-warning branch July 21, 2026 13:57
@lukasdotcom lukasdotcom mentioned this pull request Jul 23, 2026
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.

Show warning when a public tag used as workflow trigger

2 participants