Project

General

Profile

Actions

Bug #8743

closed

repo index api call with content view and environment not returning correct repos

Added by Partha Aji almost 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
API
Target version:
Difficulty:
Triaged:
Yes
Fixed in Releases:
Found in Releases:

Description

Say you have a Dev environment with environment_id = 3 and content view with cv_id = 2

Take a query like

http://<fqdn>:3000/katello/api/repositories?organization_id=1&environment_id=3&content_view_id=2

In the present day it says " show all repos that were added to the content view id" and then says "filter this list further and only return repos allocated to environment 3" . Problem with this query is that all repositories the were added to the content view are library repos. So what we are getting is not "show me all the repos that belong this content view in Dev env" instead we are getting "show me all the repos that got to this content view in the library env and then filter that repo list to only show me ones in Dev env." This causes it to return blank list because they are in the library env and not dev :)

Basically we need to modify that call to say "if you passed both the content view id and environment id show me all repos in the version of the content view that exists in that environment"

Actions

Also available in: Atom PDF