Add feature to disable API requests to Google

Created on 25 June 2025, about 1 month ago

Problem/Motivation

There are situations where we want to disable actual requests to the Google API, but keep the search otherwise functioning. This is because each request incurs a cost, and repeated test requests can be expensive. An example of when you'd want to turn off API requests would be load or penetration tests.

Proposed resolution

We add a feature to the Search page configuration that allows you to disable API requests to Google. It would be a checkbox that defaults to off, but when checked, all API requests are replaced by a static response.

Remaining tasks

  • Add new checkbox form field to the search page settings that sets a config value.
  • In VertexSearchManager::executeSearch check for the value after the flood control.
  • If it's set to TRUE then return a static response object.

User interface changes

Adds a new option to the Search page settings.

API changes

None.

Data model changes

None.

✨ Feature request
Status

Active

Version

1.8

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States SamLerner

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024