]> git.openstreetmap.org Git - rails.git/log
rails.git
12 months agoAdd opnvkarte map key line widths on high zoom levels
Anton Khorev [Fri, 8 Dec 2023 10:48:31 +0000 (13:48 +0300)]
Add opnvkarte map key line widths on high zoom levels

12 months agoAllow to omit max_zoom if next map key entry has min_zoom
Anton Khorev [Fri, 8 Dec 2023 10:21:57 +0000 (13:21 +0300)]
Allow to omit max_zoom if next map key entry has min_zoom

12 months agoLoad map key data in controller
Anton Khorev [Fri, 8 Dec 2023 09:55:18 +0000 (12:55 +0300)]
Load map key data in controller

12 months agoMerge remote-tracking branch 'upstream/pull/4371'
Tom Hughes [Thu, 7 Dec 2023 16:19:23 +0000 (16:19 +0000)]
Merge remote-tracking branch 'upstream/pull/4371'

12 months agoMerge remote-tracking branch 'upstream/pull/4392'
Tom Hughes [Thu, 7 Dec 2023 16:06:22 +0000 (16:06 +0000)]
Merge remote-tracking branch 'upstream/pull/4392'

12 months agoAdd stop markers for opnvkarte map key
Anton Khorev [Tue, 28 Nov 2023 14:18:13 +0000 (17:18 +0300)]
Add stop markers for opnvkarte map key

12 months agoAdd high-zoom rail shape for opnvkarte map key
Anton Khorev [Tue, 28 Nov 2023 13:44:09 +0000 (16:44 +0300)]
Add high-zoom rail shape for opnvkarte map key

12 months agoAdd rail dash pattern for opnvkarte map key on zoom 11+
Anton Khorev [Mon, 27 Nov 2023 16:31:33 +0000 (19:31 +0300)]
Add rail dash pattern for opnvkarte map key on zoom 11+

12 months agoUpdate opnvkarte map key line widths up to 4px for different zooms
Anton Khorev [Mon, 27 Nov 2023 16:06:45 +0000 (19:06 +0300)]
Update opnvkarte map key line widths up to 4px for different zooms

12 months agoAdd transportation map key for opnvkarte
Anton Khorev [Sun, 26 Nov 2023 23:41:09 +0000 (02:41 +0300)]
Add transportation map key for opnvkarte

12 months agoAllow to omit zoom levels for map key entries
Anton Khorev [Sun, 26 Nov 2023 23:40:11 +0000 (02:40 +0300)]
Allow to omit zoom levels for map key entries

12 months agoResourceful routing for passwords
Andy Allan [Wed, 6 Dec 2023 18:41:00 +0000 (18:41 +0000)]
Resourceful routing for passwords

This also matches the routes used by devise

12 months agoUse path and url helpers for password links
Andy Allan [Wed, 6 Dec 2023 18:39:25 +0000 (18:39 +0000)]
Use path and url helpers for password links

12 months agoMerge remote-tracking branch 'upstream/pull/4391'
Tom Hughes [Wed, 6 Dec 2023 17:54:47 +0000 (17:54 +0000)]
Merge remote-tracking branch 'upstream/pull/4391'

12 months agoMerge remote-tracking branch 'upstream/pull/4390'
Tom Hughes [Wed, 6 Dec 2023 17:53:15 +0000 (17:53 +0000)]
Merge remote-tracking branch 'upstream/pull/4390'

12 months agoMerge remote-tracking branch 'upstream/pull/4389'
Tom Hughes [Wed, 6 Dec 2023 17:50:42 +0000 (17:50 +0000)]
Merge remote-tracking branch 'upstream/pull/4389'

12 months agoMerge remote-tracking branch 'upstream/pull/4388'
Tom Hughes [Wed, 6 Dec 2023 17:47:14 +0000 (17:47 +0000)]
Merge remote-tracking branch 'upstream/pull/4388'

12 months agoMigrate some sequences to use bigints
Andy Allan [Wed, 6 Dec 2023 14:42:40 +0000 (14:42 +0000)]
Migrate some sequences to use bigints

