mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-11 15:17:33 +00:00
add domains projections
This commit is contained in:
@@ -60,8 +60,6 @@ var (
|
|||||||
UserMetadataProjection *handler.Handler
|
UserMetadataProjection *handler.Handler
|
||||||
UserAuthMethodProjection *handler.Handler
|
UserAuthMethodProjection *handler.Handler
|
||||||
InstanceProjection *handler.Handler
|
InstanceProjection *handler.Handler
|
||||||
InstanceRelationalProjection *handler.Handler
|
|
||||||
OrganizationRelationalProjection *handler.Handler
|
|
||||||
SecretGeneratorProjection *handler.Handler
|
SecretGeneratorProjection *handler.Handler
|
||||||
SMTPConfigProjection *handler.Handler
|
SMTPConfigProjection *handler.Handler
|
||||||
SMSConfigProjection *handler.Handler
|
SMSConfigProjection *handler.Handler
|
||||||
@@ -90,6 +88,11 @@ var (
|
|||||||
DebugEventsProjection *handler.Handler
|
DebugEventsProjection *handler.Handler
|
||||||
HostedLoginTranslationProjection *handler.Handler
|
HostedLoginTranslationProjection *handler.Handler
|
||||||
|
|
||||||
|
InstanceRelationalProjection *handler.Handler
|
||||||
|
OrganizationRelationalProjection *handler.Handler
|
||||||
|
InstanceDomainRelationalProjection *handler.Handler
|
||||||
|
OrganizationDomainRelationalProjection *handler.Handler
|
||||||
|
|
||||||
ProjectGrantFields *handler.FieldHandler
|
ProjectGrantFields *handler.FieldHandler
|
||||||
OrgDomainVerifiedFields *handler.FieldHandler
|
OrgDomainVerifiedFields *handler.FieldHandler
|
||||||
InstanceDomainFields *handler.FieldHandler
|
InstanceDomainFields *handler.FieldHandler
|
||||||
@@ -159,8 +162,6 @@ func Create(ctx context.Context, sqlClient *database.DB, es handler.EventStore,
|
|||||||
UserMetadataProjection = newUserMetadataProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["user_metadata"]))
|
UserMetadataProjection = newUserMetadataProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["user_metadata"]))
|
||||||
UserAuthMethodProjection = newUserAuthMethodProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["user_auth_method"]))
|
UserAuthMethodProjection = newUserAuthMethodProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["user_auth_method"]))
|
||||||
InstanceProjection = newInstanceProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["instances"]))
|
InstanceProjection = newInstanceProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["instances"]))
|
||||||
InstanceRelationalProjection = newInstanceRelationalProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["organizations_relational"]))
|
|
||||||
OrganizationRelationalProjection = newOrgRelationalProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["instances_relational"]))
|
|
||||||
SecretGeneratorProjection = newSecretGeneratorProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["secret_generators"]))
|
SecretGeneratorProjection = newSecretGeneratorProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["secret_generators"]))
|
||||||
SMTPConfigProjection = newSMTPConfigProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["smtp_configs"]))
|
SMTPConfigProjection = newSMTPConfigProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["smtp_configs"]))
|
||||||
SMSConfigProjection = newSMSConfigProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["sms_config"]))
|
SMSConfigProjection = newSMSConfigProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["sms_config"]))
|
||||||
@@ -193,6 +194,11 @@ func Create(ctx context.Context, sqlClient *database.DB, es handler.EventStore,
|
|||||||
PermissionFields = newFillPermissionFields(applyCustomConfig(projectionConfig, config.Customizations[fieldsPermission]))
|
PermissionFields = newFillPermissionFields(applyCustomConfig(projectionConfig, config.Customizations[fieldsPermission]))
|
||||||
// Don't forget to add the new field handler to [ProjectInstanceFields]
|
// Don't forget to add the new field handler to [ProjectInstanceFields]
|
||||||
|
|
||||||
|
InstanceRelationalProjection = newInstanceRelationalProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["instances_relational"]))
|
||||||
|
OrganizationRelationalProjection = newOrgRelationalProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["organizations_relational"]))
|
||||||
|
InstanceDomainRelationalProjection = newInstanceDomainRelationalProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["instance_domains_relational"]))
|
||||||
|
OrganizationDomainRelationalProjection = newOrgDomainRelationalProjection(ctx, applyCustomConfig(projectionConfig, config.Customizations["organization_domains_relational"]))
|
||||||
|
|
||||||
newProjectionsList()
|
newProjectionsList()
|
||||||
newFieldsList()
|
newFieldsList()
|
||||||
return nil
|
return nil
|
||||||
@@ -340,8 +346,6 @@ func newProjectionsList() {
|
|||||||
UserMetadataProjection,
|
UserMetadataProjection,
|
||||||
UserAuthMethodProjection,
|
UserAuthMethodProjection,
|
||||||
InstanceProjection,
|
InstanceProjection,
|
||||||
InstanceRelationalProjection,
|
|
||||||
OrganizationRelationalProjection,
|
|
||||||
SecretGeneratorProjection,
|
SecretGeneratorProjection,
|
||||||
SMTPConfigProjection,
|
SMTPConfigProjection,
|
||||||
SMSConfigProjection,
|
SMSConfigProjection,
|
||||||
@@ -366,5 +370,10 @@ func newProjectionsList() {
|
|||||||
WebKeyProjection,
|
WebKeyProjection,
|
||||||
DebugEventsProjection,
|
DebugEventsProjection,
|
||||||
HostedLoginTranslationProjection,
|
HostedLoginTranslationProjection,
|
||||||
|
|
||||||
|
InstanceRelationalProjection,
|
||||||
|
OrganizationRelationalProjection,
|
||||||
|
InstanceDomainRelationalProjection,
|
||||||
|
OrganizationDomainRelationalProjection,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user