Repository navigation
Recognize BigInteger ledger identifiers and supported Integer widening - #284
Alexander Yakunin (Alexander-Ya) wants to merge 1 commit into
Conversation
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>
Jesper Schulz-Wedde (JesperSchulz)
left a comment
There was a problem hiding this comment.
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.
Summary
Update the existing ledger and compatibility guidance for
BigIntegerentry numbers and platform-supportedInteger-to-BigIntegerwidening.IntegerorBigIntegerledger/register identities according to the target application's symbols.varmodifiers, and changes to a published key's field list/order.Integerconsumer hold values above 2,147,483,647.Evidence and applicability
GetNextEntryNo/GetLastEntryNoreturns; AS0147 itself documents parameters, not returns.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:
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:
python .github\scripts\validate_frontmatter.py --root .pwsh .\tools\Test-ReviewFixtures.ps1 -Root .pwsh .\tools\Test-ReviewContract.ps1 -Root .git diff --checkAL samples are documentation demonstrations, not a deployable app; no AL build or container tests were run. Model-based evaluation was not run.