These primary keys were converted to bigints in migrations, but the
sequences were left unmentioned. If the original migrations are run on
postgresql 10.0+, then this leads to a mismatch in column types vs sequence
types. This migration fixes these mismatches.

If the original migrations were run on postgresql < 10, all sequences were
bigints anyway, and this migration is a no-op.

If the sequence is a bigint, then postgresql doesn't output that fact in the
statement dump.

Refs #4298

12 months agoRemove normalisation of immutable keyword
Andy Allan [Wed, 6 Dec 2023 13:55:11 +0000 (13:55 +0000)]
Remove normalisation of immutable keyword

This was no longer required after removing the database functions.

12 months agoRemove the references to plpgsql extension
Andy Allan [Wed, 6 Dec 2023 13:50:02 +0000 (13:50 +0000)]
Remove the references to plpgsql extension

This has been built-in since postgresql 9.0

12 months agoRemove the sequence type normalisation
Andy Allan [Wed, 29 Nov 2023 18:43:46 +0000 (18:43 +0000)]
Remove the sequence type normalisation

This can mask important matters with the definition of sequences

12 months agoRemove the timestamp normalisation
Andy Allan [Wed, 29 Nov 2023 16:01:07 +0000 (16:01 +0000)]
Remove the timestamp normalisation

The precision of the timestamps is controlled in our migrations,
and so any mismatch should be marked as an error.

The ar_internal_metadata is not controlled, but is timestamp(6) for
rails 6.0+ installations, and so this won't fail in CI.

12 months agoAdd comment for btree_gist to structure.sql
Andy Allan [Wed, 29 Nov 2023 15:10:01 +0000 (15:10 +0000)]
Add comment for btree_gist to structure.sql

Refs #4298

12 months agoFix new rubocop warnings
Tom Hughes [Tue, 5 Dec 2023 18:13:13 +0000 (18:13 +0000)]
Fix new rubocop warnings

12 months agoUpdate bundle
Tom Hughes [Tue, 5 Dec 2023 18:11:14 +0000 (18:11 +0000)]
Update bundle

12 months agoUse SecureRandom to generate user tokens
Tom Hughes [Mon, 4 Dec 2023 17:23:23 +0000 (17:23 +0000)]
Use SecureRandom to generate user tokens

12 months agoLocalisation updates from https://translatewiki.net.
translatewiki.net [Mon, 4 Dec 2023 12:24:02 +0000 (13:24 +0100)]
Localisation updates from https://translatewiki.net.

12 months agoRemove unused .current from primary nav
Anton Khorev [Mon, 4 Dec 2023 02:10:41 +0000 (05:10 +0300)]
Remove unused .current from primary nav

12 months agoUpdate color of mapnik map key for lakes
Anton Khorev [Sun, 3 Dec 2023 22:58:23 +0000 (01:58 +0300)]
Update color of mapnik map key for lakes

12 months agoMerge remote-tracking branch 'upstream/pull/4384'
Tom Hughes [Sun, 3 Dec 2023 18:33:18 +0000 (18:33 +0000)]
Merge remote-tracking branch 'upstream/pull/4384'

12 months agoMerge remote-tracking branch 'upstream/pull/4383'
Tom Hughes [Sun, 3 Dec 2023 18:32:54 +0000 (18:32 +0000)]
Merge remote-tracking branch 'upstream/pull/4383'

12 months agoMerge remote-tracking branch 'upstream/pull/4385'
Tom Hughes [Sun, 3 Dec 2023 18:32:34 +0000 (18:32 +0000)]
Merge remote-tracking branch 'upstream/pull/4385'

12 months agoBump eslint from 8.54.0 to 8.55.0
dependabot[bot] [Fri, 1 Dec 2023 23:08:06 +0000 (23:08 +0000)]
Bump eslint from 8.54.0 to 8.55.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.54.0 to 8.55.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.54.0...v8.55.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
12 months agoFix min zoom levels for some landcover mapnik map key features
Anton Khorev [Thu, 30 Nov 2023 23:39:14 +0000 (02:39 +0300)]
Fix min zoom levels for some landcover mapnik map key features

