Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
70504a6
check: microflow list operands, downloads and retrieve sort members (…
claude Dec 2, 2026
8728f10
bug-tests: add security-524's calculated attribute after its microflow
claude Dec 2, 2026
ca67241
check: calculated attributes, calculated indexes, grid constraint lit…
claude Dec 2, 2026
5b1f611
Merge remote-tracking branch 'origin/main' into fix/check-gap-sweep5-…
claude Dec 2, 2026
5093796
Merge pull request #2748 from ako/fix/check-gap-sweep5-microflows
ako Dec 2, 2026
0e592e2
Merge remote-tracking branch 'origin/main' into fix/check-gap-sweep5-…
claude Dec 2, 2026
1805987
check: type view entity columns over script-declared and inherited so…
claude Dec 2, 2026
a621516
shop example: fix the TaskQueue view entity's member names and lengths
claude Dec 2, 2026
13a8eee
Merge pull request #2751 from ako/fix/check-gap-sweep5-domain
ako Dec 2, 2026
e8e44ab
Merge remote-tracking branch 'origin/main' into fix/view-column-sourc…
claude Dec 2, 2026
4f2c807
check-gap README: view column lengths are now refused by check -p
claude Dec 2, 2026
f43f046
Merge pull request #2761 from ako/fix/shop-taskqueue-view
ako Dec 2, 2026
7c8e784
fix: widget init gives a widget whose name is a built-in keyword its own
claude Dec 2, 2026
a9dcf8f
Merge remote-tracking branch 'origin/main' into fix/view-column-sourc…
claude Dec 2, 2026
99b9ab4
Merge pull request #2760 from ako/fix/view-column-source-types
ako Dec 2, 2026
63ffd12
Merge pull request #2762 from ako/claude/issue-triage-prioritization-…
ako Dec 2, 2026
c9cb743
perf: find a page or snippet by name from the header listing
claude Dec 2, 2026
3a4b368
Merge pull request #2763 from ako/claude/issue-triage-prioritization-…
ako Dec 2, 2026
f36d0b2
check-gap: sixth sweep fixtures f131-f144
claude Dec 2, 2026
1f0bc1b
check-gap: measure the sixth sweep against MxBuild 11.16.1
claude Dec 2, 2026
9a6f7a9
fix: refuse validation feedback on a primitive variable (unloadable p…
claude Dec 2, 2026
dfc2a74
Merge pull request #2765 from ako/test/check-gap-sweep-6
ako Dec 2, 2026
aa6e06d
Merge remote-tracking branch 'origin/main' into fix/feedback-on-primi…
claude Dec 2, 2026
9f4943a
check-gap README: f142 is refused by check and exec
claude Dec 2, 2026
0d62543
Merge branch 'mendixlabs:main' into main
ako Dec 2, 2026
f82a185
Merge pull request #2766 from ako/fix/feedback-on-primitive
ako Dec 2, 2026
17936c4
check: contains and equals across entities (CE0024)
claude Dec 2, 2026
5bed859
fix: callers, callees and impact tell a page from a same-named microflow
claude Dec 2, 2026
6813a9b
Merge pull request #2774 from ako/claude/issue-triage-prioritization-…
ako Dec 2, 2026
3393479
fix!: a page title widget takes no Content
claude Dec 2, 2026
9641264
Merge pull request #2775 from ako/claude/issue-triage-prioritization-…
ako Dec 2, 2026
0a7acf1
fix: check knows an attribute alter entity adds earlier in the script
claude Dec 2, 2026
2477d50
Merge pull request #2773 from ako/fix/check-gap-sweep6-listops
ako Dec 3, 2026
c09b352
Merge pull request #2776 from ako/claude/issue-triage-prioritization-…
ako Dec 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-02", "refs": ["ako/mxcli#2764", "ako/mxcli#2759"], "ce": ["CE1613"], "symptom": "`alter entity Shop.Order add attribute Status \u2026` then, in the same script, `combobox cbStatus (Attribute: Status)` in a data view over Shop.Order: check refused it ('`Status` is not an attribute of Shop.Order, the entity this property binds to \u2026 CE1613'), so exec refused too; with --no-check the script executed and mx check was clean. A built-in textbox in the same position passed", "cause": "the script context recorded only that an alter touched the entity (alteredEntities); checkAttributeIndex overlaid the attributes of entities the script creates, never those an alter adds or renames to", "file": "mdl/executor/validate.go (alterAddedAttrs, recordAlterAddedAttribute), validate_widget_attribute_scope.go (checkAttributeIndex)", "fix": "the script context records an alter's added attribute and a rename's new name per entity; checkAttributeIndex merges them into the entity's stored attributes", "insight": "found while setting up a repro for another issue: a check that is wrong about the script's own intermediate state blocks valid scripts and pushes users to --no-check, which also skips the checks that are right. Overlay what the script does to an entity, not only what it creates", "test": "mdl/executor/alter_entity_attr_widget_scope_2764_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-12-02", "symptom": "A calculated attribute on a non-persistent entity, one whose calculation microflow takes another entity or returns another type, and one naming a microflow the script creates later all passed check -p and were refused by exec; an index on a calculated attribute (CE0083), a data grid constraint comparing an attribute with a literal of another type (CE0161) and a view entity whose OQL reads a member the source entity lacks (CE0174) passed check -p and MxBuild 11.16.1 rejected them. Check-gap sweep 5 f99 f100 f114 f117 f119 f125", "cause": "The calculated-attribute rules lived only in exec (cmd_entities.go, resolveCalculatedValue), and check resolved the calculation microflow against the whole script regardless of order; nothing compared index columns with calculated attributes; the widget XPath walk resolved members but never ran the literal-type table the retrieve and access rule use; the view entity check resolved FROM sources but not the members read through their aliases", "file": "mdl/executor/validate_calculated_attribute_gaps.go (MDL131), validate_widget_member_refs.go (widgetXPathLiteralTypeProblems), validate_view_source_entities.go (viewSourceAttributeErrors), validate.go, validate_program.go", "insight": "OQL member names are case-sensitive: `select i.name` over an attribute Name is CE0174, measured. Assuming OQL's case-insensitive keywords extend to members would have hidden a real defect in mdl-examples/shop/shop.mdl (pqt.status). A rule that needs statement order (a microflow created after the attribute that names it) must walk the program in order; the reference pass resolved names against the whole script and could not see it. The forward reference is not a mistake an author can avoid by reordering: the microflow takes the entity, so the attribute has to be added afterwards with ALTER, which the message says.", "refs": ["ako/mxcli#1258"], "ce": ["CE0083", "CE0161", "CE0174", "CE7247"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-02", "refs": ["ako/mxcli#2771", "mendixlabs/mxcli#2032", "ako/mxcli#2730"], "ce": [], "symptom": "a module with a page and a microflow both named Sales.Order_Revoke: `callers Sales.Order_Revoke --transitive` listed ACT_Order_RevokeStart (which only opens the page) as a depth-1 caller of the microflow, and the page at depth 2; on a real model 17 'callers' for a microflow with 2. refs and impact merged both documents' references", "cause": "execShowCallers / execShowCallees built their (recursive) queries on refs.TargetName / SourceName alone, ignoring TargetType / SourceType; impact had no target-type column", "file": "mdl/executor/cmd_search.go (showCallers, showCallersOf, showCallees, refTargetTypes, namesSeveralKinds, showImpact)", "fix": "walk nodes are (type, name): the CTE seeds on TargetType and joins on name and type; a name of more than one target type prints one block per type with the callers' types; callees seed only on flows and join on type; impact (like refs since #2730) adds TargetType when the name names several kinds", "insight": "the #2730 finding predicted this one (`grep other name-keyed maps over refs`): the same collision class, in the CLI rather than the linter. execShow* rebuilt the catalog from the backend, so a seeded-catalog test hung; splitting each command into ensure + print-from-catalog (as showReferences already was) made it testable", "test": "mdl/executor/callers_same_name_2771_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-12-02", "symptom": "`contains $O in $L` with $O of another entity than $L's, and `equals $A and $B` with lists of different entities, passed check -p; MxBuild 11.16.1 reported CE0024 \"The type of the second variable … is not (a specialization of) the type of …\". Check-gap sweep 6 f131 f141", "cause": "MDL130 compared the operands of union, intersect and subtract only; contains and equals take the same pair of operands and were not in its list", "file": "mdl/executor/validate_microflow_operand_entities.go (MDL130)", "insight": "The second operand of every two-operand list activity follows one rule: the first list's entity or a specialization of it, measured both directions for contains (an object) and equals (a list). When a rule names a list of operations, sweep the sibling operations the grammar offers before calling it done; contains and equals sat next to union in the same switch.", "refs": ["ako/mxcli#1258"], "ce": ["CE0024"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-12-02", "symptom": "`validation feedback $S/Name` with $S a String passed check -p and exec wrote it; MxBuild 11.16.1 then could not load the project at all: \"Validation feedback … has an invalid value '' for property Attribute. The text 'Name' is not a valid AttributeIdentifier.\" (check-gap sweep 6, f142)", "cause": "addValidationFeedbackAction qualifies a bare member with the variable's entity (fb.varTypes); a primitive variable has none, so declaringMemberRef returned the name as written and the action stored the unqualified `Name` as its attribute reference. check judged the feedback target only once an entity was known (feedbackMember), so a primitive variable was silence", "file": "mdl/executor/cmd_microflows_builder_calls.go (feedbackOnPrimitiveRefusal, backstop on an unqualified attribute), validate_object_list_operands.go (MDL118)", "insight": "An unqualified attribute reference is never loadable, so the writer refuses the SHAPE, not just the cause found today: the backstop refuses any feedback attribute it would store without a dot, whatever left the entity unknown. The sweep found it only because mx check's result was a stack trace rather than a CE code; a parity harness that counts CE codes alone would have recorded it as 'mx-fail' and moved on.", "refs": ["ako/mxcli#1258"], "ce": []}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-02", "refs": ["ako/mxcli#2753", "mendixlabs/mxcli#2010", "#1850", "#2160", "#1469"], "ce": [], "symptom": "findPageByName (ALTER PAGE, page styling, grant/revoke on a page) called ListPages, which decodes every page of the project, once per statement; findSnippetByName ListSnippets likewise. Reporter measured ~15% of an exec of 40 ALTER PAGE on a ~3,100-unit project", "cause": "the two lookups were left on the full listing when describe moved to the header listing (#1850, #2160)", "file": "mdl/executor/cmd_styling.go (findPageByName, findSnippetByName), document_lookup.go (snippetsWhereHeader)", "fix": "pagesWhereHeader / new snippetsWhereHeader with the name and module filter: only the same-named documents are decoded; liveFirst kept for pages (#1469); not-found and the module choice unchanged", "insight": "whole-run wall clock on a small project (TestApp, 70 pages) is noise for this change \u2014 it swung both ways between runs; a CPU profile (MXCLI_CPUPROFILE) showed the lookup below resolution in both binaries and the run dominated by Writer.reconcileWithStored. Prove such a change with a counting backend (full listings, decodes), not with timings on a small fixture", "test": "mdl/executor/find_page_by_name_headers_2753_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-12-02", "symptom": "A microflow adding or removing an object of another entity to/from a list (CE0117), a union, intersect or subtract whose second list holds another entity (CE0024), a download file of an object that is no System.FileDocument (CE0480), and a database retrieve sorted by an attribute the entity does not have (CE1613) all passed check -p; MxBuild 11.16.1 rejected them. A change of a list variable passed check -p and was refused by exec. Check-gap sweep 5 f104 f105 f108 f110 f120", "cause": "Nothing compared a list activity's operands by entity: the list operations checked members and list-ness, never which entity each side holds. The retrieve's sort columns were not resolved against the entity, though its where clause was. The change-of-a-list refusal lived only in the microflow builder (fb.isListVariable), which runs in exec", "file": "mdl/executor/validate_microflow_operand_entities.go (MDL130), validate_flow_member_refs.go (retrieveSortMembers), validate_program.go", "insight": "The direction matters and is the same for every list activity: the item or second list must be the first list's entity or a SPECIALIZATION of it. A generalization (adding a Base to a List of Item, union with a List of Base) is rejected just like an unrelated entity, so a symmetric 'related either way' test would have missed half the cases. Measure both directions before writing the comparison. A sort column follows the retrieved entity's chain upwards only: an attribute of a specialization is CE1613.", "refs": ["ako/mxcli#1258"], "ce": ["CE0117", "CE0024", "CE0480", "CE1613"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-02", "refs": ["ako/mxcli#2768", "mendixlabs/mxcli#2026", "mendixlabs/mxcli#1373"], "ce": [], "symptom": "`title t (Content: 'X')` passed check and exec, mx check was clean, and the title rendered the page's Title, not X; `alter page \u2026 set (Content|Caption: 'X') on t` failed 'widget has no Content property' with no pointer to what to use; translations for such titles matched nothing because no Content was stored", "cause": "Forms$Title stores no text \u2014 it shows the page's Title; the writer drops a caption since #1373 \u2014 but the native-props read list still declared `Content` for title, the builder still read it into Caption, and describe printed a Content from a caption an older mxcli had stored", "file": "mdl/executor/widget_native_props.go (title reads, titleTextHint), cmd_pages_builder_v3_widgets.go (buildTitleV3), cmd_pages_describe_output.go, mdl/backend/pagemutator/mutator.go (setRawWidgetPropertyMut), cmd/mxcli/syntax/features_page.go", "fix": "title reads no Content: check refuses it (MDL-WIDGET52 under mdl 1, the MDL-V1-WIDGETPROP warning under mdl 0) with a hint naming the page Title and a dynamictext heading; ALTER SET Content/Caption on a title says the same; describe prints no Content; the syntax help and examples stop teaching `TITLE name (Content: \u2026)`", "insight": "when the writer stopped writing a property (#1373), the reader side (reads list, builder, describe, syntax help, an example) kept advertising it: a dropped write needs its accepting surfaces removed in the same change, or the tool teaches a no-op. `mxcli syntax` itself showed `TITLE name (Content: 'Heading')` three times", "test": "mdl/executor/title_content_2768_test.go, mdl/backend/pagemutator/title_content_2768_test.go"}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl/executor", "date": "2026-12-02", "symptom": "A view entity column over a source entity the same script declares, or over an attribute the source inherits, passed check -p whatever its declared type; MxBuild 11.16.1 reported CE6770 \"View Entity is out of sync with the OQL Query.\" (a String(100) column over an inherited String(10), an Integer column declared Long, a String(100) attribute declared String(50) or unlimited). Found measuring check-gap sweep 5", "cause": "The view column typing (inferTypeFromExpression -> inferAttributeTypeFromEntity) read the source attribute from the stored project only, and only on the entity itself: a script-declared source or an inherited attribute left the column TypeUnknown, which the length and type rules skip", "file": "mdl/executor/oql_type_inference.go (viewSourceAttributeType), exec_context.go (viewSourceScript), validate.go", "insight": "An untyped column is silence, not a pass: every column rule hangs off the inferred type, so one missing lookup path disables all of them at once. Diffing the findings before and after over the example scripts caught the one false positive the unit cases could not: a view declared, then restated by `create or modify` after its source was widened, is judged only in its last declaration. A view column must match its source exactly; Integer declared Long is CE6770 too, not a widening.", "refs": ["ako/mxcli#1258"], "ce": ["CE6770"]}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
{"area": "mdl-executor", "date": "2026-12-02", "refs": ["ako/mxcli#2707", "mendixlabs/mxcli#1993", "#1848", "mendixlabs/mxcli#1463"], "ce": [], "symptom": "in a project with List View Controls, every command loading widget definitions warned three times that .mxcli/widgets/dropdownfilter.def.json (com.mendix.widget.custom.listviewcontrols.DropDownFilter) is not registered as `dropdownfilter`, the Data grid 2 drop-down filter's keyword; deleting the file and re-running `widget init` regenerated the same one", "cause": "scanProjectWidgets resolved name clashes between project widgets (#1848) but never counted a built-in keyword as taken: the registry refuses a definition on an embedded definition's or a builder-owned keyword (#1463), widget init kept generating one", "file": "mdl/executor/widget_defs.go (scanProjectWidgets, builtinWidgetKeywords, removeRenamedDefinitions, genericIDSegments), widget_engine.go (WidgetDefGeneratorVersion 21)", "fix": "embedded definitions' keywords (with their widget IDs) and builder-owned keywords seed the taken set; a project widget deriving one is renamed through qualifiedMDLName (`custom` is now a generic ID segment, so the package names it: LISTVIEWCONTROLSDROPDOWNFILTER); a generated definition for the same widget under another name is removed; generator version bumped so existing projects regenerate", "insight": "the reader (registry) and the writer (widget init) each had a rule about keywords, and only the reader knew built-ins: put the reservation where both read it. A rename is only half a fix while the old file remains \u2014 the registry keeps warning about it. Checked against KnightShift's 40 packages: no widget renamed", "test": "mdl/executor/widget_defs_builtin_keyword_2707_test.go"}
Loading
Loading