Skip to content

Recognize BigInteger ledger identifiers and supported Integer widening - #284

Open
Alexander Yakunin (Alexander-Ya) wants to merge 1 commit into
mainfrom
docs/biginteger-ledger-entry-guidance
Open

Alexander Yakunin (Alexander-Ya) wants to merge 1 commit into
mainfrom
docs/biginteger-ledger-entry-guidance

Conversation

@Alexander-Ya

Copy link
Copy Markdown

Summary

Update the existing ledger and compatibility guidance for BigInteger entry numbers and platform-supported Integer-to-BigInteger widening.

  • Accept Integer or BigInteger ledger/register identities according to the target application's symbols.
  • Recognize supported widening of existing fields, procedure parameters, and returns, and distinguish local-variable changes from published API changes.
  • Remove blanket requirements for obsolete overloads, replacement tables, or manual data migration solely for supported widening.
  • Keep genuine breaking changes distinct: narrowing, unrelated retyping, changed var modifiers, and changes to a published key's field list/order.
  • Retain dependent-extension and overflow warnings: platform compatibility does not let an Integer consumer hold values above 2,147,483,647.

Evidence and applicability

The articles retain bc-version: [all] because their general compatibility rules still apply to older releases. The widening exceptions are explicitly qualified by runtime. Platform support beginning in runtime 18.0 does not imply that every application's ledgers changed in that release.

Ownership and prevented false positives

The existing owning articles are updated rather than adding a duplicate rule:

  • data-modeling: a BigInteger ledger key is not a table-convention violation; widening an existing key field is not a change to the key field list.
  • breaking-changes: supported parameter/return widening does not automatically require a new overload or obsoletion; widening a local variable is not an API signature change.
  • events: apply the numeric-widening exception without weakening parameter-name or passing-mode contracts, and inspect subscriber range risks separately.
  • upgrade: supported in-place field widening does not require deleting data, force synchronization, DataTransfer, or an upgrade tag solely because existing rows are present.

Four companion samples now demonstrate a BigInteger ledger key, widened procedure values, supported existing-field widening, and genuinely unsupported narrowing.

Validation

Run from the BCQuality checkout:

Command Result
python .github\scripts\validate_frontmatter.py --root . Passed: 0 errors, 0 warnings. PyYAML installed in an isolated validation environment.
pwsh .\tools\Test-ReviewFixtures.ps1 -Root . Passed: 337 cases, covering 168/382 paired articles across 22 leaf domains.
pwsh .\tools\Test-ReviewContract.ps1 -Root . Passed: 8 predicate cases plus executable acceptance cases.
git diff --check Passed.

AL samples are documentation demonstrations, not a deployable app; no AL build or container tests were run. Model-based evaluation was not run.

Update ledger conventions and schema, procedure, and event compatibility guidance for runtime-supported Integer-to-BigInteger widening. Preserve dependent-consumer overflow warnings and genuine breaking-change rules.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please separate the return-value exception from the parameter exception. AS0147 covers parameters, but changing a published return from Integer to BigInteger still produces AS0023 with the current AppSourceCop. The cited BaseApp migration explicitly suppresses AS0023, so its changed declarations do not establish an analyzer-clean exception for partner APIs. Please retain that return-type qualification and adjust the good example and reference; source compilation alone does not settle the published compatibility policy.

The fixture check also fails because four changed article pairs are not selected: procedure signatures, primary keys, subscriber contracts and existing-table schema changes. Please register them with the relevant previous-version and runtime context. In the narrowing example, the only evidence that the field used to be BigInteger is in comments that preparation removes; without that context it is just a valid Integer table. Keep the existing strict finding and clean-control expectations.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants