Skip to content

[stable35] fix(tags): read the tag id from the node instead of its attributes - #3871

Draft
backportbot[bot] wants to merge 3 commits into
stable35from
backport/3863/stable35
Draft

backportbot[bot] wants to merge 3 commits into
stable35from
backport/3863/stable35

Conversation

@backportbot

@backportbot backportbot Bot commented Sep 13, 2026 •

Copy link
Copy Markdown

Backport of #3863

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot
backportbot Bot requested review from skjnldsv and susnux September 13, 2026 13:39
@backportbot backportbot Bot added bug Something isn't working 3. to review Waiting for reviews labels Sep 13, 2026
@backportbot backportbot Bot added this to the Nextcloud 35.0.1 milestone Sep 13, 2026
@skjnldsv
skjnldsv force-pushed the backport/3863/stable35 branch from 36c6586 to 568642d Compare October 16, 2026 07:52
@skjnldsv
skjnldsv force-pushed the backport/3863/stable35 branch from 568642d to 6bf54b8 Compare October 16, 2026 13:28
@codecov

codecov Bot commented Oct 16, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

skjnldsv and others added 3 commits October 17, 2026 01:49
The tags view has shown "No tags yet" for every account since the bump to
@nextcloud/files 4.0.0 (41ed241). The Node class gained an `id` getter,
and a Node refuses to store an attribute named after one of its getters, so
the `oc:id` property the systemtags-assigned listing answers was silently
dropped and `tag.attributes.id` became undefined for every tag. The view
then filtered every tag out.

The id is now handed to the Node as the file id it reads its own `id` from,
and the store keys tags by that `id`. Since Node ids are strings, the tag
ids of the store and the services follow.

The listing also leads with the collection itself, which the client does
not strip and which used to be discarded by the very same attribute check.
It is now filtered out before turning the entries into tags.

Assisted-by: ClaudeCode:claude-fable-5-1
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
test(e2e): cover the tags view

The overview listing a tag with its photo count, the photos of a tag and

no other, opening one in the viewer, the way back to the overview and the

empty state. Fails without the fix of the previous commit.

Assisted-by: ClaudeCode:claude-fable-5-1

Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Signed-off-by: John Molakvoæ <14975046+skjnldsv@users.noreply.github.com>
@skjnldsv
skjnldsv force-pushed the backport/3863/stable35 branch from 3eb5b88 to 055913c Compare October 16, 2026 23:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants