0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-06 09:44:06 +08:00
discourse/plugins/poll/spec
Steven Chang 39f73fb398
DEV: add clean_up_inactive_users_query modifier for plugins to extend query for inactive users (#41372)
This PR adds Bookmarks and PostActions (likes) to the query for
`CleanUpInactiveUsers` to fetch qualified users.

This PR also allows plugins to modify the `CleanUpInactiveUsers` job
query for selecting which users to destroy. The modifier is given the AR
relation as the argument. Plugins should avoid executing the query, as
it expects a builder style pattern.

Implementation:
```ruby
register_modifier(:clean_up_inactive_users_query) do |relation|
  relation.where.missing(:table_name)
end
```
2026-07-06 09:39:11 -07:00
..
controllers SECURITY: Fix poll post_id array authorization bypass 2026-03-19 15:21:28 +00:00
fabricators
integration FIX: Respect poll result visibility for ranked-choice outcomes (#40578) 2026-06-04 12:04:38 -03:00
jobs DEV: add clean_up_inactive_users_query modifier for plugins to extend query for inactive users (#41372) 2026-07-06 09:39:11 -07:00
lib FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00
models FIX: match ActiveRecord#reload signature in overrides (#38639) 2026-03-17 09:10:34 +11:00
requests
serializers
system FIX: Preserve scroll position when toggling a poll's results (#41002) 2026-06-29 11:41:35 +02:00