Modify

Opened 6 years ago

Closed 6 years ago

Last modified 6 years ago

#17817 closed defect (fixed)

[PATCH] Misspelled property key - Key 'opening_hours:kitchen' looks like 'opening_hours:kitchen '

Reported by: julianladisch Owned by: Klumbumbus
Priority: normal Milestone: 19.06
Component: Internal preset Version: latest
Keywords: Cc: Klumbumbus

Description

[15166] added
<combo key="opening_hours:kitchen " text="Kitchen Opening Hours" delimiter="|" values="24/7|08:30-12:30,15:30-20:00|Sa-Su 00:00-24:00|Mo-Fr 08:30-20:00; Sa,Su 08:00-15:00; PH off|Mo-Fr 08:30-20:00, Tu-Su 08:00-15:00; Sa 08:00-12:00|Mo-Su 08:00-18:00; Apr 10-15 off; Jun 08:00-14:00; Aug off; Dec 25 off|sunrise-sunset|Su 10:00+|week 01-53/2 Fr 09:00-12:00; week 02-52/2 We 09:00-12:00" values_no_i18n="true" />
to data/defaultpresets.xml.
The space at the end of "opening_hours:kitchen " should be removed because it causes the validator to complain that the correct property key without that space is misspelled.

Attachments (1)

17817-opening_hours-kitchen-space.patch (1.3 KB ) - added by julianladisch 6 years ago.

Download all attachments as: .zip

Change History (9)

by julianladisch, 6 years ago

comment:1 by Klumbumbus, 6 years ago

Milestone: 19.06

Oops. Thanks for the info!

comment:2 by Klumbumbus, 6 years ago

Resolution: fixed
Status: assignedclosed

In 15172/josm:

  • see #17798, fix #17817 - fix typo in preset key opening_hours:kitchen (patch by julianladisch)

comment:3 by Don-vip, 6 years ago

We could detect this automatically. I guess a regex like [a-z](_:[a-zA-Z0-9])+ matches all OSM keys?

comment:4 by Klumbumbus, 6 years ago

I think there is already a test for spaces in keys and for leading and trailing spaces in values.
JOSM automatically removes leading and trailing spaces in keys and values too.
Is there a case missing which is not detected?

comment:5 by Klumbumbus, 6 years ago

In 15173/josm:

see #17798, see #17817 - move opening_hours:kitchen combo to restaurant preset which was wrongly added to the fast food preset

comment:6 by Don-vip, 6 years ago

The test is done on loaded data but not on tags defined in presets.

comment:7 by Klumbumbus, 6 years ago

In 15174/josm:

see #17798, see #17817 - fix typo again, sorry for the noise

in reply to:  6 comment:8 by Klumbumbus, 6 years ago

Replying to Don-vip:

The test is done on loaded data but not on tags defined in presets.

Ah OK now I understand you meant a unit test.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Klumbumbus.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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