Commit graph

9473 commits

Author SHA1 Message Date
Tom Hughes
1f880528bd Fix new rubocop warnings 2019-07-18 16:47:08 +01:00
Tom Hughes
0af8b95b7d Update bundle
Closes #2325
2019-07-18 16:47:08 +01:00
translatewiki.net
bc37f1d851 Localisation updates from https://translatewiki.net. 2019-07-18 16:39:55 +02:00
Tom Hughes
5a54cb52f8 Drop paperclip 2019-07-17 19:12:30 +01:00
Tom Hughes
8a39c6b4a2 Drop old user image columns 2019-07-17 19:12:30 +01:00
Tom Hughes
826b70fdc5 Replace migrations that rely on models with rake tasks
Replace some migrations that rely on relationships between
models to add subscriptions with rake tasks.
2019-07-17 18:55:15 +01:00
Tom Hughes
227c402ad1 Don't try and add fingerprints for user images
It won't actually work, and anybody migrating up to the current
schema is never going to use the fingerprints anyway.
2019-07-17 18:49:09 +01:00
Tom Hughes
8750405bf7 Merge remote-tracking branch 'upstream/pull/2320' 2019-07-17 18:47:05 +01:00
Tom Hughes
43b0d42363 Merge remote-tracking branch 'upstream/pull/2322' 2019-07-17 18:47:02 +01:00
Andy Allan
add6f9643b Rework help page text
This avoids using the OSM acronym, and uses better titles than urls
for the help forum and the wiki. Both titles are based on the title
of the linked sites.
2019-07-17 19:37:59 +02:00
Tom Hughes
a254efb5ec Set server_url to test.host in test environments
Fixes #2319
2019-07-17 11:25:36 +01:00
Andy Allan
d130db9fa8 Avoid more models in old migrations
Although these migrations run fine today, they could break in the future
if changes are made to the current model code.
2019-07-17 12:16:20 +02:00
Andy Allan
6ebb21b660 Avoid using live models in old migrations
Instead, we define models in the migrations themselves. This ensures that
column names etc match the state of the database during the migration,
not the current live version of the model.
2019-07-17 11:52:02 +02:00
Andy Allan
0444187cb6 Update annotations after 91a37235ac 2019-07-17 10:39:10 +02:00
Tom Hughes
40ac2aa528 Use the configured host name for user image URLs 2019-07-16 22:41:37 +01:00
Tom Hughes
91a37235ac Remove support for old style user images 2019-07-16 22:33:26 +01:00
Tom Hughes
3cfffc2258 Update gravatar methods to check for Active Storage images 2019-07-16 22:29:07 +01:00
Tom Hughes
b911b45961 Return absolute URLs for user images 2019-07-16 22:28:36 +01:00
Tom Hughes
cea0ba5137 Merge remote-tracking branch 'upstream/pull/2313' 2019-07-16 11:56:13 +01:00
Tom Hughes
905a7eadb6 Defer deletion of avatars to a background job 2019-07-16 08:27:14 +01:00
Tom Hughes
f597780822 Increase expiry for Active Storage URLs 2019-07-16 08:25:17 +01:00
Tom Hughes
e3f37bb30c Allow BMP images to be transformed
https://github.com/rails/rails/issues/35953
https://github.com/rails/rails/pull/36051
2019-07-16 00:24:37 +01:00
Tom Hughes
c5fc9f0e7e Run any Active Storage jobs in the storage queue 2019-07-15 22:20:48 +01:00
Tom Hughes
5cb96cd1a2 Send trace import result notification immediately
If we delay sending failure notifications then they will fail
because the trace will no longer exist.

As trace imports are running in the background anyway there
doesn't seem to be any good reason to defer the emails.

Fixes #2312
2019-07-15 21:45:07 +01:00
Tom Hughes
d2d3f2c9fd Fix rubocop warning 2019-07-15 21:18:13 +01:00
Tom Hughes
6dd451c7ee Stop creating a shared global querystring variable 2019-07-15 20:28:54 +01:00
translatewiki.net
cc5688a6de Localisation updates from https://translatewiki.net. 2019-07-15 20:39:25 +02:00
Tom Hughes
11c4aa7d73 Skip uploading images for users that have a new style avatar 2019-07-15 19:17:01 +01:00
Tom Hughes
6da536e5c8 Add a rake task to move user avatars to Active Storage 2019-07-15 19:09:50 +01:00
Tom Hughes
a47c0a4411 Update querystring references 2019-07-15 10:03:09 +01:00
Tom Hughes
cd4ac6ac2d Revert accidental schema changes 2019-07-15 09:27:52 +01:00
Tom Hughes
550fa0c8e4 It's to_sym not to_symbol 2019-07-15 08:39:20 +01:00
Tom Hughes
c162c065c6 Merge remote-tracking branch 'upstream/pull/2296' 2019-07-15 08:19:30 +01:00
Tom Hughes
492a640530 Enable a few more eslint checks 2019-07-14 12:08:02 +01:00
Tom Hughes
c4c0e8105a Enforce consistent indentation in javascript code 2019-07-14 10:52:18 +01:00
Tom Hughes
807750023a Fix eslint warning 2019-07-13 17:46:23 +01:00
Tom Hughes
27078aa780 Update eslint
Closes #2307
2019-07-13 17:45:24 +01:00
Tom Hughes
64f70a7cb0 Merge remote-tracking branch 'upstream/pull/2305' 2019-07-11 20:23:31 +01:00
Mateusz Konieczny
d63beb8080 make link in documentation clickable 2019-07-11 21:11:25 +02:00
translatewiki.net
4111388674 Localisation updates from https://translatewiki.net. 2019-07-11 17:39:18 +02:00
Andy Allan
8c1a5d62f8 Ignore the class length of test files
There's no sensible way to refactor a controller test into multiple classes,
so lets exclude them from the class length metrics to reveal other over-length
classes.
2019-07-10 17:24:32 +02:00
Tom Hughes
75e60acf66 Allow configuration of storage server URL for security policy 2019-07-09 19:43:03 +01:00
Tom Hughes
77ee8c1a53 Monkey patch Active Storage to set content type when uploading to S3 2019-07-09 19:17:56 +01:00
Tom Hughes
77026ee039 Add support for using S3 as the object store 2019-07-09 19:17:30 +01:00
Tom Hughes
6c202448ad Move user images to Active Storage with paperclip as a fallback 2019-07-09 19:17:30 +01:00
Tom Hughes
ba627420a3 Add support for Active Storage attachments 2019-07-09 19:17:29 +01:00
translatewiki.net
cec5e4999c Localisation updates from https://translatewiki.net. 2019-07-08 20:23:32 +02:00
Tom Hughes
d0201f4487 Update wiki page data 2019-07-08 11:08:12 +01:00
Tom Hughes
6f9b0c2f6b Fix rubocop warnings 2019-07-07 16:30:04 +01:00
Tom Hughes
d7f92e163e Update bundle 2019-07-07 16:24:57 +01:00