Bitbull_Tooso - Version 1.0.3

Version Notes

* Fixed regression introduced with 1.0.2: error raised if a sku is not available in Magento but is returned by Tooso API

Download this release

Release Info

Developer Tooso Inc.
Extension Bitbull_Tooso
Version 1.0.3
Comparing to
See all releases


Code changes from version 1.0.0 to 1.0.3

app/code/community/Bitbull/Tooso/Helper/Log/Send.php CHANGED
@@ -8,8 +8,6 @@ class Bitbull_Tooso_Helper_Log_Send extends Mage_Core_Helper_Abstract implements
8
  {
9
  const DEBUG_EMAIL_ADDRESS = 'alert@tooso.ai';
10
 
11
- const DEBUG_EMAIL_ADDRESS_CC = 'gennaro.vietri@bitbull.it';
12
-
13
  const XML_PATH_SEND_REPORT = 'tooso/server/send_report';
14
 
15
  const EMAIL_TEMPLATE = 'tooso_alert_email_template';
@@ -58,8 +56,7 @@ class Bitbull_Tooso_Helper_Log_Send extends Mage_Core_Helper_Abstract implements
58
  'email' => self::DEBUG_EMAIL_ADDRESS,
59
  ),
60
  array(
61
- self::DEBUG_EMAIL_ADDRESS,
62
- self::DEBUG_EMAIL_ADDRESS_CC
63
  ),
64
  null,
65
  array('data' => $dataObject)
8
  {
9
  const DEBUG_EMAIL_ADDRESS = 'alert@tooso.ai';
10
 
 
 
11
  const XML_PATH_SEND_REPORT = 'tooso/server/send_report';
12
 
13
  const EMAIL_TEMPLATE = 'tooso_alert_email_template';
56
  'email' => self::DEBUG_EMAIL_ADDRESS,
57
  ),
58
  array(
59
+ self::DEBUG_EMAIL_ADDRESS
 
60
  ),
61
  null,
62
  array('data' => $dataObject)
app/code/community/Bitbull/Tooso/Model/Search.php CHANGED
@@ -99,12 +99,14 @@ class Bitbull_Tooso_Model_Search
99
  $i = 1;
100
  $productIds = $this->_getIdsBySkus($skus);
101
 
102
- foreach ($productIds as $sku => $productId) {
103
- $products[] = array(
104
- 'sku' => $sku,
105
- 'product_id' => $productId,
106
- 'relevance' => $i
107
- );
 
 
108
 
109
  $i++;
110
  }
99
  $i = 1;
100
  $productIds = $this->_getIdsBySkus($skus);
101
 
102
+ foreach ($skus as $sku) {
103
+ if (isset($productIds[$sku])) {
104
+ $products[] = array(
105
+ 'sku' => $sku,
106
+ 'product_id' => $productIds[$sku],
107
+ 'relevance' => $i
108
+ );
109
+ }
110
 
111
  $i++;
112
  }
app/code/community/Bitbull/Tooso/etc/config.xml CHANGED
@@ -8,7 +8,7 @@
8
  <config>
9
  <modules>
10
  <Bitbull_Tooso>
11
- <version>1.0.0</version>
12
  </Bitbull_Tooso>
13
  </modules>
14
  <global>
@@ -109,4 +109,4 @@
109
  </tooso_reindex>
110
  </jobs>
111
  </crontab>
112
- </config>
8
  <config>
9
  <modules>
10
  <Bitbull_Tooso>
11
+ <version>1.0.3</version>
12
  </Bitbull_Tooso>
13
  </modules>
14
  <global>
109
  </tooso_reindex>
110
  </jobs>
111
  </crontab>
112
+ </config>
package.xml CHANGED
@@ -1,7 +1,7 @@
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bitbull_Tooso</name>
4
- <version>1.0.0</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
@@ -17,11 +17,11 @@ It provide the following features:&#xD;
17
  * Automatic typo correction&#xD;
18
  * Search keywords suggest&#xD;
19
  </description>
