Bug 750970

Summary: Add SpecRevision attribute
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: 2011-11-11 11:12:49 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-03 03:24:01 UTC
Can we add SpecRevision=<revision level of Content Spec> to the header (under ID=<id>) of Content Specs that are output by the pull --post command?

On push --new, if a SpecRevision is detected in the header it should give an error, similar to the one that is given if an ID is present: "SpecRevision attribute is present, and is not allowed when pushing a Content Spec as new"

On push --edit, if the SpecRevision does not match the current revision of the Content Spec being edited, then it should fail with: 


SpecRevision: <revlevel>
Current Revision: <revlevel>

Revision levels must match to edit.

Comment 1 Joshua Wulf 2011-11-03 03:24:54 UTC
And what to do if SpecRevision is missing on --edit?

Fail with:

"SpecRevision" attribute not found in Content Specification.

Comment 2 Lee Newson 2011-11-07 00:18:57 UTC
Added. SpecRevision will automatically be added/updated when pushing in a content specification. The SpecRevision tag must be under the ID and above the Title attributes. 

Error messages are implemented as described above, except if the revisions don't match. The output from non-matching revision numbers is shown below:

ERROR: Invalid Content Specification! Revisions must match to be edited.
       -> SpecRevision: 12
       -> Current Revision: 14