Repository navigation
Conversation
`mxcli layout flows` reported `moved N of M objects` on a flow whose loop had been written by the pre-mendixlabs#1935 builder, while bson dump showed the loop's Size unchanged - and another --dry-run reported the same objects again. Two carries restored the stale value: - stripFlowLayout cleared @position/@anchor/@curve/@merge/@start but not @SiZe, so DESCRIBE re-emitted the STORED box and the rebuild reused it. It now clears ActivityAnnotations.Size, so the rebuild's fitContainerSize decides. - canon.CarryUnexpressed kept max(written, stored) per dimension on every write (the #2179 contract, from when MDL could not state a size). Even the correct smaller box was replaced by the larger stored one before equality, so the write elided as unchanged. A write authoritative about geometry needs an explicit option: canon.ContentsOwnLayout(), plumbed through a new backend path UpdateRawUnitOwningLayout (interface, modelsdk backend, writer, mock, regenerated unimplemented/unsupported), which layoutFlow uses. The default carry stays for rebuilds: a loop box drawn larger in Studio Pro is still not shrunk by create or drop+create. Test: mdl/executor/issue1935_layout_flows_test.go injects the stale Size, asserts layout replaces it and a second run changes nothing; canon's TestUnexpressed_LoopSizeReplacingStaleBoxWhenLayoutOwnsIt, with the #2179 default-carry tests as the control. go build ./..., the layout/describe executor tests and the cmd/mxcli layout flows tests pass.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
mxcli layout flowsreportedmoved N of M objectson a flow whose loophad been written by the pre-#1935 builder, while bson dump showed the loop's
Size unchanged - and another --dry-run reported the same objects again.
Two carries restored the stale value:
stripFlowLayout cleared @position/@anchor/@curve/@merge/@start but not
@SiZe, so DESCRIBE re-emitted the STORED box and the rebuild reused it.
It now clears ActivityAnnotations.Size, so the rebuild's fitContainerSize
decides.
canon.CarryUnexpressed kept max(written, stored) per dimension on every
write (the #2179 contract, from when MDL could not state a size). Even the
correct smaller box was replaced by the larger stored one before equality,
so the write elided as unchanged. A write authoritative about geometry
needs an explicit option: canon.ContentsOwnLayout(), plumbed through a new
backend path UpdateRawUnitOwningLayout (interface, modelsdk backend,
writer, mock, regenerated unimplemented/unsupported), which layoutFlow
uses.
The default carry stays for rebuilds: a loop box drawn larger in Studio Pro
is still not shrunk by create or drop+create.
Test: mdl/executor/issue1935_layout_flows_test.go injects the stale Size,
asserts layout replaces it and a second run changes nothing; canon's
TestUnexpressed_LoopSizeReplacingStaleBoxWhenLayoutOwnsIt, with the #2179
default-carry tests as the control. go build ./..., the layout/describe
executor tests and the cmd/mxcli layout flows tests pass.
Refs #1935 (the layout-flows half; the box computation is #1942).