12 months agoMake mapnik map key for lakes visible on all zoom levels
Anton Khorev [Thu, 30 Nov 2023 23:10:14 +0000 (02:10 +0300)]
Make mapnik map key for lakes visible on all zoom levels

12 months agoMerge remote-tracking branch 'upstream/pull/4381'
Tom Hughes [Thu, 30 Nov 2023 17:56:24 +0000 (17:56 +0000)]
Merge remote-tracking branch 'upstream/pull/4381'

12 months agoFix mapnik map key for roads
Anton Khorev [Thu, 30 Nov 2023 16:12:34 +0000 (19:12 +0300)]
Fix mapnik map key for roads

The main changes are:
- no roads on zooms < 6
- no yellow-colored secondary highways without casing

12 months agoLocalisation updates from https://translatewiki.net.
translatewiki.net [Thu, 30 Nov 2023 12:18:45 +0000 (13:18 +0100)]
Localisation updates from https://translatewiki.net.

12 months agoMerge remote-tracking branch 'upstream/pull/4378'
Tom Hughes [Wed, 29 Nov 2023 12:49:32 +0000 (12:49 +0000)]
Merge remote-tracking branch 'upstream/pull/4378'

12 months agoUse 5 meter radius for input locations in Valhalla
Nils [Wed, 29 Nov 2023 12:06:41 +0000 (13:06 +0100)]
Use 5 meter radius for input locations in Valhalla

This will search for road segments within 5 meter radius of the input location and choose the best path from/to whichever segment gives the cheapest cost. It should be preferable in most scenarios compared to simply snapping to the closest segment.

I'll do the same PR for our web app at https://github.com/gis-ops/valhalla-app.

12 months agoMerge remote-tracking branch 'upstream/pull/4329'
Tom Hughes [Tue, 28 Nov 2023 22:21:50 +0000 (22:21 +0000)]
Merge remote-tracking branch 'upstream/pull/4329'

12 months agoMerge remote-tracking branch 'upstream/pull/4374'
Tom Hughes [Tue, 28 Nov 2023 18:43:45 +0000 (18:43 +0000)]
Merge remote-tracking branch 'upstream/pull/4374'

12 months agoMerge remote-tracking branch 'upstream/pull/4373'
Tom Hughes [Tue, 28 Nov 2023 18:37:48 +0000 (18:37 +0000)]
Merge remote-tracking branch 'upstream/pull/4373'

12 months agoUpdate expected response for doorkeeper errors
Tom Hughes [Tue, 28 Nov 2023 18:35:11 +0000 (18:35 +0000)]
Update expected response for doorkeeper errors

12 months agoAllow FactoryBot to set primary key attributes
Tom Hughes [Tue, 28 Nov 2023 18:25:35 +0000 (18:25 +0000)]
Allow FactoryBot to set primary key attributes

We have at least model (Language) which does not use datbase
generated primary keys so we need to be able to set them.

https://github.com/thoughtbot/factory_bot_rails/pull/419

12 months agoUpdate bundle
Tom Hughes [Tue, 28 Nov 2023 18:18:17 +0000 (18:18 +0000)]
Update bundle

12 months agoMerge remote-tracking branch 'upstream/pull/4352'
Tom Hughes [Tue, 28 Nov 2023 18:11:40 +0000 (18:11 +0000)]
Merge remote-tracking branch 'upstream/pull/4352'

13 months agoStart summit mapnik map key at zoom 11
Anton Khorev [Mon, 27 Nov 2023 14:02:58 +0000 (17:02 +0300)]
Start summit mapnik map key at zoom 11

13 months agoStart dashed rail line mapnik map key at zoom 12
Anton Khorev [Mon, 27 Nov 2023 13:51:38 +0000 (16:51 +0300)]
Start dashed rail line mapnik map key at zoom 12

