Commit graph

11604 commits

Author SHA1 Message Date
Tom Hughes
73426ea383 Merge remote-tracking branch 'upstream/pull/3482' 2022-03-01 10:27:30 +00:00
Tom Hughes
89b3633e86 Update bundle 2022-03-01 10:27:16 +00:00
Andy Allan
8938ab7997 Remove redundant presence validation on belongs_to
There's no need for us to have it when rails does this for us.
2022-03-01 10:01:16 +00:00
Tom Hughes
2122d1843e Restore asset debugging in development mode 2022-02-28 18:47:51 +00:00
Harry Bond
fd33b6e17f Fix opensearch icon & update attribution
Fixes #3478
Closes #3479
2022-02-28 18:38:36 +00:00
translatewiki.net
b819ab6abb Localisation updates from https://translatewiki.net. 2022-02-28 13:11:32 +01:00
Tom Hughes
f76dfc77b8 Add missing PG_MODULE_MAGIC to database function source 2022-02-27 11:35:31 +00:00
Tom Hughes
1f14f2c9de Merge remote-tracking branch 'upstream/pull/3474' 2022-02-26 00:39:52 +00:00
dependabot[bot]
6fd0c36751
Bump eslint from 8.9.0 to 8.10.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.9.0 to 8.10.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.9.0...v8.10.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-25 23:01:05 +00:00
translatewiki.net
873739ac1e Localisation updates from https://translatewiki.net. 2022-02-24 13:12:32 +01:00
Tom Hughes
2cd7af7e0b Merge remote-tracking branch 'upstream/pull/3470' 2022-02-23 20:38:21 +00: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
7de6943ebe Merge remote-tracking branch 'upstream/pull/3469' 2022-02-23 19:27:27 +00:00
Andy Allan
cc99d8169f Remove default values from id columns
In both the case of primary keys, and also foreign key references,
there's no need to set a default value.

This doesn't have a big impact in routine situations, but can be
very confusing when debugging corner cases.
2022-02-23 15:22:37 +00:00
Andy Allan
3cf3b3ce4e Specify inverse_of for trace tags and points
Rails can't automatically detect bi-directional relationships when
`:foreign_key` is present. Adding the `inverse_of` helps when validating
traces and tags that haven't yet been saved.
2022-02-23 15:15:07 +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
fe79965869 Merge remote-tracking branch 'upstream/pull/3462' 2022-02-22 19:06:43 +00:00
Tom Hughes
398a39dd0a Make sure the object layer is kept in front of the data layer 2022-02-22 18:55:34 +00:00
Tom Hughes
97bb135957 Don't highlight selected items in the data layer
Routing to the feature page is going to cause them to be overlaid
in orange anyway so there's no need for the blue highlight.
2022-02-22 18:54:40 +00:00
Tom Hughes
b66f7a30d0 Update bundle 2022-02-22 18:11:16 +00:00
Tom Hughes
29d2f48214 Deep copy the original style when highlighting an object
Fixes #3465
2022-02-21 22:48:22 +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
cb8419456b Apply bootstrap styling to "make public" button 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
Tobias Speicher
be878df097
Replace deprecated String.prototype.substr()
String.prototype.substr() is deprecated (see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substr) so we replace it with slice() which works similarily but isn't deprecated.
Signed-off-by: Tobias Speicher <rootcommander@gmail.com>
2022-02-20 22:11:11 +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
Tom Hughes
fc1c8d60a4 Merge remote-tracking branch 'upstream/pull/3461' 2022-02-16 18:12:33 +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
Andy Allan
572e842f8c Update documentation for how to confirm a new user account
Fixes #3460
2022-02-16 11:27:52 +00:00
Tom Hughes
319e54e08a Update bundle 2022-02-15 18:36:41 +00:00
Tom Hughes
f67ac3c432 Merge remote-tracking branch 'upstream/pull/3458' 2022-02-15 18:32:33 +00:00
dependabot[bot]
8f28f95242
Bump eslint from 8.8.0 to 8.9.0
Bumps [eslint](https://github.com/eslint/eslint) from 8.8.0 to 8.9.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.8.0...v8.9.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-02-14 23:00:49 +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
Tom Hughes
9da90af1b5 Merge remote-tracking branch 'upstream/pull/3455' 2022-02-13 17:39:15 +00:00
Harry Wood
1714e2f02d Remove section on removed rake doc:app
Remove the section of contributing docs about how `rake doc:app` can be used to generate some sort of documentation. That will not work any more, since this task was removed from Rails v5 because people don't generally use it! https://stackoverflow.com/a/36804474/338265
2022-02-12 18:06:48 +00:00
Harry Wood
6ede9e3ec7 Fix contrib doc to remove reference to travis
Remove the reference to Travis CI. Our CI pipeline now runs withing github actions.
2022-02-12 17:53:39 +00:00
Tom Hughes
c6ac87a990 Merge remote-tracking branch 'upstream/pull/3454' 2022-02-12 10:45:27 +00:00