#19078 closed enhancement (fixed)
Presets: validate user input (w.r.t. regexp/validator)
| Reported by: | simon04 | Owned by: | simon04 |
|---|---|---|---|
| Priority: | normal | Milestone: | 21.03 |
| Component: | Core | Version: | |
| Keywords: | presets input validation regexp | Cc: |
Description
- Inserting
width=2,5in the Highway/Ways/Track preset should immediately give me the validation warning "unusual value of width: use . instead of , as decimal separator" - Inserting
maxspeed=50 km/hin the Highway/Ways/Residential preset should immediately give me the validation warning "unusual value of maxspeed" - Inserting an invalid
opening_hoursvalue should immediately give me a corresponding validation warning
Colouring the background of the text/combo inputs in green (for successful validation) or in red (for unsuccessful validation) would be very helpful.
The question is how to tie the validation checks to the key/value in the preset dialog
Attachments (1)
Change History (18)
comment:1 by , 6 years ago
comment:2 by , 6 years ago
| Milestone: | 20.04 → 20.05 |
|---|
comment:4 by , 6 years ago
| Milestone: | 20.05old → 20.05 |
|---|
comment:5 by , 5 years ago
| Milestone: | 20.05 → 20.06 |
|---|
comment:6 by , 5 years ago
| Milestone: | 20.06 → Longterm |
|---|
comment:7 by , 5 years ago
| Milestone: | Longterm → 21.03 |
|---|---|
| Owner: | changed from to |
| Status: | new → assigned |
by , 5 years ago
| Attachment: | Screenshot 2021-03-23 at 00.16.41.png added |
|---|
comment:13 by , 5 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Done for the 21.03 milestone. Depending on the feedback, I'm considering to enable this feature by default in one of the next milestones.
comment:14 by , 5 years ago
Replying to simon04:
In 17652/josm:
Actually, I would prefer to have settings for tagging presets, map paint styles and imagery all in an own, separate tab within the corresponding preferences' register, keeping a consistent look of the first tab of these register. Validator might be another candidate as atm settings and tests are combined in the first tab.
comment:15 by , 5 years ago
@skyper, no objections. Since this is only loosely related to this enhancement and will not make it into milestone:21.03, please open a separate ticket. Thanks!




Why restrict this to presets. Add tag and Change value could profit, too.
For actions see #3496.