treeherder/tests/autoclassify
George Hickman 63226ddc3c Replace BugJobMap.objects.create() with BugJobMap.create()
Whenever we create a BugJobMap with a User we want to update its Job's
best FailureClassification's Bug number with the one the BugJobMap was
created with.  This keeps the autoclassify data (FailureClassification)
in sync with BugJobMap.

However, doing this via an overridden `.save()` effectively hides the
functionality from anyone reading through the code.  Since the
`.update_autoclassification_bug()` method is only called from that one
place this moves all the functionality into the classmethod `.create()`.
This makes it explicit that creating a BugJobMap involves more than a
simple DB row creation.
2018-09-06 16:41:48 +01:00
..
__init__.py Bug 1204942 - First cut at autoclassify / intermittent orange detection. 2015-09-21 22:47:19 +01:00
test_autoclassify.py convert matchers to functions 2018-06-04 07:32:23 +01:00
test_classify_failures.py Replace BugJobMap.objects.create() with BugJobMap.create() 2018-09-06 16:41:48 +01:00
test_matchers.py convert matchers to functions 2018-06-04 07:32:23 +01:00
test_utils.py Pull score_matches and time_boxed into a separate module 2018-06-04 07:32:23 +01:00
utils.py remove registration of Matcher classes in the database 2018-06-01 12:12:07 +01:00