Skip to content

Commit 3a9c588

Browse files
authored
ENGCOM-8496: Removed 'indexer:reindex', 'cache:flush' and AdminReindexAndFlushCache #31025
2 parents d2f3af6 + 7f012f5 commit 3a9c588

10 files changed

+23
-18
lines changed

app/code/Magento/Bundle/Test/Mftf/Test/StorefrontBundlePlaceOrderWithVirtualAndSimpleChildrenTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@
4848
<argument name="productId" value="$createFixedBundleProduct.id$"/>
4949
</actionGroup>
5050
<actionGroup ref="SaveProductFormActionGroup" stepKey="saveProduct"/>
51-
<!--Perform reindex and flush cache-->
52-
<actionGroup ref="AdminReindexAndFlushCache" stepKey="reindexAndFlushCache"/>
51+
<comment userInput="Adding the comment to replace AdminReindexAndFlushCache action group ('indexer:reindex', 'cache:flush' commands) for preserving Backward Compatibility" stepKey="reindexAndFlushCache"/>
5352
</before>
5453
<after>
5554
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProductForBundleItem"/>

app/code/Magento/Catalog/Test/Mftf/Test/StorefrontCheckNoAppearDefaultOptionConfigurableProductTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
</actionGroup>
4545
<actionGroup ref="AdminSetQuantityToEachSkusConfigurableProductActionGroup" stepKey="saveConfigurable"/>
4646
<grabValueFrom selector="{{NewProductPageSection.sku}}" stepKey="grabSkuProduct"/>
47-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
47+
<comment userInput="Adding the comment to replace 'indexer:reindex' command for preserving Backward Compatibility" stepKey="reindex"/>
4848

4949
<actionGroup ref="SelectStorefrontSideBarAttributeOption" stepKey="expandOption">
5050
<argument name="categoryName" value="$$createCategory.name$$"/>

app/code/Magento/CatalogRule/Test/Mftf/Test/AdminCreateCatalogPriceRuleTest/AdminCreateCatalogPriceRuleForCustomerGroupTest.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@
2727

2828
<actionGroup ref="AdminLoginActionGroup" stepKey="loginAsAdmin"/>
2929
<actionGroup ref="AdminCatalogPriceRuleDeleteAllActionGroup" stepKey="deleteAllCatalogPriceRule"/>
30-
<!-- Perform reindex and flush cache -->
31-
<actionGroup ref="AdminReindexAndFlushCache" stepKey="reindexAndFlushCache"/>
30+
<comment userInput="Adding the comment to replace AdminReindexAndFlushCache action group ('indexer:reindex', 'cache:flush' commands) for preserving Backward Compatibility" stepKey="reindexAndFlushCache"/>
3231
</before>
3332

3433
<after>

app/code/Magento/CatalogRuleConfigurable/Test/Mftf/Test/AdminApplyCatalogRuleForConfigurableProductWithAssignedSimpleProducts2Test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@
190190
</actionGroup>
191191
<actionGroup ref="AdminCatalogPriceRuleSaveAndApplyActionGroup" stepKey="saveAndApplyCatalogPriceRule"/>
192192

193-
<actionGroup ref="AdminReindexAndFlushCache" stepKey="reindexAndFlushCache"/>
193+
<comment userInput="Adding the comment to replace AdminReindexAndFlushCache action group ('indexer:reindex', 'cache:flush' commands) for preserving Backward Compatibility" stepKey="reindexAndFlushCache"/>
194194

195195
<!-- Login to storefront from customer -->
196196
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="loginCustomerOnStorefront">

app/code/Magento/CatalogRuleConfigurable/Test/Mftf/Test/AdminApplyCatalogRuleForConfigurableProductWithOptions2Test.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@
173173
</actionGroup>
174174
<actionGroup ref="AdminCatalogPriceRuleSaveAndApplyActionGroup" stepKey="saveAndApplySecondPriceRule"/>
175175

176-
<actionGroup ref="AdminReindexAndFlushCache" stepKey="reindexAndFlushCache"/>
176+
<comment userInput="Adding the comment to replace AdminReindexAndFlushCache action group ('indexer:reindex', 'cache:flush' commands) for preserving Backward Compatibility" stepKey="reindexAndFlushCache"/>
177177

178178
<!-- Assert product in storefront product page -->
179179
<amOnPage url="{{StorefrontProductPage.url($$createConfigProduct.custom_attributes[url_key]$$)}}" stepKey="amOnProductPage"/>

