mirror of
https://github.com/microsoft/BCQuality.git
synced 2026-10-07 15:46:55 +01:00
2 AL/BC patterns: TableRelation field length and RecordRef.Open Temp parameter (#208)
* Add TableRelation field-length and RecordRef.Open Temp knowledge - data-modeling: tablerelation-field-length-must-match-related-field (exact length for unconditional relations, at least the longest target when all relations are conditional; no compile-time diagnostic) - testing: recordref-open-temp-parameter-defeats-real-table-checks (a temp-opened RecordRef is empty, so existence/uniqueness checks on it never see persisted rows; cross-links use-generateguid article) - Wire both into the review leaves and register the fixture pairs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Address review: TableRelation validation carve-out, RecordRef nits - tablerelation: fields with ValidateTableRelation/TestTableRelation = false are skipped by codeunit 134926 and may be longer (filter/totaling fields); shorter is still a finding. Add Code/Text type rule, BaseApp evidence, a ValidateTableRelation = false filter field to the good fixture, and the carve-out to the data-modeling cue. - recordref: add FindLast/Next, relabel SplitLocalTableFilter as filter splitting, mark fixtures as test-library-style helpers. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * Drop unverified claim about where-filtered relations The Table Relations Metadata mapping of where(...) filters to Condition Field No. is not documented and could not be verified; the rule does not depend on it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: Jesper Schulz-Wedde <jesper.schulzwedde@microsoft.com> Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
parent
02e7ab15b0
commit
018e62767d
9 changed files with 267 additions and 6 deletions
|
|
@ -28,6 +28,7 @@
|
|||
"pictures-must-use-media-not-blob",
|
||||
"report-barcodes-must-use-barcode-module-and-production-font-name",
|
||||
"table-design-must-match-bc-table-type-conventions",
|
||||
"tablerelation-field-length-must-match-related-field",
|
||||
"transferfields-mirrored-fields-must-match-type-and-length"
|
||||
]
|
||||
},
|
||||
|
|
@ -167,7 +168,8 @@
|
|||
"test-one-when-per-test",
|
||||
"transactionmodel-attribute-governs-test-transactions",
|
||||
"ui-test-codeunit-naming",
|
||||
"use-assert-isfalse-not-asserterror-for-boolean-checks"
|
||||
"use-assert-isfalse-not-asserterror-for-boolean-checks",
|
||||
"recordref-open-temp-parameter-defeats-real-table-checks"
|
||||
]
|
||||
},
|
||||
"ui": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue