Edgewall Software

Ticket #4398 (new defect)

Opened 2 years ago

Last modified 8 months ago

Inconsistent search for single-digit tickets

Reported by: eli.carter@… Owned by: jonas
Priority: normal Milestone: 0.13
Component: search system Version: 0.10
Severity: minor Keywords:
Cc:

Description

If you search for #1 in the search field, you will jump to that ticket. If you try to search for #1 on the search page, you get an error that the search term is too short. (So you'll get that error on the first 9 tickets of the project.)

It is also useful to search for tickets that reference a ticket number; perhaps the search page should do that instead.

Attachments

Change History

  Changed 2 years ago by eli.carter@…

t.e.o exhibits this behavior, as does a 0.10 install. Sorry, I don't have a 0.10.3 or 0.11 handy to try.

in reply to: ↑ description   Changed 2 years ago by eblot

Replying to eli.carter@commprove.com:

It is also useful to search for tickets that reference a ticket number; perhaps the

search page should do that instead.

You can search for occurence of tickets using the ! character to escape the quickjump feature, for ex: !#45 will search for all occurences of '#45'.

follow-up: ↓ 4   Changed 2 years ago by cboos

  • severity changed from normal to minor
  • milestone set to 0.10.4

Still, !#1 gives you the 'search query is too short' error...

There are two issues raised here:

  1. the consistency of the quickjump behavior
  2. how to find the tickets that references a ticket with only one digit, without getting hit by the minimal length check

For 1., I think the fix is easy (setting 0.10.4 for that).

For 2., it would be cumbersome to fix and I think that this functionality is better achieved with TracCrossReferences than by a search over the entire database (e.g. searching for #1, you'll miss all the ticket:1 references; not with proper cross-references management).

in reply to: ↑ 3   Changed 2 years ago by eblot

Replying to cboos:

Still, !#1 gives you the 'search query is too short' error...

Sure, it was just a workaround

  Changed 8 months ago by cboos

  • milestone changed from 0.10.5 to 0.12

Add/Change #4398 (Inconsistent search for single-digit tickets)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.