20
- <notes>This is the first release version.</notes>
21
  <authors><author><name>Tooso Inc.</name><user>Tooso</user><email>ciro.greco@tooso.ai</email></author><author><name>Bitbull srl</name><user>bitbullit</user><email>devel@bitbull.it</email></author></authors>
22
- <date>2016-06-22</date>
23
- <time>13:01:22</time>
24
- <contents><target name="magecommunity"><dir name="Bitbull"><dir name="Tooso"><dir name="Block"><dir name="CatalogSearch"><file name="Autocomplete.php" hash="2a00b2f492d507594b1fe6f34e9cad92"/><file name="Result.php" hash="1cd469ae700f6560d08eb9ae57bd0c81"/></dir><file name="Rebuild.php" hash="7e8d9cf37b90712e077caaf6ef9593fb"/></dir><dir name="Helper"><dir name="CatalogSearch"><file name="Data.php" hash="3950404f58dbb6a7b1771d79c105bbf3"/></dir><file name="Data.php" hash="97f29c41bdec723ce1e834f095f24173"/><dir name="Log"><file name="Send.php" hash="5404be47bb61b57de4956b170a2bb0e7"/></dir><file name="Log.php" hash="291d92b98d0f3cd644ea823b2e82af60"/></dir><dir name="Model"><dir name="CatalogSearch"><dir name="Resource"><file name="Fulltext.php" hash="4bd85f7a6252a67214b299e88d474884"/></dir></dir><file name="Document.php" hash="8494db27df0418d82b3dd1d62c3b0024"/><dir name="Export"><dir name="Adapter"><file name="Csv.php" hash="7a7f2b6a65d31e1ca73a704a701d7def"/></dir></dir><file name="Indexer.php" hash="dc87343f576592706763dfc5780b7890"/><file name="Observer.php" hash="1de7e3c576c0cda4a08991b646a187af"/><dir name="Resource"><dir name="CatalogSearch"><dir name="Fulltext"><file name="Collection.php" hash="f02d6ab072708bf4278333be1c1eca9b"/></dir><file name="Query.php" hash="ed4544b31cef91482d83ce972df6df3b"/></dir></dir><file name="Search.php" hash="c422f1e61893fcb6683338c5a0e550b1"/><file name="Suggest.php" hash="5a6945815a577798023bdd124c0b1296"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ToosoController.php" hash="8ec5ef47c376938cdd8bb0fc1c54ed20"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="83c32bf662abe4862cc020c87c210c77"/><file name="config.xml" hash="83043efd864433e81687568b6be9e576"/><file name="system.xml" hash="c0488ce3db9f16d8b3c14025c87e583b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bitbull_Tooso.xml" hash="72e8ab6ad38fa30148022266b5930774"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="tooso_alert.html" hash="bed763fc02c8f7e4dd77210c21fdd43a"/></dir></dir></dir></target><target name="magelib"><dir name="Bitbull"><dir name="Tooso"><file name="Client.php" hash="73f175735846c21798f5e68d9b30ff7d"/><file name="Exception.php" hash="18a7e7c9a4ed8ff74553d71ec5168f04"/><dir name="Index"><file name="Result.php" hash="51473ad6a03d37f6263e06f4d0068984"/></dir><dir name="Log"><file name="SendInterface.php" hash="4536b2a072bfc0778c3597ebf5e9101f"/></dir><dir name="Search"><file name="Result.php" hash="d94ee5c847144f5c5d0e804715a088ae"/></dir><dir name="Suggest"><file name="Result.php" hash="1cf76eb5eba7b6799baf98286f321389"/></dir></dir></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
27
  </package>
1
  <?xml version="1.0"?>
2
  <package>
3
  <name>Bitbull_Tooso</name>
4
+ <version>1.0.3</version>
5
  <stability>stable</stability>
6
  <license uri="http://opensource.org/licenses/osl-3.0.php">OSL</license>
7
  <channel>community</channel>
17
  * Automatic typo correction&#xD;
18
  * Search keywords suggest&#xD;
19
  </description>
