Skip to content

Deployment revision preset GQL Create/Update inputs missing many DTO fields (including image_id) #11464

@jopemachine

Description

@jopemachine

Background

Discovered while investigating BA-5932.

Problem

CreateDeploymentRevisionPresetInputGQL and UpdateDeploymentRevisionPresetInputGQL are missing many fields defined in the underlying DTOs (CreateDeploymentRevisionPresetInput, UpdateDeploymentRevisionPresetInput). Most critically, image_id is missing from both, so the GQL create mutation cannot succeed (DTO requires it) and the GQL update mutation cannot change the image.

Missing in Create input

  • image_id (REQUIRED in DTO)
  • description, model_definition, resource_slots, resource_opts, cluster_mode, cluster_size, startup_command, bootstrap_script, environ, preset_values

Missing in Update input

  • image_id, model_definition, resource_slots, resource_opts, cluster_mode, cluster_size, startup_command, bootstrap_script, environ, preset_values
  • description default is None instead of UNSET, which does not map to DTO SENTINEL (no-op semantics broken).

Acceptance Criteria

  • All DTO-defined fields are exposed on both GQL Create and Update inputs.
  • Sentinel-backed fields use UNSET defaults so no-op semantics work.
  • Existing REST v2 behavior is unchanged.
  • Create / Update via GQL mutation succeed end-to-end with image_id.

JIRA Issue: BA-5937

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions