Skip to content

[Shopify] Pre-validate item before export in Add to Shopify action#7361

Merged
onbuyuka merged 2 commits intomainfrom
bugs/626637-add-item-to-shopify-prevalidation
Apr 1, 2026
Merged

[Shopify] Pre-validate item before export in Add to Shopify action#7361
onbuyuka merged 2 commits intomainfrom
bugs/626637-add-item-to-shopify-prevalidation

Conversation

@onbuyuka
Copy link
Copy Markdown
Contributor

@onbuyuka onbuyuka commented Mar 25, 2026

Summary

  • Add CheckItemCanBeExported and CheckItemVariantCount to ShpfyProductExport to validate items before export (blocked, empty description, >2048 variants)
  • Call pre-validation from the Item Card "Add to Shopify" action, preventing the misleading confirmation-then-silent-skip flow
  • Consolidate duplicate checks: the Add Item to Shopify report and CreateTempProduct now call the shared validation instead of maintaining their own copies
  • Add 3 TestPage-based tests covering blocked items, empty descriptions, and too-many-variants scenarios from the Item Card

Fixes AB#626637

🤖 Generated with Claude Code

Add CheckItemCanBeExported and CheckItemVariantCount to ShpfyProductExport
so the Item Card action and the Add Item to Shopify report catch blocked
items, empty descriptions, and too-many-variants before attempting export.
This prevents the misleading confirmation-then-silent-skip flow.

Consolidate duplicate checks: the report and CreateTempProduct now call
the shared validation instead of maintaining their own copies.

Fixes AB#626637

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 25, 2026 08:50
@github-actions github-actions bot added the AL: Apps (W1) Add-on apps for W1 label Mar 25, 2026
@github-actions github-actions bot added this to the Version 29.0 milestone Mar 25, 2026
@onbuyuka onbuyuka enabled auto-merge (squash) March 25, 2026 08:56
Copy link
Copy Markdown

@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
  • Shopify-Connector: 93% 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.

Co-authored-by: Onat Buyukakkus <55088871+onbuyuka@users.noreply.github.com>
@onbuyuka onbuyuka requested a review from Groenbech96 March 26, 2026 12:31
@github-actions
Copy link
Copy Markdown

⚠️ 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 30, 2026
auto-merge was automatically disabled March 30, 2026 07:41

Pull request was closed

@onbuyuka onbuyuka reopened this Mar 30, 2026
@onbuyuka onbuyuka enabled auto-merge (squash) March 30, 2026 07:42
@onbuyuka onbuyuka merged commit 30251e3 into main Apr 1, 2026
54 checks passed
@onbuyuka onbuyuka deleted the bugs/626637-add-item-to-shopify-prevalidation branch April 1, 2026 07:47
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.

4 participants