Bug 765592

Summary: drift diff is different depending on order in which files are selected
Product: [Other] RHQ Project Reporter: John Mazzitelli <mazz>
Component: Core UI, driftAssignee: Jay Shaughnessy <jshaughn>
Status: CLOSED CURRENTRELEASE QA Contact: Mike Foley <mfoley>
Severity: medium Docs Contact:
Priority: medium    
Version: 4.2CC: hrupp, jshaughn
Target Milestone: ---   
Target Release: RHQ 4.3.0   
Hardware: All   
OS: All   
Whiteboard:
Fixed In Version: 4.3 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 786611 (view as bug list) Environment:
Last Closed: 2013-08-31 10:13:46 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 760116    
Bug Blocks: 707225, 786611    

Description John Mazzitelli 2011-12-08 21:51:48 UTC
go to carousel. say I have snapshot 2 and snapshot 1 that both show drift for file "foo.txt".

select foo.txt in snapshot 2, then select foo.txt in snapshot 1. then "compare" and you see the diff

now deselect everything and now select the files in reverse order (select the one in SS 1, then in SS 2) and do "compare" and notice the diff represents the opposite

that is, for example, the lines that were DELETED in the first compare are now ADDED in the second compare because I changed the order of the files.

We want to compare the oldest as "first" and the newest as "second", always

Comment 1 Jay Shaughnessy 2011-12-09 19:46:38 UTC
master commit 5938a790c0aeb32865f4b115e721de22220ca100

Fixed, the new changes will now always get the "+" prefixes and the older
will get the "-" prefixes.

Comment 2 Mike Foley 2011-12-12 15:31:39 UTC
verified RHQ 4.3 master branch

Comment 3 Heiko W. Rupp 2013-08-31 10:13:46 UTC
Bulk close of old bugs in VERIFIED state.