My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 1003: Can we search gerrit id from bug num
1 person starred this issue and may be notified of changes. Back to list
Status:  Released
Owner:  ----
Closed:  Jun 2011


Sign in to add a comment
 
Reported by seemados...@gmail.com, Jun 6, 2011
Affected Version:

What steps will reproduce the problem?
1.Sign into gerrit
2.In the search box type in bug number, to get gerrit id that is fixing this bug.
3.

What is the expected output? What do you see instead?
Expected result is display gerrit id list that is fixing the bug
Instead, No gerrit id is displayed. 

Please provide any additional information below.
This an additional feature search option on gerrit, which will be very helpful to get the code modification done to corresponding bug. 

Jun 6, 2011
Project Member #1 edwin.ke...@gmail.com
How are your changes / commits linked with the issues?

For the Gerrit development we have the convention to include a "Bug" footer into the commit message that links to the issue that is being fixed, e.g.:
Bug:  issue 999 

If you have such a convention you can use a query similar to this:
project:tools/gerrit message:" issue 999 "

In the long run the idea is to support arbitary labels on changes (see  issue 287 ) which are searchable. Then you can put the issue number as label on a change, e.g. put create a label with such a format " Bug999 ". You could then e.g. query for all changes that have a "Bug*" label.
Jun 7, 2011
#2 sop@google.com
Not only do we have "message:" as a search operator, but we also have tr:/bug: which rely on the trackingid extraction configured in gerrit.config. Unfortunately since this is server-level policy and not project-level, we cannot use it on review.source.android.com for gerrit itself. But for individual servers it can work well, and does for the egit.eclipse.org server.

http://gerrit.googlecode.com/svn/documentation/2.2.0/config-gerrit.html#_a_id_trackingid_a_section_trackingid
Status: Released
Sign in to add a comment

Powered by Google Project Hosting