algoliasearch-django icon indicating copy to clipboard operation
algoliasearch-django copied to clipboard

feat: add auto_indexing param to register decorator function

Open KarimTayie opened this issue 3 years ago • 0 comments

Q A
Bug fix? no
New feature? yes
BC breaks? no
Related Issue closes #277 #276
Need Doc update no

Describe your change

  • Added auto_indexing parameter to register decorator function with None as a default value for backward compatibility.

  • if a boolean value has been passed to register decorator or register function for auto_indexing parameter prioritize it over the value from the settings.

What problem is this fixing?

  • With this change, I can enable/disable auto_indexing on any specific sub-class of AlgoliaIndex with register decorator.

  • Now I can make the auto_indexing setting=True but when I call register function or decorator with auto_indexing=False it will take it and prioritize it over the setting value.

KarimTayie avatar Jan 13 '21 15:01 KarimTayie