Bug 822333

Summary: RFE: Pull topic XML fragments as xml, run scripts, push them back into Skynet.
Product: [Community] PressGang CCMS Reporter: Tim Hildred <thildred>
Component: Web-UIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: urgent Docs Contact:
Priority: urgent    
Version: 1.xCC: cbredesen, lnewson, topic-tool-list
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-06-13 01:41:11 UTC Type: Bug
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: 838630    
Bug Blocks:    

Description Tim Hildred 2012-05-17 05:41:49 UTC
Migrating legacy content into skynet for re-factoring involves cutting and pasting out of XML kept in SVN. 

We now have many topics with meaningless or problematic xrefs and IDs and incorrectly named images. 

This is likely to be the case for any project migrating into Skynet. 

It would be really good if we could pull out topics, run corrective scripts on them, and push the fixed results back into the Skynet database. 

Here is an example of the error messages I got building one of our books using the csprocessor:

http://pastebin.test.redhat.com/89465

Thats 125 errors to fix by hand, that could be addressed with a perl script or such like much faster. There are going to be many more such errors for each of our existing books, plus images. 

The csprocessor gives you xml fragments as xml. Is it possible to have updated XML passed back into Skynet with some mechanism? 

Please?

Comment 1 Matthew Casperson 2012-05-17 06:18:45 UTC
This would be best dealt with by a REST client that checks for xrefs. We should also look at an image upload tool.

Comment 2 Lee Newson 2013-06-13 01:41:11 UTC
Closing this bug as you can now do this with the WebDAV interface.