20
+ <notes>* Fixed regression introduced with 1.0.2: error raised if a sku is not available in Magento but is returned by Tooso API</notes>
21
  <authors><author><name>Tooso Inc.</name><user>Tooso</user><email>ciro.greco@tooso.ai</email></author><author><name>Bitbull srl</name><user>bitbullit</user><email>devel@bitbull.it</email></author></authors>
22
+ <date>2016-11-16</date>
23
+ <time>14:42:50</time>
24
+ <contents><target name="magecommunity"><dir name="Bitbull"><dir name="Tooso"><dir name="Block"><dir name="CatalogSearch"><file name="Autocomplete.php" hash="2a00b2f492d507594b1fe6f34e9cad92"/><file name="Result.php" hash="1cd469ae700f6560d08eb9ae57bd0c81"/></dir><file name="Rebuild.php" hash="7e8d9cf37b90712e077caaf6ef9593fb"/></dir><dir name="Helper"><dir name="CatalogSearch"><file name="Data.php" hash="3950404f58dbb6a7b1771d79c105bbf3"/></dir><file name="Data.php" hash="97f29c41bdec723ce1e834f095f24173"/><dir name="Log"><file name="Send.php" hash="7eaaacee307c866262c9e58d90944379"/></dir><file name="Log.php" hash="291d92b98d0f3cd644ea823b2e82af60"/></dir><dir name="Model"><dir name="CatalogSearch"><dir name="Resource"><file name="Fulltext.php" hash="4bd85f7a6252a67214b299e88d474884"/></dir></dir><file name="Document.php" hash="8494db27df0418d82b3dd1d62c3b0024"/><dir name="Export"><dir name="Adapter"><file name="Csv.php" hash="7a7f2b6a65d31e1ca73a704a701d7def"/></dir></dir><file name="Indexer.php" hash="dc87343f576592706763dfc5780b7890"/><file name="Observer.php" hash="1de7e3c576c0cda4a08991b646a187af"/><dir name="Resource"><dir name="CatalogSearch"><dir name="Fulltext"><file name="Collection.php" hash="f02d6ab072708bf4278333be1c1eca9b"/></dir><file name="Query.php" hash="ed4544b31cef91482d83ce972df6df3b"/></dir></dir><file name="Search.php" hash="8cf1db7da05bac07cc121068a5842f83"/><file name="Suggest.php" hash="5a6945815a577798023bdd124c0b1296"/></dir><dir name="controllers"><dir name="Adminhtml"><file name="ToosoController.php" hash="8ec5ef47c376938cdd8bb0fc1c54ed20"/></dir></dir><dir name="etc"><file name="adminhtml.xml" hash="83c32bf662abe4862cc020c87c210c77"/><file name="config.xml" hash="010cde6c6dee7e01489eb8ca1c3c0acd"/><file name="system.xml" hash="c0488ce3db9f16d8b3c14025c87e583b"/></dir></dir></dir></target><target name="mageetc"><dir name="modules"><file name="Bitbull_Tooso.xml" hash="72e8ab6ad38fa30148022266b5930774"/></dir></target><target name="magelocale"><dir name="en_US"><dir name="template"><dir name="email"><file name="tooso_alert.html" hash="bed763fc02c8f7e4dd77210c21fdd43a"/></dir></dir></dir></target><target name="magelib"><dir name="Bitbull"><dir name="Tooso"><file name="Client.php" hash="73f175735846c21798f5e68d9b30ff7d"/><file name="Exception.php" hash="18a7e7c9a4ed8ff74553d71ec5168f04"/><dir name="Index"><file name="Result.php" hash="51473ad6a03d37f6263e06f4d0068984"/></dir><dir name="Log"><file name="SendInterface.php" hash="4536b2a072bfc0778c3597ebf5e9101f"/></dir><dir name="Search"><file name="Result.php" hash="d94ee5c847144f5c5d0e804715a088ae"/></dir><dir name="Suggest"><file name="Result.php" hash="1cf76eb5eba7b6799baf98286f321389"/></dir></dir></dir></target></contents>
25
  <compatible/>
26
  <dependencies><required><php><min>5.3.0</min><max>6.0.0</max></php></required></dependencies>
27
  </package>