Skip to content

feat: Add per table stats to sync summaries#21107

Merged
kodiakhq[bot] merged 7 commits intomainfrom
feat/add_per_table_stats
Jul 24, 2025
Merged

feat: Add per table stats to sync summaries#21107
kodiakhq[bot] merged 7 commits intomainfrom
feat/add_per_table_stats

Conversation

@erezrokah
Copy link
Copy Markdown
Member

Summary

Adds per table stats for the sync summaries table (we already have total resources and source_errors)

@erezrokah erezrokah requested a review from a team as a code owner July 24, 2025 08:55
@erezrokah erezrokah requested a review from stoovon July 24, 2025 08:55
SyncGroupID *string `json:"sync_group_id,omitempty"`
ShardNum *int `json:"shard_num,omitempty"`
ShardTotal *int `json:"shard_total,omitempty"`
ResourcesPerTable map[string]uint64 `json:"resources_per_table,omitempty"`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went with 2 separate columns as it's aligned with resources, source_errors and destination_errors.
Also a map is easier to query on some databases (if I used a single column it will be a JSON column in most destinations)

ShardNum *int `json:"shard_num,omitempty"`
ShardTotal *int `json:"shard_total,omitempty"`
ResourcesPerTable map[string]uint64 `json:"resources_per_table,omitempty"`
ErrorsPerTable map[string]uint64 `json:"errors_per_table,omitempty"`
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can also do source_errors_per_table but I think it's clear these errors are from the source

@erezrokah erezrokah force-pushed the feat/add_per_table_stats branch from be78f99 to a77d1c2 Compare July 24, 2025 11:10
@erezrokah erezrokah added the automerge Automatically merge once required checks pass label Jul 24, 2025
@erezrokah erezrokah force-pushed the feat/add_per_table_stats branch from 16faf30 to 5732305 Compare July 24, 2025 12:19
@kodiakhq kodiakhq bot merged commit 0cbe42f into main Jul 24, 2025
18 checks passed
@kodiakhq kodiakhq bot deleted the feat/add_per_table_stats branch July 24, 2025 13:13
kodiakhq bot pushed a commit that referenced this pull request Jul 24, 2025
🤖 I have created a release *beep* *boop*
---


## [6.25.0](cli-v6.24.2...cli-v6.25.0) (2025-07-24)


### Features

* Add per table stats to sync summaries ([#21107](#21107)) ([0cbe42f](0cbe42f))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/cli automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants