Upgrade algoliasearch
This commit is contained in:
parent
49895805e3
commit
1ad3e7910c
@ -193,7 +193,7 @@ def after_replacing_node(item, original):
|
|||||||
# Skip index updating and return
|
# Skip index updating and return
|
||||||
return
|
return
|
||||||
|
|
||||||
from algoliasearch.client import AlgoliaException
|
from algoliasearch.helpers import AlgoliaException
|
||||||
status = item['properties'].get('status', 'unpublished')
|
status = item['properties'].get('status', 'unpublished')
|
||||||
|
|
||||||
if status == 'published':
|
if status == 'published':
|
||||||
@ -375,7 +375,7 @@ def nodes_set_default_picture(nodes):
|
|||||||
|
|
||||||
|
|
||||||
def after_deleting_node(item):
|
def after_deleting_node(item):
|
||||||
from algoliasearch.client import AlgoliaException
|
from algoliasearch.helpers import AlgoliaException
|
||||||
try:
|
try:
|
||||||
algolia_index_node_delete(item)
|
algolia_index_node_delete(item)
|
||||||
except AlgoliaException as ex:
|
except AlgoliaException as ex:
|
||||||
|
@ -29,7 +29,7 @@ def before_replacing_user(request, lookup):
|
|||||||
def push_updated_user_to_algolia(user, original):
|
def push_updated_user_to_algolia(user, original):
|
||||||
"""Push an update to the Algolia index when a user item is updated"""
|
"""Push an update to the Algolia index when a user item is updated"""
|
||||||
|
|
||||||
from algoliasearch.client import AlgoliaException
|
from algoliasearch.helpers import AlgoliaException
|
||||||
from pillar.api.utils.algolia import algolia_index_user_save
|
from pillar.api.utils.algolia import algolia_index_user_save
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
-r ../pillar-python-sdk/requirements.txt
|
-r ../pillar-python-sdk/requirements.txt
|
||||||
|
|
||||||
attrs==16.2.0
|
attrs==16.2.0
|
||||||
algoliasearch==1.8.0
|
algoliasearch==1.12.0
|
||||||
bcrypt==3.1.3
|
bcrypt==3.1.3
|
||||||
blinker==1.4
|
blinker==1.4
|
||||||
bugsnag==2.3.1
|
bugsnag==2.3.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user