Bug 1011397

Summary: Value of attribute 'derived' is inconsistent for SwitchYardComponentService artifact
Product: [JBoss] JBoss Fuse Service Works 6 Reporter: Stefan Bunciak <sbunciak>
Component: DT GovernanceAssignee: Eric Wittmann <eric.wittmann>
Status: CLOSED CURRENTRELEASE QA Contact: Stefan Bunciak <sbunciak>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 6.0.0 GACC: atangrin, ncross, soa-p-jira
Target Milestone: ER7   
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: 2014-02-06 15:25:28 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:
Attachments:
Description Flags
s-ramp-ui patch to fix this issue none

Description Stefan Bunciak 2013-09-24 08:06:46 UTC
Description of problem:

Value of attribute 'derived' is inconsistent for SwitchYardComponentService artifact.

* Artifact details in S-RAMP repository browser:

Type:
SwitchYardComponentService

UUID:
6ff0e58b-a4dc-454a-a35d-d045b34ebc5d

Derived:
false

Date Created:
2013-09-24 by admin
Last Modified:
2013-09-24 by admin


* Downloaded meta-data:
<s-ramp:ExtendedArtifactType extendedType="SwitchYardComponentService" artifactType="ExtendedArtifactType" name="ExampleService" createdBy="admin" uuid="6ff0e58b-a4dc-454a-a35d-d045b34ebc5d" createdTimestamp="2013-09-24T09:46:51.603+02:00" lastModifiedTimestamp="2013-09-24T09:46:53.922+02:00" lastModifiedBy="admin" s-ramp:derived="true" s-ramp:contentType="application/xml">

Version-Release number of selected component (if applicable):
* 6.0.0.ER3

How reproducible:


Steps to Reproduce:
1. Deploy application which contains policy definition so that S-RAMP will derive SwitchYardComponentService for it
2. Check the S-RAMP repository for the inconsistency
3.

Actual results:


Expected results:


Additional info:

Comment 1 Stefan Bunciak 2013-09-24 08:11:44 UTC
This also applies to SwitchYardTransformer & SwitchYardService artifact type.

Comment 2 Stefan Bunciak 2013-09-24 09:06:53 UTC
This is causing these derived artifacts not to show when selected 'Origin' to derived in S-RAMP repository browser.

Comment 3 Eric Wittmann 2013-09-24 14:32:35 UTC
In my testing I haven't been able to confirm that the artifacts fail to come back when 'Origin' is set to Derived.

In my testing my SY app was added to s-ramp, resulting in 64 total artifacts.  When I click Primary it results in 11 being shown, when I click on Derived it results in 53 being shown (albeit paged).

I believe the bug is limited to the Derived column in the list of artifacts and also the "Derived:" section of the artifact details page.

Comment 4 JBoss JIRA Server 2013-09-24 14:43:01 UTC
Eric Wittmann <eric.wittmann> updated the status of jira SRAMPUI-110 to Coding In Progress

Comment 5 JBoss JIRA Server 2013-09-24 15:19:36 UTC
Eric Wittmann <eric.wittmann> updated the status of jira SRAMPUI-110 to Resolved

Comment 6 JBoss JIRA Server 2013-09-24 15:19:38 UTC
Eric Wittmann <eric.wittmann> updated the status of jira SRAMPUI-110 to Closed

Comment 7 Eric Wittmann 2013-09-24 17:30:37 UTC
Created attachment 802376 [details]
s-ramp-ui patch to fix this issue

I have merged the community fix onto the s-ramp-ui product branch (0.3.0.Final-prod-ip6.0).

Additionally, I am attaching a standalone patch file, in case that is desired (more targeted fix for ER3 vs. doing a full rebuild).

NOTE: you should *either* pull latest changes from the s-ramp-ui git repo (product branch) *OR* use the attached patch.  They are the same - I am simply providing options to the prod team. :)

Comment 8 Stefan Bunciak 2013-10-01 10:46:43 UTC
This hasn't been fixed in ER4, I can still reproduce.

Comment 9 Eric Wittmann 2013-10-01 12:56:30 UTC
I'll test with ER4 and see what's up.

Comment 10 Eric Wittmann 2013-10-03 12:16:51 UTC
Looks like the ER4 tag was incorrectly created (by me) for the s-ramp-ui project.  I have re-tagged as:

0.3.1.Final-prod-ip6.0_ER4-2

We can use this if another ER4 build is being done.  If not, then this fix can get in for ER5 instead.

Comment 11 Eric Wittmann 2013-10-03 12:20:12 UTC
Nick, see my previous comment.  Will there be another ER4 build?  

In either case, can you push this bug into whatever state it should be given the details above?

Comment 15 Stefan Bunciak 2013-12-12 14:21:28 UTC
Verified in FSW 6.0.0.ER7