Skip to content

Refactor activity log facet queries by scope - #521

Merged
thokra-nav merged 1 commit into
mainfrom
activitylog_indexes
Sep 11, 2026
Merged

thokra-nav merged 1 commit into
mainfrom
activitylog_indexes

Conversation

@thokra-nav

Copy link
Copy Markdown
Contributor

Add dedicated facet/list SQL paths for team, resource, tenant-wide, and resource-without-team scopes, and mark tenant queries explicitly as tenant-wide in ActivityLogScope.

Also add integration coverage for facet resourceTypes across activity log consumers (tenant, reconcilers, service accounts, valkey) and add deployment facet expectations.

Introduce migration 0074 to rebuild activity log indexes to match the new scoped query patterns.

Add dedicated facet/list SQL paths for team, resource, tenant-wide, and
resource-without-team scopes, and mark tenant queries explicitly as
tenant-wide in `ActivityLogScope`.

Also add integration coverage for facet `resourceTypes` across activity
log consumers (tenant, reconcilers, service accounts, valkey) and add
deployment facet expectations.

Introduce migration 0074 to rebuild activity log indexes to match the
new scoped query patterns.
@thokra-nav
thokra-nav requested a review from a team as a code owner September 11, 2026 11:10
@thokra-nav
thokra-nav merged commit e01f785 into main Sep 11, 2026
10 checks passed
@thokra-nav
thokra-nav deleted the activitylog_indexes branch September 11, 2026 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant