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)

enhancement

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.
Priority: -- → P3

We could do this in stages. Start with the two main endpoints Job and Push:

  1. Make the existing Viewsets not use the project param, if they don't need it. Or possibly convert ones like Push.list to take it as a query string param.
  2. Make the UI pass 'default' or something as the project param for those apis.
  3. 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.

Assignee: nobody → cdawson
Priority: P3 → P2
Priority: P2 → P3

De-prioritizing Treeherder work in new reorg. So removing myself.

Assignee: cdawson → nobody

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.

Attachment

General

Created:
Updated:
Size: