bcquality/microsoft/knowledge
Michael Dieringer 69b09db3a6 Fix remaining correctness issues from Jesper's 2026-09-15 re-review
- commit-shared-test-fixture-inside-lazy-initialize: three sub-issues.
  Recommended TestIsolation = Codeunit instead of listing Disabled as an
  equal option - Disabled never rolls back at all ("tests are not
  isolated from each other" per the property's own docs), so a fixture
  this pattern commits under Disabled is permanent database
  contamination unless something else tears it down; Disabled is now
  only mentioned alongside that explicit teardown requirement. Added
  precedence in al-testing-review.md so the deliberate end-of-test
  asserterror Error(...) rollback sentinel isn't also flagged by the
  generic asserterror-needs-expectederror-and-code rule. Rewrote both
  fixtures to actually demonstrate the pattern: persisted fixture data
  (an Item record) instead of an empty comment, a second [Test] method
  that depends on the fixture surviving into it, and an explicit
  Subtype = TestRunner / TestIsolation = Codeunit runner codeunit.

- table-relation-test-exclude-known-invalid-relations-via-event:
  the length/type rule was stated as one global requirement. Verified
  ValidateFieldRelation in codeunit 134926 directly (BCApps reference
  clone) and split it into the two branches the source actually has:
  a field with any unconditional relation needs exact length and exact
  resolved type; a field whose relations are all conditional only fails
  on being shorter (longer is fine) than the largest related field, and
  when the required type is specifically Code, a Text source passes too
  - a tolerance that does not apply on the unconditional side and does
  not extend to a required Text.

Rebased onto upstream/main (one conflict in
transactionmodel-attribute-governs-test-transactions.md - upstream had
already linked its sample references via the READ convention, ours
added a Source section; merged both). Also converted the 3 remaining
plain-backtick sample references in this PR to the READ-convention
markdown-link form, same fix as #156/#157/#158.
2026-09-21 22:49:39 +02:00
..
appsource Separate analyzer rules from BCQuality knowledge (#178) 2026-09-11 09:26:14 +02:00
breaking-changes Separate analyzer rules from BCQuality knowledge (#178) 2026-09-11 09:26:14 +02:00
data-modeling Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
error-handling Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
events knowledge(events): ChangeCompany leaves triggers and trigger-event subscribers running in the calling company (#152) 2026-09-15 12:34:28 +02:00
finance Add source-verified Finance knowledge and review domain (#57) 2026-09-21 10:20:41 +02:00
interfaces Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
performance Fix Job Queue sample links (#184) 2026-09-15 09:32:40 +02:00
privacy Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
query Add query filter semantics guidance (#186) 2026-09-15 12:51:15 +02:00
reporting Add reporting review guidance and evaluation fixtures (#183) 2026-09-15 10:38:32 +02:00
scm Add SCM functional knowledge domain (#192) 2026-09-21 10:16:44 +02:00
security Merge pull request #187 from microsoft/dcenic-validate-unauthenticated-responses 2026-09-16 09:50:14 +02:00
style Clarify locale-safe DateFormula Evaluate inputs (#193) 2026-09-21 10:16:07 +02:00
telemetry Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
testing Fix remaining correctness issues from Jesper's 2026-09-15 re-review 2026-09-21 22:49:39 +02:00
ui Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
upgrade Add foundational AL developer knowledge (#195) 2026-09-21 10:15:39 +02:00
web-services Improve partner onboarding and documentation navigation (#174) 2026-09-09 17:31:03 +02:00
.gitkeep Add .gitkeep files to community and microsoft directories; remove .gitkeep from samples 2026-04-17 06:03:14 +02:00