Bug 307655 - add an attribute for the the duplicated bug id in a duplicate bug
Summary: add an attribute for the the duplicated bug id in a duplicate bug
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: All All
: P2 enhancement (vote)
Target Milestone: 3.4   Edit
Assignee: Attila Szökrönyös CLA
QA Contact:
URL:
Whiteboard:
Keywords: contributed
Depends on:
Blocks:
 
Reported: 2010-03-31 05:06 EDT by Attila Szökrönyös CLA
Modified: 2010-04-07 16:53 EDT (History)
2 users (show)

See Also:


Attachments
Add support for returning id of duplicated field when calling BugzillaClient.getTaskData() (5.23 KB, patch)
2010-03-31 06:23 EDT, Attila Szökrönyös CLA
eclipse: review+
Details | Diff
mylyn/context/zip (4.44 KB, application/octet-stream)
2010-03-31 06:23 EDT, Attila Szökrönyös CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Attila Szökrönyös CLA 2010-03-31 05:06:06 EDT
Currently the Bugzilla connector does not return the id of the duplicated bug when a duplicate bug is queried using BugzillaClient.getTaskData().
Comment 1 Attila Szökrönyös CLA 2010-03-31 06:23:06 EDT
Created attachment 163512 [details]
Add support for returning id of duplicated field when calling BugzillaClient.getTaskData()

Manual testing have been performed
Comment 2 Attila Szökrönyös CLA 2010-03-31 06:23:12 EDT
Created attachment 163513 [details]
mylyn/context/zip
Comment 3 Attila Szökrönyös CLA 2010-03-31 06:26:39 EDT
Please review my patch. 
Can you also point me where to look for a testcase I can use for writing the unit tests?
Comment 4 Steffen Pingel CLA 2010-03-31 12:50:34 EDT
Can you clarify the purpose of the patch?
Comment 5 Attila Szökrönyös CLA 2010-04-01 04:52:20 EDT
We are using the Bugzilla Connector in our project to access Bugzilla and synchronize bugs to another system. If lets say Bug A is a duplicate of Bug B and we are synchronizing Bug A we need to synchronize the id of Bug B as well - not just the DUPLICATED resolution and the comment for duplicates, we also need to set the duplicated bug id in the other system so it will know which bug is the duplicated one. 
But this information is not populated in the TaskData returned by BugzillaClient.getTaskData() although the http response from Bugzilla does contain it. 
Does this answers your question?
Comment 6 Frank Becker CLA 2010-04-02 15:39:39 EDT
(In reply to comment #4)
> Can you clarify the purpose of the patch?

Steffen,

with this patch the textfield "Duplicate of" holds the bugid and is no longer empty. Now it looks the same in the HTML and TaskEditor.
Comment 7 Steffen Pingel CLA 2010-04-02 19:07:47 EDT
Thanks for the clarification Attila. Frank, Rob, can you review the patch?
Comment 8 Frank Becker CLA 2010-04-05 16:08:59 EDT
Thanks Attila, I commit this to HEAD.