- Issue created by @anjaliprasannan
I've fixed the issue by ensuring the list() method returns
$this->systemManager->getBlockContents();
for all routes except the two specific configuration pages (
/admin/config/ai/vdb_providers
and/admin/config/ai/providers
) when their respective provider lists are empty.- 🇵🇹Portugal bbruno Poland
I was also having this issue, checked out the MR and this fixes it!
- First commit to issue fork.
- 🇩🇪Germany marcus_johansson
I was going to approve this, but because this has caused regression I did want to add tests. And when I added tests I realized that some of this is not working great.
So what I have done now is (larger scope):
1. Removed the access controllers for the provider and vdb providers listing pages - these error messages never showed up because of this, those pages was 403.
2. Made the permissions connected to the "administer ai provider" permission.
3. Rewrote the controller so its using property promotion.
4. Created an own controller for AI API Explorer that checks if there is plugins and if they have providers. Separation of concerns, even if they ahve the same message.
5. Wrote tests for this - which required me to add some configurations to the mockup mysql provider.Please test and do MR.
- 🇦🇲Armenia murz Yerevan, Armenia
Faced the same issue, applied the patch from the MR, and it fixed the problem; with it, the list of subitems appeared well, instead of the empty list.
-
marcus_johansson →
committed bdc8777f on 1.2.x authored by
riyas_nr →
Issue #3535798: AI API Explorer is found blank
-
marcus_johansson →
committed bdc8777f on 1.2.x authored by
riyas_nr →