This Bugzilla instance is deprecated, and most Eclipse projects now use GitHub or Eclipse GitLab. Please see the deprecation plan for details.
Bug 309057 - [patch] provide "edit query in web UI" in URL-query wizard page
Summary: [patch] provide "edit query in web UI" in URL-query wizard page
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Thomas Ehrnhoefer CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-13 17:45 EDT by Thomas Ehrnhoefer CLA
Modified: 2011-10-21 07:31 EDT (History)
3 users (show)

See Also:


Attachments
patch v1 (6.41 KB, patch)
2010-05-06 19:41 EDT, Thomas Ehrnhoefer CLA
thomas.ehrnhoefer: review?
Details | Diff
mylyn/context/zip (17.94 KB, application/octet-stream)
2010-05-06 19:42 EDT, Thomas Ehrnhoefer CLA
no flags Details
screenshot (38.24 KB, image/png)
2010-05-12 18:18 EDT, Robert Elves CLA
no flags Details
patch v2.1 (7.12 KB, patch)
2010-05-13 03:27 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (39.22 KB, application/octet-stream)
2010-05-13 03:27 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch v3 (8.30 KB, patch)
2010-05-13 03:43 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (83.46 KB, application/octet-stream)
2010-05-13 03:43 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch v4 (8.21 KB, patch)
2010-05-13 03:51 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (103.03 KB, application/octet-stream)
2010-05-13 03:51 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch v5 (8.58 KB, patch)
2010-05-13 03:58 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (121.15 KB, application/octet-stream)
2010-05-13 03:58 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch v6 (inline browser) (11.25 KB, patch)
2010-05-16 04:50 EDT, Thomas Ehrnhoefer CLA
no flags Details | Diff
mylyn/context/zip (149.74 KB, application/octet-stream)
2010-05-16 04:50 EDT, Thomas Ehrnhoefer CLA
no flags Details
dialog before pressing edit (9.44 KB, image/png)
2010-05-18 15:03 EDT, Thomas Ehrnhoefer CLA
no flags Details
dialog after editing a query (58.67 KB, image/png)
2010-05-18 15:05 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch v7 (11.40 KB, patch)
2010-05-24 11:51 EDT, Thomas Ehrnhoefer CLA
thomas.ehrnhoefer: review?
Details | Diff
mylyn/context/zip (263.31 KB, application/octet-stream)
2010-05-24 11:51 EDT, Thomas Ehrnhoefer CLA
no flags Details
patch v8 (13.14 KB, patch)
2010-05-24 21:22 EDT, Thomas Ehrnhoefer CLA
thomas.ehrnhoefer: review?
Details | Diff
mylyn/context/zip (50.38 KB, application/octet-stream)
2010-05-24 21:22 EDT, Thomas Ehrnhoefer CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Thomas Ehrnhoefer CLA 2010-04-13 17:45:01 EDT
If a query-from-Url is used, we could provide an edit-in-WebUI link in the wizard page directing the user to the query editing webpage. This would make it a bit easier to update queries like that.
Comment 1 Robert Elves CLA 2010-04-14 15:48:34 EDT
Great idea Thomas. Should just be a matter of appending a few query parameters to the url to open into the edit query page.
Comment 2 Thomas Ehrnhoefer CLA 2010-05-06 19:41:56 EDT
Created attachment 167416 [details]
patch v1

a first shot
Comment 3 Thomas Ehrnhoefer CLA 2010-05-06 19:42:03 EDT
Created attachment 167417 [details]
mylyn/context/zip
Comment 4 Frank Becker CLA 2010-05-11 17:02:34 EDT
Rob,

should I do the review and we include this in 3.4?
Comment 5 Robert Elves CLA 2010-05-12 18:18:00 EDT
Created attachment 168292 [details]
screenshot

I had a quick look. I would expect the edit query button to be disabled when no url is in there (i.e. upon creating a new query).  Also, since the dialog is modal, its a little odd when users presses it inevitably thinking they should construct the url using that button.  Perhaps the button could be a small one immediately to the right of the url field and only enabled when a valid url is in there, that might help.  What do you guys think?  Oh, and while we're at it, lets fix the missing ":" on Query URL.
Comment 6 Thomas Ehrnhoefer CLA 2010-05-13 03:27:54 EDT
Created attachment 168337 [details]
patch v2.1

same old, but with button (de)activation depending on queryText content
Comment 7 Thomas Ehrnhoefer CLA 2010-05-13 03:27:57 EDT
Created attachment 168338 [details]
mylyn/context/zip
Comment 8 Thomas Ehrnhoefer CLA 2010-05-13 03:43:48 EDT
Created attachment 168342 [details]
patch v3

