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

148 Коммитов

Автор SHA1 Сообщение Дата
renovate[bot] 53870092f9 Update dependency react-day-picker to v7.1.4 (#3340) 2018-03-15 11:56:32 +00:00
renovate[bot] 830f1cdfe3 Update dependency popper.js to v1.14.1 (#3342) 2018-03-15 11:40:43 +00:00
renovate[bot] 4ae2d7609d Update dependency popper.js to v1.14.0 (#3336) 2018-03-13 16:05:42 +00:00
Sarah Clements 30df0aae6c Bug 1367362 - Add an intermittent failures view (#3296)
Adds a new view to display intermittent test failure occurrences,
to replace the functionality currently provided by the legacy
OrangeFactor tool.

Includes the new API endpoints originally reviewed in #3271.
2018-03-13 13:52:17 +00:00
Ed Morley d5e3436e45
Bug 1444644 - Update Bootstrap from v4.0.0-beta.2 to v4.0.0 (#3327)
Notably:
* the `popper.js` `DefinePlugin` entry is no longer required
* the JS/CSS imports have been adjusted to match the install docs:
  https://getbootstrap.com/docs/4.0/getting-started/webpack/
  ...which shaves 23KB off the bundle size of most pages.

Release announcements:
https://blog.getbootstrap.com/2017/12/28/bootstrap-4-beta-3/
https://blog.getbootstrap.com/2018/01/18/bootstrap-4/

Release notes:
https://github.com/twbs/bootstrap/releases/tag/v4.0.0-beta.3
https://github.com/twbs/bootstrap/releases/tag/v4.0.0

Changelog:
https://github.com/twbs/bootstrap/compare/v4.0.0-beta.3...v4.0.0
2018-03-12 17:52:01 +00:00
renovate[bot] 033dc7940b Update dependency auth0-js to v9.3.3 (#3326) 2018-03-10 19:23:04 +00:00
renovate[bot] 72e631368e Update dependency js-yaml to v3.11.0 (#3305) 2018-03-06 16:34:56 +00:00
renovate[bot] 448a568c4c Update dependency ajv to v6.2.1 (#3298) 2018-03-04 22:19:13 +00:00
renovate[bot] e57e6d1287 Update dependency auth0-js to v9.3.2 (#3295) 2018-03-03 23:31:05 +00:00
renovate[bot] 843fb44817 Update dependency auth0-js to v9.3.1 (#3292) 2018-03-02 12:26:08 +00:00
renovate[bot] b154705d47 Update dependency jasmine-core to v3.1.0 (#3284) 2018-03-01 11:29:54 +00:00
renovate[bot] 58d1879a16 Update dependency prop-types to v15.6.1 (#3277) 2018-02-28 00:08:18 +00:00
renovate[bot] 311523fe83 Update dependency ajv to v6.2.0 (#3274) 2018-02-27 10:34:20 +00:00
renovate[bot] 02841f7ef6 Update dependency auth0-js to v9.3.0 (#3263) 2018-02-24 00:04:42 +00:00
renovate[bot] a1bd6bb217 Update dependency reactstrap to v5.0.0-beta (#3183) 2018-02-19 09:19:02 +00:00
renovate[bot] 452771c031 Update dependency react-redux to v5.0.7 (#3238) 2018-02-18 18:26:02 +00:00
renovate[bot] 6ae6e9d1c1 Update dependency auth0-js to v9.2.3 (#3235) 2018-02-16 00:02:48 +00:00
renovate[bot] 45c70961bd Update dependency json-schema-defaults to v0.4.0 (#3226) 2018-02-14 11:28:07 +00:00
Ed Morley cfe3a82466
Bug 1436053 - Unvendor jasmine-jquery (#3200)
It has also been updated from v2.0.7 to v2.1.1:
https://github.com/velesin/jasmine-jquery/blob/master/HISTORY.md#211--2015-09-24
https://github.com/velesin/jasmine-jquery/compare/2.0.7...2.1.1
2018-02-12 16:50:41 +00:00
renovate[bot] d2a555a782 Update dependency auth0-js to v9.2.2 (#3208) 2018-02-10 22:16:57 +00:00
renovate[bot] e61f356d2d Update dependency jasmine-core to v3.0.0 (#3204) 2018-02-07 22:31:47 +00:00
renovate[bot] 8cacb27897 Update dependency jasmine-core to v2.99.0 (#3203) 2018-02-07 19:32:59 +00:00
Hassan Ali e1b0168127
Bug 1395356 - Use auth0 instead of login.taskcluster.net for SSO (#3144)
## Rough summary of the changes

### Front end
The auth callback is written in React and lives under the /login.html endpoint. It communicates with Treeherder using the localStorage.

### Credential expiration
The Django user session expiration is set to expire when the client access token or the id token expires (whichever one expires first). These values are controlled by the IAM team. Presently, the access token expires after 1 day and the id token expires after a week. That being said, the session will therefore expire after 1 day. If you want this value change, we simply need to send a request to the IAM team.

### Credential renewal
Renewals are set to happen every 15 minutes or so. The renewal is skewed slightly so that different open tabs don't renew at the same time. Once renewal happens, both tokens are renewed and the Django session is updated.

### Migration
If the userSession localStorage key is not set, then the user will be logged out including logging out from the Django session. In other words, all users will be automatically logged out when the merge to production happens.
2018-02-07 12:59:30 -05:00
renovate[bot] 94dbe406d0 Update dependency metrics-graphics to v2.13.0 (#3201) 2018-02-07 02:24:44 +01:00
renovate[bot] e12f387b0b Update dependency lodash to v4.17.5 (#3191) 2018-02-06 00:15:33 +01:00
renovate[bot] e08ef95ba6 Update angular monorepo packages to v1.6.9 (#3190)
https://github.com/angular/angular.js/blob/master/CHANGELOG.md#169-fiery-basilisk-2018-02-02
2018-02-05 23:53:15 +01:00
renovate[bot] 49577ca251 Update dependency ajv to v6.1.1 (#3181) 2018-01-31 21:43:09 +00:00
renovate[bot] d686c5810f Update dependency ajv to v6.1.0 (#3171) 2018-01-27 19:28:39 +00:00
Ed Morley 13627f006b Bug 1432840 - Use the AirBnb React ESLint preset
Previously only 65 rules were enabled, since the `eslint:recommended`
and `plugin:react/recommended` entries in `extends` had no effect,
since when using ESLint's API rather than CLI, the options must be
passed inside the `baseConfig` property instead.

This commit corrects the usage of `extends` and switches us to AirBnb's
React ESLint preset rather than manually opting into rules:
https://github.com/airbnb/javascript

Even with the temporarily disabled rules (which can be gradually fixed
in the future), there are now over 200 ESLint rules enabled, giving
a significant increase in coverage.

Note: We're having to use v15 of `eslint-config-airbnb` rather than v16
until we update to newer Neutrino, since the latest preset has dropped
support for the ESLint v3 that comes with Neutrino 4.
2018-01-25 19:15:57 +00:00
Ed Morley 49339088f6 Bug 1364894 - Load HTML with html-loader not raw-loader
Neutrino 4 configures `file-loader` as the loader for HTML (rather than
the more usual `html-loader`), which means the HTML is not parsed to
look for further dependencies such as `<img src="...">` tags. Our
custom Neutrino config overrode that to `raw-loader` (presumably to
work around bugs caused by the use of `file-loader`), which doesn't
parse HTML either.

Instead, these assets were being manually copied to `dist/img/` by
`neutrino-custom/production.js`'s `CopyPlugin` rule, effectively
circumventing the webpack build process.

Newer Neutrino correctly uses `html-loader`, causing our HTML to be
parsed during the webpack build for the first time. However now that
the images are being resolved at build time rather than runtime, the
relative paths need to be updated to account for the directory layout
differences between `src/` and `dist/`, to prevent build errors.

A significant benefit of this change is that images referenced from
HTML will now be output with hashed filenames, meaning they get given
long-lived `Cache-Control` headers by WhiteNoise.

See:
https://webpack.js.org/loaders/file-loader/
https://webpack.js.org/loaders/raw-loader/
https://webpack.js.org/loaders/html-loader/
2018-01-24 23:43:58 +00:00
renovate[bot] 4ed5e3c779 Update dependency jquery to v3.3.1 (#3156) 2018-01-22 01:26:27 +00:00
renovate[bot] c45f92330f Update dependency jasmine-core to v2.9.1 (#3152) 2018-01-21 12:14:02 +00:00
renovate[bot] e8cc1fe515 Update dependency jasmine-core to v2.9.0 (#3149) 2018-01-19 09:50:29 +00:00
renovate[bot] 15066ececb Update dependency ajv to v6.0.1 (#3130) 2018-01-12 22:46:58 +00:00
renovate[bot] c8f7de4bb2 Update dependency json-e to v2.5.0 (#3119) 2018-01-09 22:30:04 +00:00
renovate[bot] b2337e0172 Update dependency ajv to v6.0.0 (#3115) 2018-01-08 21:44:46 +00:00
renovate[bot] 3c835bc30c Update dependency json-e to v2.4.0 (#3110) 2018-01-07 19:28:20 +00:00
Ed Morley 3ada44e019 Bug 1364888 - Upgrade to AngularJS 1.6
The previous commit switched us away from the deprecated `$http`
callback methods, meaning the only other breaking change that affects
us is the `hashPrefix` change, which we revert by manually setting
it back to the empty string, so that existing URLs still work:
https://docs.angularjs.org/guide/migration#commit-aa077e8

For more details, see:
https://docs.angularjs.org/guide/migration#migrating-from-1-5-to-1-6
https://github.com/angular/angular.js/blob/master/CHANGELOG.md#160-rainbow-tsunami-2016-12-08

Closes #3044.
2018-01-05 11:13:58 +00:00
Ed Morley a83ee853c7
Bug 1427295 - Remove unused angular-cookies (#3076)
Since we don't use any of the functionality provided by it:
https://docs.angularjs.org/api/ngCookies#module-components
2018-01-04 00:25:32 +00:00
Ed Morley 96eef0f86f
Bug 1426902 - Upgrade to React 16 (#3067)
https://reactjs.org/blog/2017/09/26/react-v16.0.html
https://reactjs.org/blog/2017/11/28/react-v16.2.0-fragment-support.html

Replaces #3048/#3068/#3069, since additional changes were required.

Also adjusts the Babili minification settings to work around a bug
in the minification of react-dom (that will hopefully be fixed in
newer versions of `babel-plugin-minify-mangle-names`, that we'll get
as part of Neutrino upgrade):
https://github.com/babel/minify/tree/babel-preset-babili@0.0.11/packages/babel-preset-babili#options

Closes #3069.
2018-01-03 19:49:25 +00:00
Ed Morley b615b12d7b
Bug 1427655 - Un-vendor flot and its plugins (#3095)
It wasn't unvendored at the time of the switch to Neutrino/webpack
due to the official `flot` NPM package being out of date. However
there are now unofficial up to date flot packages on NPM that we can
use instead - which avoids the clutter and grep false-positives of
vendoring.

I've diffed the vendored files with those in `jquery.flot` and they
are identical, so this change should be a no-op in terms of
functionality.
2018-01-03 15:40:02 +00:00
Ed Morley d38d2d475c
Bug 1427615 - Un-vendor angular-clipboard (#3092)
The issue seen with the old Grunt+babel build process no longer
occurs, so we don't need the modified vendored version. As an added
bonus, the upstream version supports the ES6 import style which we
want to start using soon:
https://github.com/omichelsen/angular-clipboard#use-with-a-module-loader
2018-01-03 15:18:40 +00:00
renovate[bot] 2bca255b90 Update dependency angular-toarrayfilter to v1.0.3 (#3096) 2018-01-03 15:17:41 +00:00
renovate[bot] fe83bfb9f4 Update dependency enzyme to v3.3.0 (#3081) 2017-12-30 14:19:15 +00:00
Ed Morley 2c93921725
Revert "Update hawk from v6.0.2 to v7.0.5 (#3049)" (#3066)
This reverts commit b37ef957a2.

There appears to be a bug with the webpack module resolution, such that Treeherder's upgraded Hawk 7 is being used by taskcluster-client, even though that has a separate dependency on Hawk 6, and so should be using its own copy of Hawk.

For now, let's roll back to Hawk 7 for Treeherder's direct dependency (used by the login flow), to work around this.
2017-12-21 21:06:45 +00:00
Ed Morley b37ef957a2 Update hawk from v6.0.2 to v7.0.5 (#3049)
Has to adjust Hawk.client.header() usage for Hawk v8 API:
f72cdeafd1 (diff-04c6e90faac2675aa89e2176d2eec7d8L174)

And also now import the non-dist/minified build, to work around:
https://github.com/hueniverse/hawk/issues/223
2017-12-20 15:36:30 +00:00
renovate[bot] 1d7745957f Update dependency angular-local-storage to v0.7.1 (#3039) 2017-12-20 03:10:06 +00:00
renovate[bot] 2864ae9976 Update dependency metrics-graphics to v2.12.0 (#3043) 2017-12-20 03:05:27 +00:00
renovate[bot] b2e6c34151 Update dependency popper.js to v1.12.9 (#3045) 2017-12-20 03:02:37 +00:00
renovate[bot] 0696fa6434 Update dependency karma-jasmine to v1.1.1 (#3040) 2017-12-20 02:57:19 +00:00