Bug 786327 - REST Interface - Unable to relate SnapshotTopics to a Snaphot
Summary: REST Interface - Unable to relate SnapshotTopics to a Snaphot
Keywords:
Status: CLOSED WORKSFORME
Alias: None
Product: PressGang CCMS
Classification: Community
Component: REST-API
Version: 1.x
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Matthew Casperson
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-02-01 05:27 UTC by Lee Newson
Modified: 2014-08-04 22:26 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-02-02 02:28:11 UTC


Attachments (Terms of Use)

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.


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