zitadel/internal/query
Elio Bischof 1a49b7d298
perf: project quotas and usages (#6441)
* project quota added

* project quota removed

* add periods table

* make log record generic

* accumulate usage

* query usage

* count action run seconds

* fix filter in ReportQuotaUsage

* fix existing tests

* fix logstore tests

* fix typo

* fix: add quota unit tests command side

* fix: add quota unit tests command side

* fix: add quota unit tests command side

* move notifications into debouncer and improve limit querying

* cleanup

* comment

* fix: add quota unit tests command side

* fix remaining quota usage query

* implement InmemLogStorage

* cleanup and linting

* improve test

* fix: add quota unit tests command side

* fix: add quota unit tests command side

* fix: add quota unit tests command side

* fix: add quota unit tests command side

* action notifications and fixes for notifications query

* revert console prefix

* fix: add quota unit tests command side

* fix: add quota integration tests

* improve accountable requests

* improve accountable requests

* fix: add quota integration tests

* fix: add quota integration tests

* fix: add quota integration tests

* comment

* remove ability to store logs in db and other changes requested from review

* changes requested from review

* changes requested from review

* Update internal/api/http/middleware/access_interceptor.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* tests: fix quotas integration tests

* improve incrementUsageStatement

* linting

* fix: delete e2e tests as intergation tests cover functionality

* Update internal/api/http/middleware/access_interceptor.go

Co-authored-by: Silvan <silvan.reusser@gmail.com>

* backup

* fix conflict

* create rc

* create prerelease

* remove issue release labeling

* fix tracing

---------

Co-authored-by: Livio Spring <livio.a@gmail.com>
Co-authored-by: Stefan Benz <stefan@caos.ch>
Co-authored-by: adlerhurst <silvan.reusser@gmail.com>
2023-09-15 16:58:45 +02:00
..
embed feat(api): add OIDC session service (#6157) 2023-07-10 13:27:00 +00:00
projection perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
access_token.go feat(OIDC): add support for end_session for V2 tokens (#6226) 2023-07-19 13:17:39 +02:00
action_flow_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
action_flow.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
action_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
action.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
app_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
app.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
auth_request_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
auth_request.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
authn_key_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
authn_key.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
certificate_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
certificate.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
current_sequence_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
current_sequence.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
custom_text_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
custom_text.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
device_auth_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
device_auth.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
domain_policy_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
domain_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
event.go fix: ignore 0 retention on event search (#5614) 2023-04-05 17:56:11 +00:00
failed_events_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
failed_events.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
iam_member_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
iam_member.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
idp_login_policy_link_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
idp_login_policy_link.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
idp_template_test.go feat: add apple as idp (#6442) 2023-08-31 08:39:16 +02:00
idp_template.go feat: add apple as idp (#6442) 2023-08-31 08:39:16 +02:00
idp_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
idp_user_link_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
idp_user_link.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
idp.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
instance_domain_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
instance_domain.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
instance_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
instance.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
key_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
key.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
label_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
languages.go chore(v2): move to new org (#3499) 2022-04-26 23:01:45 +00:00
lockout_policy_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
lockout_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
login_name.go feat: remove org (#4148) 2022-11-30 17:01:17 +01:00
login_policy_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
login_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
mail_template.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
member_roles.go fix(query): realtime data on defined requests (#3726) 2022-06-14 07:51:00 +02:00
member.go chore(console): remove first and lastName fallback from user (#5629) 2023-04-11 15:56:51 +00:00
message_text_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
message_text.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
milestone_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
milestone.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
notification_policy_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
notification_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
notification_provider_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
notification_provider.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
oidc_settings_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
oidc_settings.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
org_domain_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
org_domain.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
org_member_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
org_member.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
org_metadata_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
org_metadata.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
org_test.go feat: delete organizations (#6083) 2023-09-07 04:54:51 +00:00
org.go feat: delete organizations (#6083) 2023-09-07 04:54:51 +00:00
password_age_policy_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
password_age_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
password_complexity_policy_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
password_complexity_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
prepare_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
privacy_policy_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
privacy_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_grant_member_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_grant_member.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_grant_test.go feat: delete organizations (#6083) 2023-09-07 04:54:51 +00:00
project_grant.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_member_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_member.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_role_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_role.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
project.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
query_test.go feat(api): add OIDC session service (#6157) 2023-07-10 13:27:00 +00:00
query.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
quota_notifications_test.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
quota_notifications.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
quota_periods_test.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
quota_periods.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
quota_test.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
quota.go perf: project quotas and usages (#6441) 2023-09-15 16:58:45 +02:00
search_query_test.go feat: get multiple users by id (#6210) 2023-08-12 15:37:42 +02:00
search_query.go feat: get multiple users by id (#6210) 2023-08-12 15:37:42 +02:00
secret_generator_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
secret_generators.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
security_policy.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
session.go feat(api): add otp (sms and email) checks in session api (#6422) 2023-08-24 09:41:52 +00:00
sessions_test.go feat(api): add otp (sms and email) checks in session api (#6422) 2023-08-24 09:41:52 +00:00
sms_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
sms.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
smtp_test.go feat: add reply-to header in email notification (#6393) 2023-08-29 09:08:24 +02:00
smtp.go feat: add reply-to header in email notification (#6393) 2023-08-29 09:08:24 +02:00
user_auth_method_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_auth_method.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_grant_test.go feat: delete organizations (#6083) 2023-09-07 04:54:51 +00:00
user_grant.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_membership_test.go feat: delete organizations (#6083) 2023-09-07 04:54:51 +00:00
user_membership.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_metadata_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_metadata.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_otp.go perf: query data AS OF SYSTEM TIME (#5231) 2023-02-27 22:36:43 +01:00
user_password.go fix: password hash update and add missing i18n (#6285) 2023-07-28 09:09:15 +02:00
user_personal_access_token_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_personal_access_token.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user_test.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
user.go feat(storage): read only transactions for queries (#6415) 2023-08-22 10:49:22 +00:00
zitadel_permission.go fix(query): add tracing for each method (#4777) 2022-12-01 09:18:53 +01:00