Gerrit: how to stop links emanating from dashboard from stripping search operators?

41 views
Skip to first unread message

Kaz Kylheku

unread,
Oct 19, 2025, 7:04:22 AM10/19/25
to Repo and Gerrit Discussion
Hi all,

A Gerrit dashboards has sections with custom search results. Each section has a heading which can be clicked to perform a stand-alone search which is related to that section.

Unfortunately, that search is an edited version of the section's search which sometimes occurs in infelicitous ways.

A good example is when the section has a limit, like limit:15 so only fifteen items are shown. In that situation, it is good that the section heading points to a full search without the limit. Great!

I'm running into a situation in which an un-negated age:3w operator is being stripped. the dashboard deliberately shows items that have not been updated in 3w or more, but when I click on the heading for that section, that age:3w is dropped, so the resulting search bears no semantic relation to the section.

Is there some way to override the behavior, like give a list of operators not to strip away? Or even just specify the exact URL for the section heading?

I am on 3.11.1-5-g0419775034 in the role of a non-administrative user.

The dashboards I'm talking about are not the project-defined ones, but the URL- generated ones using the /dashboard/?... URL API.

The documentation doesn't say a whole lot; I'm just wondering if there are any hidden trick.

Thanks.

Nasser Grainawi

unread,
6:38 PM (4 hours ago) 6:38 PM
to Kaz Kylheku, dhru...@google.com, Repo and Gerrit Discussion
Yeah, I can confirm this behavior and it looks like a "bug" affecting both types of dashboards. Seems to be something in the UI code doing it, since the backend response includes the `age` operator. Looks like it was hardcoded in the UI in change 242301: Remove age and limit restrictions from dashboard links | https://gerrit-review.googlesource.com/c/gerrit/+/242301

@dhru...@google.com the change doesn't say why those operators are removed from dashboard links. Can you help explain that?
 

The documentation doesn't say a whole lot; I'm just wondering if there are any hidden trick.

Thanks.

--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/repo-discuss/75ed46d4-6c89-454e-95fb-46b1f49d9683n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages