wcs: do not index card cells (#68539)
gitea-wip/combo/pipeline/head There was a failure building this commit Details
gitea/combo/pipeline/head Something is wrong with the build of this commit Details

This commit is contained in:
Frédéric Péters 2022-08-30 10:57:34 +02:00
parent 973a0d13cb
commit bdf7e82f31
2 changed files with 4 additions and 1 deletions

View File

@ -863,6 +863,9 @@ class WcsCardCell(CardMixin, CellBase):
manager_appearance_template = 'combo/wcs/manager/card-cell-form-appearance.html'
# cards will already be searchable using their respective search engines
exclude_from_search = True
class Meta:
verbose_name = _('Card(s)')

View File

@ -1432,7 +1432,7 @@ def test_index_site_num_queries(settings, app):
assert IndexedCell.objects.count() == 50
with CaptureQueriesContext(connection) as ctx:
index_site()
assert len(ctx.captured_queries) in (174, 224) # (3.2, 2.2)
assert len(ctx.captured_queries) in (173, 223) # (3.2, 2.2)
SearchCell.objects.create(
page=page, placeholder='content', order=0, _search_services={'data': ['search1']}