You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class RebuildReplicasPatch implements DataPatchInterface
17
19
{
@@ -21,7 +23,9 @@ public function __construct(
21
23
protectedReplicaManager$replicaManager,
22
24
protectedProductHelper$productHelper,
23
25
protectedAppState$appState,
24
-
protectedReplicaState$replicaState
26
+
protectedReplicaState$replicaState,
27
+
protectedConfigHelper$configHelper,
28
+
protectedLoggerInterface$logger
25
29
)
26
30
{}
27
31
@@ -48,6 +52,11 @@ public function getAliases(): array
48
52
*/
49
53
publicfunctionapply(): PatchInterface
50
54
{
55
+
if (!$this->configHelper->credentialsAreConfigured()) {
56
+
$this->logger->warning("Algolia credentials are not configured. Aborting replica rebuild patch. If you need to rebuild your replicas run `bin/magento algolia:replicas:rebuild`");
0 commit comments