Closed (fixed)
Project:
MyREST
Version:
1.0.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
7 Aug 2026 at 13:29 UTC
Updated:
7 Aug 2026 at 13:40 UTC
Jump to comment: Most recent
Several list resources (ReviewsGetResource, NodesDiscountGetResource, NodesDoctorGetResource, NodesPackageGetResource, NodesVideoReviewsGetResource) use \Drupal\search_api\Entity\Index and throw SearchApiException, but search_api is declared neither in myrest.info.yml nor in composer.json. Without it installed these endpoints fatal.
drupal/search_api to the suggest section of composer.json.MyrestHelper::getSearchApiIndexStorage() consumers and return a documented 501/503 response when the index is unavailable.Add guards, update metadata, and cover the missing-module path with a test.
None.
Search-backed endpoints degrade gracefully instead of fataling.
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sergeydruua commentedComment #6
sergeydruua commented