Bug 771411
| Summary: | Refactor distributions route | ||
|---|---|---|---|
| Product: | Red Hat Satellite | Reporter: | Lukas Zapletal <lzap> |
| Component: | WebUI | Assignee: | Brad Buckingham <bbuckingham> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | Garik Khachikyan <gkhachik> |
| Severity: | high | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 6.0.1 | CC: | bbuckingham, gkhachik, mkoci, mmccune, paji |
| Target Milestone: | Unspecified | Keywords: | 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 | ||
commit - f4358724cf4400f9812396f23255076b97792fb3 mass ON_QA move getting rid of 6.0.0 version since that doesn't exist |
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.