Page MenuHomePhabricator

Suppress button when no results
Closed, ResolvedPublic

Description

Should we suppress "View" button when there are no results? (How much overhead does this add to make a call on every page load?)

Event Timeline

I've updated the user script to show the number of results: https://phabricator.wikimedia.org/T316491

An API call is made to fetch the number of hits without returning any results, limiting cost and payload size.

If there are no results, the tab will currently show View (0). We could stick with this, or remove the tab completely. I am leaning towards showing (0); it indicates to the user there are no results, which can be useful to know over hiding the tab altogether.

I am going to decline this now, as T317217 resolves the issue, unless we get a request to handle it this way.

Dominicbm changed the task status from Declined to Resolved.Oct 18 2022, 10:23 PM
Dominicbm moved this task from Backlog to Done on the View-it! board.