Bug 751308 - Enhance Revision History
Summary: Enhance Revision History
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: PressGang CCMS
Classification: Community
Component: CSProcessor
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Lee Newson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 751255
TreeView+ depends on / blocked
 
Reported: 2011-11-04 09:43 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
2 users (show)

Fixed In Version: 0.19.0
Clone Of:
Environment:
Last Closed: 2012-02-22 03:00:19 UTC
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 749807 0 unspecified CLOSED Put Content Spec information into the build 2021-02-22 00:41:40 UTC

Internal Links: 749807

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


Note You need to log in before you can comment on or make changes to this bug.