Tom Hughes
466de96a91
Fix new rubocop warnings
2023-06-27 18:13:33 +01:00
Tom Hughes
c599f2bfaf
Fix new rubocop warnings
2023-01-24 18:23:49 +00:00
Andy Allan
4ab134d869
Use fallbacks for OCI resource names
...
This uses the fallbacks for OCI translations. For example, if a
local chapter doesn't have an explicitly translated name, it will
use a template for osm-lc resources and fill in the appropriate
translated community name.
Fixes #3814
2022-12-14 14:54:01 +00:00
Tom Hughes
8cef62cd2c
Merge remote-tracking branch 'upstream/pull/3301'
2022-11-22 18:47:24 +00:00
Andy Allan
b755db57a6
Use Pathname.glob to fetch the files
2022-11-02 18:33:32 +00:00
Andy Allan
af6fec502a
Validate URLs against supply-chain attacks
...
Unfortunately validates_url gem doesn't support mailto or xmpp urls,
so we need to write our own validation.
2022-11-02 18:21:00 +00:00
Brian DeRocher
8eb2abc10c
get_text("reversegeocode/result") returns an XML node. We want to get the text value of that node.
...
This will unescape ' into an apostrophe.
All callers of this function will later re-encode it depending out output whether it be HTML in an email, or XML in an RSS feed.
* app/mailers/user_mail.rb
* app/helpers/geocode_helper.rb
* app/views/api/notes/feed.rss.builder
* app/views/api/notes/_note.rss.builder
Fixes openstreetmap/openstreetmap-website#3761
2022-10-23 16:04:01 -04:00
Adam Hoyle
7e5cbe87ed
Merge branch 'master' into feature/add-communities-page
...
# Conflicts:
# Gemfile.lock
# package.json
# yarn.lock
2022-09-10 16:13:17 +01:00
Tom Hughes
9cd96bd452
Fix new rubocop warnings
2022-09-09 22:45:58 +01:00
Tom Hughes
fa93526f76
Use nominatim_url setting more consistently
2022-09-07 08:45:27 +01:00
Andy Allan
7e62e2b5ed
Filter out the communities before loading the translations
...
This avoids loading excessive numbers of translations
2022-08-10 17:34:24 +01:00
Andy Allan
bf1f882eb8
Genericese comment
2022-08-10 17:19:46 +01:00
Andy Allan
87bb2a717d
Use each_with_object
2022-08-10 14:01:42 +01:00
Andy Allan
5dcb4aa8fd
Use member syntax for accessing communities
2022-08-10 13:54:14 +01:00
Andy Allan
d20632de9c
Restrict files read from directory
2022-08-10 13:48:27 +01:00
Andy Allan
83a0ea14f1
Refactor i18n so that all community information is available
...
This makes it easier to use non-chapter communities on the site in future.
2022-08-03 10:11:30 +01:00
Andy Allan
bb7f5ac2c8
Switch to using FrozenRecord for loading communities
...
This allows us to query the records to get the local chapters, which
is more flexible and allows us to use other resources too.
2022-07-27 16:19:08 +01:00
Tom Hughes
006884bedd
Fix new rubocop warning
2022-06-28 21:11:12 +01:00
Tom Hughes
eea25bd154
Set a timeout on HTTP requests made by the server
2022-05-29 10:55:06 +01:00
Andy Allan
561ee71129
Rubocop autofix: ambiguous operator precedence
...
This simply adds braces to clarify which mathematical operator comes
first.
2022-04-06 14:55:29 +01:00
Andy Allan
d17d13c806
Use map rather than foo = [] ... each ... foo.push(bar)
2022-03-30 18:03:11 +01:00
Andy Allan
44286b46b1
Use String#tr instead of String.split(foo).join(bar)
2022-03-30 17:41:30 +01:00
Andy Allan
d6f8302eae
Merge pull request #3491 from tomhughes/legacy-trace
...
Remove support for legacy trace files
2022-03-09 17:10:40 +00:00
Tom Hughes
5d67fa3908
Fix some Naming/AccessorMethodName rubocop warnings
2022-03-08 19:10:05 +00:00
Tom Hughes
cbcc7dc49f
Fix some rubocop Naming/PredicateName warnings
2022-03-03 22:47:55 +00:00
Tom Hughes
92b122759f
Remove support for legacy trace files
2022-03-03 19:47:40 +00:00
Andy Allan
1bcde09125
Unnest OsmCommunityIndex
...
No need for OsmCommunityIndex::OsmCommunityIndex.foo
2022-03-02 16:23:07 +00:00
Andy Allan
30b3a971bc
Rubocop autofixes
2022-03-02 15:52:04 +00:00
Tom Hughes
b5f06e06c1
Fix rubocop Rails/TimeZone warnings
2022-03-01 22:55:10 +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
Adam Hoyle
b4ec1c9f3d
Fix: add osm-community-index localisation data to I18n
2022-02-10 22:28:40 +00: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
Tom Hughes
b244905cd2
Add a rake task to migrate trace data to ActiveStorage
2021-12-16 18:45:31 +00:00
Tom Hughes
0410596908
Switch traces to use ActiveStorage
2021-12-16 18:45:31 +00:00
Adam Hoyle
46875fdde3
Merge branch 'master' into feature/add-communities-page
2021-12-14 10:42:42 +00:00
Adam Hoyle
a1db3f9ae4
Fix: only call store_translations once per locale
2021-12-14 10:39:25 +00:00
Adam Hoyle
e412ac319c
Fix: local chapter filtering is duplicating the logic elsewhere in the file.
2021-12-14 10:37:35 +00:00
Adam Hoyle
6b8c58d2eb
Skip path rebuilding
2021-12-14 10:17:02 +00:00
Adam Hoyle
764f808d5a
Remove hand rolled i18n support
2021-11-24 22:47:19 +00:00
Adam Hoyle
ad900553cb
Add relevant osm-community-index data into I18n
2021-11-24 22:22:32 +00:00
Tom Hughes
aad81eb74c
Switch to Argon2 for password hashing
2021-11-03 20:39:31 +00:00
Adam Hoyle
f234bf3a46
Pay heed to rubocop
2021-10-17 23:34:26 +01:00
Adam Hoyle
0eb2afa83a
Merge branch 'master' into feature/add-communities-page
2021-10-17 22:33:02 +01:00
Adam Hoyle
06c2db433d
Merge branch 'master' into feature/add-communities-page
2021-09-27 19:30:25 +01:00
Adam Hoyle
a57bc158fd
Improve encapsulation / location of osm-community-index files
2021-09-08 20:44:35 +01:00
Tom Hughes
64604a852f
Add a privileged scope that allows authorization to be skipped
2021-08-26 17:22:25 +01:00
Tom Hughes
f4d1d97848
Add a privileged scope that allows email addresses to be returned
2021-08-26 17:22:25 +01:00
Tom Hughes
6c6e8883f7
Introduce privileged scopes that only an administrator can enable
2021-08-26 17:22:24 +01:00
Tom Hughes
7d46f5db60
Fix new rubocop warnings
2021-08-17 18:17:18 +01:00
Tom Hughes
fa8818337f
Fix locale matching for iD
2021-07-27 17:38:17 +01:00