Modify

Opened 14 years ago

Last modified 7 years ago

#4929 new defect

Filtered and disabled objects can be selected

Reported by: bundesrainer Owned by: team
Priority: minor Milestone:
Component: Core Version: tested
Keywords: filters function Cc: malenki, Cobra

Description

When using the filter function, filtered objects are grayed out and can not be selected by clicking. But when I mark an area (Click + Hold) the filtered objects are also selected.

Attachments (1)

filters.osm (1.0 KB ) - added by openstreetmap.org-user-d1g 7 years ago.

Download all attachments as: .zip

Change History (16)

comment:1 by stoecker, 14 years ago

Priority: normalcritical

comment:2 by bastiK, 14 years ago

Why is it critical? The objects are selected and filtered. It's not nice but it doesn't cause data corruption or something like that.

Note that there are other ways to get this situation:

  • select something, then change the filter to include these objects


  • use selection history
  • undo, such that the properties of a selected change and a filter applies

comment:3 by bastiK, 14 years ago

(In [3198]) see #4929 - rectangle selection selects filtered objects.
(the other things mentioned in this ticket are not addressed)

comment:4 by bastiK, 14 years ago

(In [3199]) see #4929 - filtered objects can be selected: fixed the first and the third issue from my reply (select something, then change the filter to include these objects; undo, such that the properties of a selected change and a filter applies)

comment:5 by bastiK, 14 years ago

What shall we do for search? There should be a dialog box or a popup message to inform the user that more was found, but could not be selected because of active filters.

comment:6 by bastiK, 14 years ago

Summary: Filter function has a bug (disabled objects can be selected)Filtered and disabled objects can be selected

comment:7 by stoecker, 14 years ago

Priority: criticalmajor

Why set as critical: Because the biggest problem I have with filtering is the fact that users may destroy valid data. This also was the reason why the filter was disabled by default for so long. As you fixed major issues I change it to major.

About "use selection history": We can delete it when filters are applied or changed.

in reply to:  7 comment:8 by bastiK, 14 years ago

About "use selection history": We can delete it when filters are applied or changed.

This would certainly annoy some users, including me. Another solution would be to purge the chosen selection like it needs to be done for deleted objects (?) and change the text in the popup menu to include the number of currently filtered/disabled (if any).

comment:9 by extropy, 14 years ago

Cannot reproduce this on Version 3329.
Is this fixed?

comment:10 by bastiK, 14 years ago

Remaining issues:

(a) 'search' results in filtered objects being selected
(b) search history allows filtered objects to be selected
(c) command stack select tool allows the same

I'm no longer sure, these are real issues. With respect to #5144 we should treat selected and filtered objects as if they weren't filtered.

comment:11 by stoecker, 14 years ago

Good idea (but I see another bunch of possible bug reports). Let's try it and see what the result is.

comment:12 by skyper, 12 years ago

Ticket #7238 has been marked as a duplicate of this ticket.

comment:13 by skyper, 12 years ago

Cc: malenki Cobra added

in reply to:  2 comment:14 by openstreetmap.org-user-d1g, 7 years ago

Untested

Replying to bastiK:

(b) search history allows filtered objects to be selected

1. missing activation in command history

Replying to bastiK:

(c) command stack select tool allows the same

Yes, it is possible to select, otherwise filtered objects in command history using right click menu.

Either solution would be okay:

  • display "Unselectable now" message, suppress right click menu
  • display object, add "currently filtered out" in node/way/relation caption, disable respective item in right click menu

2. missing activation in in-line editor

Replying to bastiK:

  • select something, then change the filter to include these objects

Doesn't work with in-line editor (but "edit" button is respected):

  1. add filter natural=* (auto enabled by JOSM)
  2. focus text in "Text" column, change natural=* to natural=tree (or rock)
  3. hit Enter

Filtered objects are not updated, but they should (it will actually work with Edit button)

3. works for me

Replying to bundesrainer:

But when I mark an area (Click + Hold) the filtered objects are also selected.

Not in r11223.

Select all won't select them too.

Replying to bastiK:

  • use selection history

It will show "Unselectable now" message

Replying to bastiK:

  • undo, such that the properties of a selected change and a filter applies

filters respected well, when you add tags using history: Ctrl+Z Ctrl+Y

Replying to bastiK:

(a) 'search' results in filtered objects being selected

In r11223 I tried to search for natural=tree when they were filtered out, I got "no match for 'natural=tree'" message.

Last edited 7 years ago by openstreetmap.org-user-d1g (previous) (diff)

comment:15 by openstreetmap.org-user-d1g, 7 years ago

Priority: majorminor

by openstreetmap.org-user-d1g, 7 years ago

Attachment: filters.osm 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 bundesrainer.
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.