Commit graph

3651 commits

Author SHA1 Message Date
Tom Hughes
2122d1843e Restore asset debugging in development mode 2022-02-28 18:47:51 +00:00
translatewiki.net
b819ab6abb Localisation updates from https://translatewiki.net. 2022-02-28 13:11:32 +01:00
translatewiki.net
873739ac1e Localisation updates from https://translatewiki.net. 2022-02-24 13:12:32 +01:00
Andy Allan
619ac4c5b2 Enable active_record.belongs_to_required_by_default
This switches the logic so that belongs_to parent objects must exist
by default, and marks the optional ones explicitly. This is reflected
in the null/not_null status on the relevant db columns.
2022-02-23 20:33:28 +00:00
Tom Hughes
172a71e3f2 Disable partial inserts 2022-02-22 19:16:10 +00:00
Tom Hughes
5b3edb8075 Switch to rails 7 default headers
These are basically all the same as what secure_headers
was already setting for us anyway.
2022-02-22 19:13:02 +00:00
Tom Hughes
a5508cfba1 Enable automatic scope inversing 2022-02-21 19:11:58 +00:00
Tom Hughes
b86390d303 Use a button element for button_to 2022-02-21 19:11:58 +00:00
Tom Hughes
999ebb1bf2 Default to not specifying media restrictions on stylesheet tags 2022-02-21 19:11:58 +00:00
Tom Hughes
04cb32b140 Enable verification of foreign keys in tests 2022-02-21 19:11:58 +00:00
translatewiki.net
a6f28dd52e Localisation updates from https://translatewiki.net. 2022-02-21 13:11:46 +01:00
Tom Hughes
fbd45a2ea0 Wrap test execution for better isolation 2022-02-17 19:30:19 +00:00
Tom Hughes
890569fba7 Enable some rails 7.x defaults 2022-02-17 19:18:03 +00:00
translatewiki.net
0d8c27bb0c Localisation updates from https://translatewiki.net. 2022-02-17 13:11:27 +01:00
Tom Hughes
28900676f3 Default to allowing TLS for SMTP but without peer verification 2022-02-17 00:54:11 +00:00
Tom Hughes
aec7af87d7 Disable peer host name validation when sending email 2022-02-16 22:48:26 +00:00
Tom Hughes
1f8df781be Merge remote-tracking branch 'upstream/pull/3398' 2022-02-16 18:13:16 +00:00
Andy Allan
ce4fbc63ec
Merge pull request #3414 from tomhughes/rails7
Update to rails 7.x
2022-02-16 15:16:53 +00:00
Andy Allan
2fabc46421
Merge pull request #3440 from mmd-osm/relationmemberlimit
Introduce relation member limit
2022-02-16 14:58:30 +00:00
Tom Hughes
7eafdca51c Update to rails 7.0.2.2 2022-02-16 14:26:57 +00:00
translatewiki.net
c24b548181 Localisation updates from https://translatewiki.net. 2022-02-14 13:11:05 +01:00
Tom Hughes
1612ea75c5 Allow trace image URL to be configured in the CSP policy 2022-02-13 19:25:42 +00:00
Tom Hughes
53aa7259bb Merge remote-tracking branch 'upstream/pull/3345' 2022-02-13 18:39:21 +00:00
translatewiki.net
0d15899de5 Localisation updates from https://translatewiki.net. 2022-02-10 13:11:21 +01:00
Andy Allan
6c1d73a509 Allow users to delete their own accounts
This PR allows users to delete their own accounts. The logic implemented matches
that currently used by the admins when they manually close accounts, although
there is room to be more complex in future e.g. completely removing accounts
with no content.

The error handling has been slightly adapted for namespaced controllers, by
anchoring the controller name with a leading forward slash.
2022-02-09 16:15:24 +00:00
translatewiki.net
abdc557bc9 Localisation updates from https://translatewiki.net. 2022-02-07 13:10:37 +01:00
Tom Hughes
446837c351 Merge remote-tracking branch 'upstream/pull/3419' 2022-02-03 18:37:12 +00:00
Tom Hughes
1cee23ddc2 Merge remote-tracking branch 'upstream/pull/3445' 2022-02-03 18:32:40 +00:00
translatewiki.net
b82b16c2a5 Localisation updates from https://translatewiki.net. 2022-02-03 13:11:37 +01:00
Andy Allan
2731e7244a Add extra user transitions needed by the administrators 2022-02-02 16:37:50 +00:00
Morten Bruhn
ec58fbde83
Added some key-value pairs under railway= 2022-02-02 16:13:07 +01:00
mmd-osm
2efd73c672 Introduce relation member limit
Adds a new parameter `max_number_of_relation_members` in settings.yml
2022-02-02 13:15:40 +01:00
translatewiki.net
4ea6a3c16d Localisation updates from https://translatewiki.net. 2022-01-31 13:10:21 +01:00
translatewiki.net
a26100c7ec Localisation updates from https://translatewiki.net. 2022-01-27 13:11:14 +01:00
translatewiki.net
36dd599507 Localisation updates from https://translatewiki.net. 2022-01-24 13:12:09 +01:00
translatewiki.net
0afae71af6 Localisation updates from https://translatewiki.net. 2022-01-20 13:11:20 +01:00
translatewiki.net
c0291f4025 Localisation updates from https://translatewiki.net. 2022-01-17 13:11:06 +01:00
translatewiki.net
2a82bd1cf1 Localisation updates from https://translatewiki.net. 2022-01-13 13:10:10 +01:00
translatewiki.net
b676aa76c5 Localisation updates from https://translatewiki.net. 2022-01-10 13:09:11 +01:00
translatewiki.net
89d9690982 Localisation updates from https://translatewiki.net. 2022-01-06 13:08:27 +01:00
translatewiki.net
059e3beb50 Localisation updates from https://translatewiki.net. 2022-01-03 13:08:20 +01:00
Tom Hughes
7de3143525 Switch to 6.1 defaults as everything has been enabled for some time 2021-12-30 19:55:13 +00:00
translatewiki.net
7ee496030b Localisation updates from https://translatewiki.net. 2021-12-30 13:09:01 +01:00
translatewiki.net
905ac93427 Localisation updates from https://translatewiki.net. 2021-12-27 13:09:57 +01:00
Tom Hughes
b0288b83bb Allow PATCH for OmniAuth requests
This is required to allow the account settings screen, which now
uses the PATCH verb, to redirect to OmniAuth when the external
authentication provider is changed.

As PATCH still uses CSRF this doesn't impact CVE-2015-9284 which
is the reason for requiring POST and most importantly got not
allowing GET requests to OmniAuth.
2021-12-27 10:34:24 +00:00
translatewiki.net
f1e0212af3 Localisation updates from https://translatewiki.net. 2021-12-23 13:09:28 +01:00
translatewiki.net
bb30a3d64b Localisation updates from https://translatewiki.net. 2021-12-20 13:11:17 +01:00
Tom Hughes
0410596908 Switch traces to use ActiveStorage 2021-12-16 18:45:31 +00:00
Tom Hughes
ef85e8c7b3 Make the storage service to use for avatars configurable 2021-12-16 18:45:31 +00:00
translatewiki.net
d4dadf1fe2 Localisation updates from https://translatewiki.net. 2021-12-16 13:11:53 +01:00