Skip to content

[Shopify] Fix AL0132: expose ImportPayout as internal to allow test access#8690

Open
Copilot wants to merge 5 commits into
releases/27.0from
copilot/fix-github-actions-job-again
Open

[Shopify] Fix AL0132: expose ImportPayout as internal to allow test access#8690
Copilot wants to merge 5 commits into
releases/27.0from
copilot/fix-github-actions-job-again

Conversation

Copilot AI commented Jun 19, 2026

Copy link
Copy Markdown
Contributor

PR #8683 (API 2026-01 uptake backport) added a test UnitTestImportPayoutWithExternalTraceId that calls PaymentsAPI.ImportPayout() directly, but ImportPayout was declared local, making it inaccessible from the test codeunit even though Shopify Connector Test is listed in internalsVisibleTo.

Fix

  • ShpfyPaymentsAPI.Codeunit.al: Change local procedure ImportPayout ΓåÆ internal procedure ImportPayout, making it callable from the test app via the existing internalsVisibleTo declaration.
// Before ΓÇö inaccessible outside the codeunit
local procedure ImportPayout(JPayout: JsonObject)

// After ΓÇö accessible to internalsVisibleTo apps (Shopify Connector Test)
internal procedure ImportPayout(JPayout: JsonObject)

Included changes (API 2026-01 uptake)

This branch also incorporates all changes from PR #8683 that were pending on releases/27.0:

  • ShpfyPayout.Table.al: New External Trace Id field (field 16)
  • ShpfyPaymentsAPI.Codeunit.al: Map externalTraceId from GraphQL response into the new field
  • ShpfyPaymentsTest.Codeunit.al: New test UnitTestImportPayoutWithExternalTraceId validating the field import
  • Inventory API rework (idempotency + retry logic), unverified return lines support, article reference metafield, GetCurrentBulkOperation removal, pagination fixes, codeunit ID clash fix (139593 ΓåÆ 134248)

Fixes AB#639695

github-actions Bot and others added 3 commits June 19, 2026 12:04
…8) (#8548)

Codeunit 139593 `"Shpfy Inventory Subscriber"` was reintroduced on the
release branch by the API 2026-01 uptake backport (PR #8366) but clashes
with the codeunit 139593 in the BCApps Shopify Connector Test 28.0.0.0
baseline, which is checked by BuildCop and the BC platform during NAV
gate validation (`VerifyApplicationChanges` failed in job 3581772, NAV
PR 248762).

## Fix

Renumber the codeunit from 139593 to **134248** and extend the existing
`134241-134247` `idRange` in `src/Apps/W1/Shopify/Test/app.json` to
`134248`.

134248 is confirmed free across:
- NAV source (`C:\depot\NAV2\App\Apps`, `Layers`, `Internal`, `Test`,
`Extension`)
- BCApps source on `main`, `releases/27.x`, and `releases/27.5`
- All 137 `.app` baselines in NAV2 (Shopify Test 25.8 through 29.0 and
every other app)

All other references to the codeunit use the name `"Shpfy Inventory
Subscriber"` rather than the ID, so no callers need to change.

Companion fix for releases/27.x: #8547.

Fixes
[AB#638060](https://dynamicssmb2.visualstudio.com/1fcb79e7-ab07-432a-a3c6-6cf5a88ba4a5/_workitems/edit/638060)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI added 2 commits June 19, 2026 11:59
…e-27.0' into copilot/fix-github-actions-job-again
…hpfy Payments API

The test UnitTestImportPayoutWithExternalTraceId calls PaymentsAPI.ImportPayout()
but ImportPayout was declared as a local procedure, making it inaccessible
from the test codeunit. Changing it to internal allows access via the
internalsVisibleTo declaration in app.json.

Also includes all PR #8683 changes (Shopify API 2026-01 uptake backport to
releases/27.0): External Trace Id on Payout table, inventory API rework,
unverified return lines, article reference metafield support, and related
test updates.
Copilot AI changed the title [WIP] Fix failing GitHub Actions job Build Apps (W1) (Default) [Shopify] Fix AL0132: expose ImportPayout as internal to allow test access Jun 19, 2026
Copilot AI requested a review from djukicmilica June 19, 2026 12:00
@djukicmilica djukicmilica added the Linked Issue is linked to a Azure Boards work item label Jun 19, 2026
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Jun 19, 2026
@github-actions github-actions Bot added this to the Version 27.0 milestone Jun 19, 2026
@djukicmilica djukicmilica marked this pull request as ready for review June 19, 2026 13:20
@djukicmilica djukicmilica requested a review from a team June 19, 2026 13:20
@djukicmilica djukicmilica requested review from a team as code owners June 19, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

AL: Apps (W1) Add-on apps for W1 Linked Issue is linked to a Azure Boards work item

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants