refine validating of wikimedia_commons links#12182
Conversation
* suggest simplifying full URL in wikimedia_commons tag * show preview of tag upgrade of the validation fix (also for normal website updates) * fix validation of a few edge cases (e.g. image tag with semicolon separated values, and some match the wikimedia commons syntax)
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
|
PS: @hlfan do you remember the reasoning behind the All split parts valid, but whole value still invalid branch added with #11499? At least now, after tweaking to the |
also fixes a crash in the auto-fix when the URL consists of multiple parts and only one is invalid also fixes a bug where the tag diff was not shown when there are multiple parts in the URL and it is auto-fixable
e.g. `website=none` should not be "fixed" to `website=https://none`
|
I think that originated from #11438 (comment). Perhaps @1ec5 can comment on that. |
|
Maybe there could be a separate message if both the |
I see, however then this must have been buggy from the start, as I guess we could think about how to actually properly handle those cases:
|
Do you mean like in the following example? to suggest but as far as I understood the semicolon-is-ambiguous issue is even more pronounced for the |
This comment was marked as resolved.
This comment was marked as resolved.
|
wait, is the consensus to fix last time I looked into it (wanted to make a bot edit) there was, sadly, no clear consensus |
|
(and if there is consensus it would make far more sense to run a bot edit rather than asking people to do bot job manually) |
Ooh, I did not know that the
Looks like we should remove that validation until there is consensus about this in the community. Or at least make tweak the wording of the message and use the less aggressive "blue" validation type. //edit: PS:
IMHO there is still merit, as this validation would let mappers discover that the tagging should use one tag over the other. In a "magic" bot edit this is not really the case. |
well, there is definitely no consensus for treating it as a valid value but last time I checked there was no consensus to fix it either ¯\_ (ツ)_/¯ |
|
I changed the type of the |
|
|
||
| it('should propose to remove URL from Wikimedia Commons tag', function() { | ||
| var entity = createPointWithTags({ | ||
| 'wikimedia_commons': 'https://commons.wikimedia.org/wiki/File:OpenStreetMap-Editor_iD_Logo.svg#mw-jump-to-license' |
There was a problem hiding this comment.
A loop with more URLs would be nice to check for percent decoding capability:
https://commons.wikimedia.org/wiki/File:Ajout_noeud_sur_extrimité_ligne.jpg
https://commons.wikimedia.org/wiki/File:Editeur_iD_pour_OSM,_interface_en_français,_juillet_2021.png
https://commons.wikimedia.org/wiki/File:OSM_검토_요청_복사.png
follow-up to #11499 / #12036:
image->wikimedia_commonswarning and change to suggestion validation type%character)