Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 771411

Summary: Refactor distributions route
Product: Red Hat Satellite Reporter: Lukas Zapletal <lzap>
Component: WebUIAssignee: Brad Buckingham <bbuckingham>
Status: CLOSED CURRENTRELEASE QA Contact: Garik Khachikyan <gkhachik>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.0.1CC: bbuckingham, gkhachik, mkoci, mmccune, paji
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 18:17:01 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

Description Lukas Zapletal 2012-01-03 16:37:08 UTC
Hello,

please change the route

/distributions/:id

to include repository id

/repositories/:repository_id/distributions/:id

Permission check has been prepared and after the change is commited it can be enabled:

ebc2e52a3a5da76d159fd9e41e8d7cfbfbbb62c2

Also unit test is ready - just to be uncommented.

In short:

1) Rename the route
2) Change it in the UI/JavaScript code
3) Add new before filter find_product that will fetch @product for given repo id
4) Uncomment the following line:

  #readable = lambda{ @product.readable? }
  readable = lambda{ true } # delete this one

5) Uncomment unit test

Permissions are implemented now.

Comment 1 Brad Buckingham 2012-01-18 21:38:04 UTC
commit - f4358724cf4400f9812396f23255076b97792fb3

Comment 2 Mike McCune 2012-01-26 19:08:08 UTC
mass ON_QA move

Comment 7 Mike McCune 2013-08-16 18:03:28 UTC
getting rid of 6.0.0 version since that doesn't exist