Skip to content

Commit

Permalink
[Core] Feature #3432, code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
vahonc committed Dec 19, 2024
1 parent 377920f commit 28bde53
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
use Magento\Backend\Block\Template;
use Magento\Backend\Block\Template\Context;
use Smile\ElasticsuiteCore\Api\Healthcheck\CheckInterface;
use Smile\ElasticsuiteCore\Healthcheck\HealthcheckList;
use Smile\ElasticsuiteCore\Model\Healthcheck\HealthcheckList;

/**
* Class Healthcheck.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @license Open Software License ("OSL") v. 3.0
*/

namespace Smile\ElasticsuiteCore\Healthcheck;
namespace Smile\ElasticsuiteCore\Model\Healthcheck;

use Exception;
use Magento\Framework\UrlInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @license Open Software License ("OSL") v. 3.0
*/

namespace Smile\ElasticsuiteCore\Healthcheck;
namespace Smile\ElasticsuiteCore\Model\Healthcheck;

use Smile\ElasticsuiteCore\Api\Healthcheck\CheckInterface;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @license Open Software License ("OSL") v. 3.0
*/

namespace Smile\ElasticsuiteCore\Healthcheck;
namespace Smile\ElasticsuiteCore\Model\Healthcheck;

use Magento\Framework\UrlInterface;
use Smile\ElasticsuiteCore\Api\Healthcheck\CheckInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
* @license Open Software License ("OSL") v. 3.0
*/

namespace Smile\ElasticsuiteCore\Healthcheck;
namespace Smile\ElasticsuiteCore\Model\Healthcheck;

use Exception;
use Magento\Framework\UrlInterface;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,12 @@

use Magento\Framework\UrlInterface;
use Magento\Framework\Notification\MessageInterface;
use Smile\ElasticsuiteCore\Healthcheck\HealthcheckList;
use Smile\ElasticsuiteCore\Model\Healthcheck\HealthcheckList;

/**
* Class GenericWarningAboutClusterMisconfig
*/
class GenericWarningAboutClusterMisconfig implements MessageInterface
class GenericHealthcheckWarning implements MessageInterface
{
/**
* Route to Elasticsuite -> Healthcheck page.
Expand Down
10 changes: 5 additions & 5 deletions src/module-elasticsuite-core/etc/adminhtml/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
<argument name="messages" xsi:type="array">
<item name="elasticsuite" xsi:type="string">Smile\ElasticsuiteCore\Model\System\Message\NotificationAboutVersions</item>
<!-- Generic warning class -->
<item name="elasticsuite_cluster_generic_misconfig_warning" xsi:type="string">Smile\ElasticsuiteCore\Model\System\Message\GenericWarningAboutClusterMisconfig</item>
<item name="elasticsuite_generic_healthcheck_warning" xsi:type="string">Smile\ElasticsuiteCore\Model\System\Message\GenericHealthcheckWarning</item>
</argument>
</arguments>
</type>

<!-- Elasticsuite Health Check -->
<type name="Smile\ElasticsuiteCore\Healthcheck\HealthcheckList">
<type name="Smile\ElasticsuiteCore\Model\Healthcheck\HealthcheckList">
<arguments>
<argument name="checks" xsi:type="array">
<item name="ghost_indices_check" xsi:type="object">Smile\ElasticsuiteCore\Healthcheck\GhostIndicesCheck</item>
<item name="shards_config_check" xsi:type="object">Smile\ElasticsuiteCore\Healthcheck\ShardsConfigCheck</item>
<item name="replicas_config_check" xsi:type="object">Smile\ElasticsuiteCore\Healthcheck\ReplicasConfigCheck</item>
<item name="ghost_indices_check" xsi:type="object">Smile\ElasticsuiteCore\Model\Healthcheck\GhostIndicesCheck</item>
<item name="shards_config_check" xsi:type="object">Smile\ElasticsuiteCore\Model\Healthcheck\ShardsConfigCheck</item>
<item name="replicas_config_check" xsi:type="object">Smile\ElasticsuiteCore\Model\Healthcheck\ReplicasConfigCheck</item>
</argument>
</arguments>
</type>
Expand Down

0 comments on commit 28bde53

Please sign in to comment.