Use the recently added contributions view for CA
What does this MR do and why?
This MR removes the contribution analytics specific materialized view/table and uses the new contributions
view for querying the data. Not a user-facing change.
The contributions
materialized views contains almost the same data but it includes some extra events that we need to filter out in query time.
How to set up and validate locally
- Ensure that you're on ultimate, click house is enabled and enable the feature flags
Feature.enable(:event_sync_worker_for_click_house) Feature.enable(:clickhouse_data_collection) ClickHouse::EventsSyncWorker.new.perform
- Visit any group, Analyze > ContributionAnalytics
- Some data should show up if there was activity in the group
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Adam Hegyi