Граф коммитов

8726 Коммитов

Автор SHA1 Сообщение Дата
George Hickman 74f6215b1a Use IntegrityError to avoid an extra query when creating BugJobMaps
The return value from checking for an existing BugJobMap isn't used
outside of the conditional to return a Response.  So remove that query
in favour of catching the IntegrityError when a BugJobMap already exists
and return appropriately.
2018-09-06 16:41:48 +01:00
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
George Hickman 717c6898f7 Give get_filtered_error_lines a more descriptive name 2018-09-06 16:41:26 +01:00
George Hickman 5432a41e5c Document more of the classification flow 2018-09-06 16:41:26 +01:00
pyup.io bot 15f63acba2 Update django-debug-toolbar from 1.9.1 to 1.10 (#3988) 2018-09-06 16:34:06 +01:00
Cameron Dawson 76754d0439 Cleanup Push dead code 2018-09-06 08:25:35 -07:00
Cameron Dawson 0d535214c8 Tidy up job-view folder 2018-09-06 08:25:35 -07:00
Renovate Bot 2ab92d888c Update dependency enzyme to v3.6.0 2018-09-06 15:38:34 +01:00
pyup.io bot 2647b998aa Update pytest to 3.8.0 (#3989)
* Update pytest from 3.7.4 to 3.8.0

* Fix django.core.urlresolvers deprecation warnings

The new version of pytest now correctly catches warnings that occur
within tests/fixtures, which has unearthed new Deprecation warnings
that need fixing to prevent test failures.

Prevents:
```
RemovedInDjango20Warning: Importing from django.core.urlresolvers is
deprecated in favor of django.urls.
```
2018-09-06 15:37:17 +01:00
pyup.io bot 1f7a27089c Update sphinx from 1.7.8 to 1.7.9 (#3984) 2018-09-06 15:03:59 +01:00
Ed Morley a91367ef95
Update package hash for orderedmultidict (#3990)
Since they've just updated a wheel which takes priority over the sdist:
https://pypi.org/project/orderedmultidict/#files

Fixes:
https://travis-ci.org/mozilla/treeherder/jobs/424922278#L696
2018-09-06 14:42:48 +01:00
pyup.io bot f5cc9c1fbf Update graphene-django from 2.1.0 to 2.2.0 (#3986) 2018-09-06 14:00:10 +01:00
Renovate Bot 91500ef378 Update dependency enzyme-adapter-react-16 to v1.4.0 2018-09-05 09:53:10 +01:00
renovate[bot] 4ce362a425 Update dependency react-day-picker to v7.2.2 (#3982) 2018-09-04 16:53:54 -07:00
renovate[bot] c4c6d1476a Update dependency react-tabs to v2.3.0 (#3974) 2018-09-04 12:57:37 -07:00
Cameron Dawson 5406ebb45c
Bug 1450033 - Convert Job Filtering component to ReactJS (#3971) 2018-09-04 12:25:42 -07:00
pyup.io bot 27f329e4d5 Update python-jose to 3.0.1 (#3972)
And adjust sub-dependencies for changes in 3.x
2018-09-04 12:56:43 +01:00
renovate[bot] 7c394515f8 Lock file maintenance (#3977) 2018-09-04 00:08:51 +01:00
pyup.io bot 4327342c0d Update attrs from 18.1.0 to 18.2.0 (#3976) 2018-09-02 22:02:59 +01:00
Renovate Bot 907c199c39 Update dependency enzyme-adapter-react-16 to v1.3.1 2018-09-02 22:02:00 +01:00
Cameron Dawson 032fe0a133
Add generic ErrorBoundary (#3968) 2018-08-31 10:53:45 -07:00
Cameron Dawson f87f841e51
Bug 1473287 - Fix when Desktop notifications not supported (#3960) 2018-08-30 17:01:24 -07:00
pyup.io bot 6c24ff9f94 Update pytest from 3.7.3 to 3.7.4 (#3970) 2018-08-29 22:33:29 +01:00
Sarah Clements 934bad9187
Bug 1486660 - IFV UI error-handling additions (#3963)
Add spinner to ease transitions, add error boundaries,
add query param validation prior to api requests
2018-08-28 17:10:28 -07:00
Sarah Clements d1222eebb5
Change message in FailuresQueryParamsSerializer (#3967)
clarify error message in validate_bug since a bug can exist in bugzilla
but not exist in our bugscache if its not an intermittent failure
2018-08-28 16:22:39 -07:00
Cameron Dawson d8fc1c8648
Bug 1486176 - Fix app not showing on Treestatus error (#3966) 2018-08-28 15:58:53 -07:00
ionutgoldan a0c1b607de Bug 1468172 - Introduce nudge functionality for perf alerts (#3671) 2018-08-28 22:27:15 +01:00
pyup.io bot 0332b61b5c Update sphinx from 1.7.7 to 1.7.8 (#3965) 2018-08-28 18:16:36 +01:00
George Hickman 0c84435659 Convert the Pulse Job configuration into a list of strings 2018-08-28 14:01:49 +01:00
George Hickman 703c1dde62 Abstract pulse message reading into a configurable function
Since testing Django management commands involves running them and
checking the log output this provides us with a way to test message
reading functionality while also reducing those scripts down to a simple
configuration.
2018-08-28 14:01:49 +01:00
George Hickman 6faff4fcc9 Allow creation of Pulse Exchanges and return bound Exchange objects 2018-08-28 14:01:49 +01:00
George Hickman 3e92d05eef Make it explicit we're mirroring the Pulse connection for tests 2018-08-28 14:01:49 +01:00
George Hickman e451c2821e Reduce configuration needed to build a Consumer instance
Since we already have subclasses for the two types we can store their
queue suffixes there.
2018-08-28 14:01:49 +01:00
pyup.io bot f7bc1f751a Update py from 1.5.4 to 1.6.0 (#3962) 2018-08-28 13:45:08 +01:00
pyup.io bot 6d0e68a74e Update django-extensions from 2.1.1 to 2.1.2 (#3961) 2018-08-28 13:44:48 +01:00
Sarah Clements 7eed4ffa82
Bug 1460999 - improve error handling for IFV (#3911)
refactor intermittent failure endpoints and add query param serializer
to provide query param validation. Add tree and bug_id validation in
view. Refactor redux fetch actions to catch all errors. Add error
message component using bootstrap alerts.
2018-08-27 17:34:57 -07:00
Cameron Dawson 541c06c0a4 Bug 1486148 - Convert ClassificationTypes model to ReactJS 2018-08-27 11:54:39 -07:00
Dustin J. Mitchell a6411c3538
Use $id instead of id (#3949)
This schema is a version-6 schema, which uses $id instead of id.
2018-08-27 13:06:07 -04:00
Cameron Dawson 3af1db6b2c Bug 1485090 - Convert ResultSet Model to ReactJS 2018-08-27 09:01:14 -07:00
Cameron Dawson d8c8954866 Bug 1485090 - Improve error handling in JobModel.getList 2018-08-27 09:01:14 -07:00
Cameron Dawson be3b8c6a6c Bug 1485090 - Cleanup props for default user object prior to load 2018-08-27 09:01:14 -07:00
pyup.io bot 97a239c0f5 Update django-extensions from 2.1.0 to 2.1.1 (#3958) 2018-08-26 21:36:07 +01:00
pyup.io bot aeaf42dac8 Update typing from 3.6.4 to 3.6.6 (#3956) 2018-08-26 21:24:38 +01:00
pyup.io bot e0eab0f10a Update pytest from 3.7.2 to 3.7.3 (#3957) 2018-08-26 21:23:15 +01:00
pyup.io bot d7bdfb2d5f Update atomicwrites from 1.1.5 to 1.2.0 (#3953) 2018-08-26 11:42:25 +01:00
Renovate Bot 774c4e796e Update dependency enzyme-adapter-react-16 to v1.3.0 2018-08-26 11:38:25 +01:00
Renovate Bot 3841813b26 Update dependency json-e to v2.7.0 2018-08-26 11:37:39 +01:00
Renovate Bot c7a168c545 Update dependency react-highlight-words to v0.14.0 2018-08-26 11:20:27 +01:00
Renovate Bot 63f81774a7 Update dependency enzyme to v3.5.0 2018-08-26 11:14:02 +01:00
George Hickman 4825058830 Bug 1483231 - Remove the PULSE_EXCHANGE_NAMESPACE configuration option 2018-08-24 14:46:31 +01:00