Bug 751304

Summary: Sane Default for Author Group
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.15.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-22 03:05:29 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: 751251    

Description Joshua Wulf 2011-11-04 09:28:56 UTC
Currently the publican build breaks if Author details are not located in the Author table by the builder.

If no Author is found for any of the topics, or the Author does not have sufficient information (First Name, Last Name, email), then the "Staff Writer" default should be used.

First Name, Last Name, and email are compulsory. Organizational affiliation is optional.

The Staff Writer should use the email "writer.com".

If an Author with ID 0 exists in the Author table, then the processor should use that Author attribution as the default if no other Author information is available.

So the processor will:

1. Try to locate an Author information record for each of the assigned writers.
2. If an Author record is located, it must have First Name, Last Name, and email to be valid. The Org affiliation is optional.
3. If no valid authors can be located, and an Author ID 0 exists in the table, that Author information is used.
4. If no Author ID 0 exists then First Name: "Staff", Last Name: "Writer", email: "writer.com" is used.

Comment 1 Joshua Wulf 2011-11-04 09:45:06 UTC
Sorry, email is not compulsory. Require only First Name and Last Name, and give the default Staff Writer no email address.

Comment 2 Lee Newson 2011-11-07 00:43:06 UTC
Fixed. I missed this in my rush to get a build out Friday sorry. I've now added this as per the desired requirements. If no authors are found inside the AuthorInformation table it will try and load the tuple with an id of 0 in the AuthorInformation table. If none are found then it will insert the "Staff Writer" default.

Comment 3 Joshua Wulf 2012-02-22 03:05:29 UTC
Verified on:

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