Bug 751308

Summary: Enhance Revision History
Product: [Community] PressGang CCMS Reporter: Joshua Wulf <jwulf>
Component: CSProcessorAssignee: Lee Newson <lnewson>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: jwulf, lcarlon
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 0.19.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-22 03:00:19 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:    
Bug Blocks: 751255    

Description Joshua Wulf 2011-11-04 09:43:51 UTC
Email is a compulsory field when attempting to package or publish the book to the docs stage.

Let's do this:

1. Find a way to map the user ID with the API key to Author ID.
2. Use the Author info (First Name, Last Name, Email) for the Rev History entry.
3. Failing an existing and valid Author info, use the Author ID 0 record, if it exists. Failing that, use:
First Name: CS Builder, Last Name: Robot, email: robot.com
4. Make the Rev History entry say:
"Built from Content Specification <ID> Revision: <RevNumber>

Comment 1 Lee Newson 2011-11-07 04:55:49 UTC
Added. If the user who sends the build request is an author, it will use the information stored in the AuthorInformation table. Since email is compulsory and the fields in AuthorInformation allow email to be null. If the author has a null email address then the "robot.com" email shall be used. If the user isn't an author than it will attempt to use the the Database Default (AuthorID = 0). If that field is empty, then the defaults above are used.

If the program has to fall back on defaults then the user's username will be added to the end of the built statement.

ie: Built from Content Specification: 2, Revision: 3 by lnewson


Also removed the Content Specification built message from the abstract in Book_Info.xml

Comment 2 Joshua Wulf 2011-11-25 00:02:19 UTC
Looks good. Just change the revdescription to "Build of book by CSBuilder"

Comment 3 Lee Newson 2011-11-29 03:27:39 UTC
Changed the output from "Initial creation of book by CSBuilder" to "Build of book by CSBuilder".

Comment 4 Joshua Wulf 2012-02-22 03:00:19 UTC
Books assembled by csprocessor now push to the stage via rhpkg with no manual intervention, as of:

CSProcessor client version: 0.17.0
Web Service at http://csprocessor.cloud.lab.eng.bne.redhat.com:8080/ version: 0.21.4