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

Fix cloud update synchronization #1338

Merged
merged 1 commit into from
Aug 20, 2024
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 apps/core/lib/core/clients/console.ex
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ defmodule Core.Clients.Console do

@update_svc_q """
mutation Update($id: ID!, $attributes: ServiceUpdateAttributes!) {
updateServiceDeployment(id: $id) {
updateServiceDeployment(id: $id, attributes: $attributes) {
id
}
}
Expand Down
5 changes: 2 additions & 3 deletions apps/core/lib/core/services/cloud/workflow.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,9 @@ defmodule Core.Services.Cloud.Workflow do

def sync(%ConsoleInstance{external_id: id} = instance) when is_binary(id) do
instance = Repo.preload(instance, [:cluster, :postgres])
Console.update_service(console(), %{
size: instance.size,
Console.update_service(console(), id, %{
configuration: Configuration.build(instance)
}, id)
})
end
def sync(_), do: :ok

Expand Down
2 changes: 1 addition & 1 deletion apps/graphql/lib/graphql/schema/cloud.ex
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ defmodule GraphQl.Schema.Cloud do
end

input_object :console_instance_update_attributes do
field :size, :console_size
field :size, :console_size
field :configuration, :console_configuration_update_attributes
end

Expand Down
Loading