Bug 786327

Summary: REST Interface - Unable to relate SnapshotTopics to a Snaphot
Product: [Community] PressGang CCMS Reporter: Lee Newson <lnewson>
Component: REST-APIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED WORKSFORME QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.xCC: cbredesen, 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: 2012-02-02 02:28:11 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Lee Newson 2012-02-01 05:27:57 UTC
When creating snapshots via the REST Interface there is no way to relate a snapshot topic to a snapshot. So when you attempt to create a snapshot you end up with the snapshot having no topics. It is the same result if you were to create the snapshot topics first and then attempt to create the snapshot afterwards.

Comment 1 Matthew Casperson 2012-02-01 21:51:04 UTC
Fixed in 20120202-0747

SnapshotV1Factory.syncDBEntityWithRESTEntity() will now sync the supplied collection of SnapshotTopics with the database.

Note that the relationship between Snapshot and SnapshotTopic is ManyToMany, so the SnapshotTopics have to be created first, and then associated with a Snapshot in a second step.