Opened 3 years ago
Closed 3 years ago
#22120 closed enhancement (fixed)
[PATCH] Add 'school=entrance' to deprecation warnings
Reported by: | pietervdvn | Owned by: | taylor.smock |
---|---|---|---|
Priority: | normal | Milestone: | 22.07 |
Component: | Core validator | Version: | tested |
Keywords: | template_report | Cc: |
Description
What steps will reproduce the problem?
- Add a 'school=entrance' to a point
- Try to upload
- Uploading succeeds without warnings
What is the expected result?
A validator error which encourages contributors to use entrance=main
instead
Please provide any additional information below. Attach a screenshot if possible.
Relative:URL: ^/trunk Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b Last:Changed Date: 2022-05-29 21:53:52 +0200 (Sun, 29 May 2022) Revision:18463 Build-Date:2022-05-30 01:30:57 URL:https://josm.openstreetmap.de/svn/trunk Identification: JOSM/1.5 (18463 en) Linux Ubuntu 20.04.4 LTS Memory Usage: 882 MB / 3954 MB (318 MB allocated, but free) Java version: 11.0.15+10-Ubuntu-0ubuntu0.20.04.1, Private Build, OpenJDK 64-Bit Server VM Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel Screen: :0.0 1920×1080 (scaling 1.00×1.00) :0.1 1920×1080 (scaling 1.00×1.00) Maximum Screen Size: 1920×1080 Best cursor sizes: 16×16→16×16, 32×32→32×32 Environment variable LANG: en_US.UTF-8 System property file.encoding: UTF-8 System property sun.jnu.encoding: UTF-8 Locale info: en_US Numbers with default locale: 1234567890 -> 1234567890 Desktop environment: KDE Java package: openjdk-11-jre:amd64-11.0.15+10-0ubuntu0.20.04.1 Java ATK Wrapper package: libatk-wrapper-java:all-0.37.1-1 libcommons-logging-java: libcommons-logging-java:all-1.2-2 fonts-noto: fonts-noto:all-20200323-1build1~ubuntu20.04.1 VM arguments: [-Djosm.restart=true, -Djava.net.useSystemProxies=true] Dataset consistency test: No problems found Plugins: + Mapillary (2.0.0-beta.10) + PicLayer (1.0.2) + apache-commons (35924) + apache-http (35924) + jna (35924) + pbf (35893) + reverter (35972) + todo (30306) + utilsplugin2 (35970) Map paint styles: - https://josm.openstreetmap.de/josmfile?page=Styles/Admin_Boundaries&zip=1 Last errors/warnings: - 01897.641 E: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed - 01899.248 W: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed - 01899.248 W: Already here java.net.SocketException: Socket closed - 01899.248 E: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed - 01900.272 W: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed - 01900.272 W: Already here java.net.SocketException: Socket closed - 01900.273 E: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed - 01900.807 W: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed - 01900.807 W: Already here java.net.SocketException: Socket closed - 01900.807 E: java.net.SocketException: Socket closed. Cause: java.net.SocketException: Socket closed
Attachments (0)
Change History (7)
comment:1 by , 3 years ago
Milestone: | Longterm |
---|
comment:2 by , 3 years ago
Hi Taylor,
You're only doing your duties
Yes, I did make some wiki updates. However, the deprecation warning on school=entrance has been there for ages, and the second diff that you point out (replacing school=entrance with entrance=main) is already 8 years old.
Entrance=main might not be the most appropriate tag, but entrance=yes certainly is. In some cases, an additional barrier=gate (or bollard or similar) might be appropriate, but this is not always the case.
comment:3 by , 3 years ago
For future readers:
pietervdvn has brought this up on the tagging list ( https://lists.openstreetmap.org/pipermail/tagging/2022-June/064815.html )
It does look like the osmwiki:Key:school page has indicated that people should avoid using school=entrance
since 2018 (see https://wiki.openstreetmap.org/w/index.php?title=Key%3Aschool&type=revision&diff=1610243&oldid=555416 ), and has slightly stronger language starting in 2022 (see https://wiki.openstreetmap.org/w/index.php?title=Key:school&diff=prev&oldid=2324892 ).
@pietervdvn: Thank you for bringing it up on the tagging list. (For the record, I think deprecating school=entrance
and replacing it with entrance=yes
makes sense (for nodes), it was just the recent change(s) to the wiki that have made me a bit cautious).
Anyway, I figure giving people a month or two to respond to the tagging thread should be good enough. If I forget about this (definitely a possibility), feel free to ping this around August 10th.
comment:4 by , 3 years ago
Allright, I wrote it down. I just made an official deprecation proposal too: https://wiki.openstreetmap.org/wiki/Proposed_features/Key:school%3Dentrance#Rationale
Thanks for doing your due diligence
comment:5 by , 3 years ago
Milestone: | → 22.07 |
---|---|
Owner: | changed from | to
Status: | new → assigned |
Summary: | Add 'school=entrance' to deprecation warnings → [PATCH] Add 'school=entrance' to deprecation warnings |
-
resources/data/validator/deprecated.mapcss
diff --git a/resources/data/validator/deprecated.mapcss b/resources/data/validator/deprecated.mapcss index 7c3c128094..3b098ac46a 100644
a b way[shoulder=none] { 2373 2373 assertMatch: "node role=stop"; 2374 2374 } 2375 2375 2376 /* #22120 */ 2377 *[school=entrance] { 2378 throwWarning: tr("{0} is deprecated", "{0.tag}"); 2379 suggestAlternative: "entrance=yes"; 2380 suggestAlternative: "entrance=main"; 2381 group: tr("deprecated tagging"); 2382 } 2376 2383 2377 2384 /* When tags are deprecated they should be added to ignoretags.cfg too. */ -
resources/data/validator/ignoretags.cfg
diff --git a/resources/data/validator/ignoretags.cfg b/resources/data/validator/ignoretags.cfg index 3a588ba8e9..9fe311a936 100644
a b K:man_made=pumping_rig 725 725 E:pump:type 726 726 K:substance=heat 727 727 K:surface=decoturf 728 K:school=entrance 728 729 ; 729 730 ; Tags not yet decided (to remove from this section when added or moved up when deprecated) 730 731 ; see josm tickets: 17770 15309 15774 16315 16658 16793 19982
With https://wiki.openstreetmap.org/wiki/Proposed_features/Key:school%3Dentrance#Rationale voting finished. I'll give other maintainers a chance to look at the changes, and I'll apply it Monday (if I forget, feel free to ping the ticket on Tuesday).
Looking at the history, the tag was recently added as a tagging mistake (by someone with the screen name as you).(1)
I also don't see anything on the talk page or in the tagging mailing list (archives for 2022-06) for
school=entrance
.As such, I'm disinclined to add it to any validator warning or automatically replacing it. I know this is probably not what you wanted to hear, but I do not want to make tagging changes for anything which has just changed, or might have just changed. I will make exceptions for items that have been discussed on the tagging mailing list and/or has gone through the proposal process. Otherwise, for changes to the wiki, I have to apply "does this make sense", and if so, "was this just changed?". Typically, for any change older than 2 or 3 years, I presume that those who care have looked at it.
So if you did discuss it on the mailing list, please post a link to the start of the thread. It is entirely possible that I missed it.
With that said, (2) indicates that replacing
school=entrance
withentrance=main
would not make sense in context of what the wiki said prior to the removal ofschool=entrance
:osmwiki:Tag:entrance=main
Note that there is no reference to "the main entrance of the school grounds" for
school=entrance
. Soentrance=yes
would be the closest tag.(1) https://wiki.openstreetmap.org/w/index.php?title=Key:entrance&oldid=2339245
(2) https://wiki.openstreetmap.org/w/index.php?title=Tag:amenity%3Dschool&diff=prev&oldid=1087074