Module: Ecoportal::API::GraphQL::Input::WorkflowCommand::EditFieldConfiguration
- Defined in:
- lib/ecoportal/api/graphql/input/workflow_command/field_config/date.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/file.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/gauge.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/table.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/people.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/select.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/rich_text.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/signature.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/plain_text.rb,
lib/ecoportal/api/graphql/input/workflow_command/edit_field_configuration.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/action_list.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/image_gallery.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/location_field.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/cross_reference.rb,
lib/ecoportal/api/graphql/input/workflow_command/field_config/contractor_entities.rb
Defined Under Namespace
Modules: ActionList, ContractorEntities, CrossReference, Date, File, Gauge, ImageGallery, LocationField, People, PlainText, RichText, Select, Signature, Table
Constant Summary collapse
- SCHEMA_VERSION =
'20260828'.freeze
- BASE_KEYS =
20260713: gained addActionIds/removeActionIds (set-diff of field-attached Actions). 20260801: added the three keys the schema has always had but this builder silently dropped —
stageId(which stage's copy of the field to edit; REQUIRED to disambiguate on a phased page, so its absence made this builder unusable there) and the addPermittedPersonSchemaIds/removePermittedPersonSchemaIds set-diff. 20260828: addedrequiredandhiddenOnReports, both real top-level arguments on the backend's EditFieldConfigurationInput but previously dropped by this builder's kwargs.slice. Schema authority: backend source, not the stale 2026-07-30 introspection dump. See add_field.rb — its comment claimingrequiredhas no input key anywhere in the schema was wrong and has been corrected. %i[ dataFieldId stageId label tooltip description hideView hiddenOnMobile enableActions globalBinding required hiddenOnReports addActionIds removeActionIds addPermittedPersonSchemaIds removePermittedPersonSchemaIds ].freeze
Class Method Summary collapse
Class Method Details
.build(data_field_id:, **kwargs) ⇒ Object
26 27 28 29 30 |
# File 'lib/ecoportal/api/graphql/input/workflow_command/edit_field_configuration.rb', line 26 def self.build(data_field_id:, **kwargs) { dataFieldId: data_field_id }. merge(kwargs.slice(*(BASE_KEYS - [:dataFieldId])).compact). tap { |h| h[:byType] = kwargs[:byType] if kwargs.key?(:byType) } end |