dheeraj12347 opened a new pull request, #214: URL: https://github.com/apache/cloudstack-cloudmonkey/pull/214
## Summary Fixes apache/cloudstack#10442 CloudMonkey already parses and stores the `related` metadata exposed by CloudStack APIs in `APIArg.Related`, but `findAutocompleteAPI()` did not use this information during autocomplete API discovery. This change updates autocomplete API selection to prefer `Related` metadata before falling back to the existing heuristic-based lookup. ## Changes - Use `APIArg.Related` when selecting the autocomplete lookup API. - Prefer Related APIs whose noun matches the expected resource noun. - Fall back to any valid Related list API if no noun match is found. - Preserve all existing heuristic-based lookup logic as a fallback. ## Validation Verified runtime behavior for common entity-reference parameters: - `zoneid` → `listZones` - `domainid` → `listDomains` - `networkid` → `listNetworks` Build and validation: ```bash go fmt ./... go test ./... go build -o bin/cmk . -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
