Modify

Opened 12 months ago

Last modified 12 months ago

#23612 new defect

Comments in the Overpass query wizard output

Reported by: opk12 Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: overpass query wizard comment Cc:

Description

The Overpass query wizard sometimes accepts a broken input, making a broken output with placeholder comments.

Comments are not good placeholders and the code that emits them should fail instead.

Examples:

  1. landuse gives nwr/*landuse*/; (follow-up report from OSM Italy)
  2. key1=* $ key2=* gives nwr["key1"]/*$*/["key2"];

Why emitting a comment is not OK:

  • Multiple expert mappers thought /**/ is a filter syntax.
    • I cannot blame a mapper enthusiast, with work and life and scarce brainpower left to remember the exact syntax.
  • /**/ is hardly noticed, if the query is long and complex. It does not stand out visually.
    • A loud comment /*TODO FIXME landuse*/ would also not get attention in case of a typo in a simple query which would not otherwise deserve human review of the output.

I'd stress that the root issue that came out in the OSM Italy discussion is not just unrecognized broken syntax, it is the general approach of emitting comments instead of failing. For the symptom, that the query builder should either reject or support a key without =*, I'm opening a separate ticket.

I'm omitting the Status report, as this is not specific to a version / event.

Attachments (0)

Change History (2)

comment:1 by opk12, 12 months ago

Specifically, the code may throw an exception and give visual feedback, instead of printing this and generate a wrong query.

WARNING: Unsupported match type class org.openstreetmap.josm.data.osm.search.SearchCompiler$Any: key1

comment:2 by opk12, 12 months ago

The ticket to support a key without =* is #23611.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from team to the specified user.
Next status will be 'needinfo'. The owner will be changed from team to opk12.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from team to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.