Patch with button smaller and next to the queryText. Also does button (de)activation depending on querytext

Was that what you meant by smaller button Rob?
Comment 9 Thomas Ehrnhoefer CLA 2010-05-13 03:43:51 EDT
Created attachment 168343 [details]
mylyn/context/zip
Comment 10 Thomas Ehrnhoefer CLA 2010-05-13 03:51:36 EDT
Created attachment 168344 [details]
patch v4

alternate approach for button enablement: if the url is not a valid query (not a url or not containing /query.cgi), the edit button opens a new advanced search page.

However, I think with that solution we would need an inline browser and not one in the background
Comment 11 Thomas Ehrnhoefer CLA 2010-05-13 03:51:39 EDT
Created attachment 168345 [details]
mylyn/context/zip
Comment 12 Thomas Ehrnhoefer CLA 2010-05-13 03:58:37 EDT
Created attachment 168346 [details]
patch v5

Rob, here is a shot at an inlined browser.
It's not that bad, maybe we should resize the page? What do you think?
Comment 13 Thomas Ehrnhoefer CLA 2010-05-13 03:58:41 EDT
Created attachment 168347 [details]
mylyn/context/zip
Comment 14 Thomas Ehrnhoefer CLA 2010-05-16 04:50:03 EDT
Created attachment 168647 [details]
patch v6 (inline browser)

