zitadel/internal/eventstore
Livio Spring fb162a7d75
fix(login): improve auth handlers (#7969)
# Which Problems Are Solved

During the implementation of #7486 it was noticed, that projections in
the `auth` database schema could be blocked.
Investigations suggested, that this is due to the use of
[GORM](https://gorm.io/index.html) and it's inability to use an existing
(sql) transaction.
With the improved / simplified handling (see below) there should also be
a minimal improvement in performance, resp. reduced database update
statements.

# How the Problems Are Solved

The handlers in `auth` are exchanged to proper (sql) statements and gorm
usage is removed for any writing part.
To further improve / simplify the handling of the users, a new
`auth.users3` table is created, where only attributes are handled, which
are not yet available from the `projections.users`,
`projections.login_name` and `projections.user_auth_methods` do not
provide. This reduces the events handled in that specific handler by a
lot.

# Additional Changes

None

# Additional Context

relates to #7486
2024-05-22 15:26:02 +00:00
..
handler fix(login): improve auth handlers (#7969) 2024-05-22 15:26:02 +00:00
repository fix: add action v2 execution to features (#7597) 2024-04-09 20:21:21 +03:00
v1/models refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
v3 fix(crdb): obtain latest sequences when the tx is retried (#7795) 2024-04-18 13:07:05 +00:00
aggregate.go feat: restrict languages (#6931) 2023-12-05 11:12:01 +00:00
asset.go fix(eventstore): sub queries (#1805) 2021-07-06 13:55:57 +02:00
bench_payload.txt feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
config.go fix(eventstore): retry push on primary key sequence collision (#7420) 2024-02-23 08:29:10 +00:00
event_base.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
event.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
eventstore_bench_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_pusher_test.go fix(crdb): obtain latest sequences when the tx is retried (#7795) 2024-04-18 13:07:05 +00:00
eventstore_querier_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
eventstore_test.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
eventstore.go chore: use pgx v5 (#7577) 2024-03-27 15:48:22 +02:00
example_test.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
local_crdb_test.go chore(core): update dependencies (#7517) 2024-03-11 10:43:56 +00:00
read_model.go feat(api): feature flags (#7356) 2024-02-28 10:55:54 +02:00
search_query_test.go fix(eventstore): improve pagination of handler filter (#6968) 2023-12-01 12:25:41 +00:00
search_query.go fix(setup): init projections (#7194) 2024-01-25 17:28:20 +01:00
subscription.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
unique_constraint.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version_test.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00
version.go refactor: rename package errors to zerrors (#7039) 2023-12-08 15:30:55 +01:00
write_model.go feat(eventstore): increase parallel write capabilities (#5940) 2023-10-19 12:19:10 +02:00