[graphql] Ensure schema can return the data that the Job Details panel needs to make
Categories
(Tree Management :: Treeherder: API, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: camd, Unassigned)
References
(Blocks 1 open bug)
Details
(Keywords: good-first-bug, Whiteboard: [lang=py])
Reporter | ||
Updated•8 years ago
|
Updated•8 years ago
|
Reporter | ||
Comment 2•8 years ago
|
||
Comment 4•8 years ago
|
||
Updated•8 years ago
|
Reporter | ||
Comment 5•8 years ago
|
||
![]() |
||
Updated•8 years ago
|
Reporter | ||
Updated•8 years ago
|
Comment 6•7 years ago
|
||
Comment 7•7 years ago
|
||
Comment 8•7 years ago
|
||
Reporter | ||
Comment 9•7 years ago
|
||
Comment 10•7 years ago
|
||
Comment 11•7 years ago
|
||
Comment 12•7 years ago
|
||
Comment 13•6 years ago
|
||
I would love to take this up if this is still open.
Reporter | ||
Comment 14•6 years ago
|
||
Shubhank-- We are actually going to move away from GraphQL, I believe. But I wonder if we could refactor our REST APIs to make them a little more streamlined for getting this data. We could even create a specialized API in /jobdetails/
that gets us everything we want all at one time without having to make all these calls.
I think I'd rather take that approach. We could either create a new @action(detail=True)
endpoint here: https://github.com/mozilla/treeherder/blob/aff331f3d31f8117284f117fe80ab70f85978f77/treeherder/webapp/api/jobs.py#L480
Or we could create a new class in the /api/
folder called SelectedJob
and have a ViewSet
in there. Why don't you add it to the JobDetailViewSet
initially, and if we want to move it to a new file later, we can.
The /ui/
portion of this work to use the new API is here:
https://github.com/mozilla/treeherder/blob/e3e65b83a2c6a03bc2e661742979d3421713acc1/ui/job-view/details/DetailsPanel.jsx#L162
Looking at this, it is not really a "good first bug" per se. This will be pretty involved. But you have fixed many bugs for us already, so it may still feel like something you'd like to tackle.
Please let me know if this looks a little too big at this time and I will un-assign you. :)
![]() |
||
Updated•2 years ago
|
Comment 15•2 years ago
|
||
Hi, Can I be able to work on this bug? I am a new contributor and excited to work my first contribution
Description
•