mirror of
https://github.com/andwati/zitadel.git
synced 2026-11-21 12:28:46 +00:00
chore: management console naming inconsistency (#11390)
# Which Problems Are Solved The following terms have all been renamed to management console: - Customer Portal (when used to mean the console) - Console - Admin Console # How the Problems Are Solved - Search & Replace smartly - Use Copilot for translation files Changes done to: backend + frontend codebase, docs, translations and protobufs (descriptions only) # Additional Context - Partially Closes #11279
This commit is contained in:
@@ -8,8 +8,8 @@ import (
|
||||
)
|
||||
|
||||
const (
|
||||
ProjectSetEventType eventstore.EventType = "instance.iam.project.set"
|
||||
ConsoleSetEventType eventstore.EventType = "instance.iam.console.set"
|
||||
ProjectSetEventType eventstore.EventType = "instance.iam.project.set"
|
||||
ManagementConsoleSetEventType eventstore.EventType = "instance.iam.console.set"
|
||||
)
|
||||
|
||||
type ProjectSetEvent struct {
|
||||
@@ -53,45 +53,45 @@ func ProjectSetMapper(event eventstore.Event) (eventstore.Event, error) {
|
||||
return e, nil
|
||||
}
|
||||
|
||||
type ConsoleSetEvent struct {
|
||||
type ManagementConsoleSetEvent struct {
|
||||
eventstore.BaseEvent `json:"-"`
|
||||
|
||||
ClientID string `json:"clientId"`
|
||||
AppID string `json:"appId"`
|
||||
}
|
||||
|
||||
func (e *ConsoleSetEvent) Payload() interface{} {
|
||||
func (e *ManagementConsoleSetEvent) Payload() interface{} {
|
||||
return e
|
||||
}
|
||||
|
||||
func (e *ConsoleSetEvent) UniqueConstraints() []*eventstore.UniqueConstraint {
|
||||
func (e *ManagementConsoleSetEvent) UniqueConstraints() []*eventstore.UniqueConstraint {
|
||||
return nil
|
||||
}
|
||||
|
||||
func NewIAMConsoleSetEvent(
|
||||
func NewIAMManagementConsoleSetEvent(
|
||||
ctx context.Context,
|
||||
aggregate *eventstore.Aggregate,
|
||||
clientID,
|
||||
appID *string,
|
||||
) *ConsoleSetEvent {
|
||||
return &ConsoleSetEvent{
|
||||
) *ManagementConsoleSetEvent {
|
||||
return &ManagementConsoleSetEvent{
|
||||
BaseEvent: *eventstore.NewBaseEventForPush(
|
||||
ctx,
|
||||
aggregate,
|
||||
ConsoleSetEventType,
|
||||
ManagementConsoleSetEventType,
|
||||
),
|
||||
ClientID: *clientID,
|
||||
AppID: *appID,
|
||||
}
|
||||
}
|
||||
|
||||
func ConsoleSetMapper(event eventstore.Event) (eventstore.Event, error) {
|
||||
e := &ConsoleSetEvent{
|
||||
func ManagementConsoleSetMapper(event eventstore.Event) (eventstore.Event, error) {
|
||||
e := &ManagementConsoleSetEvent{
|
||||
BaseEvent: *eventstore.BaseEventFromRepo(event),
|
||||
}
|
||||
err := event.Unmarshal(e)
|
||||
if err != nil {
|
||||
return nil, zerrors.ThrowInternal(err, "IAM-cdFZH", "unable to unmarshal console set")
|
||||
return nil, zerrors.ThrowInternal(err, "IAM-cdFZH", "unable to unmarshal management console set")
|
||||
}
|
||||
|
||||
return e, nil
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
func init() {
|
||||
eventstore.RegisterFilterEventMapper(AggregateType, DefaultOrgSetEventType, DefaultOrgSetMapper)
|
||||
eventstore.RegisterFilterEventMapper(AggregateType, ProjectSetEventType, ProjectSetMapper)
|
||||
eventstore.RegisterFilterEventMapper(AggregateType, ConsoleSetEventType, ConsoleSetMapper)
|
||||
eventstore.RegisterFilterEventMapper(AggregateType, ManagementConsoleSetEventType, ManagementConsoleSetMapper)
|
||||
eventstore.RegisterFilterEventMapper(AggregateType, DefaultLanguageSetEventType, DefaultLanguageSetMapper)
|
||||
eventstore.RegisterFilterEventMapper(AggregateType, SecretGeneratorAddedEventType, SecretGeneratorAddedEventMapper)
|
||||
eventstore.RegisterFilterEventMapper(AggregateType, SecretGeneratorChangedEventType, SecretGeneratorChangedEventMapper)
|
||||
|
||||
Reference in New Issue
Block a user