[go: up one dir, main page]

Skip to content

Add validations to workspace_agentk_state.rb

MR: Pending

Description

The following discussion from !194727 (merged) should be addressed:

Related

Acceptance criteria

TODO: Fill out (required)

  • [Describe what must be achieved to complete this issue.]
  • [If applicable, please provide design specifications for this feature/enhancement.]
  • [If applicable, please list any technical requirements (performance, security, database, etc.)]

Implementation plan

Rather than doing a direct duplicate logic of schema validation, lets just create a DesiredConfig value object from the data and validate it before saving, then stick any errors found onto the WorkspaceAgentkState desired_config field. This should be sufficient, and won't keep the duplication.

Edited by Chad Woolley