Bug 1011889

Summary: Situation needs an explicit id that can be used to correlate the persisted object with the one distributed via notification
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Gary Brown <gbrown>
Component: RT GovernanceAssignee: Julian Coleman <jcoleman>
Status: CLOSED CURRENTRELEASE QA Contact: Jiri Pechanec <jpechane>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, jsedlace, ldimaggi, soa-p-jira
Target Milestone: ER4   
Target Release: 6.0.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Gary Brown 2013-09-25 10:44:35 UTC
Description of problem:

Currently the 'Situation' object only has an internal id used when persisting the object in a JPA db. When the Situation object is distributed via the active collection to the Situations gadget, or any other REST client accessing the active collection, this id is not available.

Therefore if at a later stage the client wishes to retrieve that situation from the db (i.e. situation history) it is not possible to refer to it by an id.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 2 Gary Brown 2013-09-25 10:52:45 UTC
As part of the fix, changed the overlord-rtgv-epn to use a JTA based entity manager for the situation store, and fixed how the entity manager was handled in the JPAEventProcessor.

Comment 3 Gary Brown 2013-09-25 11:10:45 UTC
Assigning to Julian to notify about db schema changes. In a previous email thread with Steve Johnson he indicated that it would not be a problem as prod team will be using the schema tool driven by the persistence.xml content.

To summarise:

- Situation entity now has an explicit 'id' primary key field (string).

- Tables are explicitly created as part of the rtgov installation (not relevant for prod).

- overlord-rtgov-epn.war's persistence.xml has been updated to use JTA

Comment 4 JBoss JIRA Server 2013-09-25 11:16:47 UTC
Gary Brown <gary> updated the status of jira RTGOV-279 to Resolved

Comment 8 Jiri Pechanec 2014-01-07 11:40:07 UTC
Verified in ER8

Comment 9 JBoss JIRA Server 2014-07-02 09:19:23 UTC
Gary Brown <gary> updated the status of jira RTGOV-279 to Closed