Right now you can get the job log urls for a particular job from this endpoint: https://treeherder.mozilla.org/api/project/mozilla-inbound/job-log-url/?job_id=26761648 It would be nice if you could specify multiple job ids and get their respective logs easily, like this: https://treeherder.mozilla.org/api/project/mozilla-inbound/job-log-url/?job_id=26761648&job_id=26761649 I'm pretty sure this should just be a straightforward modification to the endpoint to get it to accept a list of job_id parameters, then pass them to the jobs model: https://github.com/mozilla/treeherder/blob/e119616/treeherder/webapp/api/job_log_url.py#L29 You can see an existing example of getting a list of url parameters here: https://github.com/mozilla/treeherder/blob/e119616/treeherder/webapp/api/performance_data.py#L35 While implementing this, it would be nice to add a unit test to this file to make sure that the endpoint works as expected (right now we're just testing that you can write to it): https://github.com/mozilla/treeherder/blob/e119616/tests/webapp/api/test_job_log_url.py
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → DUPLICATE
Duplicate of bug: 1304557
You need to log in before you can comment on or make changes to this bug.