Modify

Opened 4 years ago

Last modified 3 years ago

#20809 new enhancement

Tags/Memberships panel: Search for "Key/Value(/Type)" with multiple tags selected

Reported by: skyper Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report tags memberships panel search key value Cc: Strubbl

Description (last modified by skyper)

What steps will reproduce the problem?

  1. Have some data loaded
  2. Select at least one object
  3. Select several tags in Tags/Membership panel
  4. Search Key/Value or Key/Value/Type

What is the expected result?

All object which have all selected tags are in selection.

What happens instead?

Nothing.

Please provide any additional information below. Attach a screenshot if possible.

This function is very useful but it could be much more powerful if more than a single tag/key is supported.
Thanks a lot in advance

Relative:URL: ^/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-04-25 09:16:28 +0200 (Sun, 25 Apr 2021)
Revision:17821
Build-Date:2021-04-26 01:31:00
URL:https://josm.openstreetmap.de/svn/trunk

Attachments (0)

Change History (6)

comment:1 by skyper, 4 years ago

Summary: Tags/Membership panel: Search for "Key/Value(/Type)" with multiple tags selectedTags/Memberships panel: Search for "Key/Value(/Type)" with multiple tags selected

comment:2 by simon04, 4 years ago

Should it be key1=value1 AND key2=value2 or key1=value1 OR key2=value2? What should "Key/Value/Type" do when a node with key1=value1 and a way with key2=value2 is selected? Currently, the search string is (type:node key1=value1) OR (type:way key1=value2).

in reply to:  2 comment:3 by skyper, 4 years ago

Replying to simon04:

I would prefer and AND. My simple use case is a highway=primary with name=Berliner Allee and maxspeed=50 but I can think of many tag combinations like power=substation, substation=minor_distribution and building=yes.

I guess you meant:

What should "Key/Value/Type" do when a node with key1=value1 and a way with key1=value2 is selected?

I noticed that multiple values are possible, but I never tried to use "Key/Value/Type" with different object types until a few minutes, ago. I'd say, I tend to a strict search without mixing objects types and key-value pairs and just adding more key-value pairs inside the brackets.
(type:node key1=value1 key2=value1 key3=value1) OR (type:way key1=value2 key2=value2 key3=value2)

Last edited 3 years ago by skyper (previous) (diff)

comment:4 by skyper, 4 years ago

Description: modified (diff)

comment:5 by dieterdreist, 4 years ago

see also #20816

comment:6 by Strubbl, 4 years ago

Cc: Strubbl added

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 skyper.
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.