Bug 751304 - Sane Default for Author Group
Summary: Sane Default for Author Group
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: 751251
TreeView+ depends on / blocked
 
Reported: 2011-11-04 09:28 UTC by Joshua Wulf
Modified: 2014-10-19 22:59 UTC (History)
2 users (show)

Fixed In Version: 0.15.0
Clone Of:
Environment:
Last Closed: 2012-02-22 03:05:29 UTC
Embargoed:


Attachments (Terms of Use)

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


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