Should we suppress "View" button when there are no results? (How much overhead does this add to make a call on every page load?)
Description
Description
Related Objects
Related Objects
Event Timeline
Comment Actions
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.
Comment Actions
I am going to decline this now, as T317217 resolves the issue, unless we get a request to handle it this way.