Closed
Bug 1441938
Opened 7 years ago
Closed 3 years ago
The project_bound_router is not needed and cumbersome in some cases
Categories
(Tree Management :: Treeherder: API, enhancement, P3)
Tree Management
Treeherder: API
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: camd, Unassigned)
Details
Attachments
(1 file)
In the case of fetching a single job by ``id`` you shouldn't need to provide the project (repoName) from the UI, since the ids are unique across all repos. We should explore removing this router and passing in the ``repo`` as a parameter where needed.
| Reporter | ||
Updated•7 years ago
|
Priority: -- → P3
| Reporter | ||
Comment 1•6 years ago
|
||
We could do this in stages. Start with the two main endpoints Job and Push:
- Make the existing Viewsets not use the
projectparam, if they don't need it. Or possibly convert ones like Push.list to take it as a query string param. - Make the UI pass 'default' or something as the project param for those apis.
- Make a parallel version of the Viewset on the default_router in DRF.
The one sticking point is any API customers who rely on the old format. Maybe it's possible to have a router that then calls the default router without that project API path element, or converts it to a query_string param where needed.
Comment 2•6 years ago
|
||
| Reporter | ||
Updated•6 years ago
|
Assignee: nobody → cdawson
| Reporter | ||
Updated•6 years ago
|
Priority: P3 → P2
| Reporter | ||
Updated•6 years ago
|
Priority: P2 → P3
| Reporter | ||
Comment 3•5 years ago
|
||
De-prioritizing Treeherder work in new reorg. So removing myself.
Assignee: cdawson → nobody
Comment 4•3 years ago
|
||
Not a priority.
Status: NEW → RESOLVED
Closed: 3 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•