Skip to content

Refactor event sync worker

What does this MR do and why?

Refactor event sync worker

This commits adds strategy pattern to sync tables from postgresql to clickhouse. Also onboards event sync strategy for events table.

Changelog: other

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After

How to set up and validate locally

  1. Setup ClickHouse https://docs.gitlab.com/ee/development/database/clickhouse/clickhouse_within_gitlab.html#gdk-setup
  2. Run ClickHouse::EventsSyncWorker.new.perform in rails console

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #427738

Edited by Harsimar Sandhu

Merge request reports