Closed Bug 1053231 Opened 10 years ago Closed 6 years ago

The /jobs/ list API shouldn't return job descriptions

Categories

(Tree Management :: Treeherder: API, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1125251

People

(Reporter: emorley, Unassigned)

Details

(Keywords: perf)

eg:
https://treeherder.mozilla.org/api/project/mozilla-central/resultset/1/get_resultset_jobs/?format=json&result_set_ids=338

				"B",
				"unknown",
				"fill me",
				null,
				"linux",
				0,
				"x86",
				7,
				"/api/project/mozilla-central/jobs/239186/",
				"32faaecac742100f7753f0c1d0aa0add01b4046b"]],
				"name": "unknown"

		{
			"name": "b2g-osx",
			"groups": [{
				"symbol": "?",
				"jobs": [[1407938572,
				"unknown",
				"?",
				"unknown",
				"debug",
				"Build from sources",
				338,
				"unknown",
				239181,
				"x86_64",
				0,
				"b2g-osx",
				"069c56107de00ee9a88d5518a8ebd9d59281e7dd",
				"Build",
				"b2g-osx",
				"running",
				3922,
				0,
				"mac",
				"unknown",
				1,
				"B",
				"unknown",
				"fill me",
				null,
				"mac",
				0,
				"x86_64",
				13,
				"/api/project/mozilla-central/jobs/239181/",
				"32faaecac742100f7753f0c1d0aa0add01b4046b"]],
				"name": "unknown"
			}],
			"option": "debug"
		},

The "fill me" values are as far as I can tell, the descriptions. These should be fetched once from the API and combined with the response from the endpoint URL above (given the above endpoint is hit multiple times for each pageload, given 10+ results sets per page).
This will become particularly relevant once bug 1051508 adds longer descriptions to the job types table.
Priority: P2 → P3
Component: Treeherder → Treeherder: API
Priority: P3 → P4
Priority: P4 → P3
Summary: treeherder-service /get_resultset_jobs/ endpoint shouldn't return job descriptions → The /jobs/ list API shouldn't return job descriptions
I would like to work on this bug. I have setup codebase in system also. Could you assign this to me?
Sure! Sorry for the delay :-)
Assignee: nobody → fossbalaji
Status: NEW → ASSIGNED
That above link doesn't give any response.  results are empty . Need to know both descriptions should be ignored? _property_query_mapping  --> contains "job_type__description" and also "job_group__description" .  should i exclude descriptions from this list of tuples in "_get_job_list_response" alone before formatting reponse?
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → DUPLICATE
Assignee: fossbalaji → nobody
You need to log in before you can comment on or make changes to this bug.