bcquality/microsoft/knowledge/data-modeling
Michael Dieringer 67962727f6 Fix ten focused correctness items plus sample links from Jesper's 2026-09-15 re-review
Six carried-over threads:
- api-page-least-privilege-write-access fixtures: added the mandatory
  EntityName/EntitySetName properties (AL0485).
- pages-must-not-contain-business-logic fixtures: Sales Line has no
  "Total Amount" field; replaced with the real "Line Amount" (field 103).
- test-feature-scenario-tags.good.al and test-one-when-per-test.good.al:
  CreatePriceHeader leaves a price list in Draft status, which price
  calculation ignores. Added Validate(Status, Active) + Modify before the
  sales line that depends on it. Verified Status field/enum against
  PriceListHeader.Table.al and PriceStatus.Enum.al in the BCApps clone.
- exposed-objects-must-be-in-a-permission-set.md: a published codeunit is
  a SOAP endpoint (SOAP is deprecated), not OData - Page/Query are the
  OData object types. Corrected and pointed new integrations at API
  pages/queries instead.
- al-error-handling-review.md: the log-writes-must-survive-rollback cue
  selected on Session.StartSession, which only appears in the compliant
  fix, never in the anti-pattern - the bad fixture could never be
  worklisted. Recued on the actual risk shape (log insert around a
  failed TryFunction/GetLastError* path, then raise/propagate), with
  StartSession as an explicit compliant discriminator instead.
