Module: Ecoportal::API::GraphQL::Input::WorkflowCommand::AddField
- Defined in:
- lib/ecoportal/api/graphql/input/workflow_command/add_field.rb
Constant Summary collapse
- SCHEMA_VERSION =
'20260605'.freeze
- VALID_KEYS =
VERIFIED against the backend source (WorkflowAddFieldInput, checked 20260828): the create command accepts ONLY these keys. There is NO
descriptionand NOrequiredfield on WorkflowAddFieldInput itself. Both are instead top-level keys of WorkflowEditFieldConfigurationInput (see edit_field_configuration.rb), so a field's description and required-ness are persisted via a follow-up editFieldConfiguration command (see Builder::TemplateBuilder / Diff::CommandSynthesizer).requiredIS persistable through the workflow command bus — via editFieldConfiguration's top-levelrequiredargument — it is simply not part of AddField. Do NOT adddescriptionorrequiredto this builder's own keys (the server rejects them on AddField); route them through EditFieldConfiguration instead. i[placeholderId fieldType label stageId sectionId column].freeze
Class Method Summary collapse
Class Method Details
.build(**kwargs) ⇒ Object
20 21 22 |
# File 'lib/ecoportal/api/graphql/input/workflow_command/add_field.rb', line 20 def self.build(**kwargs) kwargs.slice(*VALID_KEYS).compact end |