Skip to content

[Shopify] Skip empty inventory API call when batch size is exact multiple of 250#7214

Merged
onbuyuka merged 4 commits into
mainfrom
bugs/625960-empty-inventory-request
Mar 26, 2026
Merged

[Shopify] Skip empty inventory API call when batch size is exact multiple of 250#7214
onbuyuka merged 4 commits into
mainfrom
bugs/625960-empty-inventory-request

Conversation

@onbuyuka
Copy link
Copy Markdown
Contributor

@onbuyuka onbuyuka commented Mar 18, 2026

Summary

  • Guard the final ExecuteInventoryGraphQL call in ExportStock with if InputSize > 0 to avoid sending an unnecessary empty request when the number of inventory items is an exact multiple of the 250-item batch size

Fixes AB#625960

🤖 Generated with Claude Code

…iple of 250

Guard the final ExecuteInventoryGraphQL call with an InputSize > 0 check
to avoid sending an unnecessary empty request when the number of items
is an exact multiple of the 250-item batch size.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@onbuyuka onbuyuka requested a review from a team as a code owner March 18, 2026 12:12
@github-actions github-actions Bot added the AL: Apps (W1) Add-on apps for W1 label Mar 18, 2026
@github-actions github-actions Bot added this to the Version 29.0 milestone Mar 18, 2026
onbuyuka and others added 2 commits March 18, 2026 16:32
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Clear LastGraphQLRequest in SetRetryScenario to prevent stale values
from a previous test leaking into the next test. Update assertion to
expect no GraphQL request when stock is equal and ForceExport is false.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@onbuyuka onbuyuka enabled auto-merge (squash) March 19, 2026 12:39
@github-actions
Copy link
Copy Markdown
Contributor

⚠️ Stale Status Check Deleted

The Pull Request Build workflow run for this PR was older than 72 hours and has been deleted.

📋 Why was it deleted?

Status checks that are too old may no longer reflect the current state of the target branch. To ensure this PR is validated against the latest code and passes up-to-date checks, a fresh build is required.


🔄 How to trigger a new status check:

  1. 📤 Push a new commit to the PR branch, or
  2. 🔁 Close and reopen the PR

This will automatically trigger a new Pull Request Build workflow run.

@onbuyuka onbuyuka closed this Mar 23, 2026
auto-merge was automatically disabled March 23, 2026 08:07

Pull request was closed

@onbuyuka onbuyuka reopened this Mar 23, 2026
@onbuyuka onbuyuka enabled auto-merge (squash) March 23, 2026 08:07
Copy link
Copy Markdown
Contributor

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

AL Documentation Audit

Documentation gaps were detected in the following apps:

  • Shopify-Connector-Test: 0% documentation coverage

To generate documentation, run /al-docs init or /al-docs update using GitHub Copilot CLI or Claude Code.
This review is for awareness to help keep documentation in sync with code changes. It is okay to dismiss this request.

@onbuyuka onbuyuka merged commit 196142e into main Mar 26, 2026
38 checks passed
@onbuyuka onbuyuka deleted the bugs/625960-empty-inventory-request branch March 26, 2026 07:29
onbuyuka added a commit that referenced this pull request Mar 26, 2026
Resolve conflict in ShpfyInventoryAPI.Codeunit.al: keep main's
InputSize > 0 guard (from #7214) with branch's ExpectedCost parameter.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants