bcquality/microsoft/knowledge/web-services/expose-only-committed-data-from-api-reads.bad.al
Jesper Schulz-Wedde 2da72e782a Seed web-services (API v2) knowledge domain
Add eight web-services API page knowledge articles (each with .good.al/.bad.al samples), a new al-web-services-review leaf skill, and wire it into al-code-review and the README.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
2026-06-25 12:35:53 +02:00

38 lines
1 KiB
AL

// Committed-only contract, but no isolation level is set. Reads run at the
// default and can observe in-flight, uncommitted writes from concurrent
// transactions. A consumer may fetch a row that is later rolled back — a dirty
// read of data that never durably existed.
page 50349 "WS ReadCommitted Bad"
{
PageType = API;
APIPublisher = 'contoso';
APIGroup = 'sales';
APIVersion = 'v1.0';
EntityName = 'customer';
EntitySetName = 'customers';
ODataKeyFields = SystemId;
SourceTable = Customer;
Editable = false;
InsertAllowed = false;
ModifyAllowed = false;
DeleteAllowed = false;
layout
{
area(content)
{
repeater(records)
{
field(id; Rec.SystemId)
{
Caption = 'id';
Editable = false;
}
field(displayName; Rec.Name)
{
Caption = 'displayName';
}
}
}
}
}