Bug #8743
closedrepo index api call with content view and environment not returning correct repos
Description
Say you have a Dev environment with environment_id = 3 and content view with cv_id = 2
Take a query like
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"