13 months agoLocalisation updates from https://translatewiki.net.
translatewiki.net [Mon, 27 Nov 2023 12:19:08 +0000 (13:19 +0100)]
Localisation updates from https://translatewiki.net.

13 months agoMerge remote-tracking branch 'upstream/pull/4368'
Tom Hughes [Sun, 26 Nov 2023 19:01:20 +0000 (19:01 +0000)]
Merge remote-tracking branch 'upstream/pull/4368'

13 months agoMerge remote-tracking branch 'upstream/pull/4367'
Tom Hughes [Sun, 26 Nov 2023 18:57:16 +0000 (18:57 +0000)]
Merge remote-tracking branch 'upstream/pull/4367'

13 months agoMerge remote-tracking branch 'upstream/pull/4366'
Tom Hughes [Sun, 26 Nov 2023 18:56:05 +0000 (18:56 +0000)]
Merge remote-tracking branch 'upstream/pull/4366'

13 months agoRead layers with available map key from config/key.yml
Anton Khorev [Fri, 24 Nov 2023 13:38:38 +0000 (16:38 +0300)]
Read layers with available map key from config/key.yml

13 months agoAdd tooltip to disabled html share button
Anton Khorev [Fri, 24 Nov 2023 13:00:45 +0000 (16:00 +0300)]
Add tooltip to disabled html share button

13 months agoDisable html share button for tracestracktopo layer
Anton Khorev [Fri, 24 Nov 2023 12:12:41 +0000 (15:12 +0300)]
Disable html share button for tracestracktopo layer

13 months agoDrop ACL check from notes#comment as we no longer allow anonymous comments
Tom Hughes [Thu, 23 Nov 2023 16:47:35 +0000 (16:47 +0000)]
Drop ACL check from notes#comment as we no longer allow anonymous comments

13 months agoPrevent unauthenticated users commenting on notes via the API
Tom Hughes [Thu, 23 Nov 2023 16:46:36 +0000 (16:46 +0000)]
Prevent unauthenticated users commenting on notes via the API

13 months agoRemove unused css for lists inside primary nav on narrow screens
Anton Khorev [Thu, 23 Nov 2023 16:52:51 +0000 (19:52 +0300)]
Remove unused css for lists inside primary nav on narrow screens

13 months agoLocalisation updates from https://translatewiki.net.
translatewiki.net [Thu, 23 Nov 2023 12:21:39 +0000 (13:21 +0100)]
Localisation updates from https://translatewiki.net.

13 months agoMerge pull request #4296 from AntonKhorev/header-flex
Andy Allan [Wed, 22 Nov 2023 17:22:46 +0000 (17:22 +0000)]
Merge pull request #4296 from AntonKhorev/header-flex

Use flex container instead of floats in header

13 months agoMerge pull request #4353 from tomhughes/rtlcss
Andy Allan [Wed, 22 Nov 2023 17:13:35 +0000 (17:13 +0000)]
Merge pull request #4353 from tomhughes/rtlcss

Improve handling of RTL styling

13 months agoMerge pull request #4313 from AntonKhorev/account-delete-delay
Andy Allan [Wed, 22 Nov 2023 15:07:34 +0000 (15:07 +0000)]
Merge pull request #4313 from AntonKhorev/account-delete-delay

Account deletion cool-down period

13 months agoDisallow account deletion after confirmation
Anton Khorev [Tue, 24 Oct 2023 18:20:19 +0000 (21:20 +0300)]
Disallow account deletion after confirmation

13 months agoDisable delete account button if there are recent changesets
Anton Khorev [Tue, 24 Oct 2023 17:06:06 +0000 (20:06 +0300)]
Disable delete account button if there are recent changesets

13 months agoAdd earliest allowed deletion time to user model
Anton Khorev [Tue, 24 Oct 2023 17:42:23 +0000 (20:42 +0300)]
Add earliest allowed deletion time to user model

