Uh oh!
There was an error while loading. Please reload this page.
Use Related metadata for autocomplete API discovery - #214
Conversation
✅ Build complete for PR #214. 📦 Binary artifacts are available in the workflow run (expires on June 19, 2026).
|
dheeraj12347
commented
Jun 19, 2026
Hi @Pearl1594 and @soreana, I've updated PR #214 based on my planned Phase 1 deliverable. The implementation now uses Since opening the PR, I've also added unit tests covering:
The PR has been marked ready for review. Whenever you have time, I would appreciate your feedback on the approach and implementation. Thank you! |
borisstoyanov
commented
Aug 6, 2026
@dheeraj12347 thanks for this feature, can you share your testing please. I'm including it in the milestone |
Summary
Fixesapache/cloudstack#10442
CloudMonkey already parses and stores the Related metadata exposed by CloudStack APIs in
APIArg.Related, butfindAutocompleteAPI()did not use this information during autocomplete API discovery.This change updates autocomplete API selection to prefer authoritative Related metadata before falling back to the existing heuristic-based lookup logic. This improves reliability for entity-reference parameter completion while preserving backward compatibility with the current behavior.
Changes
APIArg.Relatedwhen selecting the autocomplete lookup API.list*API if no noun match is found.Validation
Verified runtime behavior for common entity-reference parameters:
zoneid→listZonesdomainid→listDomainsnetworkid→listNetworksAdded unit tests covering:
Build and validation:
Test results: