Comment lists should be filterable. A typical use case is the one introduced in #539110-61: TF #4: Translatable fields UI: per-language filtering.

CommentFileSizeAuthor
#1 comment-641034-1.patch972 bytesplach

Comments

plach’s picture

Status: Active » Needs review
Issue tags: +translatable fields
StatusFileSize
new972 bytes
plach’s picture

IMO this issue is only an exception: we need those tags primarly beacuse in the case of comments the item list is embedded into another's entity renderable content, so it's not that easy to replace it with a view (and core can't do that), I can't think of other item lists in core with the same problems.

sun’s picture

err... this code just adds context, but doesn't change any behavior and doesn't add any visible functionality. Can you explain again why we need this?

plach’s picture

In TF4 we need this to allow to filter comment lists per language, this way different translations may appear as different nodes.

sun’s picture

Status: Needs review » Reviewed & tested by the community

Alrighty!

webchick’s picture

Status: Reviewed & tested by the community » Fixed

I had asked plach on IRC whether it made sense to generalize this out a bit, since it seemed odd to add such metadata to comment queries and not others. He said that comments are really the only thing, in core at least, that's tricky like this because it's inherently tied to a node, and needs to get translation data from that.

Committed to HEAD!

plach’s picture

yay!

Status: Fixed » Closed (fixed)
Issue tags: -translatable fields

Automatically closed -- issue fixed for 2 weeks with no activity.