mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 12:24:55 +00:00
Before this fix if the underlying model of a reviewable was changed, the filter wouldn't work anymore as it was expecting a 1:1 relation between filter type and model name. This commit also relies on the `Reviewable.types` array to check against valid types instead of a regex not checking much. Finally this commit adds a spec to ensure chat reviewables are listable from the review index page.