zitadel/internal/api/grpc/management
Tim Möhlmann c0e45b63d8
fix: reset the call timestamp after a bulk trigger (#6080)
* reproduce #5808

Add an integration test that imports and gets N amount of human users.
- With N set to 1-10 the operation seems to succeed always
- With N set to 100 the operation seems to fail between 1 and 7 times.

* fix merge issue

* fix: reset the call timestamp after a bulk trigger

With the use of `AS OF SYSTEM TIME` in queries,
there was a change for the query package not
finding the latest projection verson after
a bulk trigger.
If events where processed in the bulk trigger,
the resulting row timestamp would be after the call
start timestamp.
This sometimes resulted in consistency issues when
Set and Get API methods are called in short succession.
For example a Import and Get user could sometimes result in a Not Found
error.

Although the issue was reported for the Management API user import,
it is likely this bug contributed to the flaky integration and e2e tests.

Fixes #5808

* trigger bulk action in GetSession

* don't use the new context in handler schedule

* disable reproduction test

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
2023-07-07 08:15:05 +00:00
..
actions_converter.go fix: action query (#4257) 2022-08-26 08:38:41 +00:00
actions.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
auth_checks.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
custom_text_converter.go feat: add notification policy and password change message (#5065) 2023-01-25 09:49:41 +01:00
custom_text.go feat: add notification policy and password change message (#5065) 2023-01-25 09:49:41 +01:00
flow.go feat(actions): local users (#5089) 2023-01-25 13:08:01 +00:00
iam.go fix(query): realtime data on defined requests (#3726) 2022-06-14 07:51:00 +02:00
idp_converter_test.go feat: V2 alpha import and export of organizations (#3798) 2022-07-28 13:42:35 +00:00
idp_converter.go fix(idp): handle scopes in azureAD (#5665) 2023-04-12 07:27:07 +02:00
idp.go feat: migrate external idp to other types (#5984) 2023-06-08 00:50:53 +02:00
information.go fix: improve oidc issuer / endpoints (#3753) 2022-06-07 10:04:51 +02:00
language.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
oneof.go feat: protos refactoring 2021-03-09 10:30:11 +01:00
org_converter.go feat(org): add org metadata functionality (#4234) 2022-09-20 14:32:09 +00:00
org.go refactor(changes): use queries.SearchEvents (#5388) 2023-03-17 09:14:06 +00:00
policy_label_converter.go feat: V2 alpha import and export of organizations (#3798) 2022-07-28 13:42:35 +00:00
policy_label.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_lockout_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
policy_lockout.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_login_converter.go feat(login): additionally use email/phone for authentication (#4563) 2022-10-17 19:19:15 +00:00
policy_login.go fix: only remove idp links from users of own organisation (#5156) 2023-02-03 14:56:19 +07:00
policy_notification.go feat: add notification policy and password change message (#5065) 2023-01-25 09:49:41 +01:00
policy_password_age_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
policy_password_age.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_password_complexity_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
policy_password_complexity.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
policy_privacy_converter.go feat: add Help/Support e-mail for instance/org (#5445) 2023-03-28 21:36:52 +02:00
policy_privacy.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
project_application_converter.go feat: allow skip of success page for native apps (#5627) 2023-04-11 15:07:32 +00:00
project_application.go refactor(changes): use queries.SearchEvents (#5388) 2023-03-17 09:14:06 +00:00
project_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
project_grant_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
project_grant.go fix(auth): update user grants before check (#5406) 2023-03-13 08:03:49 +01:00
project.go refactor(changes): use queries.SearchEvents (#5388) 2023-03-17 09:14:06 +00:00
replacer.md feat: protos refactoring 2021-03-09 10:30:11 +01:00
server.go feat: user v2alpha email API (#5708) 2023-04-25 09:02:29 +02:00
user_converter.go fix: make user creation errors helpful (#5382) 2023-03-14 19:20:38 +00:00
user_grant_converter.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
user_grant.go fix(auth): update user grants before check (#5406) 2023-03-13 08:03:49 +01:00
user_integration_test.go fix: reset the call timestamp after a bulk trigger (#6080) 2023-07-07 08:15:05 +00:00
user.go fix: display loginname in machine client credentials (#5936) 2023-05-26 13:04:45 +00:00