Loading
Expose AI catalog skills over GraphQL
What does this MR do and why?
Makes AI catalog skills fetchable, filterable, and readable over GraphQL
The majority of this MR is the graphQL reference and introspection result. This is just the way graphQL be. I can't make this MR any smaller.
This also fixes an edge case that made the ai_catalog_skills feature flag a one-way-door.
References
- Issue: #630880
- Epic: gitlab-org#22961
- Proof of concept: !257276 (closed)
- Staleness follow-up: #630881
Screenshots or screen recordings
Unnecessary screenshare https://youtu.be/7AovpksCmco
How to set up and validate locally
- Create a skill catalog item in the Rails console:
FactoryBot.create(:ai_catalog_skill, :public, project: Project.first) - Open
/-/graphql-explorer. - Run a query:
{ aiCatalogItems { nodes { id itemType ... on AiCatalogSkill { path directory gitRef blobSha } } } } - Note that before this change the same query returns "Unknown catalog item type: skill".
MR acceptance checklist
Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.
Edited by Sam Beckham
