Skip to content

[5.x] Deleted rules removing unrelated catalog prices - #4375

Merged
nfourtythree merged 2 commits into
5.xfrom
nathaniel/com-683-5x-catalog-pricing-job-wipes-every-rules-prices-when-its
Sep 28, 2026
Merged

nfourtythree merged 2 commits into
5.xfrom
nathaniel/com-683-5x-catalog-pricing-job-wipes-every-rules-prices-when-its

Conversation

@nfourtythree

Copy link
Copy Markdown
Contributor

Related issues

#4374

@nfourtythree nfourtythree self-assigned this Sep 28, 2026
@nfourtythree
nfourtythree requested a review from a team as a code owner September 28, 2026 09:59
@linear-code

linear-code Bot commented Sep 28, 2026

Copy link
Copy Markdown

COM-683

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot review overview

🔵 Needs a closer look

Queue cleanup failures can leave jobs permanently reserved; move the cleanup into the protected error-handling block.

Review effort: Lite
Findings: None

What changed in this PR

Fixes catalog pricing regeneration when queued rules are deleted, preventing unrelated prices from being removed.

Changes:

  • Treats empty rule sets as a no-op.
  • Cleans up stale queue entries.
  • Adds regression tests and changelog documentation.
File Summary
tests/​unit/​services/​CatalogPricingTest.php Adds regression coverage.
src/​services/​CatalogPricing.php Prevents regeneration for empty rule selections.
src/​queue/​jobs/​CatalogPricing.php Handles deleted rules in queued jobs.
CHANGELOG.md Documents the fix.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@nfourtythree
nfourtythree merged commit 224fd58 into 5.x Sep 28, 2026
15 checks passed
@nfourtythree
nfourtythree deleted the nathaniel/com-683-5x-catalog-pricing-job-wipes-every-rules-prices-when-its branch September 28, 2026 10:58
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