Skip to content

fix: update CSV file generators for topic tags#645

Merged
dmitrytrager merged 2 commits intomainfrom
fix/csv-file-for-topics
Apr 7, 2026
Merged

fix: update CSV file generators for topic tags#645
dmitrytrager merged 2 commits intomainfrom
fix/csv-file-for-topics

Conversation

@dmitrytrager
Copy link
Copy Markdown
Collaborator

Since tags are not language agnostic we do not use #tags_on function anymore. Language scope for content works via topics only and for topics we now use #taggings and #tag_list functions

What Issue Does This PR Cover, If Any?

Resolves issue when Spanish topic has tags but tag csv files for Spanish do not have these tags

What Changed? And Why Did It Change?

How Has This Been Tested?

Please Provide Screenshots

Additional Comments

Since tags are not language agnostic we do not use #tags_on function anymore.
Language scope for content works via topics only and
for topics we now use #taggings and #tag_list functions
@dmitrytrager dmitrytrager marked this pull request as ready for review April 6, 2026 22:20
@@ -14,13 +14,13 @@ def headers

def scope
language.topics.active.includes(:tags)
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Would this prevent n+1?
includes(taggings: :tag)

Same for the topic_tags generator.

Copy link
Copy Markdown
Collaborator

@dcollie2 dcollie2 left a comment

Choose a reason for hiding this comment

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

I suggested an N+1 related change but this will work with or without that.

@dmitrytrager dmitrytrager merged commit fb82dc7 into main Apr 7, 2026
4 checks passed
@dmitrytrager dmitrytrager deleted the fix/csv-file-for-topics branch April 7, 2026 15:27
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.

2 participants