Open jleedev opened 1 year ago
I suspect this is a bug that's related to one that @bhousel tracked down as described in openstreetmap/iD#9707. I'm leaving both open right now since they each contain valuable information, but at some point they may need to be merged.
There was some discussion in OSMUS Slack about this issue at the time, but I forgot to copy it here:
Solar Power Plant and Solar Farm are currently defined as two distinct presets. The latter is more specific in that it also includes
plant:method=photovoltaic
, while the former is intended to remove that tag. I guess that’s because a solar farm is assumed to always consist of photovoltaic solar panels, but there areplant:method=thermal
solar farms too.
At the time, I suspected this might be a regression from 96bac0 along the lines of openstreetmap/iD#9372. As far as I can tell, 21e54f only fixes openstreetmap/iD#9372 if the old preset’s ID starts with the new preset’s ID. But in this case, power/plant/source/method/photovoltaic
does not start with power/plant/source/solar
.
Anyhow, openstreetmap/iD#9707 looks like the more serious issue that should be fixed before considering whether this special case needs to be corrected.
OK, sounds like this may be a separate preset issue then. Tagging it and marking that we're waiting on this one for openstreetmap/iD#9707
@1ec5 is right about the cause of this bug. it should be easily fixed by renaming/moving the Solar Farm preset such that it can be correctly recognized as a sub-preset of the Solar Power Plant preset.
URL
No response
How to reproduce the issue?
plant:method=photovoltaic
,plant:output:electricity=yes
,plant:source=solar
,power=plant
.Two weird things happen!
plant:source=solar
,power=plant
, but it doesn't remove the additional tags when switching from Solar Farm. This is confusing but I'm not sure I can describe it as a bug.I think that if switching presets doesn't change anything, then an undo entry should not be created.
Screenshot(s) or anything else?
Screen recording 2023-04-12 09.45.45.webm
Which deployed environments do you see the issue in?
Development version at ideditor.netlify.app
What version numbers does this issue effect?
2.26.0-dev
Which browsers are you seeing this problem on?
Chrome