13 months agoAdd user account deletion delay test helper
Anton Khorev [Tue, 24 Oct 2023 17:57:25 +0000 (20:57 +0300)]
Add user account deletion delay test helper

13 months agoAdd user account deletion delay setting
Anton Khorev [Wed, 25 Oct 2023 11:09:03 +0000 (14:09 +0300)]
Add user account deletion delay setting

13 months agoPrevent API tokens without write_notes creating attributed comments
Tom Hughes [Wed, 22 Nov 2023 12:30:39 +0000 (12:30 +0000)]
Prevent API tokens without write_notes creating attributed comments

Fixes #4362

13 months agoFix dependency
Tom Hughes [Tue, 21 Nov 2023 17:26:23 +0000 (17:26 +0000)]
Fix dependency

13 months agoMerge remote-tracking branch 'upstream/pull/4358'
Tom Hughes [Tue, 21 Nov 2023 17:24:19 +0000 (17:24 +0000)]
Merge remote-tracking branch 'upstream/pull/4358'

13 months agoMerge remote-tracking branch 'upstream/pull/4356'
Tom Hughes [Tue, 21 Nov 2023 17:22:21 +0000 (17:22 +0000)]
Merge remote-tracking branch 'upstream/pull/4356'

13 months agoUpdate bundle
Tom Hughes [Tue, 21 Nov 2023 16:59:17 +0000 (16:59 +0000)]
Update bundle

13 months agoDo not merge zoom/lat/lon options with oauth_return_url
Milan Cvetkovic [Tue, 21 Nov 2023 13:01:52 +0000 (13:01 +0000)]
Do not merge zoom/lat/lon options with oauth_return_url

13 months agoExtract `welcome_options` function to simplify save function
Milan Cvetkovic [Mon, 6 Nov 2023 18:05:30 +0000 (18:05 +0000)]
Extract `welcome_options` function to simplify save function

13 months agoWelcome screen works with confirmation email too
Milan Cvetkovic [Mon, 6 Nov 2023 14:21:44 +0000 (14:21 +0000)]
Welcome screen works with confirmation email too

13 months agoWelcome screen displays 'Continue with authorization'
Milan Cvetkovic [Mon, 6 Nov 2023 13:16:49 +0000 (13:16 +0000)]
Welcome screen displays 'Continue with authorization'

do not hide notes

13 months agoRemove 'need to return bbox' comment on conditions_bbox
Anton Khorev [Tue, 21 Nov 2023 10:55:35 +0000 (13:55 +0300)]
Remove 'need to return bbox' comment on conditions_bbox

13 months agoRemove 'basic attributes' comments from changeset api output builders
Anton Khorev [Mon, 20 Nov 2023 12:39:27 +0000 (15:39 +0300)]
Remove 'basic attributes' comments from changeset api output builders

13 months agoLocalisation updates from https://translatewiki.net.
translatewiki.net [Mon, 20 Nov 2023 12:21:51 +0000 (13:21 +0100)]
Localisation updates from https://translatewiki.net.

13 months agoForce rubygems 3.4.10 for github actions
Tom Hughes [Fri, 17 Nov 2023 14:52:48 +0000 (14:52 +0000)]
Force rubygems 3.4.10 for github actions

This works around a problem where mini_racer doesn't like the psych
in the GitHub Actions images for ruby 3.0 and 3.1 but it fine with
the ruby 3.2 image that uses a newer rubygems version.

https://github.com/rubyjs/mini_racer/issues/289

13 months agoBump eslint from 8.53.0 to 8.54.0
dependabot[bot] [Fri, 17 Nov 2023 23:02:11 +0000 (23:02 +0000)]
Bump eslint from 8.53.0 to 8.54.0

