Set sharding keys for feature category integrations tables
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
About
Note from @georgekoltsov on slack 2025-10-23:
[this issue] is not really an actionable issue for us to work on. It's an overarching issue that was tracking ALL the integrations tables, before we've split it into multiple issues. We reopened this issue because it was referenced as sharding_key_issue_url for some of the tables in the codebase. I was going to close it once all of the tables are completed, or we can update sharding_key_issue_url for the remaining tables that reference this issue and close it off now
As part of Cells preparation, all tables need to have a "sharding key" defined.
This issue was created from !152745 (merged) where we set the sharding_key_issue_url for some feature category integrations tables to point to this issue, as a temporary step to allow us to schedule the work into a milestone.
If we have questions or concerns, we can reach out to #g_tenant-scale.
The below description was copied from !152745 (merged).
Task
Sharding keys need to be set for the tables:
chat_namesintegrationsissue_tracker_datajira_connect_installationsjira_tracker_dataslack_api_scopesslack_integrationsslack_integrations_scopesweb_hook_logs_dailyweb_hookszentao_tracker_data
This involves choosing one of the following, based on the intended behaviour of the table:
-
The table is not cell-local
- Set
gitlab_schematogitlab_main_clusterwide.
- Set
-
The table is cell-local and requires a sharding key
- Set
gitlab_schematogitlab_main_cell - Add a
sharding_keyordesired_sharding_keyconfiguration. If the configuration is known but the chosen key doesn't yet meet not-null and foreign key requirements, you can add an exception toallowed_to_be_missing_not_nullorallowed_to_be_missing_foreign_keyto get the pipeline passing. Please link to a follow-up issue in a code comment next to the exception. - You may also need to set
allow_cross_joins,allow_cross_transactionsandallow_cross_foreign_keysif changing the schema causes pipeline failures. Seedb/docs/epics.ymlfor an example.
- Set
-
The table is cell-local and does not require a sharding key
- Set
gitlab_schematogitlab_main_cell_localand - No foreign key references to/from organization tables
- Set