Bug 980690
| Summary: | RFE: Add validation for BZ link specs | ||
|---|---|---|---|
| Product: | [Community] PressGang CCMS | Reporter: | belong |
| Component: | CSProcessor | Assignee: | Lee Newson <lnewson> |
| Status: | CLOSED CURRENTRELEASE | QA Contact: | belong |
| Severity: | medium | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 1.1 | CC: | lnewson, mcaspers |
| Target Milestone: | --- | Keywords: | FutureFeature |
| Target Release: | 1.2 | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | 1.0.0 | Doc Type: | Enhancement |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2013-10-17 23:50:00 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: | 1005623 | ||
| Bug Blocks: | |||
|
Description
belong
2013-07-03 03:26:47 UTC
Verified that this is possible using the Bugzilla XMLRPC interface. The relevant methods are: Keywords: https://bugzilla.redhat.com/docs/en/html/api/Bugzilla/WebService/Bug.html#fields Product/Component/Version: https://bugzilla.redhat.com/docs/en/html/api/Bugzilla/WebService/Product.html#get Added in 1.0.0. The csprocessor will now validate all the Bugzilla options against the server. I've also added the "BZServer" metadata attribute in case you want to use a Bugzilla server that isn't Red Hat's. The options when validated, will produce warnings if the content cannot be found (to allow for maintenances or other network related problems). Upon building if the elements can't be found then a build error will be thrown. Verified locally using: csprocessor validate <file> However, it still does not work using: csprocessor preview <id>. Suspect this is due to the PressGang server being blocked from the BZ server?? The validation on the server is due to the server being blocked. We will implement a mechanism to use the teiid database that is preferred when connecting an to the Red Hat instance internally. As for the build/assemble/preview. That is reproducible and is caused a new feture we added late last week where it would not revalidate if it was validated recently, however that rule shouldn't apply for builds (setting it to assigned for that reason). Fixed in 1.2-SNAPSHOT, Build 201310091629 When building the content spec it will always do bug link validation unless the "--skip-bug-link-validation" option is used. Confirmed that invalid Bugzilla products, components and versions cause validation errors when trying to build the book. Also confirmed that --skip-bug-link-validation will allow the books to be built. My only suggestion is that the validation be done at the start of the build, instead of at the end. Otherwise you can spend a minute or so waiting for a large spec to download and build only to find out that the bugzilla details were incorrect. Moving this to RELEASE_PENDING and created BZ#1020560 as the RFE to handle what mentioned in comment #7. |