Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 311794 - PublisherDelegate do not provide delta kind information on execute()
Summary: PublisherDelegate do not provide delta kind information on execute()
Status: RESOLVED FIXED
Alias: None
Product: WTP ServerTools
Classification: WebTools
Component: wst.server (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P2 major (vote)
Target Milestone: 3.2 RC1   Edit
Assignee: Elson Yuen CLA
QA Contact: Angel Vera CLA
URL:
Whiteboard: PMC_approved
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-05 16:46 EDT by Elson Yuen CLA
Modified: 2017-10-11 16:33 EDT (History)
1 user (show)

See Also:
arvera: pmc_approved? (david_williams)
arvera: pmc_approved? (raghunathan.srinivasan)
arvera: pmc_approved? (naci.dai)
arvera: pmc_approved? (deboer)
arvera: pmc_approved? (neil.hauge)
kaloyan: pmc_approved+
arvera: review+


Attachments
v1.0 (3.61 KB, patch)
2010-05-05 16:51 EDT, Elson Yuen CLA
no flags Details | Diff
v1.1 (4.55 KB, patch)
2010-05-06 11:32 EDT, Elson Yuen CLA
arvera: iplog+
arvera: review+
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Elson Yuen CLA 2010-05-05 16:46:21 EDT
Build Identifier: WTP 3.2

The PublisherDelegate is meant to be the replacement of the old PublishTask framework to provide better support.

In the old PublishTask, the PublishTask had the information on the list of delta kind information for the PublishTask to decide what publish task action to take on the modules.

However, in the new PublishDelegate, the delta kind is not available on the task model so the PublishDelegate will not have enough information to decide what action to be done.

This request to add the delta kind information of each module to the task module so that the PublishDelegate will have access to that info.

Reproducible: Always
Comment 1 Elson Yuen CLA 2010-05-05 16:46:37 EDT
Angel, please assign this one to me.
Comment 2 Elson Yuen CLA 2010-05-05 16:51:14 EDT
Created attachment 167233 [details]
v1.0

A new object org.eclipse.wst.server.core.TaskModel.TASK_DELTA_KINDS has been added to the task model of the PublishDelegate to pass the delta kind information to provide the equivalent information as the old PublishTask.

Adopter do not need to react to this change unless the adopter want to make use of this new information.
Comment 3 Angel Vera CLA 2010-05-05 16:54:57 EDT
This looks like something we should fix for 3.2, since it missing functionality. Since we are now in RC1 mode, this defect will require lead approval and one PMC vote as per http://wiki.eclipse.org/WTP_3.2_Ramp_down_Plan_for_Helios#RC1.
Comment 4 Elson Yuen CLA 2010-05-06 11:32:50 EDT
Created attachment 167327 [details]
v1.1

Updated patch to deprecate old method to maintain compatibility.
Comment 5 Angel Vera CLA 2010-05-06 14:12:01 EDT
Patch v1.1 looks good. Thanks for the adjustment to deprecating the old method. 

Elson, please fill in the PMC template and I can then raise it for PMC approval.
Comment 6 Elson Yuen CLA 2010-05-10 16:33:44 EDT
    * Explain why you believe this is a stop-ship defect. Or, if it is a
"hotbug" (requested by an adopter) please document it as such. 

The PublisherDelegate is meant to be the replacement of the old PublishTask
framework to provide better support.

In the old PublishTask, the PublishTask had the information on the list of
delta kind information for the PublishTask to decide what publish task action
to take on the modules.  Therefore, missing the delta information will mean that we are regressing in terms of functions from the new API.

The adopter will not be able to handle the module removal case properly and cause problems on publish when a module has been removed.

The existing adopter will not need to react to this change if they decided not to do so and things will still be working as before. They can be benefit from this change if they decided to extract the delta information from the task model.

    * Is there a work-around? If so, why do you believe the work-around is
insufficient? 
There is no workaround on this problem.

    * How has the fix been tested? Is there a test case attached to the
bugzilla record? Has a JUnit Test been added? 
Tested scenario:
1. If the deprecated method is being used for calling the publisher, the behaviour will be exactly the same as before the patch.
2. Also, tested the scenario where the new method is being use which is the default, the delta information gets passed on to the adopter correctly.

    * Give a brief technical overview. Who has reviewed this fix? 
Angel has reviewed this fix.

    * What is the risk associated with this fix? 
Risk should be minimal since the code will behave as before the change if the
adopter do not explicitly use the new delta information.
Comment 7 Angel Vera CLA 2010-05-11 11:27:30 EDT
Changes committed to HEAD, with a slight modification. There was an error in the javadoc where the deprecated method had a extra @param tag, I removed it and committed the code.
Comment 8 Angel Vera CLA 2010-05-11 11:48:51 EDT
Changes released to HEAD
Comment 9 Eclipse Genie CLA 2017-10-11 16:33:08 EDT
New Gerrit change created: https://git.eclipse.org/r/108940