| Summary: | [web connector] manual sync marks all query hits as incoming | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Eugene Kuleshov <ekuleshov> |
| Component: | Mylyn | Assignee: | 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
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? Need input! (c) Johnny Five (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); } Don't see this happening anymore. Closing. |