Commit 5f47903
fixup: pin CastAction and InheritanceCase BSON field keys
Address PR #365 ako review B1 and B2 by pinning the BSON shape Studio
Pro emits, rather than changing correct code based on a faulty premise.
A BSON dump of the Control Centre app (Mendix 9.24) shows Studio Pro
stores:
Microflows$CastAction:
VariableName = Account # not OutputVariableName
ErrorHandlingType = Rollback
Microflows$InheritanceCase:
Value = Administration.Account # not Entity
The current writer matches both. The parser already falls back to the
alternative keys (OutputVariableName / Entity) for forward
compatibility, so projects authored by future Mendix versions that
ever rename these would still parse cleanly.
Add two regression tests so the writer cannot be "fixed" back to the
incorrect names without a CI failure:
- TestSerializeCastAction_UsesVariableNameFieldKey
- TestBuildSequenceFlowCase_InheritanceCase_UsesValueFieldKey
Each asserts both the presence of the correct key and the absence of
the alternative one, so a partial change is also caught.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 87a307f commit 5f47903
1 file changed
Lines changed: 42 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
63 | 63 | | |
64 | 64 | | |
65 | 65 | | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments