Skip to content

refactor: Add new modern events for system tag lifecycle#58602

Open
CarlSchwan wants to merge 2 commits intomasterfrom
carl/systemtag-lifecycle-event
Open

refactor: Add new modern events for system tag lifecycle#58602
CarlSchwan wants to merge 2 commits intomasterfrom
carl/systemtag-lifecycle-event

Conversation

@CarlSchwan
Copy link
Member

Summary

The old one was deprecated in 22.0.0 but didn't had a replacement.

TODO

  • ...

Checklist

AI (if applicable)

  • The content of this PR was partly or fully generated using AI

@CarlSchwan CarlSchwan added this to the Nextcloud 34 milestone Feb 26, 2026
@CarlSchwan CarlSchwan self-assigned this Feb 26, 2026
@CarlSchwan CarlSchwan requested a review from a team as a code owner February 26, 2026 22:28
@CarlSchwan CarlSchwan requested review from ArtificialOwl, come-nc, icewind1991 and sorbaugh and removed request for a team February 26, 2026 22:28
@CarlSchwan CarlSchwan force-pushed the carl/systemtag-lifecycle-event branch from 77c26e2 to 63af7c2 Compare February 26, 2026 22:37
The old one was deprecated in 22.0.0 but didn't had a replacement.

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/systemtag-lifecycle-event branch from 63af7c2 to 1e3bc59 Compare February 26, 2026 22:39
@CarlSchwan CarlSchwan force-pushed the carl/systemtag-lifecycle-event branch 4 times, most recently from 5870a43 to 1228994 Compare March 3, 2026 13:15
@CarlSchwan
Copy link
Member Author

ping :)


if ($actor !== '' && $event instanceof TagAssignedEvent) {
foreach ($tags as $tag) {
$this->updateLastUsedTags($actor, $tag);
Copy link
Member

Choose a reason for hiding this comment

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

Last used tags will only be set if the activity app is enabled and only for files tags. Is that intended?

Copy link
Member Author

Choose a reason for hiding this comment

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

Behavior wise it is the same as the content in apps/systemtags/lib/Activity/Listener.php (basically copy pasted)

And as far as understand the code, this is not dependent on the activity app being enabled. The IActivityManager will create an activity but since the activity app is not enabled, it will just ignore it and continue

Copy link
Member

Choose a reason for hiding this comment

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

Signed-off-by: Carl Schwan <carlschwan@kde.org>
@CarlSchwan CarlSchwan force-pushed the carl/systemtag-lifecycle-event branch from 1228994 to 443424d Compare March 5, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants