Skip to content

Wire list_of_unit through visitor/exporter pipeline#15

Merged
ronaldtse merged 1 commit into
mainfrom
fix/list-of-unit-pipeline
Jul 23, 2026
Merged

Wire list_of_unit through visitor/exporter pipeline#15
ronaldtse merged 1 commit into
mainfrom
fix/list-of-unit-pipeline

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

The importer recognized list_of_unit entities (v0.2.2) but the visitor/exporter pipeline silently dropped them. This wires the full pipeline:

  • New Opencdd::ListUnit < Entity entity class
  • Database#list_of_units type-partitioned accessor
  • Visitor#visit_list_of_units + #visit_list_of_unit
  • Exporters::Json: visit_list_of_unit + PAYLOAD_BUILDERS entry + list_of_unit_node method
  • MetaClasses MDC_C0100 uses Opencdd::ListUnit instead of generic Entity

Test plan

  • 13 new specs (ListUnit class, meta-class registration, Database accessor, Visitor traversal, JSON export)
  • 44 relevant specs pass (0 failures)

The importer recognized list_of_unit entities (v0.2.2) but the
visitor/exporter pipeline silently dropped them — no visit method,
no JSON payload builder, no dedicated entity class.

Changes:
- New Opencdd::ListUnit < Entity entity class
- MetaClasses MDC_C0100 entity_class changed from Entity to ListUnit
- Database#list_of_units type-partitioned accessor
- Visitor#visit_list_of_units + #visit_list_of_unit
- Exporters::Json: visit_list_of_unit override + PAYLOAD_BUILDERS
  entry + list_of_unit_node method

13 new specs covering: class hierarchy, meta-class registration,
Database accessor, Visitor traversal, JSON export (to_json includes
list_of_unit entries with preferred_name, payload_for dispatch).

Follows the existing OCP pattern: adding a new entity type = one
class + one registry entry + one visitor method + one exporter node.
@ronaldtse
ronaldtse merged commit 90e6572 into main Jul 23, 2026
1 check passed
@ronaldtse
ronaldtse deleted the fix/list-of-unit-pipeline branch July 23, 2026 00:20
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.

1 participant