Skip to content

fix: Sort product IDs before sending requests to BC so cache can be utilized - #2793

Closed
jayeshbharadva wants to merge 2 commits into
bigcommerce:integrations/makeswiftfrom
jayeshbharadva:2790/sort-product-id
Closed

jayeshbharadva wants to merge 2 commits into
bigcommerce:integrations/makeswiftfrom
jayeshbharadva:2790/sort-product-id

Conversation

@jayeshbharadva

Copy link
Copy Markdown

What/Why?

Fixes #2790.

  • This sorted ID creates fetch URL always same if products are same so it will reduce BC api calls to fetch product because of caching.

Testing

Migration

@jayeshbharadva
jayeshbharadva requested a review from a team December 19, 2025 18:38
@vercel

vercel Bot commented Dec 19, 2025

Copy link
Copy Markdown

@jayeshbharadva is attempting to deploy a commit to the BigCommerce Platform Team on Vercel.

A member of the Team first needs to authorize it.

@changeset-bot

changeset-bot Bot commented Dec 19, 2025 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 895ef50

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes changesets to release 1 package
Name Type
@bigcommerce/catalyst-makeswift Patch

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@jorgemoya

Copy link
Copy Markdown
Contributor

Thanks @jayeshbharadva! Closing in favor of #3313, which sorts a copy of the IDs. The in-place .sort() here also reordered additionalProductIds, which drives the display order.

@jorgemoya jorgemoya closed this Oct 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants