jfrog-client-go icon indicating copy to clipboard operation
jfrog-client-go copied to clipboard

GetAllRepositoriesFiltered(params services.RepositoriesFilterParams) should honor the API

Open Raghed22 opened this issue 1 year ago • 1 comments

We are able to search for all Repositories in the project through the API but not using the client

Consider handling the project parameter here: type RepositoriesFilterParams struct { RepoType string PackageType string } The code needs to reflect the API: https://jfrog.com/help/r/jfrog-rest-apis/get-repositories

Br, Raghed Ali

Raghed22 avatar Aug 18 '23 10:08 Raghed22

Thanks for raising this @Raghed22. We'd welcome a pull request that adds this.

eyalbe4 avatar Aug 18 '23 10:08 eyalbe4

Hey @Raghed22, I have just opened a PR that addresses your needs. I will update you on this thread once it is released.

Or-Geva avatar Aug 20 '24 15:08 Or-Geva

@Raghed22
JFrog Go client version 1.46.0 has been released, now with support for projects in the GetAllRepositoriesFiltered method. Usage:

params := services.NewRepositoriesFilterParams()
params.ProjectKey = "project-key"
err := servicesManager.GetAllRepositoriesFiltered(params)

See also https://github.com/jfrog/jfrog-client-go?tab=readme-ov-file#getting-all-repositories.

We would appreciate your feedback on this update.

yahavi avatar Aug 30 '24 06:08 yahavi