My favorites | Sign in
Project Home Downloads Wiki Issues Source
New issue   Search
for
  Advanced search   Search tips   Subscriptions
Issue 2641: Saved Search strings
1 person starred this issue and may be notified of changes. Back to list
Status:  Submitted
Owner:  ----
Closed:  May 2014


Sign in to add a comment
 
Reported by Joseph.A...@gmail.com, May 7, 2014
Our Gerrit instance has many projects, so I came up with a search string to narrow down to just the projects I'm involved with.  This is very useful, but I have to cut and paste it from an external place every time I want to use it.  
It would be VERY helpful to have a way to save search strings into my profile, and have a drop down of favorites for the Search box.

BTW, the search string regex syntax is very difficult to figure out and not completely documented, though I googled and got what I wanted outside the official documentation.
May 7, 2014
#1 dborowitz@google.com
Recent Gerrit supports customizable user dashboards, I think this gives you what you want. Try it out on gerrit-review.googlesource.com (Settings->Preferences->My Menu).

The search documentation already links to the regex library that's used by Gerrit under each search operator that uses regexes:
https://gerrit-review.googlesource.com/Documentation/user-search.html
"The dk.brics.automaton library is used for evaluation of such patterns"

I suppose we could link directly to http://www.brics.dk/automaton/doc/index.html?dk/brics/automaton/RegExp.html instead of the homepage.
May 7, 2014
#2 Joseph.A...@gmail.com
It is good to hear others have added features to address my concerns.  I thought we were running a pretty current version in 2.4.4-14, but I don't see that option in Settings/Preferences.  I'll bug our internal support about it.

I found that the Documentation/user-search.html with my version was really light when it came to how the regex was formed, and even slightly wrong.  I finally found that I could search for project:"^xx/[a-z]*" to find a project with a prefix directory, but the documentation was slightly wrong (didn't indicate quotes were needed) and the dk.brics documentation doesn't include any concrete or practical examples.

Thanks for your response
May 7, 2014
#4 Joseph.A...@gmail.com
Oh yeah, that was the other part.  The example query file:^.*\.xml$ returned an Application Error, Invalid query.  Hopefully that is fixed in newer versions.
If it is not fixed, I'm willing to file a separate bug report. :)
May 7, 2014
#5 dborowitz@google.com
Yeah, sorry, 2.4 is pretty ancient, the new features I'm referring to I think postdate 2.9. Unfortunately we don't support stable releases back that far so you'd be on your own for backporting it.
Status: Submitted
Sign in to add a comment

Powered by Google Project Hosting