Open kasai-mitsuru opened 4 years ago
Hi @kasai-mitsuru that's a great point! I see another problem with this API: it's disabling indexing over all the models whilst giving the illusion it's only affecting the scope it's encapsulating. This whole API should be re-engineered into something more flexible that can enable/disable indexing on specific registrations.
Description
disable_auto_indexing()
indecorators.py
makes connection even ifAUTO_INDEXING = False
.In
AUTO_INDEXING = False
environment, oncedisable_auto_indexing()
is called, AlgoliaEngine will try to index when model saving.I think it needs condition if AUTO_INDEXING is True, like bellow.
Steps To Reproduce
settings.py
index.py
sample.py
a part of error message