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

669 Коммитов

Автор SHA1 Сообщение Дата
pyup.io bot e7743cb491 Update py from 1.5.2 to 1.5.3 (#3364) 2018-04-03 11:56:15 +01:00
pyup.io bot 36998247fe Update django from 1.11.11 to 1.11.12 (#3383) 2018-04-03 11:54:46 +01:00
pyup.io bot b0b3383c90 Update sphinx from 1.7.1 to 1.7.2 (#3360) 2018-03-21 12:38:25 +00:00
pyup.io bot 657d1f6e77 Update pytest-selenium from 1.11.4 to 1.12.0 (#3358) 2018-03-21 12:14:32 +00:00
pyup.io bot 2635a241b0 Update django-extensions from 2.0.5 to 2.0.6 (#3346) 2018-03-15 20:46:41 +00:00
pyup.io bot 3ea4c38a2d Update newrelic from 2.106.1.88 to 3.0.0.89 (#3344) 2018-03-15 11:48:21 +00:00
pyup.io bot 4f35b2b55d Update django-extensions from 2.0.3 to 2.0.5 (#3328) 2018-03-13 20:30:58 +00:00
pyup.io bot 7ed83a2361 Update selenium from 3.10.0 to 3.11.0 (#3331) 2018-03-12 13:35:28 +00:00
pyup.io bot 15e4e645b4 Update python-dateutil from 2.6.1 to 2.7.0 (#3330) 2018-03-12 10:44:14 +00:00
pyup.io bot 53aa668eca Update pycryptodome from 3.5.0 to 3.5.1 (#3321) 2018-03-08 20:41:46 +00:00
Ed Morley d47d386c70
Bug 1399999 - Squash Django migrations (#3318)
Django has a built-in migrations squashing feature, however it cannot
optimise across RunSQL commands and several other cases, so results in
poorly optimised migrations. As such these squashed migrations are a
combination of the output of squashmigrations, recreating the initial
migration from scratch and hand editing.

The JSONField package has also been removed, since it was only required
by the now redundant initial migration.
2018-03-08 16:30:47 +00:00
pyup.io bot ec18cba3c1 Update django-extensions from 2.0.2 to 2.0.3 (#3317) 2018-03-08 14:59:34 +00:00
pyup.io bot cef5babd6e Update newrelic from 2.106.0.87 to 2.106.1.88 (#3316) 2018-03-07 23:13:32 +00:00
pyup.io bot def3557fc0 Update pycryptodome from 3.4.11 to 3.5.0 (#3314) 2018-03-07 22:11:19 +00:00
pyup.io bot 823bb55fcd Update django-extensions from 2.0.0 to 2.0.2 (#3311) 2018-03-07 15:10:44 +00:00
pyup.io bot bb89181926 Update django from 1.11.10 to 1.11.11 (#3306) 2018-03-06 17:43:14 +00:00
pyup.io bot 72a90cee45 Update pytest from 3.4.1 to 3.4.2 (#3304) 2018-03-06 08:32:35 +00:00
pyup.io bot feb99aeb47 Update selenium from 3.9.0 to 3.10.0 (#3300) 2018-03-05 11:27:37 +00:00
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