Rob (or Frank), patch 3&4 (comments #8 and #10) are still valid.

This patch here is an update to patch 5, for an inlined browser, and still work in progress. If you got a second, take a look at the approach please. I am not sure if I can use the wizard's progress monitor to indicate web page loading, as I think it's done in the UI thread. I might be stuck with my own progress (in that case I should probably use a progress widget, for now it's just a simple label).
Thoughts?
Comment 15 Thomas Ehrnhoefer CLA 2010-05-16 04:50:16 EDT
Created attachment 168648 [details]
mylyn/context/zip
Comment 16 Frank Becker CLA 2010-05-16 08:33:35 EDT
Thomas,

I like the implementation with the  inlined browser. But what's about to replace the button with an ExpandableComposite. BTW the with is to small to show the page.

patch v6 gives me an NPE because ModifyListener is called before connectingLabel is created.

I found an other problem.

Please change one field in the html page and hit search to see the result. Now the query URL is changed and you never get the Query name even if you fill remember as and hit the button.

What I hoped to get is an way that I can change fields of the query or rename the query in the wizard.
Comment 17 Thomas Ehrnhoefer CLA 2010-05-16 14:13:10 EDT
(In reply to comment #16)
> Thomas,
> 
> I like the implementation with the  inlined browser. But what's about to replace
> the button with an ExpandableComposite. BTW the with is to small to show the
> page.
Good idea, I will give that a try.

> 
> patch v6 gives me an NPE because ModifyListener is called before connectingLabel
> is created.
Ah, thanks. I tested with a new query, so the text is empty and no NPE, but it makes sense that there will be one for an existing query.

> 
> I found an other problem.
> 
> Please change one field in the html page and hit search to see the result. Now
> the query URL is changed and you never get the Query name even if you fill
> remember as and hit the button.
It is intended that as soon as the URL in the browser contains "query.cgi", it will automatically be pasted into the query text field (and the query field will get the incoming color background). Thus no remember as is necessary. It is a good point though that this is not expected by the user and will completely be missed. Maybe I just need a button with something like "use the current query"?

> 
> What I hoped to get is an way that I can change fields of the query or rename
> the query in the wizard.
I am not sure if we should mix the queries in bugzilla's webUI with the task list queries...for now I would recommend to leave them separated.
Comment 18 Steffen Pingel CLA 2010-05-18 14:00:04 EDT
Thomas, can you attach a screenshot of the current version?
Comment 19 Thomas Ehrnhoefer CLA 2010-05-18 15:03:37 EDT
Created attachment 168996 [details]
dialog before pressing edit
Comment 20 Thomas Ehrnhoefer CLA 2010-05-18 15:05:51 EDT
Created attachment 168999 [details]
dialog after editing a query
Comment 21 Steffen Pingel CLA 2010-05-18 16:18:44 EDT
Thanks. I'll add that to the UI review for next Thursday.
Comment 22 Shawn Minto CLA 2010-05-20 13:51:29 EDT
This is a great idea and works pretty well.  A couple of things from the UI review today:

* border around browser since the scrollbars are just floating otherwise
* move the message about how to set the new url by pressing the search button to the dialog message area instead of the label since it wasn't obvious
* can we use the progress bar from wizard since the label seems a bit odd.  If not, I think that we should move the progress indication to be under the browser.

Comments on the patch:

* I got an NPE opening an existing query since the connectingLabel was not yet initialized
* all strings should be externalized

Also, can we prevent users from navigating to pages other than the search results? (i.e. in changing set e.doit=false)
Comment 23 Thomas Ehrnhoefer CLA 2010-05-21 04:35:07 EDT
Thansk for the review. I will most probably not be able to provide another patch before the 3.4 deadline, but how about just applying the minimal changes as posted in patch 3&4 (comments #8 and #10) (without the inlined browser, just the button opening the website)?
Comment 24 Steffen Pingel CLA 2010-05-21 11:55:57 EDT
I would prefer if you created another patch than we only have to review and debug one implementation.
Comment 25 Thomas Ehrnhoefer CLA 2010-05-21 12:12:03 EDT
(In reply to comment #24)
> I would prefer if you created another patch than we only have to review and
> debug one implementation.
And that patch should be with or without the inlined browser? I have not yet heard if this inlined solution is preferred or not. Before working on refining a patch, this decision should be made I think.
Comment 26 Steffen Pingel CLA 2010-05-21 12:53:19 EDT
Yes, a browser with a location listener is a great feature addition and we agreed on the call that it would be worth trying it even though the inlining of the browser has some drawbacks such as a missing location bar or requiring the user to login in some cases.
Comment 27 Thomas Ehrnhoefer CLA 2010-05-21 15:10:16 EDT
ok, great, I will work on refining that. Don't expect it for 3.4 then though :)
Comment 28 Thomas Ehrnhoefer CLA 2010-05-24 11:51:10 EDT
Created attachment 169685 [details]
patch v7

Alright, had some time in the plane.
I picked up Frank's idea about the expandable composite, I like it. I added a progress widget (as I don't have access to the wizard's progress bar), removed the status lable.
Worked in my tests, but since I updated Mylyn form CVS today tasks.ui doesn't compile, so I can't test this against the most recent HEAD.
Comment 29 Thomas Ehrnhoefer CLA 2010-05-24 11:51:17 EDT
Created attachment 169686 [details]
mylyn/context/zip
Comment 30 Steffen Pingel CLA 2010-05-24 18:49:40 EDT
The query page becomes unusable if an internal browser is not available (e.g. when running 32-bit Eclipse on a 64-bit OS):


org.eclipse.swt.SWTError: No more handles [MOZILLA_FIVE_HOME='/usr/lib/xulrunner-addons'] (java.lang.UnsatisfiedLinkError: no swt-mozilla-gtk-3557 or swt-mozilla-gtk in swt.library.path, java.library.path or the jar file)
at org.eclipse.swt.SWT.error(SWT.java:3910)
at org.eclipse.swt.browser.Mozilla.create(Mozilla.java:516)
at org.eclipse.swt.browser.Browser.<init>(Browser.java:119)
at org.eclipse.mylyn.internal.bugzilla.ui.tasklist.BugzillaCustomQueryWizardPage.createControl(BugzillaCustomQueryWizardPage.java:155)
...
Comment 31 Thomas Ehrnhoefer CLA 2010-05-24 21:22:45 EDT
Created attachment 169749 [details]
patch v8

Whoops, thanks for catching that. Not sure how to best resolve this, but since it seems I can't test for a browser without trying to instantiating it, displaiying a link and text inside the expandable composite in case the browser opening fails seems like a quick fix for this.
Comment 32 Thomas Ehrnhoefer CLA 2010-05-24 21:22:49 EDT
Created attachment 169750 [details]
mylyn/context/zip
Comment 33 Steffen Pingel CLA 2011-09-28 07:48:41 EDT
Thomas, are you willing to update the patch against the latest and push a review to http://review.mylyn.org so we could consider the enhancement for 3.7?
Comment 34 Thomas Ehrnhoefer CLA 2011-10-05 18:49:16 EDT
Steffen, can you elaborate on the process? Do I actually need to create a patch, or just push my changes to http://review.mylyn.org? If so, can you help me do that, explain the process to me? I have yet to use Gerrit..

I applied the changes locally again today, so I would be ready for a first review
Comment 35 Steffen Pingel CLA 2011-10-21 07:31:19 EDT
I have added documentation in the wiki how to use the Mylyn Gerrit instance: http://wiki.eclipse.org/Mylyn/Contributor_Reference#Reviews
Comment 36 Eclipse Webmaster CLA 2022-11-15 11:45:08 EST
Mylyn has been restructured, and our issue tracking has moved to GitHub [1].

We are closing ~14K Bugzilla issues to give the new team a fresh start. If you feel that this issue is still relevant, please create a new one on GitHub.

[1] https://github.com/orgs/eclipse-mylyn