feat(auth): add BulkUpsertClients with per-record results
InternalOAuthClientsService.BulkUpsertClients now writes up to 1,000 clients in one statement with UpsertClient semantics (gitlab-org/gitlab#635781 (closed)).
The handler validates each record, refuses a later repeat of a client id as DUPLICATE, and writes the rest with one unnest INSERT ON CONFLICT. A refused record is reported in its result. Only a failed write fails the call, and then nothing is written.
The per-record pipeline sits in the clients package for now. The next part moves it to a shared package for the refresh-token RPCs. Start with the handler, then the pipeline and its tests. The through-server test covers the service token, the bound and a shuffled batch on both backends.
Part 2 of 7. The full change is in !959 (closed), the integration MR, kept open for the big picture.
- !988 (merged) feat(proto): add BulkUpsertClients and UpsertResult
- !989 (merged) feat(auth): add BulkUpsertClients with per-record results <- this MR
- !990 (merged) refactor(auth): move the bulk record helpers to internal/batch
- !991 (merged) feat(auth): add refresh-token BulkUpsert with per-record results
- !992 (merged) feat(auth): add refresh-token BulkDelete
- !993 (merged) feat(auth): add refresh-token GetState
- !994 (merged) feat(auth): count bulk RPC records by outcome
Previous: !988 (merged) · Next: !990 (merged)