Closed Bug 1338103 Opened 9 years ago Closed 9 years ago

SETA: confusing methods/variables with same names

Categories

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

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: jmaher, Assigned: rwood)

Details

Attachments

(1 file)

while searching for ref_data_names, I ended up seeing method definitions and variable declarations- I would prefer to fix this at least in the seta specific code to not be confusing (or possibly leaking in errors). I am specifically concerned with these two files: https://github.com/mozilla/treeherder/blob/f6ac262dd07b8cac14c5fe38c1f3bd6c642e5af7/treeherder/etl/seta.py https://github.com/mozilla/treeherder/blob/f6ac262dd07b8cac14c5fe38c1f3bd6c642e5af7/treeherder/seta/job_priorities.py essentially we are collecting the ref_data_name value from runnable jobs and building a key/value mapping. so for the function, we should rename it to: build_ref_data_names_map() and for the internal variables both to the function and used elsewhere in job_priorities, possibly leave them alone?
Assignee: nobody → rwood
Status: NEW → ASSIGNED
Component: Treeherder → Treeherder: SETA
Attachment #8836077 - Flags: review?(jmaher)
Comment on attachment 8836077 [details] [review] [treeherder] rwood-moz:bug1338103 > mozilla:master that was easier than I thought
Attachment #8836077 - Flags: review?(jmaher) → review+
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Product: Tree Management → Tree Management Graveyard
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: