Skip to content

Added YAML object edit and result fields - fixes #1269 - #1284

Closed
philayres wants to merge 2 commits into
consected:developfrom
hmsrc:yaml-object-edit-result-1269
Closed

Added YAML object edit and result fields - fixes #1269#1284
philayres wants to merge 2 commits into
consected:developfrom
hmsrc:yaml-object-edit-result-1269

Conversation

@philayres

@philayres philayres commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Implements #1269 by adding edit and result-field support for yaml_object_* fields backed by text/string columns.

  • Adds a YAML CodeMirror edit field that preserves the submitted YAML text in the backing text/string column.
  • Validates submitted YAML as a Hash or Array while leaving JSON/JSONB columns on their existing conversion path.
  • Parses stored YAML in the result template and reuses the existing structured/collapsible object renderer.
  • Loads, initializes, and synchronizes CodeMirror editors in the main application, covering the existing JSON/JSONB editors as well as YAML-object fields.
  • Restricts YAML-object dispatch to compatible text/string columns.
  • Skips transformed attributes that are absent from submitted parameters, preventing partial updates from clearing existing YAML or JSON values.
  • Extends the system workflow assertions to verify that nested YAML keys and values are actually rendered, not only the object container.

Testing

  • bundle exec rspec spec/models/dynamic/field_edit_as/handler_spec.rb - 13 examples, 0 failures.
  • app-scripts/headless_rspec.sh spec/system/dynamic_model/dynamic_model_yaml_object_spec.rb - 2 examples, 0 failures.
  • Focused model, helper, and view specs previously passed with 36 examples; the handler follow-up adds 3 regression examples.
  • Jasmine runs 149 specs with one unchanged pre-existing failure in _fpa_substitution_spec.js.

Fixes #1269.
Part of #1251.

@philayres
philayres force-pushed the yaml-object-edit-result-1269 branch from 19e0fdc to c7cbd0b Compare July 21, 2026 09:14
@philayres philayres changed the title Added name_starts_with_yaml_object edit field and result field - fixes #1269 Added YAML object edit and result fields - fixes #1269 Jul 21, 2026
@philayres philayres closed this Jul 22, 2026
@philayres
philayres deleted the yaml-object-edit-result-1269 branch July 22, 2026 12:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Implement name_starts_with_yaml_object edit field and result field

1 participant