Bug 241809 - Work product suppressed attribute is ignored by publishing routine
Summary: Work product suppressed attribute is ignored by publishing routine
Status: NEW
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EPF (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Ming Gu CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-07-23 09:41 EDT by Osvaldas CLA
Modified: 2023-02-16 16:17 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Osvaldas CLA 2008-07-23 09:41:05 EDT
1. Create task t1 in the method library with multiple outputs: o1, o2, o3...
2. Create capability cp1 pattern with activity a1. Add child task t1 to the activity a1 from the method content (linked with method workproduct)
3. Create delivery process pattern dp1 and apply pattern of a1 from cp1
4. Now open "Work product usage" tab and suppress all but one output, let's say o1
5. Switch to the browsing perspective and check activity a1 "Work product usage" tab. Should see only one output o1 listed.
6. Publish site into J2EE war. Check the published page. Should see all outputs defined for t1 in method library listed on the page.

Expected behavior: should see only one output o1, as in EPF tool's browsing perspective
Comment 1 Osvaldas CLA 2008-07-25 07:22:17 EDT
Also tested and repeated for epf-composer-1.5.0M3
Comment 2 Weiping Lu CLA 2008-08-05 13:00:23 EDT
This works as desgined.
The described "expected behavior" is true only when the apply pattern selection is "extends". 
For "copy" or "deepcopy", the work product descriptors under dp1 are not the same copies as those of cp1. You need to suppress them instead of those of cp1 to get what you want.

Comment 3 Bingxue Xu CLA 2008-08-05 20:08:41 EDT
OK. if in the following step, you are looking at the t1 task page, not the task descriptor page, then yes, it's the correct behavior.

>6. Publish site into J2EE war. Check the published page. Should see all >outputs
>defined for t1 in method library listed on the page.

Comment 4 Osvaldas CLA 2008-08-06 01:56:52 EDT
(In reply to comment #2)
> The described "expected behavior" is true only when the apply pattern selection
> is "extends". 
Yes, I do use "extends" variability on step 3.

(In reply to comment #3)
> OK. if in the following step, you are looking at the t1 task page, not the task
> descriptor page, then yes, it's the correct behavior.
On the step 6. I've checked "extended" activity page, which rolls-up work products from underlying task descriptors (or is it tasks - I'm abit confused). 

For me it looks more reasonable to have same info listed on the same page in the epf-tool browsing perspective and published web site anyway. And this not the case now.
Comment 5 Weiping Lu CLA 2008-08-06 13:58:11 EDT
"The described "expected behavior" is true only when the apply pattern selection is "extends"." -> Ok,I only checked it with browsing view, which works as expected. But it did not work expectedly when published. will take of it again.
Comment 6 Weiping Lu CLA 2008-08-06 14:19:11 EDT
Looks like a xsl transformation issue which may not take suppress attribute into account.
Comment 7 Bingxue Xu CLA 2008-08-19 19:09:23 EDT
Please consult with Weiping on this one. It should be a JavaScript issue.
Comment 8 Bingxue Xu CLA 2008-09-05 19:39:09 EDT
More info in Bug 207544, and will defer this based on the same findings.