Bug 1036895

Summary: Creating a new topic does not reset the revision history
Product: [Community] PressGang CCMS Reporter: Matthew Casperson <mcaspers>
Component: Web-UIAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.2CC: cbredesen, lnewson
Target Milestone: ---   
Target Release: 1.4   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-23 23:44:01 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Matthew Casperson 2013-12-02 21:12:53 UTC
Steps to Reproduce:
1. Open a topic in the UI
2. View the topic's revisions
3. Click "Create Topic"

Actual results:
The old revision history is visibale.


Expected results:
A blank revision history should be shown.

Comment 1 Lee Newson 2013-12-05 05:38:32 UTC
Fixed in 1.4-SNAPSHOT build 201312050913

The problem was that the topic revision list wasn't being refreshed when switching views, as it was for the other topic views. There was also a race condition where the topics revision history would be displayed for the new topic due to the ProviderUpdateData instance being the same instance between all topics. As such when the synchronous call returned if the topic had been switched it would display the old topics revision history for the new topic.

This was also an issue with the Content Spec revisions.

Note: This version is currently live on the test/development version.

Comment 2 Matthew Casperson 2014-01-27 23:28:22 UTC
Confirmed that the revision history is now reset for new topics and content specs.