Repository navigation
LTRAC-2729: fix(makeswift) - Sort carousel product IDs for a stable cache key - #3313
Conversation
…ache key The additional products request URL used the editor's order, so the same products in a different order missed the cache. Sort a copy of the IDs for the URL; display order still comes from the original list. Refs LTRAC-2729
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 1bdb8f6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Unlighthouse ComparisonComparing this deployment's Unlighthouse scores against integrations/makeswift at d6a1a34. ❌ Accessibility, SEO, and best practices regressionsThese scores are stable between runs, so a drop fails the check. Open the full report to see which audits failed.
DetailsPerformanceMedian per-route change against the baseline. Fails at a drop of 15 points on both devices.
Routes not comparedLighthouse couldn't load these pages, or Vercel blocked their CSS or scripts, on one or both deployments. This usually happens on shared runners. They don't fail the check unless fewer than half the routes are left to compare.
Summary ScoreAverages across the routes both scans reported, so a route that failed on one side doesn't skew them.
Category Scores
Core Web Vitals
|
What/Why?
The
ProductsCarouseladditional products request used the editor's order, so the same products in a different order missed the cache. This sorts a copy of the IDs for the URL. Display order still comes from the original list, so drag-and-drop reordering keeps working.Replaces #2793, whose in-place
.sort()would have reordered the carousel. Refs LTRAC-2729, #2790.Testing
/api/products/idsURL stays the same.Migration
None.