Skip to content

DEV: Update tag_id usage to tag_name where a tag's name is referenced#85

Merged
nattsw merged 2 commits intomainfrom
tag-name
Dec 29, 2025
Merged

DEV: Update tag_id usage to tag_name where a tag's name is referenced#85
nattsw merged 2 commits intomainfrom
tag-name

Conversation

@nattsw
Copy link
Contributor

@nattsw nattsw commented Dec 26, 2025

context

Related: discourse/discourse#36226

The TagShowRoute originally stores the backend-returned tag tag = { id: 123, name: "tag-name" } into the frontend model as { id: tag.name }.

change made

This theme component thus uses this.discovery.tag?.id, which needs to be converted to this.discovery.tag?.name instead.

@nattsw
Copy link
Contributor Author

nattsw commented Dec 26, 2025

Test will fail until discourse/discourse#36226 is merged.

import discoveryFixture from "discourse/tests/fixtures/discovery-fixtures";
import { acceptance } from "discourse/tests/helpers/qunit-helpers";

acceptance("topic thumbnails | tag route integration", function (needs) {
Copy link
Member

Choose a reason for hiding this comment

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

🤩

@nattsw nattsw merged commit 0c316b5 into main Dec 29, 2025
13 of 15 checks passed
@nattsw nattsw deleted the tag-name branch December 29, 2025 06:19
kjmesu pushed a commit to kjmesu/discourse-topic-thumbnails that referenced this pull request Jan 1, 2026
…discourse#85)

* DEV: Update tag_id usage to tag_name where a tag's name is referenced

* add test that will pass after merge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants