VectorDBGenerator isActive() assumes that loadMultiple

Created on 29 December 2024, about 1 month ago

Problem/Motivation

On drupal 11, ai_search explorer isActive always returns FALSE.
The VDB explorer nevers shows up and try to load /admin/config/ai/explorers/vector_db_generator page fails.

Steps to reproduce

  • Install all required modules to get data indexed in zilliz.
  • Verify that data is indexed in zilliz cloud (by checking Loaded Entities count).
  • Flush caches
  • Try to find the corresponding VDB explorer

Proposed resolution

In VectorDBGenerator::isActive(), do not assume that the array returned by $this->entityTypeManager->getStorage('search_api_index')->loadMultiple() is a integer keyed array.

Prefer a foreach approach with usage of break.

🐛 Bug report
Status

Active

Version

1.0

Component

AI Search

Created by

🇫🇷France mattlc

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