Bumps [eslint](https://github.com/eslint/eslint) from 8.53.0 to 8.54.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.53.0...v8.54.0)

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

Signed-off-by: dependabot[bot] <support@github.com>
13 months agoFix tiny user thumbnail size at 25x25 px
Anton Khorev [Fri, 17 Nov 2023 09:45:20 +0000 (12:45 +0300)]
Fix tiny user thumbnail size at 25x25 px

13 months agoDisable text wrapping while measuring header width
Anton Khorev [Tue, 17 Oct 2023 19:58:59 +0000 (22:58 +0300)]
Disable text wrapping while measuring header width

13 months agoSwitch to flex header container
Anton Khorev [Mon, 16 Oct 2023 17:27:38 +0000 (20:27 +0300)]
Switch to flex header container

13 months agoFix positioning of placeholder text in RTL mode
Tom Hughes [Thu, 16 Nov 2023 22:52:30 +0000 (22:52 +0000)]
Fix positioning of placeholder text in RTL mode

Fixes #3910

13 months agoUse rtlcss instead of r2 for RTL support
Tom Hughes [Thu, 16 Nov 2023 22:25:13 +0000 (22:25 +0000)]
Use rtlcss instead of r2 for RTL support

This ensures that the RTL directives in bootstrap are processed
correctly as it is designed around RTLCSS for RTL support.

Fixes #4347

13 months agoMerge remote-tracking branch 'upstream/pull/4351'
Tom Hughes [Thu, 16 Nov 2023 13:43:46 +0000 (13:43 +0000)]
Merge remote-tracking branch 'upstream/pull/4351'

13 months agoMerge remote-tracking branch 'upstream/pull/4350'
Tom Hughes [Thu, 16 Nov 2023 13:43:44 +0000 (13:43 +0000)]
Merge remote-tracking branch 'upstream/pull/4350'

13 months agoLocalisation updates from https://translatewiki.net.
translatewiki.net [Thu, 16 Nov 2023 12:19:00 +0000 (13:19 +0100)]
Localisation updates from https://translatewiki.net.

13 months agoUpdate oauth configuration url input label
Anton Khorev [Thu, 16 Nov 2023 10:05:45 +0000 (13:05 +0300)]
Update oauth configuration url input label

13 months agoRemove save user step when configuring permissions
Anton Khorev [Thu, 16 Nov 2023 09:08:18 +0000 (12:08 +0300)]
Remove save user step when configuring permissions

13 months agoHash passwords as soon as a new user is created
Tom Hughes [Thu, 16 Nov 2023 00:54:56 +0000 (00:54 +0000)]
Hash passwords as soon as a new user is created

13 months agoPreserve pass_crypt_confirmation in the new user hash
Tom Hughes [Thu, 16 Nov 2023 00:29:49 +0000 (00:29 +0000)]
Preserve pass_crypt_confirmation in the new user hash

13 months agoMerge remote-tracking branch 'upstream/pull/4349'
Tom Hughes [Wed, 15 Nov 2023 22:30:41 +0000 (22:30 +0000)]
Merge remote-tracking branch 'upstream/pull/4349'

13 months agoMerge pull request #4348 from tomhughes/native-enum
Andy Allan [Wed, 15 Nov 2023 19:56:04 +0000 (19:56 +0000)]
Merge pull request #4348 from tomhughes/native-enum

Switch to using native rails support for managing Postgres enumerations

13 months agoUnderline time elements that have a title
Andy Allan [Wed, 15 Nov 2023 19:46:43 +0000 (19:46 +0000)]
Underline time elements that have a title

This replicates the previous use of abbr tags, with improved semantics.

Although we only use time tags in one place at the moment, the attribute
filter protects against any usage in the future that doesn't need a title
indication.

13 months agoSimplify date display by using friendly_date helpers
Andy Allan [Wed, 15 Nov 2023 19:46:10 +0000 (19:46 +0000)]
Simplify date display by using friendly_date helpers

13 months agoAvoid wrapping friendly_date with abbr tags
Andy Allan [Wed, 15 Nov 2023 19:45:48 +0000 (19:45 +0000)]
Avoid wrapping friendly_date with abbr tags

13 months agoUse friendly_date helpers for revoking user blocks
Andy Allan [Wed, 15 Nov 2023 19:44:10 +0000 (19:44 +0000)]
Use friendly_date helpers for revoking user blocks