discourse/plugins/automation/db/migrate
Sam 8c8bc94ed8
FEATURE: Add automation statistics tracking to Automation (#31921)
introduces comprehensive statistics tracking for the Discourse
Automation plugin, allowing users to monitor the performance and
execution patterns of their automations:

- Add `discourse_automation_stats` table to track execution metrics
including run counts, execution times, and performance data
- Create a new `Stat` model to handle tracking and retrieving automation
statistics
- Update the admin UI to display automation stats (runs today/this
week/month and last run time)
- Modernize the automation list interface using Glimmer components
- Replace the older enable/disable icon with a toggle switch for better
UX
- Add schema annotations to existing models for better code
documentation
- Include extensive test coverage for the new statistics functionality

This helps administrators understand how their automations are
performing and identify potential bottlenecks or optimization
opportunities.

---------

Co-authored-by: Joffrey JAFFEUX <j.jaffeux@gmail.com>
Co-authored-by: Ted Johansson <ted@discourse.org>
2025-03-21 12:53:26 +11:00
..
20190601000001_create_automations_table.rb
20210108134117_add_pending_pms_table.rb
20210512090204_add_timestamps_to_automations.rb
20210517073211_add_stalled_wiki_custom_fields_index.rb
20210528203310_post_migrate_gift_from_pm_to_pms.rb
20210530122323_move_triggers_to_fields.rb
20210530122334_move_existing_triggers_to_fields.rb
20210603135629_convert_date_component_to_date_time.rb
20210702084757_force_value_for_every_fields.rb
20210805204149_makes_automation_disabled_by_default.rb
20211015092047_adds_automation_ids_index_to_post_custom_fields.rb
20211015092048_make_discourse_automation_id_an_array_on_topic_custom_fields.rb
20211015092049_adds_automation_ids_index_to_user_custom_fields.rb
20211119103353_adds_discourse_automation_user_global_notice.rb
20220419124720_convert_recurrence_to_custom_field.rb
20221006130454_add_auto_responder_triggered_ids_index.rb
20230412120414_add_prefers_encrypt_field_to_pending_pms.rb
20231017175757_change_user_group_membership_through_badge_script_badge_name_field_to_badge.rb
20231022224833_update_custom_field_data.rb
20240507112651_switch_topic_automation_custom_fields_to_json.rb DEV: Promote historic post_deploy migrations for core plugins. (#30987) 2025-01-24 11:47:03 -03:00
20240507112751_switch_user_automation_custom_fields_to_json.rb DEV: Promote historic post_deploy migrations for core plugins. (#30987) 2025-01-24 11:47:03 -03:00
20240507112851_switch_topic_automation_triggered_ids_custom_fields_to_json.rb DEV: Promote historic post_deploy migrations for core plugins. (#30987) 2025-01-24 11:47:03 -03:00
20240507112951_drop_automation_ids_custom_field_indexes.rb DEV: Promote historic post_deploy migrations for core plugins. (#30987) 2025-01-24 11:47:03 -03:00
20240906142121_migrate_fields_from_group_to_groups.rb FIX: supports groups field in post_created_edited (#28783) 2024-09-06 17:22:42 +02:00
20241010155139_alter_automation_ids_to_bigint.rb DEV: Set bigint sequences to start at MAX_INT (#28961) 2024-10-10 19:28:45 +03:00
20241016174732_remove_name_requirement_from_automations.rb UX: simplify and shorten new script flow for automations (#29178) 2024-10-23 14:04:17 -04:00
20250319232839_add_automation_stats.rb FEATURE: Add automation statistics tracking to Automation (#31921) 2025-03-21 12:53:26 +11:00