Edgewall Software

Ticket #7523 (closed defect: duplicate)

Opened 4 months ago

Last modified 2 months ago

[PATCH] - Query pagination fails without any filters.

Reported by: mizuno@… Owned by:
Priority: normal Milestone:
Component: ticket system Version: 0.11-stable
Severity: normal Keywords: needinfo verify query paginate
Cc:

Description

How To Reproduce:

  1. Go to Custom Query.
  2. Remove any filters and update.
  3. Click any page link except page 1.
  4. You get same results as page 1 and paging link disappers.

System Information:

  • the Operating System: Solaris 10
  • the Python version used: 2.5.2
  • the database backend and their bindings: sqlite pysqlite3

Cause:

  • Query uses a previous result even if the page number changes unless query_constraints (i.e. filters) change.
  • With filters, query returns the addition of previous results and filtered results, so pagination works expectedly.
  • Without any filters, query returns just the same results as previous. It means the result has as match item as max item per page and paging link disappers.

Attachments

ticket_query.diff (0.9 KB) - added by mizuno@… 4 months ago.

Change History

Changed 4 months ago by mizuno@…

  Changed 3 months ago by osimons

  • keywords needinfo verify added

Testing this on current 0.11-stable (r7546), and I don't see what you're seeing. I don't think the platform makes much difference either, so unless the ticket gets verified by others (or more/other information provided) there won't be any progress.

follow-up: ↓ 3   Changed 3 months ago by cboos

Isn't that a duplicate of #7544?

in reply to: ↑ 2 ; follow-up: ↓ 4   Changed 3 months ago by rblank

Replying to cboos:

Isn't that a duplicate of #7544?

Yes, it is. However, I don't understand the attachment ticket_query.diff. Does it solve another problem?

in reply to: ↑ 3   Changed 2 months ago by mizuno@…

Replying to rblank:

Does it solve another problem?

That is exactly a duplicate of #7544 and the attachemnt ticket_query.diff has no intention to solve another problem. I tried to solve this problem by invoking the method query.execute(req, db) insted of query.execute(req, db, orig_list).

  Changed 2 months ago by anonymous

  • status changed from new to closed
  • resolution set to duplicate

Ok, closing as a duplicate of #7544.

Add/Change #7523 ([PATCH] - Query pagination fails without any filters.)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
to The owner will change from (none). Next status will be 'closed'
 
Note: See TracTickets for help on using tickets.