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

7621 Коммитов

Автор SHA1 Сообщение Дата
pyup.io bot d7c109d0d6 Update newrelic from 2.100.0.84 to 2.102.0.85 (#3195)
https://docs.newrelic.com/docs/release-notes/agent-release-notes/python-release-notes/python-agent-2102085
https://github.com/edmorley/newrelic-python-agent/compare/v2.100.0.84...v2.102.0.85
2018-02-06 00:46:27 +01:00
William Lachance 156bbd6c1b Bug 1429809 - Disable import_perf_data because it's broken (#3126) 2018-02-06 00:45:23 +01:00
renovate[bot] e12f387b0b Update dependency lodash to v4.17.5 (#3191) 2018-02-06 00:15:33 +01:00
pyup.io bot 26f6bf4a20 Update sphinx from 1.6.6 to 1.6.7 (#3192) 2018-02-05 23:55:28 +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
pyup.io bot b75ea972ed Update selenium from 3.8.1 to 3.9.0 (#3196) 2018-02-05 23:44:49 +01:00
Ed Morley 8e4c7db6c5
Revert "Bug 1401518 - Make Add new jobs menu require a decision task" (#3186)
This reverts commit d41c318173.
2018-02-01 20:50:46 +00:00
pyup.io bot a4b48832d3 Update django from 1.11.9 to 1.11.10 (#3185) 2018-02-01 16:04:10 +00:00
renovate[bot] 49577ca251 Update dependency ajv to v6.1.1 (#3181) 2018-01-31 21:43:09 +00:00
Stephen Donner ae8517fb3b Jenkins: Update pytest-* to latest (#3180) 2018-01-31 10:59:42 +00:00
pyup.io bot 95141689e8 Update pytest to 3.4.0 (#3179)
And update pytest cache .gitignore entry for pytest v3.4.0,
since the directory name has been changed:
cd0b2ace67
2018-01-31 01:22:32 +00:00
Ed Morley dcb2a3efb3
Bug 1065784 - Remove Django admin (#3170)
Since the only things we used it for were:
* editing users - but that doesn't work any more (bug 1346740) so
  requires a manual DB edit as is it, and we won't need to edit users
  at all once LDAP groups are used for permissions (bug 1273092)
* marking pending Hawk credentials as approved - however we're not
  accepting any new requests for Hawk credentials (bug 1433011)
* resetting the secret key for Hawk credentials - however we've not
  used this feature once in the entire time we've used Hawk - and its
  trivial via MySQLWorkbench.

As as added bonus removing Django admin:
* reduces the work required to add a CSP header
* speeds up `collectstatic` (which is run during deploy) by 30%
* reduces the risk of giving `is_staff` permissions (which have to be
  given to sheriffs, but also allowed admin access)
* reduces attack surface in general

In addition to the Django admin app, `django.contrib.messages` app
and the auth/messages context processors have been removed, since
after bug 1433011, admin was the only remaining consumer of them:
https://docs.djangoproject.com/en/1.11/ref/contrib/admin/
2018-01-30 23:49:58 +00:00
Ed Morley 9ef378f043
Bug 1433011 - Remove UI for requesting/managing Hawk credentials (#3166)
Since REST API data submission is deprecated in favour of Pulse.
The credentials app now only contains the model and migration.
2018-01-30 23:37:42 +00:00
Ed Morley 20c0fc9c4a
Bug 1433104 - Remove the embeddable push-status page (#3168)
Since it's no longer used & the push status API is likely more
appropriate for most use-cases anyway.
2018-01-30 23:00:03 +00:00
Jonathan French d41c318173 Bug 1401518 - Make Add new jobs menu require a decision task 2018-01-30 14:30:08 -08:00
Balaji.G 94a52eb286 Bug 1427375 - Consistently use 'detail' for API error messages (#3178) 2018-01-30 21:05:02 +00:00
Ed Morley f74e37f7a9 Bug 1434307 - Docs: Fix `REQUIRE SSL` SQL deprecation warnings
Now that we're using MySQL 5.7, we can specify `REQUIRE SSL` on the
`CREATE USER` statement, rather than having to do so on the individual
GRANTs. Compare:
https://dev.mysql.com/doc/refman/5.6/en/create-user.html
https://dev.mysql.com/doc/refman/5.7/en/create-user.html

Prevents:
```
1 warning(s): 1287 Using GRANT statement to modify existing user's
properties other than privileges is deprecated and will be removed
in future release. Use ALTER USER statement for this operation.
```
2018-01-30 16:49:14 +00:00
Ed Morley 925ea48229 Bug 1434307 - Docs: Update read-only replica GRANTs
Generated using the approach documented at the end of the page:
https://treeherder.readthedocs.io/admin.html#direct-database-access

The changes are required since bug 1373008 added the `group` and
`group_failure_lines` tables and #2532 removed `text_log_summary`
and `text_log_summary_line`.
2018-01-30 16:49:14 +00:00
ionutgoldan 2eef134966 Bug 1428792 - Remove unused dashboards from Perfherder (#3167) 2018-01-30 09:54:12 -05:00
Ed Morley d0bfec4c9e
Bug 1413156 - Fix inverted conditional in renderGroupJobsAndCounts (#3175)
Prior to #3154 the conditional used:
`_.includes(failResults, resultStatus)`

...so should now be using `!== -1` rather than `=== 1`.
2018-01-30 14:29:32 +00:00
Stephen Donner feb6a71207 Update Selenium tests running in Jenkins to Firefox 58 (#3174) 2018-01-30 10:06:09 +00:00
renovate[bot] c4b6ddc53d Update lock file (#3173) 2018-01-29 11:58:39 +00:00
renovate[bot] d686c5810f Update dependency ajv to v6.1.0 (#3171) 2018-01-27 19:28:39 +00:00
Ed Morley 3327985173 Bug 1432840 - Fix/enable eslint 'array-bracket-spacing'
https://eslint.org/docs/rules/array-bracket-spacing
2018-01-25 19:15:57 +00:00
Ed Morley 820c6cf47c Bug 1432840 - Fix/enable eslint 'no-extra-semi'
https://eslint.org/docs/rules/no-extra-semi
2018-01-25 19:15:57 +00:00
Ed Morley 0ebe066b17 Bug 1432840 - Fix/enable eslint 'prefer-spread'
https://eslint.org/docs/rules/prefer-spread
2018-01-25 19:15:57 +00:00
Ed Morley 2bd61a8da5 Bug 1432840 - Fix/enable eslint 'import/first'
https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/first.md
2018-01-25 19:15:57 +00:00
Ed Morley 710b08b53a Bug 1432840 - Fix/enable eslint 'import/prefer-default-export'
The rule has been disabled in `constants.js`, since there will soon
be other exports in that file, so we don't want a default export.

https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/prefer-default-export.md
2018-01-25 19:15:57 +00:00
Ed Morley 6318a89b91 Bug 1432840 - Fix/enable eslint 'import/no-named-as-default'
In `configureStore.js` the same object was being exported twice, once
as the default export and once as a named export. Since default exports
are preferred if there is only one export in a file, I've removed the
named import and left the default one.

In `Groups.jsx` the `Groups` class was exported but unused, so has
been adjusted to no longer be exported, so the `App.jsx` import
doesn't trigger the warning:
`import Groups from './Groups';`

See:
https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-named-as-default.md
2018-01-25 19:15:57 +00:00
Ed Morley 0cbdc69c08 Bug 1432840 - Fix/enable eslint 'no-restricted-properties'
https://eslint.org/docs/rules/no-restricted-properties

The AirBnB preset has configured `Math.pow` as restricted:
https://github.com/airbnb/javascript/blob/eslint-config-airbnb-v15.1.0/README.md#es2016-properties--exponentiation-operator

Also rewrites the `ui/services/perf/math.js` to use arrow notation.
2018-01-25 19:15:57 +00:00
Ed Morley c58710501e Bug 1432840 - Fix/enable eslint 'no-useless-constructor'
https://eslint.org/docs/rules/no-useless-constructor
2018-01-25 19:15:57 +00:00
Ed Morley bc3b957953 Bug 1432840 - Fix/enable eslint 'no-useless-return'
https://eslint.org/docs/rules/no-useless-return
2018-01-25 19:15:57 +00:00
Ed Morley 6f8d1bcf3f Bug 1432840 - Fix/enable eslint 'react/jsx-closing-bracket-location'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-closing-bracket-location.md
2018-01-25 19:15:57 +00:00
Ed Morley 1ad475fdc8 Bug 1432840 - Fix/enable eslint 'react/jsx-tag-spacing'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-tag-spacing.md
2018-01-25 19:15:57 +00:00
Ed Morley 50bca843a9 Bug 1432840 - Fix/enable eslint 'react/self-closing-comp'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/self-closing-comp.md
2018-01-25 19:15:57 +00:00
Ed Morley d85f504839 Bug 1432840 - Fix/enable eslint 'react/jsx-wrap-multilines'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-wrap-multilines.md
2018-01-25 19:15:57 +00:00
Ed Morley 35ae7d6017 Bug 1432840 - Fix/enable eslint 'react/jsx-curly-spacing'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-curly-spacing.md
2018-01-25 19:15:57 +00:00
Ed Morley c6fd3a6aa6 Bug 1432840 - Fix/enable eslint 'react/sort-comp'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/sort-comp.md
2018-01-25 19:15:57 +00:00
Ed Morley 40c4ff5b29 Bug 1432840 - Fix/enable eslint 'react/jsx-boolean-value'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-boolean-value.md
2018-01-25 19:15:57 +00:00
Ed Morley 704a84655f Bug 1432840 - Fix/enable eslint 'jsx-a11y/alt-text'
https://github.com/evcohen/eslint-plugin-jsx-a11y/blob/master/docs/rules/alt-text.md
2018-01-25 19:15:57 +00:00
Ed Morley 87a7f7373f Bug 1432840 - Fix/enable eslint 'jsx-quotes'
https://eslint.org/docs/rules/jsx-quotes
2018-01-25 19:15:57 +00:00
Ed Morley 3ad9264308 Bug 1432840 - Fix/enable eslint 'react/jsx-filename-extension'
https://github.com/yannickcr/eslint-plugin-react/blob/master/docs/rules/jsx-filename-extension.md
2018-01-25 19:15:57 +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
Jonathan French 7c20363e48 Switch to ES6 arrow functions in more places (#3169) 2018-01-25 18:21:52 +00:00
Jonathan French 247e1b980c Bug 1053203 - Remove builds and tests tables from user guide (#3164) 2018-01-25 11:54:59 +00:00
pyup.io bot 8e63c711e4 Update typing from 3.6.2 to 3.6.4 (#3165) 2018-01-25 02:20:00 +00:00
Ed Morley a60bab5e78 Bug 1364894 - Whitelist rather than blacklist files copied to dist/
With the changes in previous commits, all of the assets that were
originally manually copied to `dist/img/` are now correctly handled
by webpack as dependencies (and so emitted to `dist/` automatically).

As such, this leaves only three files that need copying from `src/`,
so they are now listed explicitly to avoid having to continually
update `ignore` to prevent extra files from sneaking in:
https://webpack.js.org/plugins/copy-webpack-plugin/

As a result of this change, the following assets are no longer
needlessly created under `dist/` as part of `yarn build`:
```
img/dancing_cat.gif
img/line_chart.png
img/logviewerIcon.png
img/logviewerIcon.svg
img/logviewerIconHelp.svg
img/tip.png
img/tip-locked.png
img/tree.xcf
img/tree_closed.png
img/tree_open.png
img/treeherder-logo.png
```

To confirm that this would not break anything, the JS and HTML files
under `dist/` were grepped for the string `img/`, and there are no
references remaining.
2018-01-24 23:43:58 +00:00
Ed Morley dd3de28f4d Bug 1364894 - Ensure revision.txt exists in development too
Currently `revision.txt` only exists on Heroku, since it's generated
by the Heroku-only `post_compile` script, just prior to `yarn build`.

However this means:
* HTTP 404s of `revision.txt` are seen in the browser console when
  developing locally, which gives the appearance of something being
  broken, even though it's not.
* when we convert the wildcard `CopyPlugin` rule to an explicit list
  of files to copy (in a later commit), it will cause errors when
  building locally, since `CopyPlugin` expects all declared files
  to exist.

Adding a placeholder file prevents both of the above.
2018-01-24 23:43:58 +00:00
Ed Morley 9bc2752c96 Bug 1364894 - Use imports for images in thFavicons
This ensures that webpack knows they are a dependency, meaning:
* no need to manually copy them to `dist/img/` using `CopyPlugin`
  (the wildcard copy rules will be cleaned up in a later commit)
* they are inlined as a base64 encoded data URI by `url-loader`.

The changes to `thFaviconLink` are required to prevent:
```
Error: [$interpolate:interr] Can't interpolate: {{favicon}}
Error: [$sce:insecurl] Blocked loading resource from url not allowed
by $sceDelegate policy.  URL: data:image/png;base64,...
```

Which are due to AngularJS not trusting data URIs by default. See:
https://docs.angularjs.org/error/$sce/insecurl
2018-01-24 23:43:58 +00:00
Ed Morley bf5ce96e23 Bug 1364894 - Make html-loader treat favicons as dependencies too
Previously `html-loader` only parsed `<img src="...">` tags when
looking for assets/dependencies. Now the `<link href="...">` tags
for favicons are processed too, which means `img/tree_open.png`
and friends will be included in the webpack build and not need to
be manually copied into `dist/img/`:
https://webpack.js.org/loaders/html-loader/

This does not visible change the number of hashed images output to
`dist/`, since the favicons are small enough that `url-loader` inlines
them in the HTML as base64 encoded data URIs (this is adjustable if
not desired later):
https://webpack.js.org/loaders/url-loader/
2018-01-24 23:43:58 +00:00