Bug 168204 - support bugzilla's usermatchmode for matching names to email addresses
Summary: support bugzilla's usermatchmode for matching names to email addresses
Status: RESOLVED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: Other Linux
: P2 enhancement with 2 votes (vote)
Target Milestone: 3.7   Edit
Assignee: Frank Becker CLA
QA Contact:
URL:
Whiteboard:
Keywords: noteworthy, plan
: 210283 238186 255684 (view as bug list)
Depends on: 202879 372384
Blocks: 210283 236504
  Show dependency tree
 
Reported: 2006-12-15 09:24 EST by Martin Kobele CLA
Modified: 2012-03-03 07:17 EST (History)
5 users (show)

See Also:


Attachments
popup after a submit (28.83 KB, image/png)
2006-12-15 10:52 EST, Martin Kobele CLA
no flags Details
once I hit continue or any other link in the popup window (29.55 KB, image/png)
2006-12-15 10:53 EST, Martin Kobele CLA
no flags Details
mylyn/context/zip (823 bytes, application/octet-stream)
2007-12-10 20:56 EST, Frank Becker CLA
no flags Details
Patch with without ui (25.48 KB, patch)
2007-12-25 16:07 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (6.24 KB, application/octet-stream)
2007-12-25 16:07 EST, Frank Becker CLA
no flags Details
Patch with UI (42.39 KB, patch)
2008-01-04 16:01 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (27.54 KB, application/octet-stream)
2008-01-04 16:01 EST, Frank Becker CLA
no flags Details
Patch (57.23 KB, patch)
2008-02-13 16:55 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (16.82 KB, application/octet-stream)
2008-02-13 16:55 EST, Frank Becker CLA
no flags Details
possible patch for 3.0 editor (34.98 KB, patch)
2008-12-10 16:21 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (30.92 KB, application/octet-stream)
2008-12-10 16:21 EST, Frank Becker CLA
no flags Details
new Version (39.86 KB, patch)
2009-05-09 16:14 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (8.62 KB, application/octet-stream)
2009-05-09 16:14 EDT, Frank Becker CLA
no flags Details
patch with ControlDecoration (39.45 KB, patch)
2009-05-21 08:47 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (18.01 KB, application/octet-stream)
2009-05-21 08:47 EDT, Frank Becker CLA
no flags Details
patch for Version 3.4 (28.46 KB, patch)
2010-03-21 14:52 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (21.87 KB, application/octet-stream)
2010-03-21 14:52 EDT, Frank Becker CLA
no flags Details
patch V8 (35.96 KB, patch)
2011-03-12 10:34 EST, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (44.96 KB, application/octet-stream)
2011-03-12 10:34 EST, Frank Becker CLA
no flags Details
aaaa (19.50 KB, application/octet-stream)
2011-05-27 10:00 EDT, yumer CLA
no flags Details
testAttachment (19.50 KB, application/octet-stream)
2011-05-27 10:01 EDT, yumer CLA
no flags Details
patch V9 (37.08 KB, patch)
2011-06-17 13:14 EDT, Frank Becker CLA
no flags Details | Diff
mylyn/context/zip (98.08 KB, application/octet-stream)
2011-06-17 13:14 EDT, Frank Becker CLA
no flags Details
mylyn/context/zip (6.77 KB, application/octet-stream)
2011-07-30 13:01 EDT, Frank Becker CLA
no flags Details
mylyn/context/zip (26.71 KB, application/octet-stream)
2011-09-18 10:21 EDT, Frank Becker CLA
no flags Details
mylyn/context/zip (10.34 KB, application/octet-stream)
2012-01-20 15:28 EST, Frank Becker CLA
no flags Details
overlapping control decoration (4.24 KB, image/png)
2012-01-26 17:22 EST, Steffen Pingel CLA
no flags Details
mylyn/context/zip (15.53 KB, application/octet-stream)
2012-01-29 11:22 EST, Frank Becker CLA
no flags Details
truncated decoration (2.10 KB, image/png)
2012-02-06 13:44 EST, Steffen Pingel CLA
no flags Details
mylyn/context/zip (15.89 KB, application/octet-stream)
2012-02-07 14:23 EST, Frank Becker CLA
no flags Details
Screenshot (22.46 KB, image/png)
2012-02-13 14:42 EST, Steffen Pingel CLA
no flags Details
screenshot (39.96 KB, image/png)
2012-03-03 07:17 EST, Steffen Pingel CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Kobele CLA 2006-12-15 09:24:08 EST
if usermatchmode is on and you assign the bug to somebody else by putting only part of the username in the assignee field a window pops up asking for a confirmation of the possible found users.
hitting the confirm button will result in a "File Not Found":

