QUALITY PATCH

ACSD-63286: When products are assigned to a shared catalog via API…

When products are assigned to a shared catalog via API, they don't appear on the frontend after the partial indexer and consumer cron jobs run. Quality patch ACSD-63286 for app/etc applies to Magento Open Source and Adobe Commerce 2.4.6 to 2.4.6-p14.

Categories
Catalog/Product, Web API, B2B
Components
app/etc, magento/framework, magento/module-catalog, magento/module-indexer, magento/module-catalog-permissions, magento/module-catalog-staging, magento/module-elasticsearch-catalog-permissions, magento/module-staging, magento/module-shared-catalog
Origin
adobe-commerce-support
Since QPT
1.1.57

Issue

When products are assigned to a shared catalog via API, they don't appear on the frontend after the partial indexer and consumer cron jobs run. However, they do appear after a manual full reindex.

Steps to reproduce

1. Set up RabbitMQ as the queue service. 1. Create a shared catalog and assign it a company. 1. Create a simple product and assign it to a category. 1. Execute partial reindex. bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1 1. Use the following API request to assign the created product to the shared catalog pub/rest/all/V1/sharedCatalog/<id>/assignProducts: { "products":[{ "sku": "24-MB06" } ] } 1. Execute the following cron to clear up the queues and execute the partial reindex. bin/magento cron:run --group=consumers bin/magento cron:run --group=index --bootstrap=standaloneProcessStarted=1 1. Log in to the frontend as a company user. 1. Check the frontend category page. The newly assigned products are not visible. 1. Execute a manual reindex: bin/magento index:reindex

Adobe's page lists 2.4.6 - 2.4.6-p8 as compatible; the versions below are resolved from the current QPT constraints and are the ones the tool will offer.

Adobe scheduled the permanent fix for 2.4.8.

Install

Install the Quality Patches Tool with composer require magento/quality-patches, apply the prerequisites listed for all files applicable to your distribution and version first, then run vendor/bin/magento-patches apply ACSD-63286. On Cloud, add ACSD-63286 under stage.build.QUALITY_PATCHES in .magento.env.yaml.

For cweagans/composer-patches, choose a compatible version below and download the bundle. Copy its ACSD-63286/ folder into patches/composer/, merge composer.patches.json into composer.json, then run composer install. Bundle prerequisites the same way and list them first. Paths are relative to each package root, using the default -p1 level. Prefer local files when configuring composer-patches; a remote URL can change.

Patch files and compatible versions

Packages across compatible versions (4): magento/module-catalog, magento/module-indexer, magento/magento2-base, magento/framework
Packages across compatible versions (9): magento/module-catalog, magento/module-indexer, magento/magento2-base, magento/framework, magento/module-catalog-permissions, magento/module-catalog-staging, magento/module-elasticsearch-catalog-permissions, magento/module-staging, magento/module-shared-catalog

magento/magento2-base >=2.4.6 <2.4.6-p15

Magento Open Source
2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
Adobe Commerce
2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
Patch file
patches/os/ACSD-63286_2.4.6-p6.patch
  • vendor/magento/module-catalog/Model/ResourceModel/Product/GetCategories.php (added)
  • vendor/magento/module-indexer/etc/di.xml
  • app/etc/di.xml
  • vendor/magento/framework/Mview/View/CompositeSubscriptionStatementPostprocessor.php (added)
  • vendor/magento/framework/Mview/View/Subscription.php
  • vendor/magento/framework/Mview/View/SubscriptionStatementPostprocessorInterface.php (added)

magento/magento2-ee-base >=2.4.6 <2.4.6-p15

Magento Open Source
—
Adobe Commerce
2.4.6-p14, 2.4.6-p13, 2.4.6-p12, 2.4.6-p11, 2.4.6-p10, 2.4.6-p9, 2.4.6-p8, 2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
Requires
ACSD-62332
Patch file
patches/commerce/ACSD-63286_2.4.6-p6.patch
  • vendor/magento/module-catalog-permissions/Model/Indexer/Category.php
  • vendor/magento/module-catalog-permissions/Model/Indexer/Product.php
  • vendor/magento/module-catalog-permissions/Model/ResourceModel/Permission/Index.php
  • vendor/magento/module-catalog-staging/Model/Mview/View/Attribute/Subscription.php
  • vendor/magento/module-catalog-staging/Model/Mview/View/FutureUpdatesAvoider.php (added)
  • vendor/magento/module-catalog-staging/etc/di.xml
  • vendor/magento/module-elasticsearch-catalog-permissions/Plugin/CategoryPermissionsFulltextReindex.php (added)
  • vendor/magento/module-elasticsearch-catalog-permissions/etc/di.xml
  • vendor/magento/module-staging/etc/di.xml

magento/magento2-b2b-base >=1.3.5 <1.4.2

Magento Open Source
—
Adobe Commerce
2.4.6-p7, 2.4.6-p6, 2.4.6-p5, 2.4.6-p4, 2.4.6-p3, 2.4.6-p2, 2.4.6-p1, 2.4.6
Patch file
patches/commerce/ACSD-63286_1.3.5-p6.patch
  • vendor/magento/module-shared-catalog/Model/Indexer/View/SkuSubscription.php (added)
  • vendor/magento/module-shared-catalog/Model/ProductManagement.php
  • vendor/magento/module-shared-catalog/Model/ResourceModel/CategoryProductLink.php (added)
  • vendor/magento/module-shared-catalog/etc/mview.xml

Sources

Łukasz Bajsarowicz
Built by

Łukasz Bajsarowicz, e-commerce architect

Magento and Adobe Commerce architecture, upgrades, performance and audits for merchants and agencies since 2015; magento.watch is the tooling I use on those projects.

Open source, maintained on weekends.