Commit graph

9630 commits

Author SHA1 Message Date
Tom Hughes
24cf580979 Suppress new rubocop warning 2019-10-20 19:48:36 +01:00
Tom Hughes
7321023bd5 Update bundle 2019-10-20 19:44:28 +01:00
Tom Hughes
3e17c3aab6 Drop postgres 9.6 specific setting from structure.sql
Closes #2404
2019-10-20 19:22:47 +01:00
Tom Hughes
ce1f0c249e Tidy up C database function support in travis 2019-10-20 19:15:11 +01:00
Tom Hughes
9508368d37 Merge remote-tracking branch 'upstream/pull/2383' 2019-10-20 19:13:30 +01:00
Manfred Stock
c744326b97 Update rubocop todo
The addition of the wikimedia_commons hyperlinking feature seems to trigger
the Metrics/ModuleLength check.
2019-10-19 18:09:08 +02:00
Manfred Stock
c3300d8c93 Turn wikimedia_commons values into links
This turns the value of the 'wikimedia_commons' tag into a link to the
respective page on commons.wikimedia.org (if it is a 'File:' or 'Category:'
item) by enhancing the browse tags helper. See [1] for the tag description.

[1] http://wiki.openstreetmap.org/wiki/Key:wikimedia_commons
2019-10-19 16:04:09 +02:00
Matt Amos
cc101f582d Fix installation instructions for Mac OS X
The installation of `libxml-ruby` was broken because it was picking up the system version of the libxml2 library. By setting a `bundler` config item, it's possible to point it to the right place.

Also updated the instructions for `phantomjs`, which Homebrew has moved to a cask (and is now not officially supported), and added some of the extra command line tools that are used (`pngcrush`, `optipng`, etc...)
2019-10-18 16:25:30 +01:00
translatewiki.net
1bf2a540d0 Localisation updates from https://translatewiki.net. 2019-10-17 20:10:51 +02:00
Tom Hughes
936967d0cb Allow administrators to see deleted diary comments 2019-10-17 12:16:28 +01:00
Tom Hughes
752f190a24 Merge remote-tracking branch 'upstream/pull/2398' 2019-10-16 14:20:44 +01:00
Tom Hughes
0def53c094 Remove unused banner images 2019-10-16 13:59:02 +01:00
Andy Allan
31db8dffc1 Rephrase changeset comment notifications to clarify the time is for the comment
Refs https://trac.openstreetmap.org/ticket/5307

There's still an unfortunate double use of "comment" to mean both the
ChangesetComment and also the changeset's `comment` tag, but I can't see a
simple way to fix that.
2019-10-16 14:48:45 +02:00
Fazle Rabbi
9e1c11626d
add sotm_asia_2019.png for StoM Asia 2019 banner image 2019-10-16 17:04:55 +06:00
Fazle Rabbi
4b6554ee58
modify banners.yml to add SotM Asia 2019 2019-10-16 17:01:57 +06:00
Andy Allan
41ba976d5a DMCA page is now available over https 2019-10-16 11:25:16 +02:00
Andy Allan
6b6245365a
Merge pull request #2374 from tordans/patch-1
Add reference to settings.local.yml-file in installation.md
2019-10-16 10:32:17 +02:00
translatewiki.net
ea037d0258 Localisation updates from https://translatewiki.net. 2019-10-14 17:39:42 +02:00
Tom Hughes
4b8f0a7389 Give factory created traces a size
Traces which are marked as inserted are expected to have a size.
2019-10-13 12:18:57 +01:00
Tom Hughes
f0324b60b1 Make trace.trace.count_points a plural string 2019-10-13 10:55:02 +01:00
Tom Hughes
3b636ddb6f Don't try and commas to the trace size
It breaks pluralisation lookups in the locale and in any case
adding a comma every three digits is locale specific.

