Bug 1127940 - Remove the now unused get_bug_job_map_detail()

BugzillaBugRequest was the only consumer, so we can now remove it.
This commit is contained in:
Ed Morley 2015-01-30 18:48:00 +00:00
Родитель 4437066892
Коммит e61738b5a9
3 изменённых файлов: 0 добавлений и 48 удалений

Просмотреть файл

@ -482,32 +482,6 @@ def test_ingesting_skip_existing(jm, sample_data, initial_data, refdata,
assert len(jl) == 2
def test_bug_job_map_detail(jm, eleven_jobs_processed):
"""
test retrieving a single bug_job_map row
"""
job_id = jm.get_job_list(0, 1)[0]["id"]
bug_id = 123456
submit_timestamp = int(time.time())
who = "user@mozilla.com"
try:
jm.insert_bug_job_map(job_id, bug_id, "manual", submit_timestamp, who)
actual = jm.get_bug_job_map_detail(job_id, bug_id)
finally:
jm.disconnect()
expected = {
"job_id": job_id,
"bug_id": bug_id,
"type": "manual",
"submit_timestamp": submit_timestamp,
"who": who}
assert actual == expected
def test_ingest_job_with_updated_job_group(jm, refdata, sample_data, initial_data,
mock_log_parser, result_set_stored):
"""

Просмотреть файл

@ -881,22 +881,6 @@ into chunks of chunk_size size. Returns the number of result sets deleted"""
)
return data
def get_bug_job_map_detail(self, job_id, bug_id):
"""
Returns a single instance of bug_job_map.
Raises a ObjectNotFoundException when no object is found
"""
data = self.jobs_execute(
proc="jobs.selects.get_bug_job_map_detail",
placeholders=[job_id, bug_id],
debug_show=self.DEBUG,
)
if not data:
raise ObjectNotFoundException("bug_jib_map",
job_id=job_id, bug_id=bug_id)
return data[0]
def get_result_set_ids(self, revision_hashes, where_in_list):
"""Return the a dictionary of revision_hash to id mappings given
a list of revision_hashes and a where_in_list.

Просмотреть файл

@ -886,12 +886,6 @@
REP0",
"host_type": "read_host"
},
"get_bug_job_map_detail":{
"sql":"SELECT `job_id`, `bug_id`, `type`, `submit_timestamp`, `who`
FROM `bug_job_map`
WHERE job_id = ? and bug_id = ?",
"host_type": "read_host"
},
"get_resultset_status":{
"sql":"SELECT
id,