ansible-galaxy collection search#77064
Conversation
s-hertel
left a comment
There was a problem hiding this comment.
This is a nice addition!
| self.add_install_options(collection_parser, parents=[common, force, cache_options]) | ||
| self.add_list_options(collection_parser, parents=[common, collections_path]) | ||
| self.add_verify_options(collection_parser, parents=[common, collections_path]) | ||
| self.add_search_options(collection_parser, parents=[common]) |
There was a problem hiding this comment.
All the options show up with ansible-galaxy collection search --help right now but filtering by author (github username)/platform doesn't work for collections I think. add_search_options could add a --namespace option + not add --author/--platform for collections.
There was a problem hiding this comment.
need to find the name of the parameters that work before i can add them, right now i just found one that works , mostly by accident
| # https://galaxy.ansible.com/search?keywords=<term>&order_by=-relevance&deprecated=false&type=collection&page=1 | ||
| # api_path = self.available_api_versions.get('v3', self.available_api_versions.get('v2')) | ||
| # url_paths = [self.api_server, api_path, 'collections', '/?search=%s' % term] | ||
| url_paths = ['https://galaxy.ansible.com', 'api', 'internal', 'ui', 'search', '/?type=collection&deprecated=false&keywords=%s' % term] |
There was a problem hiding this comment.
Could use self.api_server instead:
| url_paths = ['https://galaxy.ansible.com', 'api', 'internal', 'ui', 'search', '/?type=collection&deprecated=false&keywords=%s' % term] | |
| url_paths = [self.api_server, 'internal', 'ui', 'search', '/?type=collection&deprecated=false&keywords=%s' % term] |
Unless it's hardcoded because it doesn't work with v3?
There was a problem hiding this comment.
isn't v2 community galaxy collections? v1 is roles
But noticed the conversation about internal/ui not being a supported, so it doesn't really matter.
There was a problem hiding this comment.
for roles we still use the v1, i tried equivalent v2 and v3 but could not find, will resolve with help of galaxy team
|
The test |
|
The test |
|
The test |
ISSUE TYPE
COMPONENT NAME
ansible-galaxy