"The file /process_bug.cgi cannot be found. Please check the location and try again."
Comment 1 Martin Kobele CLA 2006-12-15 10:52:03 EST
Created attachment 55762 [details]
popup after a submit

this screenshot shows the popup once I set a new assignee and submitted the ticket.
In the upper left corner you see already an error message.

I see this every time this kind of window pops up. No matter whether I connect to my out-of-the-box bugzilla or to our company's bugzilla.

the next attachmend will show what happened once I click on "continue"
Comment 2 Martin Kobele CLA 2006-12-15 10:53:12 EST
Created attachment 55763 [details]
once I hit continue or any other link in the popup window
Comment 3 Mik Kersten CLA 2006-12-18 21:53:30 EST
I assume that you are able to use full email addresses?

For now I added a FAQ entry: http://wiki.eclipse.org/index.php/Mylar_FAQ#Bugzilla_Connector_troubleshooting
Comment 4 Frank Becker CLA 2007-12-10 20:55:58 EST
Rob,

I found this bug and want to know if we should resolve this. For me it looks like this can somehow related to bug 152415.

The actual problem is that we get  an html page with the possible users as theresult of the post method.
But the actual code only handle errors.

If we fix this we should first come up with the correct workflow.
Maybe we do this after bug 202879 and bring up a special version of a Content Assist. But keep in mind that we can have more then one attribute to process (Assigned to, QA Contact, add CC).

regards

Frank

