Skip to content

Fix codegen for nested local flows and history under parallel; DSL full targets and region ids (0.13.0) - #23

Merged
rinekri merged 8 commits into
masterfrom
fix/issues-19-22
Nov 9, 2026
Merged

rinekri merged 8 commits into
masterfrom
fix/issues-19-22

Conversation

@rinekri

@rinekri rinekri commented Nov 9, 2026

Copy link
Copy Markdown
Contributor

Closes #19 #20 #21 #22

Fixes (Gradle plugin)

Additions (way-dsl)

Release / CI

  • versionName is now 0.13.0, and the CHANGELOG section is dated. The tag is pushed after merge.
  • New ios-tests job on macos-latest runs :way:iosSimulatorArm64Test and :way-dsl:iosSimulatorArm64Test. These tests have never run before.

The history node was listed among the parallel's regions, so the
generated builder failed as soon as the parallel flow was entered.
A parallel with only history children now counts as empty.

Closes #20
A non-root local flow builder shares the schema of its root. Its
targetOrError passed the alias to schema.target, which replaces the
schema root, not the flow's own prefix, so the flow segment appeared
twice (settings.settings.general) and the build failed. Targets are now
re-based onto the flow's own segment. The DSL parity test uses the
generated SettingsNodeBuilder and ShopNodeBuilder instead of hand-built
ones.

Closes #19
ParallelRef.regionId(child) gives the region id relative to the parallel's
schema, the same as a generated <child>RegionId, in place of
Schema.regionByName.

Closes #22
target(..., shop with shopId, item with itemId) fills ancestorPayloads, so
ancestors which are not alive are rebuilt, like a generated full target.
Every ancestor must be a parameterized ancestor of the target.

Closes #21
@rinekri
rinekri merged commit 1d25d49 into master Nov 9, 2026
2 checks passed
@rinekri
rinekri deleted the fix/issues-19-22 branch November 9, 2026 13: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.

Generated builder for a nested local flow cannot build its children (root segment duplicated)

1 participant