Skip to content

feat(systemtag): Add $user context to create and update tag#59222

Open
artonge wants to merge 2 commits intomasterfrom
artonge/fix/systemtag_user_context
Open

feat(systemtag): Add $user context to create and update tag#59222
artonge wants to merge 2 commits intomasterfrom
artonge/fix/systemtag_user_context

Conversation

@artonge
Copy link
Collaborator

@artonge artonge commented Mar 26, 2026

This would allow different use cases than what is possible now.

Signed-off-by: Louis Chmn <louis@chmn.me>
@artonge artonge changed the title [local] feat(systemtag): Add $user context to create and update tag feat(systemtag): Add $user context to create and update tag Mar 26, 2026
@artonge artonge marked this pull request as ready for review March 26, 2026 11:45
@artonge artonge requested a review from a team as a code owner March 26, 2026 11:45
@artonge artonge requested review from ArtificialOwl, CarlSchwan, come-nc and provokateurin and removed request for a team March 26, 2026 11:45
@artonge artonge added 2. developing Work in progress 3. to review Waiting for reviews and removed 3. to review Waiting for reviews labels Mar 26, 2026
Copy link
Member

@provokateurin provokateurin left a comment

Choose a reason for hiding this comment

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

Otherwise it's a breaking change

* @since 31.0.0 Can throw TagCreationForbiddenExceptionif user doesn't have the right to create a new tag
*/
public function createTag(string $tagName, bool $userVisible, bool $userAssignable): ISystemTag;
public function createTag(string $tagName, bool $userVisible, bool $userAssignable, ?IUser $user): ISystemTag;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function createTag(string $tagName, bool $userVisible, bool $userAssignable, ?IUser $user): ISystemTag;
public function createTag(string $tagName, bool $userVisible, bool $userAssignable, ?IUser $user = null): ISystemTag;

* @since 31.0.0 `$color` parameter added
*/
public function updateTag(string $tagId, string $newName, bool $userVisible, bool $userAssignable, ?string $color);
public function updateTag(string $tagId, string $newName, bool $userVisible, bool $userAssignable, ?string $color, ?IUser $user): void;
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
public function updateTag(string $tagId, string $newName, bool $userVisible, bool $userAssignable, ?string $color, ?IUser $user): void;
public function updateTag(string $tagId, string $newName, bool $userVisible, bool $userAssignable, ?string $color, ?IUser $user = null): void;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

2. developing Work in progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants