Repository navigation
check: calculated attributes, calculated indexes, grid constraint literals and view entity members - #2751
Merged
Conversation
The script created the entity with `Summary … calculated by
Issue524.CALC_Summary` before creating that microflow, so exec refused it
("microflow not found"). The microflow takes the entity, so the attribute is
now added after it with `alter entity … add attribute`. The fixed script
execs and MxBuild 11.16.1 builds it clean.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
…erals and view entity members Check-gap sweep 5, batch B (f99 f100 f114 f117 f119 f125): f114 f117 f119 passed check -p and MxBuild 11.16.1 rejected the project; f99 f100 f125 passed check -p and exec refused them. - MDL131: a calculated attribute on a non-persistent entity; a calculation microflow taking another entity, several parameters, or returning another type; a calculation microflow the script creates only later (walked in statement order, as exec runs); an index on a calculated attribute (CE0083). - A database source constraint comparing an attribute with a literal of another type (CE0161), the retrieve's table applied on the page. - A view entity whose OQL reads a member its source entity does not have (CE0174). OQL member names are case-sensitive, measured. All measured cases and the six fixtures agree with mx and exec; the new control file builds clean. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011oK82tETa46YQmMS58pQjL
ako
marked this pull request as ready for review
December 2, 2026 08:07
…domain # Conflicts: # CHANGELOG.md # mdl-examples/check-gap/README.md # mdl/executor/validate_program.go
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.
Check-gap sweep 5, batch B (#1258), covering f99, f100, f114, f117, f119 and f125. Three of them (f114, f117, f119) passed
check -pand MxBuild 11.16.1 rejected the project. The other three (f99, f100, f125) passedcheck -pbutexecrefused them.What
checknow rejectsexecalready refused this).execalready refused this).execalready refused this). The script is walked in statement order, asexecruns it. The message says to add the attribute afterwards withalter entity … add attribute, because the microflow takes the entity.check -p, CE0161): a constraint comparing an attribute with a literal of another type, such as[Qty = 'abc']. This applies the retrieve's literal-type table to pages.check -p, CE0174): OQL reading a member its source entity does not have. OQL member names are case-sensitive, which was measured.Example fixed (separate commit)
mdl-examples/bug-tests/security-524-autonumber-write-rights.mdlnamed a calculation microflow before creating it, soexecrefused the script. It now adds the attribute after the microflow, runs throughexec, and builds clean in mx.Not fixed, found on the way
mdl-examples/shop/shop.mdl: its TaskQueue view entity readspqt.statusandpqt.created; the attributes areStatusandCreated. MxBuild rejects this with CE0174, which the new check now reports under-p. Correcting the case still leaves CE6770, so the example needs its own fix.String(100)over aString(10)source passescheckand is CE6770. It is recorded in the check-gap README.Evidence
exec. The new controlcheck-gap-calculated-attributes.mdlbuilds clean.check -pover every example script raised nothing beyond the two real defects above.make ci-localpassed. After merging main, the batch tests passed again.Generated by Claude Code