Fixes #2388
2019-10-13 10:54:47 +01:00
hikemaniac
651342197a Added landuse icons and fixed some mistakes in browse.scss
Closes #2385
2019-10-09 17:48:07 +01:00
Matt Amos
7fb5bcaf3f Clarify that there is no pure SQL version of xid_to_int4 for diff replication. 2019-10-09 15:18:05 +01:00
Matt Amos
2423d86914 Make documentation clearer and shorter by deferring complicated shared-library SQL explanations to 'advanced' documentation. Also mention in the CONFIGURING.md. 2019-10-09 12:13:27 +01:00
Tom Hughes
d96a5c9c87 Switch to use v4.0 of the Facebook API for authentication 2019-10-08 18:36:27 +01:00
Tom Hughes
3938f1008e Update rubocop todo 2019-10-07 20:38:03 +01:00
Tom Hughes
bbd03b1bae Update bundle 2019-10-07 20:30:01 +01:00
translatewiki.net
059da1617b Localisation updates from https://translatewiki.net. 2019-10-07 19:56:25 +02:00
Matt Amos
809b194030 Reverting part of the db/structure.sql change which had been unintentionally committed. (perhaps PG version difference?) 2019-10-04 15:38:42 +01:00
Matt Amos
098e73479b Remove shared lib PG functions from committed DB structure. 2019-10-04 13:40:27 +01:00
Matt Amos
ced8ac86ab Remove need for shared library PostgreSQL functions
This repo contains code for three functions to be loaded into PostgreSQL as a shared library:

1. `maptile_for_point`, which is used only by the `/changes` API call. This API call is little-used and IMHO should be deprecated and removed. However, even now it's hardly on the hot path for most development activities.
2. `tile_for_point`, which is used only in migrations. At this point, it seems unlikely that anyone will be doing a migration on existing data which would call this function (most developers will be running migrations on an empty database, to set it up).
3. `xid_to_int4`, which is only used for replication using Osmosis and isn't used in the Rails code at all. Hopefully this will be replaced Real Soon Now, but until then it's a quite advanced feature that most developers won't need.

Therefore, this patch proposes to replace the above three shared library functions with SQL implementations of the first two. These are _much_ slower - by a factor of about 30x, however this makes no difference when they're run on a completely empty database. In return, we're able to drop a dependency on the PostgreSQL server development package, and clean a few lines out of the installation instructions.

It's still possible to make and install the shared library functions, and I've included instructions about how to do that - although it shouldn't be necessary for the vast majority of `openstreetmap-website` developers.
2019-10-04 13:25:00 +01:00
translatewiki.net
1d7e4a4c46 Localisation updates from https://translatewiki.net. 2019-10-03 19:47:17 +02:00
translatewiki.net
83983bfc6a Localisation updates from https://translatewiki.net. 2019-10-01 16:41:10 +02:00
translatewiki.net
136ebc82a0 Localisation updates from https://translatewiki.net. 2019-09-26 20:38:09 +02:00
translatewiki.net
aa8cc45579 Localisation updates from https://translatewiki.net. 2019-09-23 18:02:20 +02:00
Tobias
be9db818b2
Add reference to settings-file in installation.md
This way new developers will not have to look up this error themselves.
2019-09-23 16:45:25 +02:00
translatewiki.net
4b41eee8bd Localisation updates from https://translatewiki.net. 2019-09-19 14:41:09 +02:00
translatewiki.net
48764d33c6 Localisation updates from https://translatewiki.net. 2019-09-16 19:04:07 +02:00
translatewiki.net
271b330b79 Localisation updates from https://translatewiki.net. 2019-09-12 16:10:59 +02:00
translatewiki.net
b845406087 Localisation updates from https://translatewiki.net. 2019-09-09 19:26:49 +02:00
translatewiki.net
74f7aa7ee3 Localisation updates from https://translatewiki.net. 2019-09-06 07:09:19 +02:00
Tom Hughes
e219916dcb When overriding setup make sure to call the superclass 2019-09-05 21:24:20 +01:00
Andy Allan
374668c7cc
Merge pull request #1779 from stefanb/tag-colour-preview
Added color preview box in tag browser sidebar
2019-09-04 15:15:06 +02:00
translatewiki.net
5dfa747823 Localisation updates from https://translatewiki.net. 2019-09-03 09:38:41 +02:00
Michael Reichert
357060d96f Add banner for SotM 2019 2019-09-01 17:21:25 +02:00
Stefan Baebler
379401d76c fixed line lengths 2019-08-31 13:15:33 +02:00
Stefan Baebler
c47bd173ff fixed some rubocop violations 2019-08-31 12:10:36 +02:00
Stefan Baebler
e968ad038a Fixed 2 new eslint errors 2019-08-31 11:59:44 +02:00
Stefan Baebler
fe2bd1ee1a Colour preview moved into new browse_tags_helper
In 74d2c4336b browse_helper was split int two
2019-08-31 11:40:42 +02:00
Stefan Baebler
e731dd71a7 Merge branch 'master' into tag-colour-preview-rebase 2019-08-31 11:34:57 +02:00