Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 157391 - [api] support generic query construction
Summary: [api] support generic query construction
Status: CLOSED MOVED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Mylyn (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-14 16:14 EDT by Robert Elves CLA
Modified: 2009-08-13 03:30 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Elves CLA 2006-09-14 16:14:31 EDT
Currently query construction requires a repository specific query url. When using the headless api this url must be manually constructed. We need to add support for constructing these urls in some simple abstract manner.

See related comments: bug#15279 comment#1, comment#2, comment#10
Comment 1 Steffen Pingel CLA 2006-09-15 14:42:11 EDT
Trac uses a simple urlish syntax for custom queries (http://trac.edgewall.org/wiki/TracQuery#QueryLanguage).

Example: version=1.0|2.0&resolution=duplicate
Comment 2 Eugene Kuleshov CLA 2006-11-20 17:53:13 EST
queryUrl.addParameter(key, value) which should take care of any encoding issues
Comment 3 Eugene Kuleshov CLA 2007-11-19 13:47:46 EST
This issue been brought up few times on other bug reports (for example, that one about stacktrace duplicate detector) and if I am not mistaken Steffen had made a patch for this somewhere.
Comment 4 Steffen Pingel CLA 2008-05-19 15:19:30 EDT
A simple abstract class for generic text queries has been added in an internal package: 

 AbstractSearchHandler
 
Connectors may extend this class and register an instance which is currently used for duplicate detection:  

 TasksUiPlugin.getDefault().addSearchHandler(new MySearchHandler());
Comment 5 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