zitadel/internal/query
Silvan a63a995269
fix(projections): add user grant projection (#2837)
* refactor(domain): add user type

* fix(projections): start with login names

* fix(login_policy): correct handling of user domain claimed event

* fix(projections): add members

* refactor: simplify member projections

* add migration for members

* add metadata to member projections

* refactor: login name projection

* fix: set correct suffixes on login name projections

* test(projections): login name reduces

* fix: correct cols in reduce member

* test(projections): org, iam, project members

* member additional cols and conds as opt,
add project grant members

* fix(migration): members

* fix(migration): correct database name

* migration version

* migs

* better naming for member cond and col

* split project and project grant members

* prepare member columns

* feat(queries): membership query

* test(queries): membership prepare

* fix(queries): multiple projections for latest sequence

* fix(api): use query for membership queries in auth and management

* feat: org member queries

* fix(api): use query for iam member calls

* fix(queries): org members

* fix(queries): project members

* fix(queries): project grant members

* fix(query): member queries and user avatar column

* member cols

* fix(queries): membership stmt

* fix user test

* fix user test

* fix(projections): add user grant projection

* fix(user_grant): handle state changes

* add state to migration

* merge eventstore-naming into user-grant-projection

* fix(migrations): version

* fix(query): event mappers for usergrant aggregate

* fix(projection): correct aggregate for user grants

* cleanup reducers

* add tests for projection

Co-authored-by: Livio Amstutz <livio.a@gmail.com>
2022-01-13 11:02:39 +01:00
..
projection fix(projections): add user grant projection (#2837) 2022-01-13 11:02:39 +01:00
action_flow_test.go fix(queries): actions prepare funcs (#2689) 2021-11-16 14:04:22 +01:00
action_flow.go fix(queries): actions prepare funcs (#2689) 2021-11-16 14:04:22 +01:00
action_test.go fix(queries): actions prepare funcs (#2689) 2021-11-16 14:04:22 +01:00
action.go fix(queries): actions prepare funcs (#2689) 2021-11-16 14:04:22 +01:00
app_test.go fix: audience and empty app name (#2775) 2021-12-03 14:24:29 +01:00
app.go fix: client secret verification (for introspection) (#2825) 2021-12-10 09:25:17 +00:00
authn_key_test.go fix(queries): authn keys (#2820) 2021-12-14 10:57:20 +01:00
authn_key.go fix(queries): authn keys (#2820) 2021-12-14 10:57:20 +01:00
converter.go feat: jwt as idp (#2363) 2021-09-14 15:15:01 +02:00
current_sequence_test.go feat: reset projections and remove failed events (#2770) 2021-12-16 14:44:26 +01:00
current_sequence.go feat: reset projections and remove failed events (#2770) 2021-12-16 14:44:26 +01:00
custom_text_test.go feat: text query (#2735) 2021-12-16 15:21:37 +01:00
custom_text.go feat: text query (#2735) 2021-12-16 15:21:37 +01:00
failed_events_test.go feat: reset projections and remove failed events (#2770) 2021-12-16 14:44:26 +01:00
failed_events.go feat: reset projections and remove failed events (#2770) 2021-12-16 14:44:26 +01:00
features_test.go fix: features query (#2610) 2021-11-21 20:22:25 +01:00
features.go fix: features query (#2610) 2021-11-21 20:22:25 +01:00
iam_idp_config_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_idp_configs_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_member_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_member_test.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
iam_member.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
iam_members_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_policy_label_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_policy_login_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_policy_org_iam_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_policy_password_age_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_policy_password_complexity_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
iam_policy_password_lockout_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
idp_config_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
idp_configs_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
idp_login_policy_link_test.go feat(queries): login policy idp links (#2767) 2021-12-08 14:49:19 +01:00
idp_login_policy_link.go feat(queries): login policy idp links (#2767) 2021-12-08 14:49:19 +01:00
idp_test.go test(queries): idp prepare funcs (#2650) 2021-11-16 09:03:12 +01:00
idp_user_link_test.go fix: use query side for requests (#2818) 2022-01-13 08:58:14 +01:00
idp_user_link.go fix: use query side for requests (#2818) 2022-01-13 08:58:14 +01:00
idp.go fix: use query side for requests (#2818) 2022-01-13 08:58:14 +01:00
jwt_config_model.go feat: jwt as idp (#2363) 2021-09-14 15:15:01 +02:00
key_test.go fix(query): keys (#2755) 2022-01-12 13:22:04 +01:00
key.go fix(query): keys (#2755) 2022-01-12 13:22:04 +01:00
label_policy.go fix: use query side for requests (#2818) 2022-01-13 08:58:14 +01:00
lockout_policy_test.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
lockout_policy.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
login_name.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
login_policy_test.go test(queries): login policy prepare funcs (#2649) 2021-11-15 16:04:08 +01:00
login_policy.go test(queries): login policy prepare funcs (#2649) 2021-11-15 16:04:08 +01:00
mail_template.go feat: text query (#2735) 2021-12-16 15:21:37 +01:00
member_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
member.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
members_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
message_text_test.go feat: text query (#2735) 2021-12-16 15:21:37 +01:00
message_text.go fix: Custom texts (#2875) 2021-12-21 15:18:05 +01:00
oidc_config_model.go feat: Extend oidc idp with oauth endpoints (#1980) 2021-07-06 14:39:48 +00:00
org_domain_test.go test(queries): org domain prepare funcs (#2648) 2021-11-15 14:44:14 +01:00
org_domain.go fix: username mapping of idp (#2977) 2022-01-11 16:59:12 +00:00
org_iam_policy_test.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
org_iam_policy.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
org_member_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
org_member_test.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
org_member.go fix: use query side for requests (#2818) 2022-01-13 08:58:14 +01:00
org_policy_label_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
org_policy_login_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
org_policy_org_iam_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
org_policy_password_age_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
org_policy_password_complexity_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
org_policy_password_lockout_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
org_test.go test(queries): org prepare funcs (#2647) 2021-11-15 12:52:49 +00:00
org.go fix: use query side for requests (#2818) 2022-01-13 08:58:14 +01:00
password_age_policy_test.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
password_age_policy.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
password_complexity_policy_test.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
password_complexity_policy.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
policy_label_model.go feat: label policy (#1708) 2021-06-04 14:53:51 +02:00
policy_login_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_org_iam_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_password_age_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_password_complexity_model.go fix: move v2 pkgs (#1331) 2021-02-23 15:13:04 +01:00
policy_password_lockout_model.go feat: Lockout policy (#2121) 2021-08-11 06:36:32 +00:00
prepare_test.go fix(query): keys (#2755) 2022-01-12 13:22:04 +01:00
privacy_policy_test.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
privacy_policy.go test(queries): policies prepare funcs (#2651) 2021-11-16 08:24:30 +00:00
project_grant_member_test.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
project_grant_member.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
project_grant_test.go fix(queries): project grant and role prepare funcs (#2659) 2021-11-16 08:44:56 +00:00
project_grant.go fix(queries): actions prepare funcs (#2689) 2021-11-16 14:04:22 +01:00
project_member_test.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
project_member.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
project_role_test.go fix(queries): project grant and role prepare funcs (#2659) 2021-11-16 08:44:56 +00:00
project_role.go fix(queries): actions prepare funcs (#2689) 2021-11-16 14:04:22 +01:00
project_test.go fix(app): move queries to query package (#2612) 2021-11-26 07:57:05 +01:00
project.go fix(queries): actions prepare funcs (#2689) 2021-11-16 14:04:22 +01:00
query.go fix(projections): add user grant projection (#2837) 2022-01-13 11:02:39 +01:00
search_query_test.go feat(queries): use org projection (#2342) 2021-09-29 13:20:57 +02:00
search_query.go feat(queries): user membership (#2768) 2021-12-14 08:19:02 +01:00
user_membership_test.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
user_membership.go feat: member queries (#2796) 2021-12-16 13:25:38 +00:00
user_model.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00
user.go refactor(eventstore): rename EventPusher to Command, EventReader to Event, PushEvents to Push and FilterEvents to Filter (#2907) 2022-01-03 09:19:07 +01:00