Quant search entity overrides required field issue

Created on 10 September 2022, about 2 years ago
Updated 8 February 2023, almost 2 years ago

Problem/Motivation

When using the override feature and not filling in all overrides, the search results for that content type do not show up.

Steps to reproduce

  1. For a quant project that has search enabled
  2. Enable quant_search module
  3. Go to API tab and configure
  4. Go to Search tab
  5. Go to Pages sub-tab
  6. Click Add Quant search page button
  7. Fill in Label, Title and Route, and check inEnabled
  8. Go to Entity configuration sub-tab
  9. For a content type with indexed data, choose Override
  10. Fill in Image but leave Title and Summary blank
  11. Go to Overview sub-tab and click the Clear index button
  12. Go to the Index sub-tab and reindex all nodes
  13. Go to the search page route
  14. Results: The content type with overridden entity configuration doesn't show up in the results
  15. Expected Results: Content type should show up in the results

Proposed resolution

Either make all the fields required when overriding or default the empty ones to the default values. For both scenarios, the fields could also be autofilled with the default values to start with.

Remaining tasks

  1. Debug code
  2. Update code
  3. Code review + testing
  4. Commit :)

User interface changes

If the fields are required, the will show up as required.

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

1.2

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Kristen Pol Santa Cruz, CA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024