Comment 5 Frank Becker CLA 2007-12-10 20:56:07 EST
Created attachment 84912 [details]
mylyn/context/zip
Comment 6 Robert Elves CLA 2007-12-11 21:00:25 EST
 (In reply to comment #4)
> Rob,
> 
> I found this bug and want to know if we should resolve this. For me it looks
> like this can somehow related to bug 152415.
> 
> The actual problem is that we get  an html page with the possible users as
> theresult of the post method.
> But the actual code only handle errors.
> 
> If we fix this we should first come up with the correct workflow.
> Maybe we do this after bug 202879 and bring up a special version of a Content
> Assist. But keep in mind that we can have more then one attribute to process
> (Assigned to, QA Contact, add CC).
> 
> regards
> 
> Frank

In the case of usermatch enabled and the user enters partial names for more than one field, the followup dialog could present all fields with suggestions returned by bugzilla, then either resubmit with the values selected or if possible complete the original submission correctly. Marking bug#202879 as a subtask of this.
Comment 7 Frank Becker CLA 2007-12-25 16:07:54 EST
Created attachment 85823 [details]
Patch with without ui

Patch for 202879 also included to demostrate how all fit together.

http://wiki.eclipse.org/Mylyn_Bugzilla_Connector#Langugage_Configurations updated for new error_confirm_match command.

I must do the cleanup of my ui imlementation before I can submit this to. (Hope that I can do this until 6. January 2008)
Comment 8 Frank Becker CLA 2007-12-25 16:07:56 EST
Created attachment 85824 [details]
mylyn/context/zip
Comment 9 Frank Becker CLA 2008-01-04 16:01:03 EST
Created attachment 86228 [details]
Patch with UI

please verify and keep in mind that Patch for 202879 is included to.
Comment 10 Frank Becker CLA 2008-01-04 16:01:10 EST
Created attachment 86229 [details]
mylyn/context/zip
Comment 11 Eugene Kuleshov CLA 2008-01-04 17:02:21 EST
Frank, can you please use convention "bug NNNN" when referring to other issues, so the hyperlink detector would be able to match on a standard pattern. Thanks.
Comment 12 Robert Elves CLA 2008-01-07 12:26:16 EST
Frank, I hope to put some time into reviewing patches this week. Sorry for the delay.
Comment 13 Frank Becker CLA 2008-02-13 16:55:56 EST
Created attachment 89687 [details]
Patch

This patch is include a patch for  bug#210283 and the previous  path.
This was done because I think the are related.

Patch for bug#202879 is also included to demonstrate how all fit together. 

All this must wait until bug#179254 is resolved.

If you work on this I can separate this one patch to the corresponding  bugs for a better review.
Comment 14 Frank Becker CLA 2008-02-13 16:55:59 EST
Created attachment 89688 [details]
mylyn/context/zip
Comment 15 Mik Kersten CLA 2008-06-12 19:09:33 EDT
Need to defer: http://wiki.eclipse.org/index.php/Mylyn/3.0_Plan#Deferred_Items
Comment 16 Robert Elves CLA 2008-09-23 12:45:09 EDT
Due to the 3.0 editor refactoring  this patch is now stale. Before diving back in here Frank we'll need to discuss how this is going work with the new editor.
Comment 17 Robert Elves CLA 2008-11-19 00:45:51 EST
*** Bug 255684 has been marked as a duplicate of this bug. ***
Comment 18 Steffen Pingel CLA 2008-11-19 13:22:57 EST
Rob, we should also consider a user cache similar to the one implemented for JIRA. This would also make it easier to implement content assist that would match full names.
Comment 19 Frank Becker CLA 2008-12-10 16:21:29 EST
Created attachment 120122 [details]
possible patch for 3.0 editor

please review this implementation
Comment 20 Frank Becker CLA 2008-12-10 16:21:33 EST
Created attachment 120123 [details]
mylyn/context/zip
Comment 21 Robert Elves CLA 2009-03-30 19:37:05 EDT
Frank,  I agree in principle with the Bugzilla side of the plumbing to make this work.  Since it doesn't apply I didn't do a thorough UI review (i.e. how errors and suggestions manifest themselves in the editor).  You may want to hold off on going to deep on UI until bug 236504 is worked out.
Comment 22 Frank Becker CLA 2009-05-09 16:14:15 EDT
Created attachment 135057 [details]
new Version

Here is a new Patch using th API from bug#202879#c18

Other things:
In BugzillaClient I add some  //$NON-NLS-
Comment 23 Frank Becker CLA 2009-05-09 16:14:21 EDT
Created attachment 135058 [details]
mylyn/context/zip
Comment 24 Steffen Pingel CLA 2009-05-19 02:58:47 EDT
The general idea of this patch looks good to me. I think we need some more discussion about the UI presentation of the errors. We might want to use ControlDecorations to highlight fields with errors. 

Rob, maybe it would make sense to apply the core part of the patch and leave the ui bits for the next milestone?
Comment 25 Frank Becker CLA 2009-05-21 08:47:15 EDT
Created attachment 136649 [details]
patch with ControlDecoration

now we use ControlDecorations to highlight fields with errors but after the first keystroke in that field we remove the decoration. 

Is this OK?
Comment 26 Frank Becker CLA 2009-05-21 08:47:19 EDT
Created attachment 136650 [details]
mylyn/context/zip
Comment 27 Robert Elves CLA 2009-06-10 14:48:51 EDT
Cool stuff Frank.  Patch is a little stale but I'm not worried about merging since little else will be changing in the client for 3.2 so if you and Steffen are agreed, I'd like to apply this in is entirety immediately after 3.2 (once we've reviewed the UI).
Comment 28 Frank Becker CLA 2009-06-10 15:35:58 EDT
(In reply to comment #27)
> Cool stuff Frank.  Patch is a little stale but I'm not worried about merging
> since little else will be changing in the client for 3.2 so if you and Steffen
> are agreed, I'd like to apply this in is entirety immediately after 3.2 (once
> we've reviewed the UI).

Yes this is OK for me, should I create an updated patch after 3.2?
Comment 29 Robert Elves CLA 2009-06-10 15:45:31 EDT
That would be great!
Comment 30 Frank Becker CLA 2009-06-19 16:31:24 EDT
(In reply to comment #29)
> That would be great!
> 

Should we change the Target Milestone to 3.2.1?
Comment 31 Steffen Pingel CLA 2009-06-19 19:38:39 EDT
My sense is that this should go into 3.3. since this it is a new feature.
Comment 32 Mik Kersten CLA 2009-09-25 19:53:27 EDT
Is this going to make 3.3?
Comment 33 Steffen Pingel CLA 2009-09-25 20:08:26 EDT
Unfortunately we'll have to move this to a future release since it will require extensions in the task editor.
Comment 34 Robert Elves CLA 2009-12-23 00:54:28 EST
*** Bug 210283 has been marked as a duplicate of this bug. ***
Comment 35 Robert Elves CLA 2009-12-23 01:04:14 EST
*** Bug 214529 has been marked as a duplicate of this bug. ***
Comment 36 Frank Becker CLA 2010-03-14 08:50:54 EDT
(In reply to comment #33)
> Unfortunately we'll have to move this to a future release since it will require
> extensions in the task editor.

Can include this in 3.4?
Comment 37 Steffen Pingel CLA 2010-03-14 16:18:01 EDT
Yes, we can make API enhancements now and take that on for 3.4.
Comment 38 Frank Becker CLA 2010-03-21 14:52:14 EDT
Created attachment 162614 [details]
patch for Version 3.4

updated patch.

The UI  supports decoration for the error. Content assist is not used, only  a tooltip show the leagal values.
Comment 39 Frank Becker CLA 2010-03-21 14:52:24 EDT
Created attachment 162615 [details]
mylyn/context/zip
Comment 40 Steffen Pingel CLA 2010-05-18 13:46:31 EDT
Rob, can you please review Frank's patch and consider it for 3.4?
Comment 41 Robert Elves CLA 2010-05-20 16:52:38 EDT
Will do.
Comment 42 Frank Becker CLA 2010-07-16 16:58:54 EDT
Should I create a new patch before you review this patch?

I found some unmatched hunks.
Comment 43 Steffen Pingel CLA 2010-07-16 17:14:02 EDT
I think it would be best if we took a review pass through the current patch first. I'll try to setup a meeting with Rob to go over it but we are both pretty overloaded right now so I can't promise when we'll be able to get to that.
Comment 44 Steffen Pingel CLA 2011-02-26 16:00:22 EST
Frank, can we postpone this to 3.6? I'm afraid we won't get to a review for 3.5.
Comment 45 Frank Becker CLA 2011-02-27 14:27:59 EST
(In reply to comment #44)
> Frank, can we postpone this to 3.6? I'm afraid we won't get to a review for 3.5.

Milestone change to 3.6!

Should I update the patch after 3.5 is out?
Comment 46 Steffen Pingel CLA 2011-02-27 18:27:05 EST
Yes, that would be great.
Comment 47 Frank Becker CLA 2011-03-12 10:34:17 EST
Created attachment 191048 [details]
patch V8

Here is the patch for 3.6!

I changed the UI!

Now you get not only the ControlDecoration you get the values from the html page in the Proposals of the ContentAssistent
Comment 48 Frank Becker CLA 2011-03-12 10:34:22 EST
Created attachment 191049 [details]
mylyn/context/zip
Comment 49 yumer CLA 2011-05-27 10:00:32 EDT
Created attachment 196758 [details]
aaaa

sssss
Comment 50 yumer CLA 2011-05-27 10:01:18 EDT
Created attachment 196759 [details]
testAttachment

comment to testAttachment
Comment 51 Steffen Pingel CLA 2011-05-28 10:58:02 EDT
Sorry, I didn't get around to reviewing. Let's consider this early in the 3.7 cycle.
Comment 52 Frank Becker CLA 2011-06-17 13:14:34 EDT
Created attachment 198194 [details]
patch V9

Steffen,

here the recreated patch!

Hope that we can soon apply this version.
Comment 53 Frank Becker CLA 2011-06-17 13:14:40 EDT
Created attachment 198195 [details]
mylyn/context/zip
Comment 54 Frank Becker CLA 2011-07-26 15:18:13 EDT
Steffen,

should I recreate the patch now?
Comment 55 Steffen Pingel CLA 2011-07-26 15:24:39 EDT
Sure, can you commit this feature into a branch in Git?
Comment 56 Frank Becker CLA 2011-07-30 12:09:57 EDT
I create a new Git branch http://git.eclipse.org/c/mylyn/org.eclipse.mylyn.tasks.git/log/?h=bug%23168204 so you can review this.
Comment 57 Frank Becker CLA 2011-07-30 13:01:01 EDT
Created attachment 200621 [details]
mylyn/context/zip
Comment 58 Steffen Pingel CLA 2011-09-16 05:49:52 EDT
Frank, can you rebase the changes against the latest master and push them into a Gerrit review?
Comment 59 Frank Becker CLA 2011-09-18 09:51:05 EDT
http://review.mylyn.org/51 created!
Comment 60 Frank Becker CLA 2011-09-18 10:21:20 EDT
Created attachment 203550 [details]
mylyn/context/zip
Comment 61 Steffen Pingel CLA 2011-09-27 18:37:36 EDT
*** Bug 238186 has been marked as a duplicate of this bug. ***
Comment 62 Steffen Pingel CLA 2011-11-06 11:25:57 EST
Frank, please split the code review into two parts: Bugzilla Core and the UI changes. For the core we need to add a proper class for the error response. It should basically have a data model with the proposals returned by Bugzilla instead of a generic map. There also need to be test cases to verify that the expected proposals are returned and parsed. Once that is in place we can take a look at the UI portion.
Comment 63 Frank Becker CLA 2011-11-10 16:19:51 EST
Steffen,

patch set 2 is now in change 51
Comment 64 Frank Becker CLA 2012-01-14 10:13:09 EST
Steffen,

can you please tell me if I can commit this patch set and continue with the UI part.
Comment 65 Steffen Pingel CLA 2012-01-14 18:26:18 EST
From a quick glance, the implementation looks good. Before pushing, can you look into breaking up the test case into several smaller ones so that each test case only verifies one concern?
Comment 66 Frank Becker CLA 2012-01-15 13:23:28 EST
Steffen,

I create patch set 3. We now have 6 tests!

Can you please tell me if it is OK to push this into HEAD.
Comment 67 Steffen Pingel CLA 2012-01-16 12:35:53 EST
Thanks! Looks good to me. Please rebase the change and verify that all tests pass before pushing.
Comment 68 Frank Becker CLA 2012-01-19 14:09:31 EST
I now start with the UI
Comment 69 Frank Becker CLA 2012-01-20 15:28:17 EST
Steffen,

I create http://review.mylyn.org/214 for the UI part.

Can you please review.
Comment 70 Frank Becker CLA 2012-01-20 15:28:22 EST
Created attachment 209855 [details]
mylyn/context/zip
Comment 71 Steffen Pingel CLA 2012-01-26 17:22:15 EST
Created attachment 210155 [details]
overlapping control decoration

The error decoration should displayed in the lower left (see PDE MANIFEST editor for an example). We also need to increase spacing between the label and input field.
Comment 72 Steffen Pingel CLA 2012-01-26 17:33:12 EST
This looks pretty good. I have added a few comments to the review. Here are a few more suggestions:

* Please split presentErrorToUI into several methods to make it easier to understand.
* I'm not convinced that the attribute editor should hold on to the ContentAssistCommandAdapter. What if we register a second ContentAssistCommandAdapter that only knows about the error proposals. Would that override the one that's already registered?
Comment 73 Frank Becker CLA 2012-01-29 11:21:59 EST
Steffen,

I create an new patchset with your comments (comment#71 and comment#72). I try to use an second ContentAssistCommandAdapter but did not find a way that this works. (My try is the BugzillaTaskEditorPage.java line 718-729).
Comment 74 Frank Becker CLA 2012-01-29 11:22:08 EST
Created attachment 210244 [details]
mylyn/context/zip
Comment 75 Steffen Pingel CLA 2012-02-06 13:44:17 EST
Created attachment 210607 [details]
truncated decoration
Comment 76 Steffen Pingel CLA 2012-02-06 13:49:45 EST
Thanks for the update. I have commented on the review.  The UI looks pretty good now. I found one minor nits:

* A few pixels of the decorations are cut off. The spacing between the label text field needs to be increased slightly.

When there is a confirm match could we replace the text in the input field with the proposed value? I think this would be more intuitive than populating content assist.
Comment 77 Frank Becker CLA 2012-02-07 14:23:26 EST
I create patchset 3
Comment 78 Frank Becker CLA 2012-02-07 14:23:33 EST
Created attachment 210682 [details]
mylyn/context/zip
Comment 79 Steffen Pingel CLA 2012-02-07 16:39:52 EST
Thanks. That looks good. Were you able to fix the cut off decorations?
Comment 80 Frank Becker CLA 2012-02-08 00:47:50 EST
(In reply to comment #79)
> Thanks. That looks good. Were you able to fix the cut off decorations?

No that is not included. Should i try to fix this tonight?
Comment 81 Steffen Pingel CLA 2012-02-08 09:37:58 EST
(In reply to comment #80)
> (In reply to comment #79)
> > Thanks. That looks good. Were you able to fix the cut off decorations?
> 
> No that is not included. Should i try to fix this tonight?

Yes, that would be great. It should be a simple fix. Please feel free to submit with that fix included.
Comment 82 Frank Becker CLA 2012-02-08 15:45:51 EST
Done
Comment 83 Steffen Pingel CLA 2012-02-13 14:42:13 EST
Created attachment 210942 [details]
Screenshot
Comment 84 Steffen Pingel CLA 2012-03-03 07:17:51 EST
Created attachment 212020 [details]
screenshot