Closed Bug 1330649 Opened 9 years ago Closed 6 years ago

SETA - Rename `RunnableJobsClient`

Categories

(Tree Management Graveyard :: Treeherder: SETA, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: armenzg, Assigned: rwood)

References

Details

I'm currently moving a couple of functions as part of another PR but I would like to port the left over logic in this bug. Specifically the caching logic is the only left: https://github.com/mozilla/treeherder/blob/master/treeherder/seta/runnable_jobs.py#L15-L38 This will require stop using RunnableJobsClient in all the various places: https://github.com/mozilla/treeherder/search?utf8=%E2%9C%93&q=RunnableJobsClient
Component: Treeherder → Treeherder: SETA
I'm not sure if this is really necessary. I think it makes sense to have SETA use it's own RunnableJobsClient (wrapper for treeherder/etl/runnable_jobs) and keep it's own caching there just for SETA, instead of changing the treeherder runnable_jobs endpoint and potentially inadvertently causing issues for some other treeherder runnable jobs API consumer. :emorley, what do you think? If you agree, I'm going to close this bug.
Flags: needinfo?(emorley)
To me `RunnableJobsClient` is a bit confusing, since elsewhere in Treeherder we used "Client" to refer to things like the standalone Python Treeherder client that makes HTTP calls to an API, rather than a helper for interacting with the ORM.
Flags: needinfo?(emorley)
Good point, thanks - I'll (at least) improve the name.
Assignee: nobody → rwood
Status: NEW → ASSIGNED
Priority: -- → P3
Summary: SETA - Move treeherder.seta.runnable_jobs logic to treeherder.etl.runnable_jobs → SETA - Rename `RunnableJobsClient`

RunnableJobsClient is being removed here (in favour of calling list_runnable_jobs() directly):
https://github.com/mozilla/treeherder/pull/4590

Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → WONTFIX
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.