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

651 Коммитов

Автор SHA1 Сообщение Дата
pyup.io bot 0f86339609 Update django-redis from 4.8.0 to 4.9.0 (#3287) 2018-03-01 11:53:32 +00:00
pyup.io bot 52ec301652 Update django-cors-headers from 2.1.0 to 2.2.0 (#3282) 2018-03-01 11:35:23 +00:00
pyup.io bot 646a43dee2 Update newrelic from 2.104.0.86 to 2.106.0.87 (#3283) 2018-03-01 11:32:32 +00:00
pyup.io bot 5f839fa0ff Update pypom from 1.2.0 to 1.3.0 (#3280) 2018-03-01 11:28:14 +00:00
pyup.io bot 113c99021d Update django-extensions from 1.9.9 to 2.0.0 (#3250) 2018-02-24 00:06:43 +00:00
pyup.io bot d0faeea9fc Update pytest-metadata from 1.5.1 to 1.6.0 (#3259) 2018-02-23 16:32:53 +00:00
pyup.io bot 663e2312fd Update sphinx from 1.7.0 to 1.7.1 (#3257) 2018-02-23 16:31:42 +00:00
pyup.io bot 1e7cca0a21 Update pytest from 3.4.0 to 3.4.1 (#3246) 2018-02-20 23:34:46 +00:00
pyup.io bot e880482590 Update newrelic from 2.102.0.85 to 2.104.0.86 (#3245) 2018-02-20 23:31:29 +00:00
pyup.io bot 0480a23e99 Update rx from 1.6.0 to 1.6.1 (#3237) 2018-02-17 21:20:38 +00:00
Ed Morley 0aec43a139
Bug 1357476 - Replace django-rest-swagger with native d-r-f docs (#3230)
Now that django-rest-framework supports interactive docs natively,
we no longer need to use the additional django-rest-swagger package:
http://www.django-rest-framework.org/topics/3.6-announcement/#interactive-api-documentation
http://www.django-rest-framework.org/topics/documenting-your-api/

This significantly reduces the number of static files that have to
be processed, reducing the time taken for `collectstatic` (which is
run on every deployment and takes a while due to Brotli compression)
by 70%.
2018-02-16 10:21:21 +00:00
pyup.io bot 9c9a82a56e Update isort from 4.2.15 to 4.3.4 (#3217) 2018-02-12 15:45:42 +00:00
pyup.io bot df9ee8100f Update sphinx from 1.6.7 to 1.7.0 (#3216) 2018-02-12 12:32:28 +00:00
pyup.io bot d1b93dde3a Update pytz from 2017.3 to 2018.3 (#3207) 2018-02-09 12:32:11 +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
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
pyup.io bot 26f6bf4a20 Update sphinx from 1.6.6 to 1.6.7 (#3192) 2018-02-05 23:55:28 +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
pyup.io bot a4b48832d3 Update django from 1.11.9 to 1.11.10 (#3185) 2018-02-01 16:04:10 +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
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 deb1fc86b7 Bug 1384518 - Switch from Memcached to Redis
Since:
* Redis has additional features we need (eg for bug 1409679)
* the Redis server, python client and Django backend are more
  actively maintained (so have persistent connections/pooling that
  actually works, which gives a big perf win)
* we can use Heroku's own Redis addon rather than relying on a
  third-party's (to hopefully prevent a repeat of the certificate
  expiration downtime)

This commit:
* Switches pylibmc/django-pylibmc to redis-py/django-redis, and
  configures the new backend according to:
  http://niwinz.github.io/django-redis/latest/
  https://github.com/andymccurdy/redis-py
* Uses redis-py's native support for TLS to connect to the Heroku
  Redis server's stunnel port directly, avoiding the complexity of
  using a buildpack to create an stunnel between the dyno and server:
  https://devcenter.heroku.com/articles/securing-heroku-redis#connecting-directly-to-stunnel
* Uses explicit `REDIS_URL` values on Travis/Vagrant rather than
  relying on the django-environ `default` value (for parity with
  how we configure `DATABASE_URL` and others).
* Removes the pylibmc connection-closing workaround from `wsgi.py`.

Note: Whilst the Heroku docs suggest using `django-redis-cache`, it's
not as actively maintained, so we're using `django-redis` instead:
https://devcenter.heroku.com/articles/heroku-redis
https://github.com/niwinz/django-redis
https://github.com/sebleier/django-redis-cache

Before this is merged, Heroku Redis instances will need to be created
for stage/production (prototype done) - likely on plan `premium-3`:
https://elements.heroku.com/addons/heroku-redis

We'll also need to pick an eviction policy:
https://devcenter.heroku.com/articles/heroku-redis#maxmemory-policy

Once deployed, the `memcachier-tls-buildpack` buildpack will no longer
be required and can be removed from prototype/stage/prod, along with
the `TREEHERDER_MEMCACHED` environment variable and Memcachier addon.
2018-01-21 14:41:35 +00:00
pyup.io bot 814267f6dd Update aiohttp from 2.3.8 to 2.3.9 (#3155) 2018-01-21 12:06:16 +00:00
pyup.io bot 2a002d1792 Update yarl from 1.0.0 to 1.1.0 (#3153) 2018-01-21 11:48:40 +00:00
pyup.io bot 9f113b92b1 Update certifi from 2017.11.5 to 2018.1.18 (#3148) 2018-01-18 22:27:00 +00:00
pyup.io bot f55bdc03a7 Update aiohttp from 2.3.7 to 2.3.8 (#3142) 2018-01-16 17:01:01 +00:00
pyup.io bot b88929a33b Update elasticsearch from 5.4.0 to 5.5.2 (#3140) 2018-01-16 16:32:15 +00:00
pyup.io bot f495f16d0d Update pytest-variables from 1.7.0 to 1.7.1 (#3138) 2018-01-15 15:54:50 +00:00
pyup.io bot 95cf965c6d Update yarl from 0.18.0 to 1.0.0 (#3137) 2018-01-15 15:42:28 +00:00
pyup.io bot 2efcc42a2b Update multidict from 3.3.2 to 4.0.0 (#3136) 2018-01-15 15:35:19 +00:00
pyup.io bot 36ebe5cedf Update pytest-selenium from 1.11.3 to 1.11.4 (#3124) 2018-01-11 11:44:12 +00:00
pyup.io bot 15a7b02c35 Update django-extensions from 1.9.8 to 1.9.9 (#3122) 2018-01-11 09:00:26 +00:00
pyup.io bot 8b8394134e Update yarl from 0.17.0 to 0.18.0 (#3121) 2018-01-10 14:24:56 +00:00
pyup.io bot 208973b60f Update newrelic from 2.98.0.81 to 2.100.0.84 (#3118) 2018-01-09 20:34:11 +00:00
pyup.io bot 3ef083cdca Update sphinx from 1.6.5 to 1.6.6 (#3114) 2018-01-08 21:06:06 +00:00
Cameron Dawson 3169121824 Bug 1412792 - Update graphene-django/graphene/graphql-core to v2 (#3105) 2018-01-07 21:35:29 +00:00
pyup.io bot 08e219bfe3 Update selenium from 3.8.0 to 3.8.1 (#3103) 2018-01-05 11:03:45 +00:00
pyup.io bot 02c5792e2c Update pytest from 3.3.1 to 3.3.2 (#3106) 2018-01-05 10:52:55 +00:00
pyup.io bot 82988a2485 Update pytest-html from 1.16.0 to 1.16.1 (#3100) 2018-01-04 13:58:48 +00:00
pyup.io bot 25b0d57423 Update mozlog from 3.5 to 3.6 (#3099) 2018-01-03 19:43:42 +00:00
pyup.io bot 19a0cfdde8 Update blessings from 1.6 to 1.6.1 (#3098) 2018-01-03 17:14:56 +00:00
Ed Morley aa2ccb7a34
Bug 1427598 - Add pyup ignore markers for elasticsearch(-dsl) 6 (#3090)
Since both packages need updating at once, along with upgrading
Elasticsearch server and fixing the failures due to breaking changes.
2018-01-02 15:33:18 +00:00
pyup.io bot 2adb7b93dc Update django from 1.11.8 to 1.11.9 (#3089) 2018-01-02 12:42:18 +00:00
pyup.io bot 1c92ebf4f9 Update werkzeug from 0.14 to 0.14.1 (#3086) 2018-01-01 16:49:58 +00:00
pyup.io bot 3faea01680 Update werkzeug from 0.13 to 0.14 (#3084) 2017-12-31 15:52:51 +00:00
pyup.io bot 4bc5032f36 Update yarl from 0.16.0 to 0.17.0 (#3083) 2017-12-30 14:26:32 +00:00
pyup.io bot 6b37539cc6 Update attrs from 17.3.0 to 17.4.0 (#3082) 2017-12-30 14:16:41 +00:00
pyup.io bot aba746c3b7 Update aiohttp from 2.3.6 to 2.3.7 (#3071) 2017-12-27 20:51:47 +00:00
Ed Morley 037643227a
Bug 1412792 - Update pyup ignore marker for graphene (#3063)
Since 1.4.2 has too strict requirements, so we can't use it either.
(See #3060)
2017-12-21 16:19:51 +00:00
pyup.io bot a3c73a8ac4 Update django from 1.11.7 to 1.11.8 (#3062) 2017-12-21 16:16:13 +00:00