Bug 750970 - Add SpecRevision attribute
Summary: Add SpecRevision attribute
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-03 03:24 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: 2011-11-11 11:12:49 UTC
Embargoed:


Attachments (Terms of Use)

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


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