- page-design-must-match-bc-page-type-conventions.md: the enum value is
  NavigatePage, not Navigate; noted the type list is a selected subset,
  not an exhaustive PageType catalogue (PromptDialog, ConfigurationDialog,
  UserControlHost, XmlPort also exist, out of this article's scope).

Four new correctness gaps:
- release-must-update-app-version.md: "the version is the only identity"
  was backwards - id is the app's stable identity, version identifies a
  release/code-state of it.
- defensive-vs-offensive-code-must-match-blast-radius.good.al: the "low
  blast radius" example had no else branch, so a failed Customer.Get()
  left the field at its prior/default value instead of the explicit
  chosen fallback the article claims to demonstrate. Added the else.
- bcpt-scenarios-must-be-app-specific.good.al: InitTest and both measured
  StartScenario/EndScenario sections were empty/comment-only, so the
  "app-specific" fixture measured no actual work. Filled in a real,
  self-contained header+line creation path.
- upgrade-tag-logic-must-not-nest-deeply.good.al: the flattened version
  dropped both safety conditions the bad fixture had (Discount % = 0,
  nonblank posting group), silently changing behavior instead of just
  removing nesting. Extracted the guarded update into a helper with both
  conditions preserved as early exits.

Also converted this PR's remaining plain-backtick "See sample:" sample
references (16 articles) to the READ-convention markdown-link form,
matching the fix already made on #156/#158.

Rebased onto upstream/main (conflicts in al-ui-review.md, al-style-review.md,
al-upgrade-review.md against merged upstream PRs - all additive, both
sides' worklist cues retained).
2026-09-21 22:44:17 +02:00
..
check-blocked-in-referencing-code-not-in-master.bad.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
check-blocked-in-referencing-code-not-in-master.good.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
check-blocked-in-referencing-code-not-in-master.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
code-must-not-change-workdate.bad.al Add 18 more community AL/BC patterns across appsource, data-modeling, error-handling, security, style, testing, ui, upgrade, and web-services 2026-09-21 22:42:49 +02:00
code-must-not-change-workdate.good.al Add 18 more community AL/BC patterns across appsource, data-modeling, error-handling, security, style, testing, ui, upgrade, and web-services 2026-09-21 22:42:49 +02:00
code-must-not-change-workdate.md Fix ten focused correctness items plus sample links from Jesper's 2026-09-15 re-review 2026-09-21 22:44:17 +02:00
initialize-document-defaults-in-initrecord.bad.al Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
initialize-document-defaults-in-initrecord.good.al Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
initialize-document-defaults-in-initrecord.md Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
insert-only-transfer-may-rely-on-caller-cleanup.md knowledge: three false-positive guards from BCApps PR 10277, 10278 and 10346 (#146) 2026-09-02 11:25:19 +02:00
master-table-no-from-number-series-in-oninsert.bad.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
master-table-no-from-number-series-in-oninsert.good.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
master-table-no-from-number-series-in-oninsert.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
owning-table-must-delete-dependents-in-ondelete.bad.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
owning-table-must-delete-dependents-in-ondelete.good.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
owning-table-must-delete-dependents-in-ondelete.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
pictures-must-use-media-not-blob.bad.al Add 18 more community AL/BC patterns across appsource, data-modeling, error-handling, security, style, testing, ui, upgrade, and web-services 2026-09-21 22:42:49 +02:00
pictures-must-use-media-not-blob.good.al Add 18 more community AL/BC patterns across appsource, data-modeling, error-handling, security, style, testing, ui, upgrade, and web-services 2026-09-21 22:42:49 +02:00
pictures-must-use-media-not-blob.md Fix ten focused correctness items plus sample links from Jesper's 2026-09-15 re-review 2026-09-21 22:44:17 +02:00
round-direction-symbols-use-magnitude.bad.al Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
round-direction-symbols-use-magnitude.good.al Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
round-direction-symbols-use-magnitude.md Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
set-last-date-modified-in-onmodify-and-onrename.bad.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
set-last-date-modified-in-onmodify-and-onrename.good.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
set-last-date-modified-in-onmodify-and-onrename.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
setup-table-is-a-singleton.bad.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
setup-table-is-a-singleton.good.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
setup-table-is-a-singleton.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
share-mediaset-items-with-insert-not-field-assignment.bad.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
share-mediaset-items-with-insert-not-field-assignment.good.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
share-mediaset-items-with-insert-not-field-assignment.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
table-design-must-match-bc-table-type-conventions.bad.al Add 18 more community AL/BC patterns across appsource, data-modeling, error-handling, security, style, testing, ui, upgrade, and web-services 2026-09-21 22:42:49 +02:00
table-design-must-match-bc-table-type-conventions.good.al Add 18 more community AL/BC patterns across appsource, data-modeling, error-handling, security, style, testing, ui, upgrade, and web-services 2026-09-21 22:42:49 +02:00
table-design-must-match-bc-table-type-conventions.md Fix ten focused correctness items plus sample links from Jesper's 2026-09-15 re-review 2026-09-21 22:44:17 +02:00
table-relation-extensions-are-additive-and-top-down.bad.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
table-relation-extensions-are-additive-and-top-down.good.al Complete AL review knowledge readiness (#108) 2026-07-15 10:55:25 +02:00
table-relation-extensions-are-additive-and-top-down.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
transferfields-skip-type-mismatch-can-drop-data.bad.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
transferfields-skip-type-mismatch-can-drop-data.good.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
transferfields-skip-type-mismatch-can-drop-data.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
use-no-series-codeunit-not-noseriesmanagement.bad.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
use-no-series-codeunit-not-noseriesmanagement.good.al Add data-modeling and appsource knowledge articles (MICROSOFT layer) (#65) 2026-07-13 10:35:31 +02:00
use-no-series-codeunit-not-noseriesmanagement.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
validate-table-relation-false-suppresses-rename-propagation.bad.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
validate-table-relation-false-suppresses-rename-propagation.good.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
validate-table-relation-false-suppresses-rename-propagation.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
xrec-is-a-before-image-only-in-some-triggers.bad.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
xrec-is-a-before-image-only-in-some-triggers.good.al Promote knowledge for Microsoft review skills (#153) 2026-09-03 15:06:01 +02:00
xrec-is-a-before-image-only-in-some-triggers.md Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00