perf: remove owner removed columns from projections for oidc (#6925)

* fix: remove owner removed columns from login names projection

* fix: remove owner removed columns from flow projection

* fix: remove owner removed columns from project, projectgrant and member projections

* fix: correct unit tests for session projection

* fix: correct unit tests for session projection
This commit is contained in:
Stefan Benz
2023-11-20 16:21:08 +01:00
committed by GitHub
parent 3bed5f50a8
commit 0ec7a74877
65 changed files with 358 additions and 654 deletions

View File

@@ -13,7 +13,7 @@ import (
)
const (
ProjectRoleProjectionTable = "projections.project_roles3"
ProjectRoleProjectionTable = "projections.project_roles4"
ProjectRoleColumnProjectID = "project_id"
ProjectRoleColumnKey = "role_key"
@@ -24,7 +24,6 @@ const (
ProjectRoleColumnInstanceID = "instance_id"
ProjectRoleColumnDisplayName = "display_name"
ProjectRoleColumnGroupName = "group_name"
ProjectRoleColumnOwnerRemoved = "owner_removed"
)
type projectRoleProjection struct{}
@@ -45,10 +44,8 @@ func (*projectRoleProjection) Init() *old_handler.Check {
handler.NewColumn(ProjectRoleColumnInstanceID, handler.ColumnTypeText),
handler.NewColumn(ProjectRoleColumnDisplayName, handler.ColumnTypeText),
handler.NewColumn(ProjectRoleColumnGroupName, handler.ColumnTypeText),
handler.NewColumn(ProjectRoleColumnOwnerRemoved, handler.ColumnTypeBool, handler.Default(false)),
},
handler.NewPrimaryKey(ProjectRoleColumnInstanceID, ProjectRoleColumnProjectID, ProjectRoleColumnKey),
handler.WithIndex(handler.NewIndex("owner_removed", []string{ProjectRoleColumnOwnerRemoved})),
),
)
}