Indexing: Add document base property reindex

Add support for reindexing documents when their base properties like
the label and description are edited.

Signed-off-by: Roberto Rosario <roberto.rosario.gonzalez@gmail.com>
This commit is contained in:
Roberto Rosario
2018-10-31 16:54:19 -04:00
parent 9fc7c4fc09
commit e109068b29
9 changed files with 179 additions and 106 deletions

View File

@@ -12,7 +12,7 @@ from ..permissions import (
from .literals import (
TEST_INDEX_LABEL, TEST_INDEX_LABEL_EDITED, TEST_INDEX_SLUG,
TEST_INDEX_TEMPLATE_LABEL_EXPRESSION
TEST_INDEX_TEMPLATE_DOCUMENT_LABEL_EXPRESSION
)
@@ -112,7 +112,7 @@ class IndexViewTestCase(GenericDocumentViewTestCase):
# Create simple index template
root = self.index.template_root
self.index.node_templates.create(
parent=root, expression=TEST_INDEX_TEMPLATE_LABEL_EXPRESSION,
parent=root, expression=TEST_INDEX_TEMPLATE_DOCUMENT_LABEL_EXPRESSION,
link_documents=True
)