app/code/Magento/CatalogUrlRewrite/Test/Mftf/Test/AdminVerifyCheckboxIsDisabledCreatePermanentRedirectSetNoTest.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
</annotations>
1919
<before>
2020
<magentoCLI command="config:set {{DisableCreatePermanentRedirect.path}} {{DisableCreatePermanentRedirect.value}}" stepKey="enableCreatePermanentRedirect"/>
21-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
21+
<comment userInput="Adding the comment to replace 'cache:flush' command for preserving Backward Compatibility" stepKey="flushCache"/>
2222
<createData entity="_defaultCategory" stepKey="createDefaultCategory"/>
2323
<createData entity="SimpleProduct" stepKey="createSimpleProduct">
2424
<requiredEntity createDataKey="createDefaultCategory"/>
@@ -29,7 +29,7 @@
2929
<deleteData createDataKey="createSimpleProduct" stepKey="deleteSimpleProduct"/>
3030
<deleteData createDataKey="createDefaultCategory" stepKey="deleteDefaultCategory"/>
3131
<magentoCLI command="config:set {{EnableCreatePermanentRedirect.path}} {{EnableCreatePermanentRedirect.value}}" stepKey="disableCreatePermanentRedirect"/>
32-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
32+
<comment userInput="Adding the comment to replace 'cache:flush' command for preserving Backward Compatibility" stepKey="flushCache"/>
3333
<actionGroup ref="AdminLogoutActionGroup" stepKey="logout"/>
3434
</after>
3535
<actionGroup ref="AdminProductPageOpenByIdActionGroup" stepKey="goToProductEditPage">

app/code/Magento/Downloadable/Test/Mftf/Test/StorefrontAccountDownloadableProductLinkAfterPartialRefundTest.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,8 @@
3030
<createData entity="downloadableLink1" stepKey="addDownloadableLink1">
3131
<requiredEntity createDataKey="createDownloadableProduct"/>
3232
</createData>
33-
34-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
35-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
33+
<comment userInput="Adding the comment to replace 'indexer:reindex' command for preserving Backward Compatibility" stepKey="reindex"/>
34+
<comment userInput="Adding the comment to replace 'cache:flush' command for preserving Backward Compatibility" stepKey="flushCache"/>
3635

3736
<createData entity="Simple_US_Customer_Multiple_Addresses" stepKey="createCustomer"/>
3837
<actionGroup ref="LoginToStorefrontActionGroup" stepKey="signIn">
@@ -51,8 +50,8 @@
5150

5251
<magentoCLI stepKey="removeDownloadableDomain" command="downloadable:domains:remove example.com static.magento.com"/>
5352
<magentoCLI command="config:set {{EnableFlatRateConfigData.path}} {{EnableFlatRateConfigData.value}}" stepKey="enableFlatRate"/>
54-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
55-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
53+
<comment userInput="Adding the comment to replace 'indexer:reindex' command for preserving Backward Compatibility" stepKey="reindex"/>
54+
<comment userInput="Adding the comment to replace 'cache:flush' command for preserving Backward Compatibility" stepKey="flushCache"/>
5655
</after>
5756

5857
<actionGroup ref="StorefrontAddSimpleProductToShoppingCartActionGroup" stepKey="addSimpleProductToCart">

app/code/Magento/Indexer/Test/Mftf/ActionGroup/AdminReindexAndFlushCacheActionGroup.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
xsi:noNamespaceSchemaLocation="urn:magento:mftf:Test/etc/actionGroupSchema.xsd">
1010
<actionGroup name="AdminReindexAndFlushCache">
1111
<annotations>
12+
<!--
13+
PLEASE NOTE:
14+
The action group runs commands to reindex ALL indexers and to flush ALL cache types.
15+
It's better to specify needed index (for reindexing) / cache type (for cache flushing).
16+
Please use the following action groups:
17+
- CliIndexerReindexActionGroup - run reindex by CLI with specified indexers
18+
- CliCacheCleanActionGroup - run cache:clean by CLI with specified cache tags
19+
- CliCacheFlushActionGroup - run cache:flush by CLI with specified cache tags
20+
-->
1221
<description>Run reindex and flush cache.</description>
1322
</annotations>
1423

app/code/Magento/Paypal/Test/Mftf/Test/StorefrontPaypalSmartButtonWithFranceMerchantCountryTest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
<!--Enable Advanced Setting-->
3030
<magentoCLI command="config:set {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalEnableSkipOrderReviewStepConfigData.value}}" stepKey="enableSkipOrderReview"/>
3131
<createData entity="FreeShippinMethodConfig" stepKey="enableFreeShipping"/>
32-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
32+
<comment userInput="Adding the comment to replace 'cache:flush' command for preserving Backward Compatibility" stepKey="flushCache"/>
3333
</before>
3434
<after>
3535
<magentoCLI command="config:set {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.path}} {{StorefrontPaypalDisableSkipOrderReviewStepConfigData.value}}" stepKey="disableSkipOrderReview"/>

app/code/Magento/Sales/Test/Mftf/Test/StorefrontReorderAsGuestTest.xml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,8 @@
2424
</createData>
2525
<!-- Create Customer Account -->
2626
<createData entity="Simple_US_Customer" stepKey="createCustomer"/>
27-
<!-- Reindex and flush cache -->
28-
<magentoCLI command="indexer:reindex" stepKey="reindex"/>
29-
<magentoCLI command="cache:flush" stepKey="flushCache"/>
27+
<comment userInput="Adding the comment to replace 'indexer:reindex' command for preserving Backward Compatibility" stepKey="reindex"/>
28+
<comment userInput="Adding the comment to replace 'cache:flush' command for preserving Backward Compatibility" stepKey="flushCache"/>
3029
</before>
3130
<after>
3231
<deleteData createDataKey="createCustomer" stepKey="deleteCreateCustomer"/>

0 commit comments

Comments
 (0)