Skip to content

Commit

Permalink
Use uuid format for id fields (#949)
Browse files Browse the repository at this point in the history
  • Loading branch information
arbulu89 authored Nov 3, 2022
1 parent bdc5b58 commit 2446e4c
Show file tree
Hide file tree
Showing 13 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion lib/trento/domain/cluster/commands/select_checks.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Trento.Domain.Commands.SelectChecks do
use Trento.Command

defcommand do
field :cluster_id, :string
field :cluster_id, Ecto.UUID
field :checks, {:array, :string}
end
end
2 changes: 1 addition & 1 deletion lib/trento/domain/cluster/events/checks_selected.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Trento.Domain.Events.ChecksSelected do
use Trento.Event

defevent do
field :cluster_id, :string
field :cluster_id, Ecto.UUID
field :checks, {:array, :string}
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ defmodule Trento.Domain.Events.ClusterDetailsUpdated do
alias Trento.Domain.HanaClusterDetails

defevent do
field :cluster_id, :string
field :cluster_id, Ecto.UUID
field :name, :string
field :type, Ecto.Enum, values: ClusterType.values()
field :sid, :string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Trento.Domain.Events.ClusterDiscoveredHealthChanged do
require Trento.Domain.Enums.Health, as: Health

defevent do
field :cluster_id, :string
field :cluster_id, Ecto.UUID
field :discovered_health, Ecto.Enum, values: Health.values()
end
end
2 changes: 1 addition & 1 deletion lib/trento/domain/cluster/events/cluster_health_changed.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Trento.Domain.Events.ClusterHealthChanged do
require Trento.Domain.Enums.Health, as: Health

defevent do
field :cluster_id, :string
field :cluster_id, Ecto.UUID
field :health, Ecto.Enum, values: Health.values()
end
end
2 changes: 1 addition & 1 deletion lib/trento/domain/cluster/events/cluster_registered.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Trento.Domain.Events.ClusterRegistered do
alias Trento.Domain.HanaClusterDetails

defevent do
field :cluster_id, :string
field :cluster_id, Ecto.UUID
field :name, :string
field :type, Ecto.Enum, values: ClusterType.values()
field :sid, :string
Expand Down
2 changes: 1 addition & 1 deletion lib/trento/domain/cluster/events/cluster_rolled_up.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule Trento.Domain.Events.ClusterRolledUp do
}

defevent do
field :cluster_id, :string
field :cluster_id, Ecto.UUID
field :name, :string
field :type, Ecto.Enum, values: ClusterType.values()
field :sid, :string
Expand Down
4 changes: 2 additions & 2 deletions lib/trento/domain/cluster/events/host_added_to_cluster.ex
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ defmodule Trento.Domain.Events.HostAddedToCluster do
use Trento.Event

defevent do
field :cluster_id, :string
field :host_id, :string
field :cluster_id, Ecto.UUID
field :host_id, Ecto.UUID
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ defmodule Trento.Domain.Events.HostChecksExecutionCompleted do
alias Trento.Domain.CheckResult

defevent do
field :cluster_id, :string
field :host_id, :string
field :cluster_id, Ecto.UUID
field :host_id, Ecto.UUID
field :reachable, :boolean
field :msg, :string

Expand Down
2 changes: 1 addition & 1 deletion lib/trento/domain/host/commands/update_heartbeat.ex
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ defmodule Trento.Domain.Commands.UpdateHeartbeat do
use Trento.Command

defcommand do
field :host_id, :string
field :host_id, Ecto.UUID
field :heartbeat, Ecto.Enum, values: [:passing, :critical]
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ defmodule Trento.Domain.Commands.RegisterApplicationInstance do
field :sid, :string
field :db_host, :string
field :tenant, :string
field :host_id, :string
field :host_id, Ecto.UUID
field :instance_number, :string
field :instance_hostname, :string
field :features, :string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ defmodule Trento.Domain.Commands.RegisterDatabaseInstance do
field :sap_system_id, Ecto.UUID
field :sid, :string
field :tenant, :string
field :host_id, :string
field :host_id, Ecto.UUID
field :instance_number, :string
field :instance_hostname, :string
field :features, :string
Expand Down
2 changes: 1 addition & 1 deletion lib/trento/domain/sap_system/sap_system.ex
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ defmodule Trento.Domain.SapSystem do
use Trento.Type

deftype do
field :sap_system_id, :string
field :sap_system_id, Ecto.UUID
field :sid, :string
field :health, Ecto.Enum, values: Health.values()

Expand Down

0 comments on commit 2446e4c

Please sign in to comment.