AhoCorasick warning on 100% remote glossaries

Created on 2 October 2024, about 2 months ago

Problem/Motivation

AhoCorasick warning about no content.

Steps to reproduce

  • Install the module
  • Configure Tooltips = None on/admin/config/content/g2/formatting to enable remote glossary
  • Configure the API Client on /admin/config/content/g2/api, setting e.g. https://riff.org/g2/entries as the remote glossary base
  • Do NOT create any G2 entry
  • Create a node, e.g. an article containing a <dfn>ASCII</dfn> reference to create a remote dictionary link
  • Observe AhoCorasick warning about the lack of any word in the glossary

Proposed resolution

This is caused by the matcher trying to build its index on a site using a remote dictionary instead of a local one : disable rebuilding the the site is configured to use the API client to a remote dictionary.

Remaining tasks

User interface changes

API changes

None.

Data model changes

Index will no longer be updated on sites using the API client instead of a local glossary.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇫🇷France fgm Paris, France

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

Comments & Activities

Production build 0.71.5 2024