Skip to content

Commit

Permalink
ENGCOM-8558: Removed CliIndexerReindexActionGroup action group usage …
Browse files Browse the repository at this point in the history
…for Catalog module #31320
  • Loading branch information
gabrieldagama committed Jan 6, 2021
2 parents a724b5d + c006f92 commit 22fc043
Show file tree
Hide file tree
Showing 17 changed files with 19 additions and 59 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@

<comment userInput="Clear cache and reindex | Comment is kept to preserve the step key for backward compatibility" stepKey="cleanCache"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
<argument name="indices" value="catalog_product_price"/>
</actionGroup>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,10 +58,7 @@
<actionGroup ref="AdminSubmitAdvancedInventoryFormActionGroup" stepKey="clickOnDoneButton"/>
<actionGroup ref="AdminProductFormSaveActionGroup" stepKey="clickOnSaveButton"/>
<see selector="{{AdminCategoryMessagesSection.SuccessMessage}}" userInput="You saved the product." stepKey="messageYouSavedTheProductIsShown"/>
<!--Clear cache and reindex-->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
</createData>
<!-- Create simple product -->
<createData entity="SimpleProduct2" stepKey="createSimpleProduct"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindexCatalogSearch">
<argument name="indices" value="catalogsearch_fulltext"/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindexCatalogSearch"/>
<!-- Login to Admin page -->
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
</before>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,7 @@

<!-- Save the second product -->
<click selector="{{AdminProductFormActionSection.saveButton}}" stepKey="saveProduct2"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,15 @@
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 1"/>
<!--Open Index Management Page and Select Index mode "Update by Schedule" -->
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="schedule" />
<!--Run full reindex and clear caches -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
</before>
<after>
<magentoCLI stepKey="setFlatCatalogCategory" command="config:set catalog/frontend/flat_catalog_category 0 "/>
<magentoCLI stepKey="setIndexerMode" command="indexer:set-mode" arguments="realtime" />
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="indexerReindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="indexerReindex"/>
<deleteData stepKey="deleteCategory" createDataKey="createCategory" />
<actionGroup ref="AdminDeleteStoreViewActionGroup" stepKey="deleteStoreViewEn">
<argument name="customStore" value="customStoreEN"/>
Expand All @@ -71,7 +66,7 @@
<seeElement selector="{{AdminCategoryMessagesSection.SuccessMessage}}" stepKey="seeSuccessMessage"/>
<!--Run full reindex and clear caches -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
<argument name="indices" value="catalog_category_flat"/>
</actionGroup>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@
</createData>
<createData entity="SimpleSubCategory" stepKey="categoryEntity"/>

<!--TODO: REMOVE AFTER FIX MC-21717 -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value="full_page"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@
<click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="clickAdminProductSEOSection1"/>
<seeInField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{simpleProductRegularPrice245InStock.urlKey}}" stepKey="seeUrlKey"/>

<!--Run re-index task -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>

<!--Verify customer see updated simple product link on category page -->
<amOnPage url="{{StorefrontCategoryPage.url($$categoryEntity.name$$)}}" stepKey="openCategoryPage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,10 +95,7 @@
<click selector="{{AdminProductSEOSection.sectionHeader}}" stepKey="clickAdminProductSEOSection1"/>
<seeInField selector="{{AdminProductSEOSection.urlKeyInput}}" userInput="{{simpleProductRegularPrice32501InStock.urlKey}}" stepKey="seeUrlKey"/>

<!--Run re-index task -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>

<!--Verify customer see updated simple product link on category page -->
<amOnPage url="{{StorefrontCategoryPage.url($$categoryEntity.name$$)}}" stepKey="openCategoryPage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -332,10 +332,7 @@
<createData entity="CustomerAccountSharingDefault" stepKey="setConfigCustomerAccountDefault"/>
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>

<!--Do reindex and flush cache-->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,7 @@
<deleteData createDataKey="createSimpleProduct2" stepKey="deleteSimpleProduct2"/>
</after>

<!--Re-index-->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>

<!-- Step 1: User browses catalog -->
<comment userInput="Start of browsing catalog" stepKey="startOfBrowsingCatalog"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@

<!--Run re-index task-->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
<argument name="indices" value="catalog_product_price"/>
</actionGroup>

<actionGroup ref="StorefrontOpenHomePageActionGroup" stepKey="goToHomepage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,7 @@
</createData>

<magentoCron groups="index" stepKey="reindexInvalidatedIndices"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="performReindex">
<argument name="indices" value="catalogsearch_fulltext"/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="performReindex"/>
<actionGroup ref="CliCacheCleanActionGroup" stepKey="cleanFullPageCache">
<argument name="tags" value="full_page"/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,7 @@
</actionGroup>
<!-- Logout Admin -->
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterDeletion">
<argument name="tags" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,7 @@

<!-- Logout Admin -->
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCacheAfterDeletion">
<argument name="tags" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,7 @@
<seeInField selector="{{AdminCatalogStorefrontConfigSection.productsPerPageAllowedValues}}" userInput="12,24,36" stepKey="seeDefaultValueAllowedNumberProductsPerPage"/>
<seeInField selector="{{AdminCatalogStorefrontConfigSection.productsPerPageDefaultValue}}" userInput="12" stepKey="seeDefaultValueProductPerPage"/>

<!-- Perform reindex and flush cache -->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>
<actionGroup ref="CliCacheFlushActionGroup" stepKey="flushCache">
<argument name="tags" value=""/>
</actionGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,7 @@
</after>

<!--Run re-index task-->
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>

<!--Check product in category listing-->
<amOnPage url="{{StorefrontCategoryPage.url($$createCategoryOne.name$$)}}" stepKey="navigateToCategoryPage"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,7 @@
<after>
<!-- Change "Category Products" and "Product Categories" indexers to "Update on Save" mode -->
<magentoCLI command="indexer:set-mode" arguments="realtime" stepKey="setRealtimeMode"/>
<actionGroup ref="CliIndexerReindexActionGroup" stepKey="reindex">
<argument name="indices" value=""/>
</actionGroup>
<comment userInput="Adding the comment to replace CliIndexerReindexActionGroup action group ('indexer:reindex' commands) for preserving Backward Compatibility" stepKey="reindex"/>

<!-- Delete data -->
<deleteData createDataKey="productA" stepKey="deleteProductA"/>
Expand Down

0 comments on commit 22fc043

Please sign in to comment.