Project

General

Profile

Actions

Bug #8743

closed

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

Added by Partha Aji over 9 years ago. Updated about 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 #1

Updated by The Foreman Bot over 9 years ago

  • Status changed from New to Ready For Testing
  • Target version set to 62
  • Pull request https://github.com/Katello/katello/pull/4880 added
  • Pull request deleted ()
Actions #2

Updated by Eric Helms over 9 years ago

  • Translation missing: en.field_release set to 14
  • Triaged changed from No to Yes
Actions #3

Updated by Eric Helms over 9 years ago

  • Target version changed from 62 to 63
Actions #4

Updated by Partha Aji over 9 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions

Also available in: Atom PDF