Skip to content

Commit

Permalink
feat(maintenances): right messages for events [STORY-64 STORY-73 STOR…
Browse files Browse the repository at this point in the history
  • Loading branch information
yohann-bacha committed Sep 12, 2023
1 parent 2aeb4f3 commit 146fe3d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions events_structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -871,7 +871,7 @@ type EventDatabaseMaintenancePlannedType struct {
}

func (ev *EventDatabaseMaintenancePlannedType) String() string {
return fmt.Sprintf("Maintenance %s", ev.TypeData.MaintenanceID)
return fmt.Sprintf("A maintenance has been scheduled on the %s addon (Maintenance ID: %s).", ev.TypeData.AddonName, ev.TypeData.MaintenanceID)
}

func (ev *EventDatabaseMaintenancePlannedType) Who() string {
Expand All @@ -893,7 +893,7 @@ type EventDatabaseMaintenanceStartedType struct {
}

func (ev *EventDatabaseMaintenanceStartedType) String() string {
return fmt.Sprintf("Maintenance %s", ev.TypeData.MaintenanceID)
return fmt.Sprintf("A maintenance has started on the %s addon (Maintenance ID: %s).", ev.TypeData.AddonName, ev.TypeData.MaintenanceID)
}

func (ev *EventDatabaseMaintenanceStartedType) Who() string {
Expand All @@ -915,7 +915,7 @@ type EventDatabaseMaintenanceCompletedType struct {
}

func (ev *EventDatabaseMaintenanceCompletedType) String() string {
return fmt.Sprintf("Maintenance %s", ev.TypeData.MaintenanceID)
return fmt.Sprintf("A maintenance has been completed on the %s addon (Maintenance ID: %s).", ev.TypeData.AddonName, ev.TypeData.MaintenanceID)
}

func (ev *EventDatabaseMaintenanceCompletedType) Who() string {
Expand Down

0 comments on commit 146fe3d

Please sign in to comment.