uvi
(Uwe)
May 7, 2026, 3:49am
61
Die Sache mit dem Hinweis auf eine Anmeldung ist tatsächlich längst überfällig. Dass diese aber verpflichtend ist, ist (hoffentlich) ein Versehen.
Wie kann ich das an die “Seitenprogrammierer" melden, oder erfahren, ob es Absicht ist?
…fragt sich Uwe
Es gibt im Internationalen Teil des Forums einen thread in dem neues von der Webseite geposted wird. Dort kommt sicher bald ein update
Edit:
Thread gefunden. Vielleicht findest du dort Ansprechpartner
More color, prettier links, and less swimming
By popular demand , I’m starting a regular series of posts summarizing the changes taking place in openstreetmap-website – the main OSM website and API. I trawled the many merged pull requests and commits from March 16 to today, distilling them into a hopefully more digestible list. Since the community here is mostly mappers and other casual website users rather than coders, I’ve mostly focused on user-facing changes.
In the future, I’ll continue pos…
1 Like
uvi
(Uwe)
May 7, 2026, 11:33am
64
Bin jetzt erstmal dienstlich bedingt eine Weile offline. Daher kann ich mich der Sache derzeit nicht annehmen.
Hallo zusammen,
ich habe mich gerade beim Blick in meine OSM-Notes-Statistiken gewundert, warum die anonym gemeldeten Notes so stark zurückgehen. Zumindest bei mir ist die letzte anonyme Note vom 2026-05-03 um 17:22 (Note: 5277427 | OpenStreetMap ).
Anschließend habe ich hier im Forum recherchiert und bin auf diesen Thread gestoßen. Durch einen kleinen Test auf der OSM Webpage ohne Login und im Web-Developer-Modus wird im Netzwerkverkehr beim Erstellen bzw. Speichern einer anonymen Note der folgende Fehler angezeigt:
ActiveRecord::StatementInvalid: PG::InsufficientPrivilege: ERROR: permission denied for table moderation_zones
Auf GitHub in den letzten PRs zur Website bin ich dann durch den erwähnten Tabellennamen auf diesen PR gestoßen:
master ← pablobm:geoblock-notes
offen 05:43PM - 15 Jan 26 UTC
Fixes https://github.com/openstreetmap/openstreetmap-website/issues/6570 (Enable… PostGIS).
This PR introduces "moderation zones" where anonymous notes are not allowed. It also enables PostGIS in the process.
This addresses https://github.com/openstreetmap/openstreetmap-website/issues/6567 partially:
- Within the moderation zones, only unauthenticated users are blocked, not "recent" ones. We can measure the success of this one before moving on to recent accounts which are a bit more complex.
- No UI for moderators to define the zones. This will be implemented in a future PR.
### Interacting with PostGIS
In PostGIS terms, these zones are defined as geometries as opposed to geographies. This is consistent with the rest of the API.
Two gem options are available:
- [activerecord-postgis-adapter](https://github.com/rgeo/activerecord-postgis-adapter):
- "Classic" gem, 15 years old.
- Requires setting `adapter: postgis` which can be a headache when moving between branches.
- Doesn't work well when using geography-enabled functions such as `ST_Covers`. Probably can be added by implementing the operations with Arel.
- Does work well with `ST_Contains`.
- Works with Ruby 3.2, probably lower but I haven't checked.
- [activerecord-postgis](https://github.com/seuros/activerecord-postgis) (current choice):
- Very recent gem, 1 year old, I only discovered it by accident.
- Doesn't require changing `config/database.yml`.
- Works with geography-enabled functions such as `ST_Covers` by interpolating params into `?`, but not with Arel (can be added though).
- Requires Ruby 3.3 minimum (although as mentioned Ruby 3.2 is about to enter EOL).
- Claims not to be based on monkeypatching in comparison to the competition (I haven't looked into this).
In common to both:
- They are drop-in replacements for each other, at least as long as you stick to geometry functions.
- Both support Arel queries for geometry, which is the way I have implemented the query.
- They use [RGeo](https://github.com/rgeo/rgeo) behind the scenes to encapsulate GIS objects. This requires creating them with one of [several available factories](https://github.com/rgeo/rgeo/blob/main/doc/Which-factory-should-I-use.md). I have gone for `RGeo::Cartesian.simple_factory` as it appears to just work. If we changed to one of the others, we'd need the gem [ffi-geos](https://github.com/dark-panda/ffi-geos). This is not made clear in the documentation.
I haven't found a big argument for either, but I have gone for the newer one if only because of the simplicity of not having to update `config/database.yml`.
### Future work
- If an unauthenticated user writes a long, thoughtful note, submits it, but then it fails because it was a moderation zone... they have wasted their time, if not lost their work. Therefore we may want a way for clients to tell ahead of time if a specific location has a block. Probably an API such as `GET /api/0.6/notes/allowed?lat=X&lon=Y`.
- There's no UI to define the zones. We'll need a CRUD for moderators to use.
Daher meine Frage: Hat jemand dieses vermutlich nicht gewollte Verhalten bereits auf GitHub oder in einem anderen Thread gemeldet?
Viele Grüße
Pascal
Edit/Ergänzung: Ich habe nach weiterer Recherche einmal einen Comment in dem verlinkten Issue auf Github erstellt, siehe Restrict note creation within "Block Zones" · Issue #6567 · openstreetmap/openstreetmap-website · GitHub
1 Like
Danke Dir, ist bereits erledigt - und anonyme Hinweise können wieder erstellt werden.
2 Likes