Bug 1475257

Summary: New repository button is missing
Product: Red Hat Satellite Reporter: Alexander Braverman <abraverm>
Component: RepositoriesAssignee: satellite6-bugs <satellite6-bugs>
Status: CLOSED NOTABUG QA Contact: Katello QA List <katello-qa-list>
Severity: high Docs Contact:
Priority: unspecified    
Version: 6.2.9CC: abraverm, bbuckingham, bkearney, dron, eedri, ehelms, ykaul
Target Milestone: UnspecifiedKeywords: Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2018-04-03 10:39:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alexander Braverman 2017-07-26 10:08:13 UTC
Description of problem:
Non-admin users with permission to 'edit_products' in their organization can't see 'create repository' in some products. But they can create a repo by directly browsing to 'https://satellite.redhat.com/products//repositories/new'.

ehelms: "if a repo is in a content view, you cannot delete the product, we seem to be translating that into you cannot 'edit' the product which in turn means you can't create new repositories"


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Create content view and add a repo from product X, publish it
2. As non-admin user, go to the product X repositories

Actual results:
No 'create repository' button

Expected results:
'create repository' button

Additional info:

Comment 2 Brad Buckingham 2017-10-06 14:35:39 UTC
With Satellite 6.2.12, it is possible to create a new repository as a non-admin user with the permissions below.  Does this address the issue?

Organization, view_organizations
Product and Repositories, view_products, create_products, edit_products

Comment 3 Alexander Braverman 2017-10-15 08:56:58 UTC
Product and Repositories permission make sense but how is "view_organizations" related to product management?

Comment 4 Brad Buckingham 2018-03-19 19:49:09 UTC
Alexander,

Apologies, I missed comment 3.  Feel free to needinfo me in the future.

Products and repositories are scoped to organization; therefore, the view_permission is currently required.  In the near-term, I do not see that changing.

Based on that, any objection to closing this bugzilla?

Comment 8 Brad Buckingham 2018-04-03 10:39:16 UTC
Thanks Alexander for the input.

For now, we are going to close this bugzilla as 'notabug' based upon comment 2; however, the following bugzillas should help to improve on the user experience when available:

- bug 1455128 - [RFE]: Predefined role for managing products and repositories
- bug 1255699 - [RFE] add help text to each permission