discourse/app
Alan Guo Xiang Tan a473e352de
DEV: Introduce TopicGuardian#can_see_topic_ids method (#18692)
Before this commit, there was no way for us to efficiently check an
array of topics for which a user can see. Therefore, this commit
introduces the `TopicGuardian#can_see_topic_ids` method which accepts an
array of `Topic#id`s and filters out the ids which the user is not
allowed to see. The `TopicGuardian#can_see_topic_ids` method is meant to
maintain feature parity with `TopicGuardian#can_see_topic?` at all
times so a consistency check has been added in our tests to ensure that
`TopicGuardian#can_see_topic_ids` returns the same result as
`TopicGuardian#can_see_topic?`. In the near future, the plan is for us
to switch to `TopicGuardian#can_see_topic_ids` completely but I'm not
doing that in this commit as we have to be careful with the performance
impact of such a change.

This method is currently not being used in the current commit but will
be relied on in a subsequent commit.
2022-10-27 06:13:21 +08:00
..
assets DEV: Revert topic loading async changes (#18757) 2022-10-26 20:16:01 +02:00
controllers DEV: Load plugin CSS in tests (#18668) 2022-10-19 18:10:06 +01:00
helpers FIX: Add theme-color `<meta>` tag when a dark scheme is selected (#18747) 2022-10-26 07:18:05 +03:00
jobs PERF: Move dominant color calculation to separate job (#18501) 2022-10-06 13:26:08 +01:00
mailers FEATURE: Custom unsubscribe options (#17090) 2022-06-21 15:49:47 -03:00
models DEV: Introduce TopicGuardian#can_see_topic_ids method (#18692) 2022-10-27 06:13:21 +08:00
serializers DEV: move BasicUserWithStatusSerializer from Discourse Chat (#18745) 2022-10-26 16:41:31 +04:00
services UX: Send notification of type `replied` to topic author if they're watching the topic (#18684) 2022-10-25 11:53:35 +03:00
views FIX: Add theme-color `<meta>` tag when a dark scheme is selected (#18747) 2022-10-26 07:18:05 +03:00