Quant Search fails silently if tokens are used that aren't available

Created on 27 November 2022, over 2 years ago
Updated 8 February 2023, about 2 years ago

Problem/Motivation

When testing Quant Search, I was confused why my image and summary weren't showing up. It turns out it was because the token module was not installed so the field tokens weren't working.

Steps to reproduce

  1. Follow https://www.quantcdn.io/blog/tutorials/add-quant-search-drupal-9-static-...
  2. View the search page
  3. Result: The image and summary show up
  4. Uninstall the token module
  5. Reindex the search index
  6. View the search page
  7. Result: The image and summary are missing
  8. Expected Result: Some sort of warning or logging or something that an invalid token is being used

Proposed resolution

  • Consider adding help text and/or a warning on /admin/config/development/quant/search/entities
  • Ideally, check that any tokens provided are available
  • Ideally, update documentation to note the token module is often needed when updating entity tokens
  • We could also consider adding the token module as a dependency for Quant Search even though technically it doesn't need to be enabled

Remaining tasks

  1. Figure out which tasks above will be done
  2. Update code
  3. Update documentation
  4. Review and test
  5. Commit :)

User interface changes

TBD

API changes

Data model changes

πŸ“Œ Task
Status

Fixed

Version

1.3

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