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

37 Коммитов

Автор SHA1 Сообщение Дата
Philipp Kewisch 7cf1013f09 Bug 1123814 - Get desktop notifications when pushes or jobs complete (#3373) 2018-03-29 09:55:31 -07:00
Dottori 5f68792a58 Bug1413156 - lodash to ES6: replace _.without _.values _.last usage (#3338) 2018-03-16 15:46:05 -07:00
Sebastian Hengst 76e8741f2f Bug 1444931 - Fix escaped characters in commit message tooltips (#3334) 2018-03-13 15:44:59 +00:00
Cameron Dawson b221b8ca1e Bug 1437818 - Enable ESLint rule react/no-array-index-key 2018-03-08 14:14:43 -08:00
Cameron Dawson 6e2242b2c5 Bug 1443667 - Fix 'tier' not yet assigned when getJobGroupInfo() creates map 2018-03-08 08:26:25 -08:00
Cameron Dawson d9026820c5
Bug 1443087 - Remove requirement of try or sheriff to cancel all jobs (#3308) 2018-03-07 10:06:30 -08:00
Cameron Dawson cffdb1b0f2
Bug 1442556 - Fix slowness on filtering (#3309)
I believe this was the main bug causing the slowdown.  It was setting state
in ``filterPlatform`` which is called once per platform when a filter change is
made.  But that ``setState`` was updating ALL the platforms for that push.

* Remove unnecessary clonejobs artifact
* Fix the regression with expand/collapse counts
* Very minor optimizations and cleanup
* Add some unit tests for groups
2018-03-07 08:38:44 -08:00
Cameron Dawson c403895caf
Bug 1442556 - Improve rendering speed in treeherder by removing refs (#3307)
These refs were not actually used, so can be removed.  It does appear to
improve rendering speed, especially when changin filtering.  I had noticed
that the JobGroup was re-rendering more times than it should, and this
change stops that.  I believe more work is to be done here, but this is one
step.

This also includes a couple other small tweaks that may help speed.
2018-03-06 10:31:05 -08:00
Cameron Dawson b8076190d3
Bug 1441700 - Consolidate job details pane (#3291)
* Move JobDetailsPane to details-panel folder
* Convert to 2 space indent
* Cleanup props with deconstruction
* Subsume some filters into jobdetailspane
* Subsume logic for job signature filtering
* Subsume logic for visibleFields and visibleTimeFields
* Only need latest classification, not whole array
* Ensure all helper functions are named
2018-03-03 10:04:19 -08:00
Ed Morley 3964dac1b6 Bug 1442485 - Fix/enable eslint 'react/jsx-first-prop-new-line'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-first-prop-new-line.md

Changes made via eslint's `--fix` feature.
2018-03-02 21:28:44 +00:00
Ed Morley f268d9e721 Bug 1442485 - Fix/enable eslint 'react/jsx-indent{,-props}'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent.md
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-indent-props.md

Changes made via eslint's `--fix` feature. I also included fixes to
the JS content within JSX files (by enabling the generic `indent`
rule locally when running `--fix`), to reduce the churn that will be
seen in these files when we fix JS indentation for the whole codebase.
2018-03-02 21:28:44 +00:00
Ed Morley d0fd089073 Bug 1442485 - Fix/enable eslint 'react/prefer-stateless-function'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/prefer-stateless-function.md
2018-03-02 21:28:44 +00:00
Ed Morley aca725e534 Bug 1442485 - Don't use arrow functions for stateless components
Since otherwise it's an anonymous function where the name has to be
inferred, which doesn't work in all cases:
https://github.com/airbnb/javascript/blob/master/react/README.md#class-vs-reactcreateclass-vs-stateless

Unfortunately there is not yet an ESLint rule to enforce this:
https://github.com/yannickcr/eslint-plugin-react/issues/690
2018-03-02 21:28:44 +00:00
Cameron Dawson 2240fbd3a9
Bug 1441912 - Replace thUrl angular provider with urlHelper lib (#3285)
* Move getBugUrl, getSlaveHealthUrl, getInspectTaskUrl, getWorkerExplorerUrl,
  getLogViewerUrl, getRootUrl, getProjectUrl and getProjectJobUrl to urlHelper
* Move getJobsUrl to only place its used
* Replace thServiceDomain with SERVICE_DOMAIN
* remove thUrl provider
2018-03-01 16:00:28 -08:00
Cameron Dawson 17b3722aa9
Bug 1442210 - Fix Trigger missing jobs (#3289) 2018-03-01 09:43:37 -08:00
Ed Morley 893baca118
Bug 1441851 - Fix thNotify calls using old-style sticky argument (#3288)
The third argument was changed from a bool to an options object in
bug 1402062 - so these instances would fail with:
`Error: Must pass an object as last argument to thNotify.send!`
2018-03-01 17:03:20 +00:00
Ed Morley 3e2e22e132 Bug 1441617 - Switch the treeherder module to ES6 exports
This is the shared module that is a dependency of the `treeherder.app`,
`perf` and `logviewer` modules.
2018-03-01 01:42:49 +00:00
Cameron Dawson 706de914ee Bug 1440698 - Fix push complete calculation 2018-02-27 11:40:00 -08:00
Ed Morley bd870cf8ce
Bug 1441493 - Use rel="noopener" for all target != null links (#3275)
This helps prevent:
https://www.owasp.org/index.php/Reverse_Tabnabbing

We're not also using `noreferrer`, since most browsers now support
`noopener` (https://caniuse.com/#search=noopener) and the link targets
are all Mozilla properties where the referrer may be useful.

The auth.js `window.open()` has not been changed, since the login
callback makes use of `window.opener`.
2018-02-27 19:17:42 +00:00
Cameron Dawson 9e56a3525b Bug 1441215 - Fix unwanted reload of detail panel 2018-02-26 14:15:14 -08:00
Cameron Dawson 5983968392 Bug 1440862 - Fix wording waiting for new push 2018-02-26 13:53:39 -08:00
Cameron Dawson 597c79a224 Bug 1434677 - Cleanup a couple minor PushList code issues 2018-02-26 13:53:14 -08:00
Cameron Dawson 6a6bb59660 Bug 1440473 - Fix push link filters live updating 2018-02-23 18:09:45 -08:00
Cameron Dawson c682a013d3 Bug 1440473 - Fix push "in progress" jobs counter live updating 2018-02-23 18:09:45 -08:00
Cameron Dawson 18467a18d5 Bug 1440057 - Rename resultset wording to push wording 2018-02-23 17:18:56 -08:00
Cameron Dawson dca293d7ec Bug 1440057 - Quiet a benign setState warning 2018-02-23 17:18:56 -08:00
Cameron Dawson 324a37bf10 Bug 1440057 - Remove reference to repoName in ThResultSetStore functions 2018-02-23 17:18:56 -08:00
Sebastian Hengst dec0e3caa1 Bug 1440759 - Preserve active filters in links from push timestamp. r?camd (#3261) 2018-02-23 12:54:57 -08:00
Sebastian Hengst 382d123747 Bug 1440645 - Fix over-escaped bugherder links in push menu (#3256)
Prevents broken links like:
`https://bugherder.mozilla.org/?cset=c4fe0ca380a6309d37e9df5c0692e64a455e76ce&tree=mozilla-beta`
2018-02-23 14:25:09 +00:00
Cameron Dawson 15d21704b2
Bug 1440516 - Fix Push action menu links (#3255)
The links for set top and bottom of range weren't working
as links and the BuildAPI link was totally broken.
2018-02-22 18:11:42 -08:00
Cameron Dawson 1c9b2c0e24 Bug 1438555 -Fix n/p after classifying a failure
This also fixes Bug 1438315 - Pinned jobs take a long time
to show the annotation. These two bugs were related so it
made sense to fix them at the same time.
2018-02-21 16:05:11 -08:00
Cameron Dawson 1aad641fef
Bug 1438718 - Fix Ctrl+click doesn't unpin already selected jobs (#3248) 2018-02-21 14:17:41 -08:00
Cameron Dawson a11e49281b
Bug 1438492 - Fix tooltip for commit messages and authors (#3249) 2018-02-21 14:16:55 -08:00
Cameron Dawson 2cdb3ec15f
Add new locationHelper for getting url params (#3247) 2018-02-20 16:47:53 -08:00
Cameron Dawson f984acf9a8
Bug 1434677 - Convert rendering list of pushes from angular to ReactJS (#3206)
This adds some new components and removes the AngularJS ng-repeat for
pushes.  In the course of this work, some of the AngularJS providers were
converted to helper functions.

In a couple cases, I had to add new code to the AngularJS areas so that it
would continue to interact well between Angular and React.

Also:
* Rename some functions and CSS classes from resultset to push
* Add unlistening for events during unmount of components
2018-02-20 10:31:11 -08:00
Cameron Dawson 236612a34b Bug 1242905 - Fix honoring group_state url param on load
Fixes a bug found after deploy.
2018-02-14 16:24:52 -08:00
Cameron Dawson f40f3faae7 Bug 1242905 - Replace rendering of pushes and jobs with ReactJS
This replaces the logic that was in clonejobs.js that formerly
handled rendering the pushes, platforms and jobs and converts it to
ReactJS.  The ReactJS code is hosted as a directive in AngularJS
using ngReact reactDirective.

This also removes the feature where you can hide revisions because
it was believed to not be used and added unnecessary complications
to the code.

Co-authored-by: Casey Williams cwillia5@gmail.com
2018-02-13 16:19:14 -08:00