discourse/app/models/concerns/reports
Gabriel Grubba 8d28038666
FEATURE: Add WebHookEventsDailyAggregate report page (#27573)
* FEATURE: Add WebHookEventsDailyAggregate

Add WebHookEventsDailyAggregate model to store daily aggregates of web hook events.
Add AggregateWebHooksEvents job to aggregate web hook events daily.
Add spec for WebHookEventsDailyAggregate model.

* DEV: Update annotations for web_hook_events_daily_aggregate.rb

* DEV: Update app/jobs/scheduled/aggregate_web_hooks_events.rb

Co-authored-by: Martin Brennan <martin@discourse.org>

* DEV: Address review feedback

Solves:
- https://github.com/discourse/discourse/pull/27542#discussion_r1646961101
- https://github.com/discourse/discourse/pull/27542#discussion_r1646958890
- https://github.com/discourse/discourse/pull/27542#discussion_r1646976808
- https://github.com/discourse/discourse/pull/27542#discussion_r1646979846
- https://github.com/discourse/discourse/pull/27542#discussion_r1646981036

* A11Y: Add translation to retain_web_hook_events_aggregate_days key

* FEATURE: Purge old web hook events daily aggregate

Solves: https://github.com/discourse/discourse/pull/27542#discussion_r1646961101

* DEV:  Update tests for web_hook_events_daily_aggregate

Update WebHookEventsDailyAggregate to not use save! at the end
Solves: https://github.com/discourse/discourse/pull/27542#discussion_r1646984601

* PERF: Change job query to use WebHook table instead of WebHookEvent table

* DEV: Update tests to use `fab!`

* DEV: Address code review feedback.

Add idempotency to job
Add has_many to WebHook

* FEATURE: Add WebHookEventsDailyAggregate report page

Add locales for the new report page
Reorder imports in the report.rb

* DEV: Remove logger line

* FEATURE: Add `auto_insert_none_item` option to `report-filters` components

---------

Co-authored-by: Martin Brennan <martin@discourse.org>
2024-06-27 10:26:42 -03:00
..
bookmarks.rb DEV: Add missing report filter type in bookmarks report (#22616) 2023-07-18 11:07:01 +08:00
consolidated_api_requests.rb UX: Change consolidated pageview experimental report colors (#27240) 2024-05-29 17:01:30 +10:00
consolidated_page_views_browser_detection.rb UX: Change consolidated pageview experimental report colors (#27240) 2024-05-29 17:01:30 +10:00
consolidated_page_views.rb UX: Change consolidated pageview experimental report colors (#27240) 2024-05-29 17:01:30 +10:00
daily_engaged_users.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
dau_by_mau.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
emails.rb
flags_status.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
flags.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
likes.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
mobile_visits.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
moderator_warning_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
moderators_activity.rb FIX: Add 'Ignored' flags to Moderator Activity report (#22041) 2023-08-02 12:27:31 +01:00
new_contributors.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
notify_moderators_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
notify_user_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
post_edits.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
posts.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
profile_views.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
signups.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
staff_logins.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
storage_stats.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
suspicious_logins.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
system_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
time_to_first_response.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_ignored_users.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_referred_topics.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_referrers.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_traffic_sources.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_uploads.rb DEV: Prefer \A and \z over ^ and $ in regexes (#19936) 2023-01-20 12:52:49 -06:00
top_users_by_likes_received_from_a_variety_of_people.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_users_by_likes_received_from_inferior_trust_level.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
top_users_by_likes_received.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
topics_with_no_response.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
topics.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
trending_search.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
trust_level_growth.rb UX: Use fixed colors for admin stacked chart reports (#21371) 2023-05-04 08:35:19 +02:00
user_flagging_ratio.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
user_to_user_private_messages_with_replies.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
user_to_user_private_messages.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
users_by_trust_level.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
users_by_type.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
visits.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
web_crawlers.rb DEV: Apply syntax_tree formatting to app/* 2023-01-09 14:14:59 +00:00
web_hook_events_daily_aggregate.rb FEATURE: Add WebHookEventsDailyAggregate report page (#27573) 2024-06-27 10:26:42 -03:00