Skip to content

[Indexer] Fix product suppression propagation - #48

Open
PierreGauthier wants to merge 1 commit into
2.3.xfrom
fix-productDelete
Open

[Indexer] Fix product suppression propagation#48
PierreGauthier wants to merge 1 commit into
2.3.xfrom
fix-productDelete

Conversation

@PierreGauthier

Copy link
Copy Markdown
Contributor
Q A
Branch? master for features / current stable version branch for bug fixes
Tickets #...
License OSL-3.0

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR aims to improve product “suppression” propagation by ensuring product deletions (and variant deletions) are reflected in the Gally index, and adjusts the product index sidebar rendering when Gally is disabled.

Changes:

  • Capture product IDs pre-delete and delete corresponding documents from the index on post-delete.
  • Add a generic remove() bulk-deletion capability to AbstractIndexer.
  • Render a taxonomy/categories sidebar block when Gally is disabled and a slug request attribute is present.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
src/Resources/views/shop/product/index/content/body/sidebar/filters.html.twig Adds a fallback taxonomy/categories render when Gally is disabled.
src/Indexer/Subscriber/ProductSubscriber.php Adds product pre/post delete handling and variant post_delete reindexing.
src/Indexer/AbstractIndexer.php Refactors localized-catalog iteration and introduces remove() for bulk deletions.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +32 to +33
{% elseif app.request.attributes.has('slug') %}
{{ component('sylius_shop:product:show:taxonomy', {template: '@GallySyliusPlugin/shop/product/_shared/categories.html.twig'}) }}
@@ -31,8 +34,11 @@ public static function getSubscribedEvents()
return [
Comment thread src/Indexer/Subscriber/ProductSubscriber.php
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.

3 participants