Opened 9 years ago
Last modified 5 years ago
#12548 new defect
Proper colors for modified nodes in way history
Reported by: | naoliv | Owned by: | team |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | Core | Version: | tested |
Keywords: | ObjectHistory background highlight children | Cc: |
Description
I was noticing that the colors in the history viewer sometimes makes us wrongly understand what happened.
For example:
Looking at this somebody will think that 4 nodes were deleted and 12 new nodes were created, while, in fact, the 4 nodes in red where only reorganized/reordered.
Shouldn't they be represented in yellow for cases like this?
JOSM:
Build-Date:2016-02-20 18:51:33 Revision:9843 Is-Local-Build:true Identification: JOSM/1.5 (9843 SVN pt_BR) Linux Debian GNU/Linux unstable (sid) Memory Usage: 1089 MB / 3641 MB (914 MB allocated, but free) Java version: 1.8.0_72-internal-b15, Oracle Corporation, OpenJDK 64-Bit Server VM VM arguments: [-Dawt.useSystemAAFontSettings=on] Dataset consistency test: No problems found
Attachments (3)
Change History (8)
comment:1 by , 5 years ago
Keywords: | ObjectHistory background highlight children added |
---|---|
Type: | enhancement → defect |
Version: | → tested |
by , 5 years ago
Attachment: | colours.PNG added |
---|
comment:2 by , 5 years ago
Do we have a legend that explains the meaning of the colours? I don't understand the meaning of the light red colour.
My understanding is that the last two nodes of version 5 where deleted and node 5634875611 was added.
So, I would expect two red rows on the left and one green row on the right
Screenshot of way 278014028 was made with tested r16239, r16523 is similar.
comment:3 by , 5 years ago
IIRC the colors compare the content of the lines. The second last is orange because the node id in that line changed. The last is red because the node in that line was removed. This is probably not the most intuitive way. A little legend is at wiki:/Help/Action/ObjectHistory#Overview
comment:4 by , 5 years ago
The diff types (DiffItemType
) and their corresponding colors are defined in trunk/src/org/openstreetmap/josm/gui/history/TwoColumnDiff.java
The workflow is as follows:
- diff the two relation members → DiffItemType
- take the corresponding color → red/orange/yellow/green/gray
- display as table
- possibly highlight the current table row (see comment ticket:19253#comment:4)
by , 5 years ago
Attachment: | josm_history_node_list_example.joz added |
---|
example session for screenshot
comment:5 by , 5 years ago
See josm_history_node_list_example.joz as an example for what can happen and which produces the following confusing colors:
- left side:
- 2045169571 was deleted, should be red
- 2045169488 was moved, should be orange(yellow?)
- right side
- new node show be green (own row?)
- 2045169488 was moved, should be orange(yellow?)
- new node is green. Only correct color in my eyes except the unchanged nodes
Even if only the left side is taken into account the color and possibly the row placement do not fit.
For me this is a defect, now, as it gives false information. The right side has often the wrong background as the color depends on the row (left side) and not the object and its id. See #13706 for the ticket about relation's children.
Still present in latest: