Making WordPress.org

Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#266 closed enhancement (fixed)

Trac: Show matched tickets count on all custom queries

Reported by: drewapicture's profile DrewAPicture Owned by: nacin's profile nacin
Milestone: Priority: normal
Component: Trac Keywords:
Cc:

Description

It would be nice if the number of matched tickets was always displayed for custom ticket queries on Trac.

Currently, the matched ticket count only shows on custom queries that span more than one page, i.e. 100+ matches. The count is shown as the number of results (which is better than nothing).

Adversely, on report pages, the match count is always displayed, regardless of how many tickets there are.

Change History (5)

#1 @nacin
11 years ago

I've always assumed this is a bug in Trac. If we can isolate where it occurs we can probably patch it or work around it.

#2 @nacin
11 years ago

That was pretty easy. Trac only displays this <h2> if "paginator.has_more_pages"

http://trac.edgewall.org/browser/tags/trac-1.0.1/trac/ticket/templates/query_results.html#L20

#3 @nacin
11 years ago

  • Owner set to nacin
  • Resolution set to fixed
  • Status changed from new to closed

In 220:

Trac: Show number of Query results even when they fit on one page. fixes #266.

#4 @DrewAPicture
11 years ago

Great, thank you!

#5 @nacin
11 years ago

In 308:

Trac: When showing the # of query results, place it immediately below the query form.

This previously placed it immediately above the first table. When tickets were grouped by a field, the group heading would appear above the results count.

fixes #294. see #266.

Note: See TracTickets for help on using tickets.