0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/plugins/poll/db/migrate
Régis Hanol 72091d161c
FEATURE: Record who closed a poll (#40989)
Previously, there was no way to tell who closed (or reopened) a poll —
neither the staff action log nor the poll itself recorded it, as raised
in [meta](https://meta.discourse.org/t/who-closed-the-poll/405495).

This change logs `poll_closed`/`poll_opened` staff actions (auto-close
attributed to the system user) and stores `closed_by`/`closed_at` on the
poll, surfacing "Closed by @user" in the poll UI and making the closer
queryable.

---

Also includes a small fix: the poll buttons dropdown rendered a
`<dropdown.divider />` after every item, leaving a stray trailing border
below the last option; it now renders dividers only between items.

**Screenshot**

<img width="1400" height="1200" alt="image"
src="https://github.com/user-attachments/assets/fd04353a-eac6-448d-904e-47b8e5f8f14f"
/>
2026-06-29 12:22:43 +02:00
..
20150501152228_rename_total_votes_to_voters.rb
20151016163051_merge_polls_votes.rb
20160321164925_close_polls_in_closed_topics.rb
20180820073549_create_polls_tables.rb
20180820080623_migrate_polls_data.rb
20191114160613_add_graph_to_polls.rb
20191206123012_add_group_name_to_polls.rb
20200804144550_add_title_to_polls.rb
20230612134421_remove_old_polls_data_from_custom_fields.rb
20230614041219_delete_duplicate_poll_votes.rb
20240122015626_fill_poll_create_allowed_groups_based_on_deprecated_setting.rb DEV: Promote historic post_deploy migrations for core plugins. (#30987) 2025-01-24 11:47:03 -03:00
20240416105733_add_rank_to_poll_votes.rb
20241105211601_delete_zero_rank_user_vote_collections_from_poll_votes.rb
20250817090000_add_dynamic_to_polls.rb FEATURE: dynamic poll support (#34368) 2025-08-19 16:43:36 +10:00
20260617104005_add_closed_by_to_polls.rb FEATURE: Record who closed a poll (#40989) 2026-06-29 12:22:43 +02:00