Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #513 from Nosto/release/3.10.0
Browse files Browse the repository at this point in the history
Release/3.10.0
  • Loading branch information
supercid authored Apr 17, 2019
2 parents c30ebea + 4fe3fc1 commit adb2daf
Show file tree
Hide file tree
Showing 162 changed files with 327 additions and 208 deletions.
4 changes: 3 additions & 1 deletion .github/pull-request-template.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,6 @@
- [ ] I have correctly labeled this pull request.
- [ ] I have linked the corresponding issue in this description.
- [ ] I have updated the corresponding Jira ticket.
- [ ] I have requested a review from at least 2 reviewers
- [ ] I have requested a review from at least 2 reviewers
- [ ] I have checked the base branch of this pull request
- [ ] I have checked my code for any possible security vulnerabilities
2 changes: 1 addition & 1 deletion .phan/stubs/Mage.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion .phan/stubs/Yotpo.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/
class Yotpo_Yotpo_Helper_RichSnippets extends Mage_Core_Helper_Abstract
Expand Down
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

### 3.10.0
* Add Nosto category personalization in the default Magento category sorting options

### 3.9.0
* Feature flag to set the a percentage of total PHP available memory that can be used by Nosto indexer
* Exit indexer gracefully if the memory consumption goes over the predefined amount
Expand Down
2 changes: 1 addition & 1 deletion Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Addtocart.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Embed.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Meta.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Pagetype.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Product.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
38 changes: 19 additions & 19 deletions app/code/community/Nosto/Tagging/Block/Product/List/Toolbar.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand All @@ -40,6 +40,7 @@ class Nosto_Tagging_Block_Product_List_Toolbar
*
* @param Varien_Data_Collection $collection
* @return Mage_Catalog_Block_Product_List_Toolbar
* @throws Mage_Core_Model_Store_Exception
*/
public function setCollection($collection)
{
Expand All @@ -54,24 +55,23 @@ public function setCollection($collection)
|| !$accountHelper->find($store)
) {
return parent::setCollection($collection);
} else {
$this->_collection = $collection;
$limit = (int)$this->getLimit();
if ($limit) {
$this->_collection->setPageSize($limit);
}
$this->_collection->setCurPage($this->getCurrentPage());
$sortIds = array_reverse($this->getSortIds($this->getCurrentOrder()));
if (!empty($sortIds)) {
$orderByIds = sprintf(
'FIELD(product_id, %s) DESC',
implode(',', $sortIds)
);
$this->_collection->getSelect()->order($orderByIds);
}

return $this;
}
$this->_collection = $collection;
$limit = (int)$this->getLimit();
if ($limit) {
$this->_collection->setPageSize($limit);
}
$this->_collection->setCurPage($this->getCurrentPage());
$sortIds = array_reverse($this->getSortIds($this->getCurrentOrder()));
if (!empty($sortIds)) {
$orderByIds = sprintf(
'FIELD(product_id, %s) DESC',
implode(',', $sortIds)
);
$this->_collection->getSelect()->order($orderByIds);
}

return $this;
}

/**
Expand Down Expand Up @@ -100,4 +100,4 @@ protected function getSortIds($type)
$type
);
}
}
}
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Searchterm.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Block/Variation.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
18 changes: 16 additions & 2 deletions app/code/community/Nosto/Tagging/Helper/Account.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down Expand Up @@ -323,7 +323,7 @@ public function resetAccountSettings(Mage_Core_Model_Store $store = null)
}

/**
* Returns all store views that have Nosto intsalled
* Returns all store views that have Nosto installed
*
* @return Mage_Core_Model_Store[]
*/
Expand All @@ -340,4 +340,18 @@ public function getAllStoreViewsWithNostoAccount()

return $storesWithNosto;
}

/**
* Returns the id of the first store that has nosto installed
*
* @return int|null
*/
public function getFirstNostoStoreId()
{
$storesWithNosto = $this->getAllStoreViewsWithNostoAccount();
if (!empty($storesWithNosto) && $storesWithNosto[0] instanceof Mage_Core_Model_Store) {
return $storesWithNosto[0]->getId();
}
return null;
}
}
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Helper/Bootstrap.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Helper/Cache.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Helper/Class.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Helper/Currency.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
2 changes: 1 addition & 1 deletion app/code/community/Nosto/Tagging/Helper/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
* @category Nosto
* @package Nosto_Tagging
* @author Nosto Solutions Ltd <magento@nosto.com>
* @copyright Copyright (c) 2013-2017 Nosto Solutions Ltd (http://www.nosto.com)
* @copyright Copyright (c) 2013-2019 Nosto Solutions Ltd (http://www.nosto.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

Expand Down
Loading

0 comments on commit adb2daf

Please sign in to comment.