Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use uuid format for id fields #949

Merged
merged 1 commit into from
Nov 3, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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