diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 16df742a..00000000 --- a/.travis.yml +++ /dev/null @@ -1,23 +0,0 @@ -sudo: required - -language: php - -php: - - '7.0' - -branches: - only: - - master - - develop - -services: - - docker - -install: - - composer install --no-scripts - -before_script: - - wget https://alg.li/algolia-keys && chmod +x algolia-keys - -script: - - eval $(./algolia-keys export) && dev/runTests.sh -a $ALGOLIA_APPLICATION_ID -k $ALGOLIA_API_KEY -s $ALGOLIA_SEARCH_API_KEY -b http://magento.local -p TRAVIS_M1_ -v 193 diff --git a/CHANGELOG.md b/CHANGELOG.md index fbee6e7f..d815cc9b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # CHANGE LOG +## 1.19.0 + +### Updates +- Update algoliaBundle with latest autocomplete for multiqueries (#1171) +- Set forwardToReplicas for copy rules to false (#1170) +- Add missing options for suggestion source (#1157) +- Update readme and remove travis (#1172) + + ## 1.18.0 ### Updates diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 3e7dd925..0a54dd43 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -1,5 +1,2 @@ -## `algolia/algoliasearch-magento` maintainers - -| Name | Email | -|------------------------------|---------------------------| -| Jan Petr | jan.petr@algolia.com | +## Maintainers +The Algolia Magento 1 extension has reached a support and maintenance EOL and, therefore, will not commit to maintain the extension past FEB 2021. We encourage you to upgrade to Magento 2 as Magento 1 has already reached its end of life. \ No newline at end of file diff --git a/README.md b/README.md index d2a1d2ef..1c44796f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,8 @@ Algolia Search for Magento 1.6+ ================== -![Latest version](https://img.shields.io/badge/latest-1.18.0-green.svg) +![Latest version](https://img.shields.io/badge/latest-1.19.0-green.svg) -[![Build Status](https://travis-ci.org/algolia/algoliasearch-magento.svg?branch=master)](https://travis-ci.org/algolia/algoliasearch-magento) ![PHP >= 5.3](https://img.shields.io/badge/php-%3E=5.3-green.svg) ![Magento 1.6.2](https://img.shields.io/badge/magento-1.6.2-blue.svg) @@ -14,7 +13,13 @@ Algolia Search for Magento 1.6+ ------- -🔎   **Need help?** Check out our [Troubleshooting Guide](https://www.algolia.com/doc/integration/magento-1/troubleshooting/data-indexes-queues/) and our [General FAQs](https://www.algolia.com/doc/integration/magento-1/troubleshooting/general-faq/). For feedback, bug reporting, or unresolved issues with the extension, please contact us at [support@algolia.com](mailto:support@algolia.com). Please include your Magento version, extension version, application ID, and steps to reproducing your issue. Add additional information like screenshots, screencasts, and error messages to help our team better troubleshoot your issues. +## End of Support + +🚨   The Algolia Magento 1 extension has reached **End of Life** regarding support and maintenance. We do not commit to maintain and support the extension past FEB 2021. We encourage you to upgrade to Magento 2 as Magento 1 has already reached its end of life. + +------- + +🔎   **Need help?** Check out our [Troubleshooting Guide](https://www.algolia.com/doc/integration/magento-1/troubleshooting/data-indexes-queues/) and our [General FAQs](https://www.algolia.com/doc/integration/magento-1/troubleshooting/general-faq/). ------- @@ -111,5 +116,3 @@ Here are some helpful documentation to help with your issue: - [Indexing Queue](https://www.algolia.com/doc/integration/magento-1/how-it-works/indexing-queue/) - [Frontend Custom Events](https://www.algolia.com/doc/integration/magento-1/customize/custom-front-end-events/) - [Dispatched Backend Events](https://www.algolia.com/doc/integration/magento-1/customize/custom-back-end-events/) - -For feedback, bug reporting, or unresolved issues with the extension, please contact us at [support@algolia.com](mailto:support@algolia.com). Please include your Magento version, extension version, application ID, and steps to reproducing your issue. Add additional information like screenshots, screencasts, and error messages to help our team better troubleshoot your issues. diff --git a/app/code/community/Algolia/Algoliasearch/Helper/Algoliahelper.php b/app/code/community/Algolia/Algoliasearch/Helper/Algoliahelper.php index 2a6f2aa1..c85db786 100644 --- a/app/code/community/Algolia/Algoliasearch/Helper/Algoliahelper.php +++ b/app/code/community/Algolia/Algoliasearch/Helper/Algoliahelper.php @@ -244,7 +244,7 @@ public function copySynonyms($fromIndexName, $toIndexName) public function copyQueryRules($fromIndexName, $toIndexName) { $res = $this->getClient()->scopedCopyIndex($fromIndexName, $toIndexName, array('rules'), array( - 'forwardToReplicas' => true, + 'forwardToReplicas' => false, 'clearExistingRules' => true )); diff --git a/app/code/community/Algolia/Algoliasearch/etc/config.xml b/app/code/community/Algolia/Algoliasearch/etc/config.xml index c0d4994f..01d8ca8b 100644 --- a/app/code/community/Algolia/Algoliasearch/etc/config.xml +++ b/app/code/community/Algolia/Algoliasearch/etc/config.xml @@ -2,7 +2,7 @@ - 1.18.0 + 1.19.0 diff --git a/app/code/community/Algolia/Algoliasearch/etc/system.xml b/app/code/community/Algolia/Algoliasearch/etc/system.xml index 88f200d5..cda64ab2 100644 --- a/app/code/community/Algolia/Algoliasearch/etc/system.xml +++ b/app/code/community/Algolia/Algoliasearch/etc/system.xml @@ -4,7 +4,7 @@ diff --git a/js/algoliasearch/internals/frontend/algoliaBundle.min.js b/js/algoliasearch/internals/frontend/algoliaBundle.min.js index ec758c6e..be3526d0 100644 --- a/js/algoliasearch/internals/frontend/algoliaBundle.min.js +++ b/js/algoliasearch/internals/frontend/algoliaBundle.min.js @@ -1,28 +1,29 @@ -/*! algoliaBundle 4.3.9 | © Algolia SAS | algolia.com */ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("algoliaBundle",[],t):"object"==typeof exports?exports.algoliaBundle=t():e.algoliaBundle=t()}(this,function(){return function(e){function t(r){if(n[r])return n[r].exports;var i=n[r]={exports:{},id:r,loaded:!1};return e[r].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var n={};return t.m=e,t.c=n,t.p="",t(0)}([function(e,t,n){e.exports={$:n(1),instantsearch:n(2),algoliasearch:n(594),algoliasearchHelper:n(41),Hogan:n(527),autocomplete:n(599)}},function(e,t){var n,r;!function(t,n){"object"==typeof e&&"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,function(i,o){function a(e){var t=!!e&&"length"in e&&e.length,n=ge.type(e);return"function"===n||ge.isWindow(e)?!1:"array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e}function s(e,t,n){if(ge.isFunction(t))return ge.grep(e,function(e,r){return!!t.call(e,r,e)!==n});if(t.nodeType)return ge.grep(e,function(e){return e===t!==n});if("string"==typeof t){if(Te.test(t))return ge.filter(t,e,n);t=ge.filter(t,e)}return ge.grep(e,function(e){return ge.inArray(e,t)>-1!==n})}function u(e,t){do e=e[t];while(e&&1!==e.nodeType);return e}function c(e){var t={};return ge.each(e.match(Ae)||[],function(e,n){t[n]=!0}),t}function l(){se.addEventListener?(se.removeEventListener("DOMContentLoaded",f),i.removeEventListener("load",f)):(se.detachEvent("onreadystatechange",f),i.detachEvent("onload",f))}function f(){(se.addEventListener||"load"===i.event.type||"complete"===se.readyState)&&(l(),ge.ready())}function p(e,t,n){if(void 0===n&&1===e.nodeType){var r="data-"+t.replace(Le,"-$1").toLowerCase();if(n=e.getAttribute(r),"string"==typeof n){try{n="true"===n?!0:"false"===n?!1:"null"===n?null:+n+""===n?+n:Me.test(n)?ge.parseJSON(n):n}catch(i){}ge.data(e,t,n)}else n=void 0}return n}function d(e){var t;for(t in e)if(("data"!==t||!ge.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function h(e,t,n,r){if(Ie(e)){var i,o,a=ge.expando,s=e.nodeType,u=s?ge.cache:e,c=s?e[a]:e[a]&&a;if(c&&u[c]&&(r||u[c].data)||void 0!==n||"string"!=typeof t)return c||(c=s?e[a]=ae.pop()||ge.guid++:a),u[c]||(u[c]=s?{}:{toJSON:ge.noop}),("object"==typeof t||"function"==typeof t)&&(r?u[c]=ge.extend(u[c],t):u[c].data=ge.extend(u[c].data,t)),o=u[c],r||(o.data||(o.data={}),o=o.data),void 0!==n&&(o[ge.camelCase(t)]=n),"string"==typeof t?(i=o[t],null==i&&(i=o[ge.camelCase(t)])):i=o,i}}function m(e,t,n){if(Ie(e)){var r,i,o=e.nodeType,a=o?ge.cache:e,s=o?e[ge.expando]:ge.expando;if(a[s]){if(t&&(r=n?a[s]:a[s].data)){ge.isArray(t)?t=t.concat(ge.map(t,ge.camelCase)):t in r?t=[t]:(t=ge.camelCase(t),t=t in r?[t]:t.split(" ")),i=t.length;for(;i--;)delete r[t[i]];if(n?!d(r):!ge.isEmptyObject(r))return}(n||(delete a[s].data,d(a[s])))&&(o?ge.cleanData([e],!0):me.deleteExpando||a!=a.window?delete a[s]:a[s]=void 0)}}}function v(e,t,n,r){var i,o=1,a=20,s=r?function(){return r.cur()}:function(){return ge.css(e,t,"")},u=s(),c=n&&n[3]||(ge.cssNumber[t]?"":"px"),l=(ge.cssNumber[t]||"px"!==c&&+u)&&He.exec(ge.css(e,t));if(l&&l[3]!==c){c=c||l[3],n=n||[],l=+u||1;do o=o||".5",l/=o,ge.style(e,t,l+c);while(o!==(o=s()/u)&&1!==o&&--a)}return n&&(l=+l||+u||0,i=n[1]?l+(n[1]+1)*n[2]:+n[2],r&&(r.unit=c,r.start=l,r.end=i)),i}function g(e){var t=Qe.split("|"),n=e.createDocumentFragment();if(n.createElement)for(;t.length;)n.createElement(t.pop());return n}function y(e,t){var n,r,i=0,o="undefined"!=typeof e.getElementsByTagName?e.getElementsByTagName(t||"*"):"undefined"!=typeof e.querySelectorAll?e.querySelectorAll(t||"*"):void 0;if(!o)for(o=[],n=e.childNodes||e;null!=(r=n[i]);i++)!t||ge.nodeName(r,t)?o.push(r):ge.merge(o,y(r,t));return void 0===t||t&&ge.nodeName(e,t)?ge.merge([e],o):o}function b(e,t){for(var n,r=0;null!=(n=e[r]);r++)ge._data(n,"globalEval",!t||ge._data(t[r],"globalEval"))}function _(e){We.test(e.type)&&(e.defaultChecked=e.checked)}function x(e,t,n,r,i){for(var o,a,s,u,c,l,f,p=e.length,d=g(t),h=[],m=0;p>m;m++)if(a=e[m],a||0===a)if("object"===ge.type(a))ge.merge(h,a.nodeType?[a]:a);else if(Xe.test(a)){for(u=u||d.appendChild(t.createElement("div")),c=($e.exec(a)||["",""])[1].toLowerCase(),f=Ye[c]||Ye._default,u.innerHTML=f[1]+ge.htmlPrefilter(a)+f[2],o=f[0];o--;)u=u.lastChild;if(!me.leadingWhitespace&&ze.test(a)&&h.push(t.createTextNode(ze.exec(a)[0])),!me.tbody)for(a="table"!==c||Ge.test(a)?""!==f[1]||Ge.test(a)?0:u:u.firstChild,o=a&&a.childNodes.length;o--;)ge.nodeName(l=a.childNodes[o],"tbody")&&!l.childNodes.length&&a.removeChild(l);for(ge.merge(h,u.childNodes),u.textContent="";u.firstChild;)u.removeChild(u.firstChild);u=d.lastChild}else h.push(t.createTextNode(a));for(u&&d.removeChild(u),me.appendChecked||ge.grep(y(h,"input"),_),m=0;a=h[m++];)if(r&&ge.inArray(a,r)>-1)i&&i.push(a);else if(s=ge.contains(a.ownerDocument,a),u=y(d.appendChild(a),"script"),s&&b(u),n)for(o=0;a=u[o++];)Ke.test(a.type||"")&&n.push(a);return u=null,d}function w(){return!0}function C(){return!1}function E(){try{return se.activeElement}catch(e){}}function R(e,t,n,r,i,o){var a,s;if("object"==typeof t){"string"!=typeof n&&(r=r||n,n=void 0);for(s in t)R(e,s,n,r,t[s],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),i===!1)i=C;else if(!i)return e;return 1===o&&(a=i,i=function(e){return ge().off(e),a.apply(this,arguments)},i.guid=a.guid||(a.guid=ge.guid++)),e.each(function(){ge.event.add(this,t,i,r,n)})}function P(e,t){return ge.nodeName(e,"table")&&ge.nodeName(11!==t.nodeType?t:t.firstChild,"tr")?e.getElementsByTagName("tbody")[0]||e.appendChild(e.ownerDocument.createElement("tbody")):e}function T(e){return e.type=(null!==ge.find.attr(e,"type"))+"/"+e.type,e}function S(e){var t=ut.exec(e.type);return t?e.type=t[1]:e.removeAttribute("type"),e}function k(e,t){if(1===t.nodeType&&ge.hasData(e)){var n,r,i,o=ge._data(e),a=ge._data(t,o),s=o.events;if(s){delete a.handle,a.events={};for(n in s)for(r=0,i=s[n].length;i>r;r++)ge.event.add(t,n,s[n][r])}a.data&&(a.data=ge.extend({},a.data))}}function O(e,t){var n,r,i;if(1===t.nodeType){if(n=t.nodeName.toLowerCase(),!me.noCloneEvent&&t[ge.expando]){i=ge._data(t);for(r in i.events)ge.removeEvent(t,r,i.handle);t.removeAttribute(ge.expando)}"script"===n&&t.text!==e.text?(T(t).text=e.text,S(t)):"object"===n?(t.parentNode&&(t.outerHTML=e.outerHTML),me.html5Clone&&e.innerHTML&&!ge.trim(t.innerHTML)&&(t.innerHTML=e.innerHTML)):"input"===n&&We.test(e.type)?(t.defaultChecked=t.checked=e.checked,t.value!==e.value&&(t.value=e.value)):"option"===n?t.defaultSelected=t.selected=e.defaultSelected:("input"===n||"textarea"===n)&&(t.defaultValue=e.defaultValue)}}function j(e,t,n,r){t=ce.apply([],t);var i,o,a,s,u,c,l=0,f=e.length,p=f-1,d=t[0],h=ge.isFunction(d);if(h||f>1&&"string"==typeof d&&!me.checkClone&&st.test(d))return e.each(function(i){var o=e.eq(i);h&&(t[0]=d.call(this,i,o.html())),j(o,t,n,r)});if(f&&(c=x(t,e[0].ownerDocument,!1,e,r),i=c.firstChild,1===c.childNodes.length&&(c=i),i||r)){for(s=ge.map(y(c,"script"),T),a=s.length;f>l;l++)o=c,l!==p&&(o=ge.clone(o,!0,!0),a&&ge.merge(s,y(o,"script"))),n.call(e[l],o,l);if(a)for(u=s[s.length-1].ownerDocument,ge.map(s,S),l=0;a>l;l++)o=s[l],Ke.test(o.type||"")&&!ge._data(o,"globalEval")&&ge.contains(u,o)&&(o.src?ge._evalUrl&&ge._evalUrl(o.src):ge.globalEval((o.text||o.textContent||o.innerHTML||"").replace(ct,"")));c=i=null}return e}function N(e,t,n){for(var r,i=t?ge.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||ge.cleanData(y(r)),r.parentNode&&(n&&ge.contains(r.ownerDocument,r)&&b(y(r,"script")),r.parentNode.removeChild(r));return e}function A(e,t){var n=ge(t.createElement(e)).appendTo(t.body),r=ge.css(n[0],"display");return n.detach(),r}function F(e){var t=se,n=dt[e];return n||(n=A(e,t),"none"!==n&&n||(pt=(pt||ge("