Andy Allan
a219df24ca
Ensure that urls are only valid if the entire string is a url
...
This replaces our homegrown regexps (that didn't quite work) with
ruby built-in regexps, and uses the termination anchor to ensure
that the entire string, not just the first part, is validated.
2020-04-01 17:53:37 +02:00
Andy Allan
73c95847a6
Merge pull request #2485 from mmd-osm/patch/json2
...
JSON output nodes, ways, relations, map
2020-02-26 15:55:48 +01:00
Tom Hughes
7b0d3aaf9f
Fix translation names
2020-01-09 11:00:46 +00:00
Tom Hughes
b1e1572af3
Don't validate the revoker for a block if it hasn't changed
...
The revoker only has to be a moderator at the time they make the
revocation - as things stood trying to view a block that had been
revoked by somebody that was no longer a moderator failed.
2020-01-09 10:59:34 +00:00
mmd-osm
b54333fa6d
Unify lat/lon formatting for json output
2020-01-02 14:52:53 +01:00
Andy Allan
040302286f
Remove ignoring of nearby column
...
This is the final stage in the process. Now that the migrations are run,
and apps restarted, it is safe to remove the ignore_column declaration.
2019-12-11 18:08:31 +01:00
Andy Allan
a41d500b9f
Create an ApplicationRecord for models to inherit from
...
This is the default for Rails 5+, and also paves the way for
multiple database support.
2019-11-27 11:50:48 +01:00
Tom Hughes
6ec02bcdb2
Merge remote-tracking branch 'upstream/pull/2440'
2019-11-20 19:01:13 +00:00
Andy Allan
8ad88b9ddc
Move user preference XML generation to a view
2019-11-20 16:39:23 +01:00
Andy Allan
bc850d1d37
Move Relation.to_xml and to_xml_node out of the model and into tests
2019-11-20 15:45:28 +01:00
Andy Allan
2b1bac1279
Move Way.to_xml and to_xml_node out of the model and into tests
...
This code is only used in the tests. Refs #2433
2019-11-20 15:31:47 +01:00
Tom Hughes
efcb56b68b
Merge remote-tracking branch 'upstream/pull/2433'
2019-11-14 12:24:50 +00:00
Andy Allan
4e7c0c3008
Move Node.to_xml and to_xml_node out of model and into tests
...
This code is only used in the tests for creating 'fixture' payloads,
so it shouldn't be kept in the models.
2019-11-13 17:01:40 +01:00
Andy Allan
dd294f89b8
Ignore the users.nearby column
...
This is the first step of removing the column, see #2417 . It needs to be
deployed before a migration to remove it, since the columns are
cached in ActiveRecord and things break if objects exist in memory
that expect the column to be there.
2019-11-13 14:19:32 +01:00
Tom Hughes
135ec35a91
Fix numericality validation to use correct integer only constraint
...
Fixes #2355
2019-08-22 12:14:06 +01:00
Tom Hughes
389fee0151
Revert "Always look to the global scope for the GPX module"
...
This reverts commit fbefe3550c
.
2019-08-14 19:06:09 +01:00
Tom Hughes
8a39c6b4a2
Drop old user image columns
2019-07-17 19:12:30 +01:00
Andy Allan
0444187cb6
Update annotations after 91a37235ac
2019-07-17 10:39:10 +02:00
Tom Hughes
91a37235ac
Remove support for old style user images
2019-07-16 22:33:26 +01:00
Tom Hughes
905a7eadb6
Defer deletion of avatars to a background job
2019-07-16 08:27:14 +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
cbea796ef4
Merge remote-tracking branch 'upstream/pull/2207'
2019-06-26 14:30:30 +01:00
Tom Hughes
d2d5d48f29
Allow signups to be blocked by MX host
2019-06-23 11:21:03 +01:00
Andy Allan
d33b1f6b29
Pass the models, not the ids, when dealing with friendships
2019-06-19 16:56:31 +02:00
Andy Allan
2169c503ef
Rename user.friend_users to user.friends
...
This is possible now since we've renamed Friend to Friendship
2019-06-19 16:51:35 +02:00
Andy Allan
1cf8fec58d
Rename Friend model to Friendship
...
This better describes what the model represents, which is the relationship
between the two users.
2019-06-19 16:39:25 +02:00
Tom Hughes
ee458b6ee2
Parse each GPX file in an archive separately
...
Fixes #2253
2019-06-11 12:57:00 +01:00
Tom Hughes
5bb21188e4
Fix rubocop warning
2019-06-05 09:20:00 +01:00
Andy Allan
8ae8768cd3
Update annotations to show 'using' clause on indexes
2019-05-29 12:02:50 +02:00
Andy Allan
4377e2bd55
Update annotations to correctly show bigint types
2019-05-29 11:52:20 +02:00
Tom Hughes
e78859aeaf
Merge remote-tracking branch 'upstream/pull/2028'
2019-05-19 17:14:19 +01:00
Tom Hughes
8e258d810c
Add some extra indexes for ACL lookups
2019-05-18 12:57:31 +01:00
Simon Poole
077834704e
Add links to the ToU and include them in signup
...
- this adds links to the ToU in the Welcome box and on the About page
- adds a timestamp column to the users table to record acceptance of the ToU
- require ToU to be accepted before signup can proceed
- rearrange and change text on signup page
2019-05-13 16:52:18 +02:00
Tom Hughes
9f57f60b87
Fix new rubocop warnings
2019-04-23 09:33:34 +01:00
Frederik Ramm
17e6e69c39
Move generation of gpx_file XML from model to builder
2019-04-14 16:25:14 +01:00
Tom Hughes
dcfe326f65
Merge remote-tracking branch 'upstream/pull/2175'
2019-03-26 19:14:04 +00:00
Andy Allan
c1bf73bee4
Use an enumerator for gpx.points, and process the the points in batches
2019-03-20 10:35:40 +01:00
Andy Allan
07fdcf638e
Raise exception if there is an error, and import tracepoints in batches
2019-03-20 10:35:40 +01:00
Andy Allan
400db58036
Use activerecord-import for bulk importing tracepoint records
...
Non-rigourous testing shows a significant speedup, even on ssds.
2019-03-20 10:35:40 +01:00
Tom Hughes
e3ed9988ce
Merge remote-tracking branch 'upstream/pull/2177'
2019-03-16 15:39:03 +00:00
Tom Hughes
874fddf499
Merge remote-tracking branch 'upstream/pull/2164'
2019-03-16 15:31:29 +00:00
Frederik Ramm
538bfed8a6
Move changeset XML generation to a view
2019-03-16 15:30:18 +00:00
Andy Allan
d102c9aaf4
Move all settings to settings.yml
...
We leave the STATUS setting alone, since it's required before rails
boots. The test-specific settings now live in config/settings/test.yml
2019-03-13 18:06:23 +01:00
Andy Allan
1ca77d6dda
Rubocop fixes for ruby 2.5
2019-03-13 10:33:33 +01:00
Tom Hughes
7ccf6964e3
Prevent leading and trailing whitespace on email addresses
2019-03-08 11:17:51 +00:00
Tom Hughes
e174eb762f
Strip leading and trailing whitespace for email authentication
...
Fixes #2173
2019-03-08 10:59:57 +00:00
Tom Hughes
fbefe3550c
Always look to the global scope for the GPX module
2019-02-07 18:40:35 +00:00
Andy Allan
c4a192f436
Remove unnecessary requires from app
2019-02-06 12:26:30 +01:00
Andy Allan
32ce4ea527
Move utf8 validator into app/validators
2019-02-06 12:11:44 +01:00
Tom Hughes
cdb42d2a6c
Avoid ordering points from public and private traces
...
Closes #2046
2018-11-07 08:57:14 +00:00