﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
21227	[WIP PATCH] Too many autocomplete suggestions for roles in relation editor	josm@…	team	"==== What steps will reproduce the problem?
1. Download a single node without any tags
2. Select said node
3. Click Presets->Relations->Destination Sign
4. Click ""New Relation""
5. Click in the empty role text field
6. Press s
7. Press i

==== What is the expected result?
I would expect autocomplete to suggest ""sign"" in both step 6 and 7

==== What happens instead?
In step 6, autocomplete suggests ""section""
In step 7, autocomplete suggests ""side_stream""

==== Please provide any additional information below. Attach a screenshot if possible.
https://josm.openstreetmap.de/browser/josm/trunk/resources/data/defaultpresets.xml#L8805
https://josm.openstreetmap.de/browser/josm/trunk/resources/data/defaultpresets.xml#L9108
These seem to be the culprits



{{{
Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-08-02 19:44:04 +0200 (Mon, 02 Aug 2021)
Revision:18118
Build-Date:2021-08-02 18:26:20
URL:https://josm.openstreetmap.de/svn/trunk

Identification: JOSM/1.5 (18118 en) Linux Ubuntu 20.04.2 LTS
Memory Usage: 561 MB / 5952 MB (436 MB allocated, but free)
Java version: 11.0.11+9-Ubuntu-0ubuntu2.20.04, Ubuntu, OpenJDK 64-Bit Server VM
Look and Feel: javax.swing.plaf.metal.MetalLookAndFeel
Screen: :0.0 1920×1080 (scaling 1.00×1.00) :0.1 1920×1080 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→16×16, 32×32→32×32
Environment variable LANG: en_US.UTF-8
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Desktop environment: i3
Java package: openjdk-11-jre:amd64-11.0.11+9-0ubuntu2~20.04
WebStart package: icedtea-netx:amd64-1.8-0ubuntu8
Java ATK Wrapper package: libatk-wrapper-java:all-0.37.1-1
libcommons-logging-java: libcommons-logging-java:all-1.2-2
fonts-noto: fonts-noto:all-20200323-1build1~ubuntu20.04.1
VM arguments: [--add-reads=java.base=ALL-UNNAMED,java.desktop, --add-reads=java.desktop=ALL-UNNAMED,java.naming, --add-reads=java.naming=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/javax.jnlp=ALL-UNNAMED,java.desktop, --add-exports=java.base/com.sun.net.ssl.internal.ssl=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.action=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.provider=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.util=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.validator=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.security.x509=ALL-UNNAMED,java.desktop, --add-exports=java.base/jdk.internal.util.jar=ALL-UNNAMED,java.desktop, --add-exports=java.base/sun.net.www.protocol.http=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.awt.X11=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,java.desktop, --add-exports=java.desktop/sun.applet=ALL-UNNAMED,jdk.jsobject, --add-exports=java.naming/com.sun.jndi.toolkit.url=ALL-UNNAMED,java.desktop, -Dicedtea-web.bin.name=javaws, -Dicedtea-web.bin.location=/usr/lib/icedtea-web/bin/javaws]
Dataset consistency test: No problems found

Plugins:
+ measurement (35640)

Tagging presets:
+ https://www.openrailwaymap.org/josm-presets/de-signals-eso.zip
+ ${HOME}/knooppuntnet-presets.xml

Last errors/warnings:
- 00031.586 W: Unsaved changes - <html>The relation has been changed.<br><br>Do you want to save your changes?</html>
- 00079.659 W: Unsaved changes - <html>The relation has been changed.<br><br>Do you want to save your changes?</html>
- 00115.710 W: Unsaved changes - <html>The relation has been changed.<br><br>Do you want to save your changes?</html>
- 00131.760 W: Unsaved changes - <html>The relation has been changed.<br><br>Do you want to save your changes?</html>
}}}
"	enhancement	new	normal		Core			template_report role autocompletion filter relation editor	
