Skip to content

Commit

Permalink
PLUGINRANGERS-677 | Remove calls to deprecated endpoints (#339)
Browse files Browse the repository at this point in the history
* feat: Removed all the references for /state and /script

* feat: Version bump to 0.14.6

* feat: Removed Display Layer state class and its dependencies
  • Loading branch information
davidmolinacano authored Sep 2, 2024
1 parent 7731103 commit 21df3e5
Show file tree
Hide file tree
Showing 6 changed files with 3 additions and 213 deletions.
32 changes: 0 additions & 32 deletions Helper/StoreConfig.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,6 @@ class StoreConfig extends AbstractHelper

public const INSTALLING_LOOP_STATUS = 'doofinder_config_config/installing_loop/status';

/**
* Path to display layer create endpoint
*/
public const DISPLAY_LAYER_CREATE_ENDPOINT = 'doofinder_config_config/doofinder_integration/display_layer_create_endpoint';

/**
* Path to display layer create endpoint
*/
public const DISPLAY_LAYER_STATE_ENDPOINT = 'doofinder_config_config/doofinder_integration/display_layer_state_endpoint';

/**
* Path to search engine settings in config.xml/core_config_data
*/
Expand Down Expand Up @@ -683,28 +673,6 @@ public function getSignupEndpoint(): string
) ?? self::URL.'/plugins/signup/magento2';
}

/**
* Get display layer create endpoint
*
* @return string
*/
public function getDisplayLayerCreateEndpoint(): string
{
return $this->getValueFromConfig(self::DISPLAY_LAYER_CREATE_ENDPOINT)
?? self::URL.'/plugins/script/magento2';
}

/**
* Get display layer state endpoint
*
* @return string
*/
public function getDisplayLayerStateEndpoint(): string
{
return $this->getValueFromConfig(self::DISPLAY_LAYER_STATE_ENDPOINT)
?? self::URL.'/plugins/state/magento2';
}

/**
* Get administration email
*
Expand Down
152 changes: 0 additions & 152 deletions Model/Config/Backend/DisplayLayerState.php

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "doofinder/doofinder-magento2",
"version": "0.14.5",
"version": "0.14.6",
"description": "Doofinder module for Magento 2",
"type": "magento2-module",
"require": {
Expand Down
26 changes: 1 addition & 25 deletions etc/adminhtml/system.xml
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
showInStore="0">
<label>Enabled</label>
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
<backend_model>Doofinder\Feed\Model\Config\Backend\DisplayLayerState</backend_model>
<backend_model>Magento\Framework\App\Config\Value</backend_model>
<comment>
<![CDATA[ Activate/deactivate the search layer. ]]>
</comment>
Expand Down Expand Up @@ -243,30 +243,6 @@
<![CDATA[ Doofinder endpoint URL where the signup integration request will be sent. ]]>
</comment>
</field>
<field id="display_layer_create_endpoint"
translate="label"
type="text"
sortOrder="400"
showInDefault="0"
showInWebsite="0"
showInStore="0">
<label>Doofinder Display Layer Create URL</label>
<comment>
<![CDATA[ Doofinder endpoint URL where display layer and installation id are created. ]]>
</comment>
</field>
<field id="display_layer_state_endpoint"
translate="label"
type="text"
sortOrder="500"
showInDefault="0"
showInWebsite="0"
showInStore="0">
<label>Doofinder Display Layer State URL</label>
<comment>
<![CDATA[ Doofinder endpoint URL where display layer is enabled or disabled. ]]>
</comment>
</field>
<field id="clean_integration" translate="label" type="button" sortOrder="600" showInDefault="1" showInWebsite="0" showInStore="0">
<label>Unsynchronize your integration with Doofinder (irreversible)</label>
<frontend_model>Doofinder\Feed\Block\System\Config\CleanIntegration</frontend_model>
Expand Down
2 changes: 0 additions & 2 deletions etc/config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,6 @@
<doofinder_integration>
<login_endpoint><![CDATA[https://admin.doofinder.com/plugins/login/magento2]]></login_endpoint>
<signup_endpoint><![CDATA[https://admin.doofinder.com/plugins/signup/magento2]]></signup_endpoint>
<display_layer_create_endpoint><![CDATA[https://admin.doofinder.com/plugins/script/magento2]]></display_layer_create_endpoint>
<display_layer_state_endpoint><![CDATA[https://admin.doofinder.com/plugins/state/magento2]]></display_layer_state_endpoint>
</doofinder_integration>
<installing_loop>
<status>0</status>
Expand Down
2 changes: 1 addition & 1 deletion etc/module.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0"?>
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
<module name="Doofinder_Feed" setup_version="0.14.5">
<module name="Doofinder_Feed" setup_version="0.14.6">
<sequence>
<module name="Magento_Integration" />
</sequence>
Expand Down

0 comments on commit 21df3e5

Please sign in to comment.