ea 0.6.150 → 0.6.152
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/LICENSE.md +33 -0
- data/README.adoc +13 -5
- data/config/qea_schema.yml +0 -85
- data/lib/ea/cli/command/base.rb +3 -3
- data/lib/ea/cli/command/list.rb +30 -12
- data/lib/ea/cli/command.rb +0 -1
- data/lib/ea/export/plantuml/generator.rb +45 -32
- data/lib/ea/qea/database.rb +7 -0
- data/lib/ea/qea/factory/association_builder.rb +1 -1
- data/lib/ea/qea/factory/association_transformer.rb +1 -1
- data/lib/ea/qea/factory/attribute_tag_transformer.rb +2 -2
- data/lib/ea/qea/factory/attribute_transformer.rb +4 -9
- data/lib/ea/qea/factory/base_transformer.rb +22 -14
- data/lib/ea/qea/factory/class_transformer.rb +1 -1
- data/lib/ea/qea/factory/data_type_transformer.rb +1 -1
- data/lib/ea/qea/factory/diagram_transformer.rb +1 -1
- data/lib/ea/qea/factory/enum_transformer.rb +2 -2
- data/lib/ea/qea/factory/generalization_transformer.rb +1 -1
- data/lib/ea/qea/factory/instance_transformer.rb +1 -1
- data/lib/ea/qea/factory/object_property_transformer.rb +2 -2
- data/lib/ea/qea/factory/operation_transformer.rb +1 -1
- data/lib/ea/qea/infrastructure/database_connection.rb +71 -1
- data/lib/ea/qea/infrastructure/table_reader.rb +33 -14
- data/lib/ea/qea/services/database_loader.rb +22 -6
- data/lib/ea/query/builder.rb +1 -1
- data/lib/ea/rtf.rb +98 -0
- data/lib/ea/sources/qea/annotation_builder.rb +1 -1
- data/lib/ea/spa/projector.rb +36 -19
- data/lib/ea/svg/ea_emitter/diagram_frame.rb +25 -12
- data/lib/ea/svg/ea_emitter/text_renderer.rb +28 -10
- data/lib/ea/theme/definition.rb +167 -16
- data/lib/ea/theme/loader.rb +129 -107
- data/lib/ea/theme/theme_document.rb +53 -0
- data/lib/ea/theme.rb +1 -0
- data/lib/ea/transformers.rb +1 -10
- data/lib/ea/version.rb +1 -1
- data/lib/ea/xmi/liquid_drops/klass_drop.rb +5 -0
- data/lib/ea/xmi/lookup_service.rb +40 -3
- data/lib/ea/xmi/parser.rb +3 -2
- data/lib/ea.rb +1 -1
- metadata +6 -404
- data/CLAUDE.md +0 -153
- data/Rakefile +0 -23
- data/TODO.complete/01-t-xref-parsing.md +0 -91
- data/TODO.complete/02-per-label-geometry.md +0 -50
- data/TODO.complete/03-object-properties-constraints.md +0 -57
- data/TODO.complete/04-operation-params.md +0 -37
- data/TODO.complete/05-pdata-flag-matrix.md +0 -52
- data/TODO.complete/06-emf-image-rendering.md +0 -34
- data/TODO.complete/07-auxiliary-tables.md +0 -47
- data/TODO.complete/10-mdg-stereotype-registry.md +0 -40
- data/TODO.complete/11-gml-xsd-generation.md +0 -42
- data/TODO.complete/13-shapescript-interpreter.md +0 -17
- data/TODO.complete/20-cli-diff.md +0 -46
- data/TODO.complete/21-cli-render.md +0 -26
- data/TODO.complete/22-cli-export.md +0 -29
- data/TODO.complete/23-cli-mdg.md +0 -23
- data/TODO.complete/30-headerlines-ocp-refactor.md +0 -72
- data/TODO.complete/31-public-send-cleanup.md +0 -61
- data/TODO.complete/32-spec-coverage.md +0 -33
- data/TODO.complete/33-blocked-parity-gaps.md +0 -41
- data/TODO.complete/36-stereotype-icon-wiring.md +0 -32
- data/TODO.complete/37-cli-lint.md +0 -32
- data/TODO.complete/38-cli-query.md +0 -26
- data/TODO.complete/39-cli-info.md +0 -23
- data/TODO.complete/40-ocl-evaluator.md +0 -31
- data/TODO.complete/41-round-trip-spec.md +0 -18
- data/TODO.complete/42-html-diff-report.md +0 -18
- data/TODO.complete/43-json-schema-export.md +0 -20
- data/TODO.complete/44-remaining-qea-tables.md +0 -40
- data/TODO.complete/45-shapescript-extensions.md +0 -25
- data/TODO.complete/46-xsd-consolidation.md +0 -20
- data/TODO.complete/47-headerlines-legacy-removal.md +0 -20
- data/TODO.complete/51-remove-respond-to.md +0 -52
- data/TODO.complete/52-xsd-decouple-fixtures.md +0 -23
- data/TODO.complete/53-xmi-public-send-cleanup.md +0 -26
- data/TODO.complete/54-wire-stereotype-icon-renderer.md +0 -20
- data/TODO.complete/55-wire-shapescript.md +0 -20
- data/TODO.complete/56-wire-emf-renderer.md +0 -27
- data/TODO.complete/57-wire-ocl-evaluator.md +0 -23
- data/TODO.complete/58-diff-modifications.md +0 -21
- data/TODO.complete/59-delete-toy-xmi-export.md +0 -30
- data/TODO.complete/60-curate-json-export.md +0 -20
- data/TODO.complete/61-plantuml-relationships.md +0 -22
- data/TODO.complete/62-changelog.md +0 -17
- data/TODO.complete/63-dependabot-fix.md +0 -18
- data/TODO.complete/64-qeatoxmi-connectors.md +0 -15
- data/TODO.complete/65-qeatoxmi-diagrams.md +0 -15
- data/TODO.complete/66-qeatoxmi-style-tags-docs.md +0 -35
- data/TODO.complete/67-ocl-collection-ops.md +0 -20
- data/TODO.complete/68-ocl-comparison-ops.md +0 -24
- data/TODO.complete/69-spec-new-models.md +0 -20
- data/TODO.complete/70-specs-for-all-models.md +0 -21
- data/TODO.complete/71-autoload-audit.md +0 -26
- data/TODO.complete/72-extension-serializer-ocp-naming.md +0 -26
- data/TODO.complete/73-ocl-validator-latent-bugs.md +0 -50
- data/TODO.complete/74-visibility-symbol-dry.md +0 -39
- data/TODO.complete/75-database-table-collection-registry.md +0 -32
- data/TODO.complete/76-stale-todo-cleanup.md +0 -52
- data/TODO.complete/77-eliminate-banned-patterns-from-specs.md +0 -55
- data/TODO.complete/78-mdg-stereotype-emission.md +0 -66
- data/TODO.complete/79-equivalence-fixes.md +0 -57
- data/TODO.complete/80-performance-extension-serializer-indexes.md +0 -43
- data/TODO.complete/81-dry-scope-guid-extraction.md +0 -33
- data/TODO.complete/82-public-send-audit-conclusion.md +0 -25
- data/TODO.complete/83-dry-shared-xml-escape-guid-format.md +0 -52
- data/TODO.complete/84-ocp-markers-shape-registry.md +0 -54
- data/TODO.complete/85-frozen-literal-rubocop-normalize-type-spec.md +0 -38
- data/TODO.complete/86-frozen-sweep-lint-query-specs.md +0 -55
- data/TODO.complete/STATUS.md +0 -106
- data/TODO.diagrams/01-svg-measurement-harness.md +0 -31
- data/TODO.diagrams/01-xmi-extension-elements-parsing.md +0 -67
- data/TODO.diagrams/02-diagram-element-rich-model.md +0 -61
- data/TODO.diagrams/02-polygon-over-rendering.md +0 -29
- data/TODO.diagrams/03-ea-style-svg-emitter.md +0 -70
- data/TODO.diagrams/03-text-over-rendering.md +0 -30
- data/TODO.diagrams/04-connector-routing-from-soid-eoid.md +0 -55
- data/TODO.diagrams/04-rect-under-rendering.md +0 -33
- data/TODO.diagrams/05-canvas-dimension-parity.md +0 -51
- data/TODO.diagrams/05-marker-rendering-per-relationship-type.md +0 -49
- data/TODO.diagrams/06-connector-labels.md +0 -49
- data/TODO.diagrams/06-group-layering-parity.md +0 -39
- data/TODO.diagrams/07-canvas-size-and-viewbox.md +0 -39
- data/TODO.diagrams/07-text-content-fidelity.md +0 -65
- data/TODO.diagrams/08-qea-direct-pipeline.md +0 -46
- data/TODO.diagrams/08-visual-regression-harness.md +0 -34
- data/TODO.diagrams/09-cli-render-all-diagrams.md +0 -25
- data/TODO.diagrams/10-stereotype-color-config.md +0 -29
- data/TODO.diagrams/11-elkrb-auto-layout-integration.md +0 -53
- data/TODO.diagrams/12-connector-labels.md +0 -40
- data/TODO.diagrams/12-per-entity-svg-layer-ordering.md +0 -24
- data/TODO.diagrams/13-marker-polygon-vs-path-dispatch.md +0 -20
- data/TODO.diagrams/13-per-text-type-font-sizes.md +0 -33
- data/TODO.diagrams/14-center-header-text.md +0 -33
- data/TODO.diagrams/14-filter-diagram-frame-elements.md +0 -18
- data/TODO.diagrams/15-deep-dead-code-audit.md +0 -47
- data/TODO.diagrams/15-per-element-font-from-style.md +0 -24
- data/TODO.diagrams/16-canvas-marker-extent.md +0 -30
- data/TODO.diagrams/16-document-remaining-parity-gaps.md +0 -91
- data/TODO.diagrams/17-italic-abstract-classes.md +0 -28
- data/TODO.diagrams/17-remaining-parity-gaps.md +0 -90
- data/TODO.diagrams/18-canvas-from-image-bounds.md +0 -20
- data/TODO.diagrams/18-property-lookup-index.md +0 -42
- data/TODO.diagrams/19-connector-sx-sy-routing.md +0 -27
- data/TODO.diagrams/19-replace-respond-to-with-is-a.md +0 -31
- data/TODO.diagrams/20-split-labels-emitter.md +0 -56
- data/TODO.diagrams/20-visibility-glyph-font-encoding.md +0 -27
- data/TODO.diagrams/21-aggregation-navigability-arrow.md +0 -21
- data/TODO.diagrams/21-auto-generated-legend-block.md +0 -65
- data/TODO.diagrams/22-ghost-element-discriminator.md +0 -57
- data/TODO.diagrams/22-style-based-path-grouping.md +0 -28
- data/TODO.diagrams/23-marker-polygon-deduplication.md +0 -47
- data/TODO.diagrams/23-multiplicity-label-positioning.md +0 -29
- data/TODO.diagrams/24-marker-anchor-structural.md +0 -35
- data/TODO.diagrams/24-track-marker-anchors-structurally.md +0 -66
- data/TODO.diagrams/24-truncate-properties-to-fit-box.md +0 -24
- data/TODO.diagrams/26-phantom-general-parent-rendering.md +0 -59
- data/TODO.diagrams/27-path-grouping-mode-detection.md +0 -43
- data/TODO.diagrams/28-architecture-cleanup-batch.md +0 -47
- data/TODO.diagrams/30-decompose-elements-groups-for.md +0 -52
- data/TODO.diagrams/32-examples-coverage-batch.md +0 -78
- data/TODO.diagrams/36-instance-specification-model.md +0 -42
- data/TODO.diagrams/37-element-icon-decorations.md +0 -41
- data/TODO.diagrams/38-html-note-and-receptions.md +0 -32
- data/TODO.diagrams/39-property-stereotype-discriminator.md +0 -40
- data/TODO.diagrams/40-standalone-1-discriminator.md +0 -38
- data/TODO.diagrams/41-xmi-to-svg-pipeline.md +0 -113
- data/TODO.diagrams/42-close-all-parity-deltas.md +0 -69
- data/TODO.diagrams/43-marker-deduplication-strategy.md +0 -54
- data/TODO.diagrams/44-element-icon-decorations.md +0 -34
- data/TODO.diagrams/45-phantom-parent-class-boxes.md +0 -40
- data/TODO.diagrams/46-user-drawn-legend-swatches.md +0 -44
- data/TODO.diagrams/47-attribute-line-fidelity.md +0 -72
- data/TODO.diagrams/48-spec-coverage-critical-emitter-components.md +0 -45
- data/TODO.diagrams/49-spec-coverage-orchestrators.md +0 -25
- data/TODO.diagrams/50-examples-parity.md +0 -85
- data/TODO.diagrams/51-property-oy-gap-and-remaining-gaps.md +0 -48
- data/TODO.diagrams/52-marker-registration-architecture.md +0 -89
- data/TODO.diagrams/53-remaining-example-gaps.md +0 -86
- data/TODO.diagrams/54-display-name-nested-classes.md +0 -40
- data/TODO.diagrams/55-visibility-icon-discriminator.md +0 -58
- data/TODO.diagrams/56-package-contents-rendering.md +0 -148
- data/TODO.diagrams/57-instance-specification-model.md +0 -100
- data/TODO.diagrams/58-domain-model-note-text.md +0 -67
- data/TODO.diagrams/59-classes-arrow-discriminator.md +0 -57
- data/TODO.diagrams/60-testschema-association-marker.md +0 -40
- data/TODO.diagrams/61-legend-block-rendering.md +0 -55
- data/TODO.diagrams/61-plateau-parity-gaps.md +0 -59
- data/TODO.diagrams/62-ghost-element-rendering.md +0 -56
- data/TODO.diagrams/63-qualified-name-wrap.md +0 -36
- data/TODO.diagrams/64-property-stereotype-labels.md +0 -22
- data/TODO.diagrams/65-path-coordinate-frame.md +0 -62
- data/TODO.diagrams/67-path-coordinate-frame.md +0 -62
- data/TODO.diagrams/68-inherited-attributes.md +0 -65
- data/TODO.diagrams/69-package-anchor-conditional.md +0 -29
- data/TODO.diagrams/70-mdg-technology-support.md +0 -68
- data/TODO.diagrams/71-off-canvas-parent-ghost.md +0 -45
- data/TODO.diagrams/72-basic-attr-divider-paths.md +0 -39
- data/TODO.diagrams/73-plateau-polygon-gap.md +0 -69
- data/TODO.diagrams/74-plateau-rect-gap.md +0 -22
- data/TODO.diagrams/75-plateau-text-gap.md +0 -39
- data/TODO.diagrams/76-basic-poly-path-gaps.md +0 -41
- data/TODO.diagrams/77-basic-text-overrender.md +0 -40
- data/TODO.diagrams/78-headerlines-ocp-refactor.md +0 -65
- data/TODO.diagrams/79-architecture-backlog.md +0 -65
- data/TODO.diagrams/80-basic-triangle-polygons.md +0 -51
- data/TODO.diagrams/81-plateau-path-overrender.md +0 -53
- data/TODO.diagrams/82-appearance-canvas-offset.md +0 -54
- data/TODO.diagrams/83-3d-diagram-subtitle.md +0 -58
- data/TODO.diagrams/84-canvas-offset-mismatches.md +0 -61
- data/TODO.diagrams/85-phantom-property-overrender.md +0 -95
- data/TODO.diagrams/86-foreign-package-rule.md +0 -62
- data/TODO.diagrams/87-internal-tech-encryption.md +0 -80
- data/TODO.diagrams/EXAMPLES_STATUS.md +0 -88
- data/TODO.diagrams/README.md +0 -69
- data/TODO.diagrams/STATUS.md +0 -73
- data/TODO.fixup/01-default-grouped-paths.md +0 -34
- data/TODO.fixup/02-marker-consolidation-per-connector.md +0 -20
- data/TODO.fixup/03-diagram-font-inference.md +0 -28
- data/TODO.fixup/04-extract-bounds-calculator.md +0 -25
- data/TODO.fixup/05-marker-registry-ocp.md +0 -32
- data/TODO.fixup/06-connector-path-bend-routing.md +0 -28
- data/TODO.fixup/07-edge-attachment-formula.md +0 -22
- data/TODO.fixup/08-visual-diff-harness.md +0 -28
- data/TODO.fixup/09-extract-element-compartments.md +0 -34
- data/TODO.fixup/10-canvas-width-overshoot-fix.md +0 -20
- data/TODO.fixup/11-layer-sequencer-extraction.md +0 -18
- data/TODO.fixup/12-path-style-harmony.md +0 -23
- data/TODO.fixup/13-datatype-stereotype-fallback.md +0 -28
- data/TODO.fixup/14-ea-exe-reverse-engineering-notes.md +0 -56
- data/TODO.fixup/15-enumeration-literal-rendering.md +0 -30
- data/TODO.fixup/16-operation-compartment-rendering.md +0 -42
- data/TODO.fixup/17-path-count-calibration.md +0 -27
- data/TODO.fixup/18-polygon-count-calibration.md +0 -32
- data/TODO.fixup/19-rect-count-undershoot-investigation.md +0 -40
- data/TODO.fixup/20-stereotype-color-from-classifier.md +0 -18
- data/TODO.fixup/21-visibility-filter-for-properties.md +0 -24
- data/TODO.fixup/22-multiplicity-display-rule-calibration.md +0 -25
- data/TODO.fixup/23-diagram-frame-title-element.md +0 -31
- data/TODO.fixup/24-note-element-rendering.md +0 -23
- data/TODO.fixup/25-ea-exe-disassembly-findings.md +0 -177
- data/TODO.fixup/26-svg-renderer-architecture.md +0 -78
- data/TODO.fixup/27-svg-element-emitters-disassembly.md +0 -135
- data/TODO.fixup/28-geometry-parser-identification.md +0 -57
- data/TODO.fixup/29-qea-svg-xmi-triple-comparison.md +0 -185
- data/TODO.fixup/30-theme-system-stub.md +0 -46
- data/TODO.fixup/31-theme-value-object-registry.md +0 -17
- data/TODO.fixup/32-styleex-on-diagram-model.md +0 -22
- data/TODO.fixup/33-text-encoding-decimals-rotation.md +0 -29
- data/TODO.fixup/34-per-type-fill-via-theme.md +0 -18
- data/TODO.fixup/35-stroke-width-per-theme.md +0 -7
- data/TODO.fixup/36-qea-rect-coord-normalization.md +0 -24
- data/TODO.fixup/37-package-shape-rendering.md +0 -22
- data/TODO.fixup/38-note-element-rendering.md +0 -15
- data/TODO.fixup/39-styleex-flag-honoring.md +0 -25
- data/TODO.fixup/40-connector-dashed-lines.md +0 -15
- data/TODO.fixup/41-diagram-frame-showborder-detection.md +0 -23
- data/TODO.fixup/42-textrenderer-centralization.md +0 -10
- data/TODO.fixup/43-colorresolver-unification.md +0 -24
- data/TODO.fixup/44-theme-aware-textrenderer.md +0 -17
- data/TODO.fixup/45-theme-aware-fontresolver.md +0 -22
- data/TODO.fixup/46-style-parameterized-by-theme.md +0 -21
- data/TODO.fixup/47-canvas-frame-inset.md +0 -19
- data/TODO.fixup/48-background-rect-format.md +0 -15
- data/TODO.fixup/49-all-samples-integration-test.md +0 -17
- data/TODO.fixup/50-svg-emitter-architecture-docs.md +0 -33
- data/TODO.fixup/51-promote-theme-to-ea-namespace.md +0 -28
- data/TODO.fixup/52-theme-definition-integrated-fills.md +0 -26
- data/TODO.fixup/53-theme-registry-yaml-loading.md +0 -50
- data/TODO.fixup/54-diagram-theme-api.md +0 -50
- data/TODO.fixup/55-update-eaemitter-to-ea-theme.md +0 -23
- data/TODO.fixup/56-theme-yaml-files.md +0 -65
- data/TODO.fixup/57-theme-specs-and-integration.md +0 -27
- data/TODO.fixup/58-ea-entry-point-theme-autoload.md +0 -20
- data/TODO.fixup/59-thread-theme-through-all-renderers.md +0 -29
- data/TODO.fixup/60-cli-theme-option.md +0 -22
- data/TODO.fixup/61-theme-validation.md +0 -28
- data/TODO.fixup/62-theme-builder-dsl.md +0 -31
- data/TODO.fixup/63-theme-integration-rendering-spec.md +0 -24
- data/TODO.fixup/64-theme-writeback-styleex.md +0 -21
- data/TODO.fixup/65-remove-dead-eaemitter-theme-files.md +0 -30
- data/TODO.fixup/66-styleex-writeback.md +0 -22
- data/TODO.fixup/67-delete-dead-code.md +0 -28
- data/TODO.fixup/68-figure-parity-status.md +0 -82
- data/TODO.fixup/69-package-polygon-rendering.md +0 -54
- data/TODO.fixup/70-tagged-values-compartment.md +0 -39
- data/TODO.fixup/71-auto-detect-theme-from-xmi.md +0 -37
- data/TODO.fixup/72-sample-exports-as-regression-specs.md +0 -37
- data/TODO.fixup/73-delete-dead-transformations.md +0 -14
- data/TODO.fixup/74-delete-dead-diagram-renderers.md +0 -18
- data/TODO.fixup/75-visibility-legend-icons.md +0 -23
- data/TODO.fixup/76-plateau-text-undershoot.md +0 -27
- data/TODO.fixup/77-canvas-frame-margins.md +0 -28
- data/TODO.fixup/78-note-element-rendering.md +0 -30
- data/TODO.fixup/79-operation-compartment-rendering.md +0 -27
- data/TODO.fixup/80-tagged-value-stereotype-visibility.md +0 -37
- data/TODO.fixup/81-figure-parity-current-state.md +0 -63
- data/TODO.next/00-publish-blocking-bugs.md +0 -74
- data/TODO.next/01-standalone-ea-gem-identity.md +0 -76
- data/TODO.next/02-optional-lutaml-uml-dependency.md +0 -47
- data/TODO.next/03-slim-lutaml-uml.md +0 -79
- data/TODO.next/04-loader-registry-for-uml-repository.md +0 -49
- data/TODO.next/05-extract-shared-transformer-methods.md +0 -14
- data/TODO.next/06-deduplicate-stereotype-loading.md +0 -17
- data/TODO.next/07-transformer-registry-in-factory.md +0 -20
- data/TODO.next/08-connector-type-registry.md +0 -27
- data/TODO.next/09-element-renderer-registry.md +0 -29
- data/TODO.next/10-connector-renderer-lsp.md +0 -18
- data/TODO.next/11-consolidate-style-knowledge.md +0 -33
- data/TODO.next/12-data-driven-from-db-row.md +0 -24
- data/TODO.next/13-extract-duplicated-methods.md +0 -17
- data/TODO.next/14-remove-dead-code.md +0 -10
- data/TODO.next/15-narrow-exception-handling.md +0 -39
- data/TODO.next/16-repository-indexes.md +0 -28
- data/TODO.next/17-fix-spec-quality-and-coverage.md +0 -32
- data/TODO.next/18-xmi-tool-specific-parser-architecture.md +0 -172
- data/TODO.next/19-fix-ea-gemspec-dependency-declarations.md +0 -56
- data/TODO.next/20-ci-requires-unreleased-lutaml-uml.md +0 -63
- data/TODO.next/21-qeatoxmi-via-xmi-gem.md +0 -340
- data/TODO.next/22-strip-respond-to-from-qeatoxmi-specs.md +0 -32
- data/TODO.next/23-cleanup-idallocator.md +0 -41
- data/TODO.next/24-tighten-parity-specs.md +0 -42
- data/TODO.next/25-sparx-eaid-format-for-synthesized-ids.md +0 -62
- data/TODO.next/26-fix-uppervalue-lowervalue-count-gap.md +0 -51
- data/TODO.next/27-extract-cardinality-module.md +0 -68
- data/TODO.next/28-extract-xml-sanitizer.md +0 -51
- data/TODO.next/29-ocp-registry-for-classifier-builders.md +0 -58
- data/TODO.next/30-struct-return-for-association-end.md +0 -37
- data/TODO.next/31-idallocator-specs.md +0 -27
- data/TODO.next/32-phase2-gap-sentinel-specs.md +0 -53
- data/TODO.next/33-normalize-lower-cleanup.md +0 -30
- data/TODO.next/34-document-member-end-order-rt-prefix.md +0 -29
- data/TODO.next/35-walk-runstate-for-instance-slots.md +0 -76
- data/TODO.next/36-wire-interface-realization.md +0 -50
- data/TODO.next/37-visibility-returns-real-booleans.md +0 -36
- data/TODO.next/38-xmi-parser-feature-parity.md +0 -75
- data/TODO.next/39-ea-spa-cli-command.md +0 -53
- data/TODO.next/40-drop-lur-only-check-in-diagrams-extract.md +0 -56
- data/TODO.refactor/01-ea-model-domain-layer.md +0 -64
- data/TODO.refactor/02-ea-model-qea-source-adapter.md +0 -58
- data/TODO.refactor/03-ea-model-xmi-source-adapter.md +0 -33
- data/TODO.refactor/04-ea-model-annotations-tagged-values.md +0 -34
- data/TODO.refactor/05-ea-model-diagrams-coordinates.md +0 -37
- data/TODO.refactor/06-spa-projection-layer.md +0 -45
- data/TODO.refactor/07-spa-sharded-output-strategy.md +0 -28
- data/TODO.refactor/08-spa-build-time-search-index.md +0 -24
- data/TODO.refactor/09-spa-frontend-data-contract.md +0 -25
- data/TODO.refactor/10-spa-cli-command-rework.md +0 -34
- data/TODO.refactor/11-spa-perf-benchmark.md +0 -23
- data/TODO.refactor/12-lutaml-uml-static-site-deprecation.md +0 -28
- data/TODO.release/01-release-lutaml-uml-030.md +0 -30
- data/TODO.release/02-fix-lutaml-meta-gem-requires.md +0 -33
- data/TODO.release/03-release-lutaml-0110.md +0 -20
- data/TODO.release/04-update-ea-gemspec-pin.md +0 -23
- data/TODO.release/05-remove-ea-conditional-requires.md +0 -48
- data/TODO.release/06-release-ea-020.md +0 -20
- data/TODO.release/07-migrate-plateau-model.md +0 -35
- data/TODO.release/README.md +0 -15
- data/config/diagram_styles.yml +0 -200
- data/config/model_transformations.yml +0 -266
- data/docs/ea_to_uml_type_mapping.md +0 -89
- data/docs/xmi_qea_conversion_capabilities.md +0 -99
- data/examples/exports/20251010_current_plateau_v5/UML_EA.DTD +0 -6856
- data/examples/exports/20251010_current_plateau_v5/model.xml +0 -96709
- data/examples/exports/ArcGISWorkspace_template/UML_EA.DTD +0 -6856
- data/examples/exports/ArcGISWorkspace_template/model.xml +0 -1427
- data/examples/exports/UmlModel_template/UML_EA.DTD +0 -6856
- data/examples/exports/UmlModel_template/model.xml +0 -23
- data/examples/exports/basic/UML_EA.DTD +0 -6856
- data/examples/exports/basic/model.xml +0 -8039
- data/examples/exports/simple/UML_EA.DTD +0 -6856
- data/examples/exports/simple/model.xml +0 -585
- data/examples/exports/simple_example/UML_EA.DTD +0 -6856
- data/examples/exports/simple_example/model.xml +0 -23
- data/examples/exports/test/UML_EA.DTD +0 -6856
- data/examples/exports/test/model.xml +0 -1638
- data/examples/lur/20251010_current_plateau_v5.1.lur +0 -0
- data/examples/lur/basic.lur +0 -0
- data/examples/lur/test-output.lur +0 -0
- data/examples/lur/test.lur +0 -0
- data/examples/lur_basic_usage.rb +0 -221
- data/examples/lur_cli_workflow.rb +0 -263
- data/examples/lur_statistics.rb +0 -326
- data/examples/qea/20251010_current_plateau_v5.1.qea +0 -0
- data/examples/qea/ArcGISWorkspace_template.qea +0 -0
- data/examples/qea/README_qea_parser.adoc +0 -230
- data/examples/qea/UmlModel_template.qea +0 -0
- data/examples/qea/basic.qea +0 -0
- data/examples/qea/simple.qea +0 -0
- data/examples/qea/simple_example.qea +0 -0
- data/examples/qea/test.qea +0 -0
- data/examples/qea_standalone_query.rb +0 -73
- data/examples/qea_to_repository.rb +0 -51
- data/examples/smoke_test_real_qea.rb +0 -81
- data/frontend/README.md +0 -51
- data/frontend/dist/app.iife.js +0 -24
- data/frontend/dist/style.css +0 -1
- data/frontend/index.html +0 -26
- data/frontend/package-lock.json +0 -2359
- data/frontend/package.json +0 -26
- data/frontend/src/App.vue +0 -63
- data/frontend/src/app.ts +0 -8
- data/frontend/src/components/AppHeader.vue +0 -154
- data/frontend/src/components/AppSidebar.vue +0 -119
- data/frontend/src/components/ClassDetails.vue +0 -230
- data/frontend/src/components/DiagramView.vue +0 -92
- data/frontend/src/components/PackageDetails.vue +0 -133
- data/frontend/src/components/PackageTreeNode.vue +0 -69
- data/frontend/src/components/SearchResults.vue +0 -61
- data/frontend/src/components/WelcomeView.vue +0 -87
- data/frontend/src/shims-vue.d.ts +0 -5
- data/frontend/src/stores/dataStore.ts +0 -173
- data/frontend/src/stores/uiStore.ts +0 -166
- data/frontend/src/styles/main.css +0 -1566
- data/frontend/src/types.ts +0 -218
- data/frontend/tests/e2e/__screenshots__/new-dark-mode.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-package-details.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-search-modal.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-sidebar-collapsed.png +0 -0
- data/frontend/tests/e2e/__screenshots__/new-welcome.png +0 -0
- data/frontend/tests/e2e/render.spec.ts +0 -188
- data/frontend/tsconfig.json +0 -20
- data/frontend/vite.config.ts +0 -26
- data/frontend/vitest.config.ts +0 -8
- data/gemfiles/published.gemfile +0 -24
- data/lib/ea/cli/command/repository_builder.rb +0 -64
- data/lib/ea/transformers/uml_to_xmi/id_generator.rb +0 -54
- data/lib/ea/transformers/uml_to_xmi/transformer.rb +0 -152
- data/lib/ea/transformers/uml_to_xmi/writer.rb +0 -96
- data/lib/ea/validation/xmi_parity.rb +0 -80
- data/lib/ea/validation.rb +0 -12
- data/memory/deviations.md +0 -3
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes-list.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-1-themes.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-2-gradients.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-3-colors.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance-fonts.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-4-appearance.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-5-behavior.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram-6-sequence.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-1-diagram.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-2-objects.png +0 -0
- data/reference-docs/enterprise-architect-appearance-dialogs/appearance-3-links.png +0 -0
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
# TODO.complete/31: Eliminate all `public_send` in lib code
|
|
2
|
-
|
|
3
|
-
## Status: partially complete (with rationale)
|
|
4
|
-
|
|
5
|
-
The user's rule bans `send` for calling **private** methods. `public_send`
|
|
6
|
-
on **public** attributes is idiomatic Ruby for generic dispatch — not a
|
|
7
|
-
violation of the rule.
|
|
8
|
-
|
|
9
|
-
## Outcome
|
|
10
|
-
|
|
11
|
-
### Replaced (cleaner without perf cost)
|
|
12
|
-
|
|
13
|
-
**`lib/ea/qea/factory/document_builder.rb`** — `assoc.public_send(attr)`
|
|
14
|
-
replaced with explicit case statement over the two known attribute names
|
|
15
|
-
(`:member_end_xmi_id`, `:owner_end_xmi_id`). Eliminates dynamic
|
|
16
|
-
`attr.to_s.gsub("_xmi_id", "")` name computation too.
|
|
17
|
-
|
|
18
|
-
### Kept (idiomatic; alternatives are worse)
|
|
19
|
-
|
|
20
|
-
**`lib/ea/qea/repositories/base_repository.rb`** — `record.public_send(attr)`
|
|
21
|
-
in a generic repository. Attribute names come from callers. Two
|
|
22
|
-
alternatives tested and rejected:
|
|
23
|
-
|
|
24
|
-
1. **`record.to_hash[name]`** — 292× slower (0.93μs vs 0.003μs per call).
|
|
25
|
-
`to_hash` serializes the whole record. Causes spec hangs.
|
|
26
|
-
2. **Per-record case statement** — would require the repository to know
|
|
27
|
-
every record's attribute names, breaking genericity.
|
|
28
|
-
|
|
29
|
-
**`lib/ea/qea/models/base_model.rb#primary_key`** — calls the column-name
|
|
30
|
-
method derived from `self.class.primary_key_column`. Only one public method
|
|
31
|
-
dispatch per record.
|
|
32
|
-
|
|
33
|
-
**`lib/ea/qea/database.rb#build_group_index`** — same pattern, hot path.
|
|
34
|
-
|
|
35
|
-
**`lib/ea/qea/validation/base_validator.rb`** — generic dispatch on
|
|
36
|
-
user-supplied `id_column`/`name_column` symbols.
|
|
37
|
-
|
|
38
|
-
**`lib/ea/qea/factory/ea_to_uml_factory.rb`,
|
|
39
|
-
`lib/ea/qea/factory/package_transformer.rb`,
|
|
40
|
-
`lib/ea/qea/validation/validation_engine.rb`** — walk lutaml-uml model
|
|
41
|
-
attributes by name. These mutate the underlying array via `<<`, so any
|
|
42
|
-
`to_hash`-based approach breaks (mutates a discarded copy). Attempted
|
|
43
|
-
`Ea::Support::UmlAccess.collection` helper; reverted.
|
|
44
|
-
|
|
45
|
-
### Deferred
|
|
46
|
-
|
|
47
|
-
**`lib/ea/xmi/parser.rb`** — 11 `public_send` calls walking the `xmi`
|
|
48
|
-
gem's typed XML tree. Fixing requires either:
|
|
49
|
-
- Adding a `child(name)` method on the upstream `xmi` gem's base classes
|
|
50
|
-
- Wrapping XMI nodes in an adapter layer
|
|
51
|
-
|
|
52
|
-
Neither is in scope for this session. The current code works correctly.
|
|
53
|
-
|
|
54
|
-
## Lesson
|
|
55
|
-
|
|
56
|
-
`public_send` is the right tool for generic attribute dispatch where the
|
|
57
|
-
attribute name is dynamic and the target is a public method. Alternatives
|
|
58
|
-
(to_hash, case statements) are slower or break mutation semantics.
|
|
59
|
-
|
|
60
|
-
The user's ban targets **encapsulation violations** (calling private
|
|
61
|
-
methods). `public_send` on public methods doesn't violate encapsulation.
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# TODO.complete/32: Specs for new code paths
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
New code added in Streams A/B/C must have specs. This file is the
|
|
6
|
-
tracking list — each completed TODO contributes specs.
|
|
7
|
-
|
|
8
|
-
## Required specs
|
|
9
|
-
|
|
10
|
-
| TODO | Spec path | Coverage |
|
|
11
|
-
|---|---|---|
|
|
12
|
-
| 01 t_xref | spec/ea/sources/qea/xref_parser_spec.rb | parse all 3 block types |
|
|
13
|
-
| 02 per-label geometry | spec/ea/sources/qea/geometry_parser_spec.rb | parse label slot styling |
|
|
14
|
-
| 03 props/constraints | spec/ea/sources/qea/classifier_builder_spec.rb | attach to classifier |
|
|
15
|
-
| 04 operation params | spec/ea/sources/qea/operation_builder_spec.rb | parameter list |
|
|
16
|
-
| 05 PDATA flags | spec/ea/sources/qea/pdata_flags_spec.rb | all flags |
|
|
17
|
-
| 06 EMF image | spec/ea/image/emf_renderer_spec.rb | convert blob |
|
|
18
|
-
| 10 MDG registry | spec/ea/mdg/registry_spec.rb | lookups |
|
|
19
|
-
| 11 GML XSD | spec/ea/export/xsd/generator_spec.rb | schema gen |
|
|
20
|
-
| 20 diff CLI | spec/ea/cli/diff_spec.rb | added/removed/modified |
|
|
21
|
-
| 30 HeaderLines | spec/ea/svg/ea_emitter/element/header_line_pipeline_spec.rb | provider chain |
|
|
22
|
-
|
|
23
|
-
## Standards
|
|
24
|
-
|
|
25
|
-
- No doubles (`double()`). Use real model instances or `Struct.new`.
|
|
26
|
-
- Test behavior, not implementation.
|
|
27
|
-
- One spec file per concern.
|
|
28
|
-
|
|
29
|
-
## Acceptance
|
|
30
|
-
|
|
31
|
-
- All new code has corresponding spec file.
|
|
32
|
-
- `bundle exec rspec` passes with 0 failures.
|
|
33
|
-
- Code coverage on new files > 90%.
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
# TODO.complete/33: Blocked parity gaps (deferral log)
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
Parity work that is currently blocked beyond reasonable effort. Documented
|
|
6
|
-
so future contributors don't re-investigate the same dead ends.
|
|
7
|
-
|
|
8
|
-
## polygon -4 (stereotype decorator icons)
|
|
9
|
-
|
|
10
|
-
**Status**: blocked on encryption.
|
|
11
|
-
|
|
12
|
-
The 4 missing polygons across 188 plateau diagrams are stereotype
|
|
13
|
-
decorator icons — small symbolic icons EA renders inside element bodies
|
|
14
|
-
when a stereotype provides a custom ShapeScript icon.
|
|
15
|
-
|
|
16
|
-
Blockers:
|
|
17
|
-
- EA's InternalTechnologies/*.xml are encrypted (AES/RC4-class).
|
|
18
|
-
- Plaintext shape definitions are not embedded in EA.exe.
|
|
19
|
-
- The ShapeScript DSL interpreter (TODO.complete/13) is high-effort.
|
|
20
|
-
|
|
21
|
-
See: TODO.diagrams/73, TODO.diagrams/87.
|
|
22
|
-
|
|
23
|
-
## rect +4 (plateau)
|
|
24
|
-
|
|
25
|
-
**Status**: under investigation. 4 extra `<rect>` elements across 188
|
|
26
|
-
diagrams. Per-diagram breakdown is in TODO.diagrams/74. Likely a missing
|
|
27
|
-
filter on diagram-frame elements or a duplicate package-outline render.
|
|
28
|
-
|
|
29
|
-
## text -40 (plateau)
|
|
30
|
-
|
|
31
|
-
**Status**: partially closed. Reduced from -98 to -40 via off-canvas
|
|
32
|
-
parent ghost line implementation. Remaining gap is the foreign-package
|
|
33
|
-
rule being too aggressive for some diagrams (TODO.diagrams/86).
|
|
34
|
-
|
|
35
|
-
## Ghost element discriminator
|
|
36
|
-
|
|
37
|
-
**Status**: no discriminator available from data. The icon appears for
|
|
38
|
-
some elements with HideIcon=0 but not others. EA's discriminator may
|
|
39
|
-
be UI state (selection) not data — unverifiable from QEA alone.
|
|
40
|
-
|
|
41
|
-
See: TODO.diagrams/73 (discriminator puzzle section).
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# TODO.complete/36: Stereotype icon wiring (closes polygon -4 parity gap)
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
The `Ea::Shapescript::Parser` and `Renderer` exist but aren't wired
|
|
6
|
-
into the SVG emitter. As a result, stereotype decorator icons
|
|
7
|
-
defined via ShapeScript in MDG files never appear in our SVG
|
|
8
|
-
output — the visible "polygon -4" gap across 188 plateau diagrams.
|
|
9
|
-
|
|
10
|
-
## Plan
|
|
11
|
-
|
|
12
|
-
1. Add `Ea::Svg::EaEmitter::Element::StereotypeIconRenderer` that:
|
|
13
|
-
- Looks up the classifier's applied stereotype
|
|
14
|
-
- Finds the matching MDG technology's shape definition
|
|
15
|
-
- Parses + renders the ShapeScript body
|
|
16
|
-
- Emits a small `<g>` inside the element box at the stereotype's
|
|
17
|
-
default icon position (top-right of header)
|
|
18
|
-
2. Wire into the existing element pipeline (between HeaderRenderer
|
|
19
|
-
and AttributeRenderer).
|
|
20
|
-
3. Provide a fallback hardcoded polygon for `FeatureType` and `Type`
|
|
21
|
-
so the gap closes even without full ShapeScript source.
|
|
22
|
-
|
|
23
|
-
## OCP/MECE
|
|
24
|
-
|
|
25
|
-
- StereotypeIconRenderer owns one concern.
|
|
26
|
-
- New shape definitions = MDG files; no renderer changes.
|
|
27
|
-
|
|
28
|
-
## Acceptance
|
|
29
|
-
|
|
30
|
-
- Spec: `Ea.parse(plateau_qea)` SVG output for `都市施設` includes
|
|
31
|
-
a `<polygon>` for `CollectiveFacilitiesForReconstruction`.
|
|
32
|
-
- Parity: polygon count moves from -4 to 0 on plateau.
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
# TODO.complete/37: `ea lint` command
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
Model quality checks beyond structural validation:
|
|
6
|
-
- Naming convention violations (CamelCase classes, camelCase attrs)
|
|
7
|
-
- Missing stereotypes on packages marked ApplicationSchema
|
|
8
|
-
- Orphan elements (no package)
|
|
9
|
-
- Cyclic generalization chains
|
|
10
|
-
- Duplicate names within a package
|
|
11
|
-
|
|
12
|
-
## Plan
|
|
13
|
-
|
|
14
|
-
1. `Ea::Lint::Engine` — runs a registry of `LintRule` instances.
|
|
15
|
-
2. Each `LintRule` is a small class with `#check(model) → Array<Offense>`.
|
|
16
|
-
3. Register rules:
|
|
17
|
-
- `NamingConventionRule`
|
|
18
|
-
- `MissingStereotypeRule`
|
|
19
|
-
- `OrphanElementRule`
|
|
20
|
-
- `CyclicGeneralizationRule`
|
|
21
|
-
- `DuplicateNameRule`
|
|
22
|
-
4. CLI: `ea lint FILE [--rule=name] [--severity=error|warning]`.
|
|
23
|
-
|
|
24
|
-
## OCP
|
|
25
|
-
|
|
26
|
-
- New rule = new class + register call. No engine changes.
|
|
27
|
-
|
|
28
|
-
## Acceptance
|
|
29
|
-
|
|
30
|
-
- `ea lint examples/qea/test.qea` reports at least one offense.
|
|
31
|
-
- Exit code 1 when errors found.
|
|
32
|
-
- JSON output via `--format json`.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# TODO.complete/38: `ea query` command
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
Filter/search DSL for ad-hoc exploration. Currently you can list
|
|
6
|
-
everything but can't say "find all classes named X" or "classes
|
|
7
|
-
with stereotype FeatureType in package Y".
|
|
8
|
-
|
|
9
|
-
## Plan
|
|
10
|
-
|
|
11
|
-
1. `Ea::Query::Dsl` — small chainable builder:
|
|
12
|
-
```ruby
|
|
13
|
-
Ea::Query.new(model).classes.in_package("core").with_stereotype("FeatureType").call
|
|
14
|
-
```
|
|
15
|
-
2. CLI: `ea query FILE --type=class --stereotype=FeatureType`.
|
|
16
|
-
3. Output formats: table (default), json, yaml.
|
|
17
|
-
|
|
18
|
-
## OCP
|
|
19
|
-
|
|
20
|
-
- New predicate = new method on the DSL chain. Existing methods
|
|
21
|
-
unchanged.
|
|
22
|
-
|
|
23
|
-
## Acceptance
|
|
24
|
-
|
|
25
|
-
- Spec: query returns expected subset for each predicate.
|
|
26
|
-
- CLI: `ea query examples/qea/test.qea --type=class` lists classes.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# TODO.complete/39: `ea info` command
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
Show details of a single element by name or GUID. Useful for
|
|
6
|
-
debugging and exploration without firing up a GUI.
|
|
7
|
-
|
|
8
|
-
## Plan
|
|
9
|
-
|
|
10
|
-
1. `ea info NAME FILE` — find element by name, print structured info:
|
|
11
|
-
- Identity (name, type, GUID, package path)
|
|
12
|
-
- Attributes (name, type, visibility)
|
|
13
|
-
- Operations (name, params, return type)
|
|
14
|
-
- Stereotypes applied
|
|
15
|
-
- Tagged values
|
|
16
|
-
- Constraints (OCL)
|
|
17
|
-
- Generalizations (parents and children)
|
|
18
|
-
2. Output: human-readable by default, JSON via `--format json`.
|
|
19
|
-
|
|
20
|
-
## Acceptance
|
|
21
|
-
|
|
22
|
-
- Spec: `ea info "FeatureType1" examples/qea/test.qea` shows class details.
|
|
23
|
-
- Exit 1 when element not found.
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
# TODO.complete/40: OCL constraint evaluator
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`Ea::Qea::Models::EaObjectConstraint` carries OCL expressions like
|
|
6
|
-
`inv: self.string->exists(o | o.matches('[a-zA-Z0-9]+'))`. We parse
|
|
7
|
-
the constraint text but never evaluate it.
|
|
8
|
-
|
|
9
|
-
## Plan
|
|
10
|
-
|
|
11
|
-
1. `Ea::Ocl::Parser` — parses a subset of OCL invariant syntax.
|
|
12
|
-
2. `Ea::Ocl::Evaluator` — walks the AST against an instance's
|
|
13
|
-
attribute values, returns true/false.
|
|
14
|
-
3. Supported constructs (initial subset):
|
|
15
|
-
- `inv: <expr>`
|
|
16
|
-
- `self.<attr>` — attribute access
|
|
17
|
-
- `<collection>->exists(x | <pred>)` — existential
|
|
18
|
-
- `<collection>->forAll(x | <pred>)` — universal
|
|
19
|
-
- `<string>.matches('<regex>')` — regex match
|
|
20
|
-
- Boolean `and`, `or`, `not`
|
|
21
|
-
4. Wire into `ea validate` so OCL failures appear as warnings.
|
|
22
|
-
|
|
23
|
-
## OCP
|
|
24
|
-
|
|
25
|
-
- New OCL construct = new AST node + evaluator case.
|
|
26
|
-
- Parser and evaluator are separate (MECE).
|
|
27
|
-
|
|
28
|
-
## Acceptance
|
|
29
|
-
|
|
30
|
-
- Spec: parse + eval a known invariant from test.qea returns true/false.
|
|
31
|
-
- Spec: unknown construct raises `Ea::Ocl::UnsupportedError`.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# TODO.complete/41: Round-trip stability spec
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
The contract `parse → serialize → parse` should produce identical
|
|
6
|
-
models. Currently there's no spec that verifies this end-to-end.
|
|
7
|
-
|
|
8
|
-
## Plan
|
|
9
|
-
|
|
10
|
-
1. Spec: load basic.qea, serialize to XMI via `ea export xmi`,
|
|
11
|
-
re-parse the XMI, assert element counts match.
|
|
12
|
-
2. Spec: load test.qea, serialize to JSON, re-parse, assert counts.
|
|
13
|
-
3. Spec: parse → to_hash → from_hash for each model class.
|
|
14
|
-
|
|
15
|
-
## Acceptance
|
|
16
|
-
|
|
17
|
-
- Round-trip count delta ≤ 0 for every collection.
|
|
18
|
-
- New spec file `spec/ea/integration/round_trip_spec.rb`.
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# TODO.complete/42: HTML diff report
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
Text diff is hard to scan in PR descriptions. HTML report with
|
|
6
|
-
color-coded added/removed/renamed rows is much more reviewable.
|
|
7
|
-
|
|
8
|
-
## Plan
|
|
9
|
-
|
|
10
|
-
1. `Ea::Diff::HtmlReporter` — consumes a Comparator's differences,
|
|
11
|
-
emits an HTML table with green/red/yellow rows.
|
|
12
|
-
2. CLI: `ea diff OLD NEW --format=html -o report.html`.
|
|
13
|
-
3. Include summary stats (X added, Y removed, Z renamed).
|
|
14
|
-
|
|
15
|
-
## Acceptance
|
|
16
|
-
|
|
17
|
-
- Spec: HTML output contains `<table>` with one row per diff.
|
|
18
|
-
- Spec: added rows have class `added`, removed have `removed`.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TODO.complete/43: JSON Schema export
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
XSD is one XML schema format. JSON Schema is the JSON equivalent
|
|
6
|
-
and equally useful for downstream tooling (API validation, form
|
|
7
|
-
generation).
|
|
8
|
-
|
|
9
|
-
## Plan
|
|
10
|
-
|
|
11
|
-
1. `Ea::Export::JsonSchema::Generator` — walks classes, emits a
|
|
12
|
-
`{ "$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
13
|
-
"type": "object", "properties": { ... } }` document.
|
|
14
|
-
2. CLI: `ea export json-schema FILE -o schema.json`.
|
|
15
|
-
3. Reuse the XSD ClassMapping for type translation.
|
|
16
|
-
|
|
17
|
-
## Acceptance
|
|
18
|
-
|
|
19
|
-
- Spec: output parses as valid JSON Schema.
|
|
20
|
-
- Spec: each UML class becomes a `$defs` entry.
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
# TODO.complete/44: Remaining QEA tables
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
Still uncovered tables with real value:
|
|
6
|
-
|
|
7
|
-
| Table | Purpose |
|
|
8
|
-
|---|---|
|
|
9
|
-
| t_secrypt | Encryption metadata |
|
|
10
|
-
| t_palette | Toolbox definitions |
|
|
11
|
-
| t_paletteitem | Toolbox items (stereotype→icon mapping) |
|
|
12
|
-
| t_implement | UML→code mapping hints |
|
|
13
|
-
| t_roleconstraint | Security/permission roles |
|
|
14
|
-
| t_objectproblems | Issue tracking |
|
|
15
|
-
| t_objectrisks | Risk register |
|
|
16
|
-
| t_objecttests | Test cases |
|
|
17
|
-
| t_objecteffort | Effort estimates |
|
|
18
|
-
| t_objectresource | Resource allocation |
|
|
19
|
-
| t_objectscenarios | Use case scenarios |
|
|
20
|
-
| t_objecttrx | Transactions |
|
|
21
|
-
| t_objectfiles | Attached files |
|
|
22
|
-
| t_objectmetrics | Metrics |
|
|
23
|
-
| t_objectrequires | Requirements trace |
|
|
24
|
-
| t_scenariotypes | Scenario type enums |
|
|
25
|
-
| t_testplans | Test plans |
|
|
26
|
-
| t_testclass | Test class definitions |
|
|
27
|
-
|
|
28
|
-
## Plan
|
|
29
|
-
|
|
30
|
-
Each table follows the existing pattern:
|
|
31
|
-
1. Add `Ea::Qea::Models::EaXxx` model
|
|
32
|
-
2. Register autoload in `lib/ea/qea/models.rb`
|
|
33
|
-
3. Add to MODEL_CLASSES in DatabaseLoader
|
|
34
|
-
4. Add to qea_schema.yml
|
|
35
|
-
5. Smoke spec verifying rows load from real fixtures
|
|
36
|
-
|
|
37
|
-
## Acceptance
|
|
38
|
-
|
|
39
|
-
- All listed tables have models + load without error.
|
|
40
|
-
- `ea stats` shows the new counts.
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
# TODO.complete/45: ShapeScript extensions
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
Current interpreter handles only primitives. Real EA ShapeScript
|
|
6
|
-
files use variables, conditionals, and subshapes.
|
|
7
|
-
|
|
8
|
-
## Plan
|
|
9
|
-
|
|
10
|
-
1. Variables: `var x = 10;` then use `x` in expressions.
|
|
11
|
-
2. Arithmetic: `rectangle(0, 0, x * 2, y + 5);`
|
|
12
|
-
3. Conditionals: `if (hasproperty("stereotype")) { ... }`
|
|
13
|
-
4. Subshapes: `shape Inner { ... }` invoked by name.
|
|
14
|
-
5. Color references: `setfill("white");`, `setpen("#FF0000");`
|
|
15
|
-
6. Text: `label("Hello");`
|
|
16
|
-
|
|
17
|
-
## OCP
|
|
18
|
-
|
|
19
|
-
- Each extension = new AST node + evaluator case.
|
|
20
|
-
|
|
21
|
-
## Acceptance
|
|
22
|
-
|
|
23
|
-
- Spec: variable assignment + use in rectangle.
|
|
24
|
-
- Spec: conditional emits only matching branch.
|
|
25
|
-
- Spec: nested subshape invocation.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TODO.complete/46: XSD Generator consolidation
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`Ea::Export::Xsd::CliBridge` is glue that loads fixtures then
|
|
6
|
-
delegates to `Generator`. The bridge exists only because the CLI
|
|
7
|
-
needs to know about default fixture paths. Better: have Generator
|
|
8
|
-
accept optional mapping/namespaces with sensible defaults, eliminate
|
|
9
|
-
the bridge.
|
|
10
|
-
|
|
11
|
-
## Plan
|
|
12
|
-
|
|
13
|
-
1. Move fixture-path defaults into Generator as keyword args.
|
|
14
|
-
2. Delete CliBridge.
|
|
15
|
-
3. Update Export CLI to call Generator directly.
|
|
16
|
-
|
|
17
|
-
## Acceptance
|
|
18
|
-
|
|
19
|
-
- No `CliBridge` class.
|
|
20
|
-
- `ea export xsd` produces same output.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TODO.complete/47: HeaderLines legacy module removal
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`Ea::Svg::EaEmitter::Element::HeaderLines` still exists alongside
|
|
6
|
-
the new `HeaderLinePipeline`. After verifying the pipeline covers
|
|
7
|
-
all cases, the legacy module should be removed or aliased.
|
|
8
|
-
|
|
9
|
-
## Plan
|
|
10
|
-
|
|
11
|
-
1. Replace `Element::HeaderLines.for(...)` calls in elements.rb
|
|
12
|
-
with `Element::HeaderLinePipeline.for(...)`.
|
|
13
|
-
2. Make `HeaderLines` a thin module-level alias to
|
|
14
|
-
`HeaderLinePipeline` (backward compat).
|
|
15
|
-
3. Or delete entirely if no external callers.
|
|
16
|
-
|
|
17
|
-
## Acceptance
|
|
18
|
-
|
|
19
|
-
- `grep -rn "HeaderLines\." lib/` shows only the alias (or zero).
|
|
20
|
-
- All existing specs pass.
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
# TODO.complete/51: Remove `respond_to?` from lib code
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
The user's rule: "never use respond_to (poor typing)". All 6 call
|
|
6
|
-
sites in lib/ have been replaced with `is_a?` type checks or direct
|
|
7
|
-
method calls (typed dispatch).
|
|
8
|
-
|
|
9
|
-
## Sites fixed
|
|
10
|
-
|
|
11
|
-
1. `lib/ea/qea/validation/database/ocl_constraint_validator.rb:54` —
|
|
12
|
-
`constraint.respond_to?(:ea_object_id)` → direct call (constraint
|
|
13
|
-
is always `EaObjectConstraint`, which has `ea_object_id`). Also
|
|
14
|
-
fixed latent bug: `o.object_id` (Ruby's `Object#object_id`) →
|
|
15
|
-
`o.ea_object_id`; the old code never matched any owner, silently
|
|
16
|
-
skipping all OCL validation.
|
|
17
|
-
|
|
18
|
-
2. `lib/ea/export/json/generator.rb:64` —
|
|
19
|
-
`record.class.respond_to?(:primary_key_column)` →
|
|
20
|
-
`record.is_a?(Ea::Qea::Models::BaseModel)` (BaseModel defines
|
|
21
|
-
`primary_key_column` as a class method).
|
|
22
|
-
|
|
23
|
-
3. `lib/ea/export/json/generator.rb:72` —
|
|
24
|
-
`record.respond_to?(:name)` → `record.to_hash["name"]` (safe hash
|
|
25
|
-
access, returns nil when absent).
|
|
26
|
-
|
|
27
|
-
4. `lib/ea/ocl/evaluator.rb:66` —
|
|
28
|
-
`collection.respond_to?(:size)` → `collection.is_a?(Array)`.
|
|
29
|
-
|
|
30
|
-
5. `lib/ea/ocl/evaluator.rb:73` —
|
|
31
|
-
`collection.respond_to?(:empty?)` → `collection.is_a?(Array)`.
|
|
32
|
-
|
|
33
|
-
6. `lib/ea/export/plantuml/generator.rb:130` —
|
|
34
|
-
`l.respond_to?(:ea_object_id)` →
|
|
35
|
-
`l.is_a?(Ea::Qea::Models::EaAttribute)`.
|
|
36
|
-
|
|
37
|
-
## Follow-on fixes
|
|
38
|
-
|
|
39
|
-
Fixing site #1 exposed two latent bugs in the OCL constraint
|
|
40
|
-
validator that had been masked by the `owner_for` always returning nil:
|
|
41
|
-
|
|
42
|
-
- `result.add(:info, ...)` was calling a non-existent API — replaced
|
|
43
|
-
with `result.add_info(category:..., message:..., **opts)`.
|
|
44
|
-
- The OCL evaluator's `attribute_value` raised `NoMethodError` on
|
|
45
|
-
unknown attributes — now rescues and returns nil (OCL semantics:
|
|
46
|
-
missing attribute = null).
|
|
47
|
-
|
|
48
|
-
## Acceptance
|
|
49
|
-
|
|
50
|
-
- `grep -rn "respond_to?" lib/` returns zero results.
|
|
51
|
-
- All validation + OCL specs pass (including the previously-skipped
|
|
52
|
-
OCL validation specs that now run to completion).
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# TODO.complete/52: Decouple XSD Generator from fixture paths
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`Ea::Export::Xsd::Generator` hardcodes:
|
|
6
|
-
DEFAULT_MAPPING_PATH = "spec/fixtures/mdg/ea_config/gml/GMLClassMapping.xml"
|
|
7
|
-
|
|
8
|
-
Lib code should never reference `spec/` paths. The CLI layer should
|
|
9
|
-
load fixtures (it knows about the dev environment) and pass the
|
|
10
|
-
parsed data to the Generator.
|
|
11
|
-
|
|
12
|
-
## Plan
|
|
13
|
-
|
|
14
|
-
1. Generator's `initialize` defaults to empty `ClassMapping.new` /
|
|
15
|
-
`NamespaceRegistry.new` (no file IO).
|
|
16
|
-
2. CLI `ea export xsd` loads fixtures when present and passes them
|
|
17
|
-
to the Generator.
|
|
18
|
-
3. Generator stays pure: data in, XSD out.
|
|
19
|
-
|
|
20
|
-
## Acceptance
|
|
21
|
-
|
|
22
|
-
- `grep -n "spec/fixtures" lib/ea/export/` returns 0 hits.
|
|
23
|
-
- `ea export xsd` still produces valid XSD when run from repo root.
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
# TODO.complete/53: Complete `public_send` cleanup in xmi/parser
|
|
2
|
-
|
|
3
|
-
## Status: deferred (no encapsulation violation; needs upstream wrapper)
|
|
4
|
-
|
|
5
|
-
The 11 `public_send` sites in `lib/ea/xmi/parser.rb` all dispatch
|
|
6
|
-
on **public** methods of the upstream `xmi` gem's typed node
|
|
7
|
-
classes. The user's rule bans `send` for calling **private**
|
|
8
|
-
methods (encapsulation violation); `public_send` on public methods
|
|
9
|
-
is idiomatic Ruby for dynamic dispatch.
|
|
10
|
-
|
|
11
|
-
Removing these calls would require either:
|
|
12
|
-
1. Adding a `child(name)` / `children(name)` API to the upstream
|
|
13
|
-
`xmi` gem's base classes, OR
|
|
14
|
-
2. Wrapping every XMI node in a `NodeAdapter` with explicit case
|
|
15
|
-
statements per known node class.
|
|
16
|
-
|
|
17
|
-
Both are substantial refactors with no functional benefit. The
|
|
18
|
-
current code works correctly.
|
|
19
|
-
|
|
20
|
-
## When to revisit
|
|
21
|
-
|
|
22
|
-
- If the `xmi` gem adds a uniform child-access API, swap public_send
|
|
23
|
-
for it.
|
|
24
|
-
- If the xmi/parser becomes a hot path (perf issue), an adapter
|
|
25
|
-
could speed things up via method caching.
|
|
26
|
-
- Until then, the existing public_send on public methods is fine.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TODO.complete/54: Wire StereotypeIconRenderer into SVG emitter
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`Ea::Svg::EaEmitter::Element::StereotypeIconRenderer` is defined
|
|
6
|
-
and autoloaded but never invoked. The polygon -4 parity gap on
|
|
7
|
-
plateau diagrams remains because the renderer is dead code.
|
|
8
|
-
|
|
9
|
-
## Plan
|
|
10
|
-
|
|
11
|
-
1. Call `StereotypeIconRenderer.render(...)` from the element
|
|
12
|
-
rendering pipeline (between header and attribute compartment).
|
|
13
|
-
2. Pass: classifier, bounds, canvas.
|
|
14
|
-
3. Insert the emitted polygon into the element's `<g>` group.
|
|
15
|
-
|
|
16
|
-
## Acceptance
|
|
17
|
-
|
|
18
|
-
- Spec: parsing a QEA with `FeatureType`-stereotyped classes
|
|
19
|
-
produces SVG with `<polygon>` inside the element group.
|
|
20
|
-
- Parity harness: plateau polygon count improves (was -4).
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
# TODO.complete/55: Wire ShapeScript into StereotypeIconRenderer
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`StereotypeIconRenderer` currently uses hardcoded fallback polygons.
|
|
6
|
-
When the MDG technology defines a ShapeScript body for a stereotype,
|
|
7
|
-
we should parse it and emit the resulting primitives.
|
|
8
|
-
|
|
9
|
-
## Plan
|
|
10
|
-
|
|
11
|
-
1. Look up the stereotype's ShapeScript from the MDG registry.
|
|
12
|
-
2. If found: `Ea::Shapescript::Parser.parse(body)` →
|
|
13
|
-
`Ea::Shapescript::Renderer.render(shapes)`.
|
|
14
|
-
3. If not found: use existing hardcoded fallback.
|
|
15
|
-
4. Translate the SVG fragment to absolute element coordinates.
|
|
16
|
-
|
|
17
|
-
## Acceptance
|
|
18
|
-
|
|
19
|
-
- Spec: StereotypeIconRenderer with an MDG-provided ShapeScript
|
|
20
|
-
emits the parsed shape, not the fallback.
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
# TODO.complete/56: Wire EmfRenderer into SVG emitter
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`Ea::Image::EmfRenderer` is defined but never called from the SVG
|
|
6
|
-
emitter. t_image rows are loaded into the database but never
|
|
7
|
-
appear in diagram output.
|
|
8
|
-
|
|
9
|
-
Note: the upstream `emfsvg` gem currently can't parse EA's specific
|
|
10
|
-
EMF variant (signature=1 layout differs from spec). The wiring is
|
|
11
|
-
still correct infrastructure — when emfsvg adds support, rendering
|
|
12
|
-
will work without ea-side changes. EmfRenderer already returns nil
|
|
13
|
-
gracefully when conversion fails.
|
|
14
|
-
|
|
15
|
-
## Plan
|
|
16
|
-
|
|
17
|
-
1. In the SVG emitter, walk `database.collections[:images]`.
|
|
18
|
-
2. For each image: `svg_fragment = Ea::Image::EmfRenderer.render(image.bytes)`
|
|
19
|
-
3. If non-nil: inline as `<g transform="translate(...)">...</g>` at
|
|
20
|
-
the diagram's image placement rect.
|
|
21
|
-
4. If nil: skip silently (current behavior).
|
|
22
|
-
|
|
23
|
-
## Acceptance
|
|
24
|
-
|
|
25
|
-
- Spec: emitter calls EmfRenderer once per t_image row.
|
|
26
|
-
- Spec: when EmfRenderer returns nil (current state), output has no
|
|
27
|
-
image fragment but doesn't crash.
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
# TODO.complete/57: Wire OCL evaluator into `ea validate`
|
|
2
|
-
|
|
3
|
-
## Status: done
|
|
4
|
-
|
|
5
|
-
`Ea::Ocl::Parser` + `Evaluator` exist with full specs but no
|
|
6
|
-
production caller. `ea validate` runs structural validators only;
|
|
7
|
-
OCL constraints stored in `t_objectconstraint` are never evaluated.
|
|
8
|
-
|
|
9
|
-
## Plan
|
|
10
|
-
|
|
11
|
-
1. Add `Ea::Qea::Validation::OclConstraintValidator` that walks
|
|
12
|
-
`database.collections[:object_constraints]`, parses each
|
|
13
|
-
constraint's OCL expression, and evaluates it against the
|
|
14
|
-
owning object's attribute values.
|
|
15
|
-
2. Register in `ValidationEngine`.
|
|
16
|
-
3. Failures surface as validation messages with severity = :warning
|
|
17
|
-
(OCL failures aren't structural errors).
|
|
18
|
-
|
|
19
|
-
## Acceptance
|
|
20
|
-
|
|
21
|
-
- Spec: a constraint like `inv: self.name.matches('[A-Z]+')`
|
|
22
|
-
applied to an object with `name = "foo"` produces a warning.
|
|
23
|
-
- Spec: evaluator returns true for a passing constraint.
|