Add organization_id to personal access tokens
What does this MR do and why?
This merge request introduces organization_id on personal access tokens table and set it as the sharding key for cells.
This table is used for human personal access tokens, project access tokens, group access tokens and service account personal access tokens.
For personal access tokens, the organization value is picked from the Organization.current
. For resource access tokens, it uses the organization_id of the corresponding resource.
Fixes #486030 (closed)
MR acceptance checklist
Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
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
Numbered steps to set up and validate the change are strongly suggested.