Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 195382

Summary: [web connector] manual sync marks all query hits as incoming
Product: z_Archived Reporter: Eugene Kuleshov <ekuleshov>
Component: MylynAssignee: Eugene Kuleshov <ekuleshov>
Status: RESOLVED WORKSFORME QA Contact:
Severity: normal    
Priority: P3 CC: robert.elves, steffen.pingel
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Eugene Kuleshov CLA 2007-07-04 10:00:55 EDT
manual sync of the web repository connector query marks all query hits as incoming and also drops the manually managed "completed" status
Comment 1 Eugene Kuleshov CLA 2007-07-04 12:04:16 EDT
Currently web connector does collector.accept(new WebTask(..)) and since we got rid of hits it is probably overriding task that is in the task list. I've tried to use collector.accept(taskData) call instead, then "completed" status is preserved, but all query results are still marked as incoming.

Rob, Steffen, do you have any ideas how to work around this?
Comment 2 Eugene Kuleshov CLA 2007-07-11 01:48:26 EDT
Need input! (c) Johnny Five
Comment 3 Robert Elves CLA 2007-07-24 22:12:50 EDT
 (In reply to comment #2)
> Need input! (c) Johnny Five
:)  Solution should be to override connector.updateTaskFromQueryHit() to fill in missing details then pass along to super.updateTaskFromQueryHit() and return false (not changed if that is the case).
From SynchronizeQueryJob:
if (changed && !task.isStale()
							&& task.getSynchronizationState() == RepositoryTaskSyncState.SYNCHRONIZED) {
						// set incoming marker for web tasks 
						task.setSynchronizationState(RepositoryTaskSyncState.INCOMING);
					}
					
Comment 4 Eugene Kuleshov CLA 2008-02-26 13:37:43 EST
Don't see this happening anymore. Closing.