Project

General

Profile

Bug #1427

API: Paging is broken

Added by Christoph Hoffmann 8 months ago. Updated 5 months ago.

Status:
Closed
Priority:
Low
Category:
API
Target version:
Start date:
2020-12-02
Estimated time:
Found in version:

Description

When paging the total number of of hits decreases with increasing start number.

e.g. https://demo-dev.openatlas.eu/api/0.1/query/?items=place&limit=50&show=detailed returns 65 hits:

[
{
entities: 65,
entity_per_page: 50,
index: [
{
page: 1,
start_id: 9408,
},
{
page: 2,
start_id: 15386,
},
],
total_pages: 2,
}
],

when continueing to the next page the total number of hits decreases (to the number of entities left going forward I think)

[
{
entities: 15,
entity_per_page: 50,
index: [
{
page: 1,
start_id: 9408,
},
{
page: 2,
start_id: 15386,
},
],
total_pages: 2,
}
],

expected behaviour would be that the hits remain the same, regardless on wich page I currently am

History

#1

Updated by Bernhard Koschiček-Krombholz 8 months ago

  • Target version set to 6.0.0
  • Assignee set to Bernhard Koschiček-Krombholz
  • Status changed from New to Acknowledged
#2

Updated by Bernhard Koschiček-Krombholz 8 months ago

  • Status changed from Acknowledged to Closed

Bug is fixed. Count counted at wrong time. Thank you for reporting!

#3

Updated by Alexander Watzinger 7 months ago

  • Tracker changed from Feature to Bug
#4

Updated by Alexander Watzinger 6 months ago

  • Subject changed from Pageing is broken to API: Pageing is broken
#5

Updated by Alexander Watzinger 6 months ago

  • Target version changed from 6.0.0 to 5.7.0
#6

Updated by Alexander Watzinger 5 months ago

  • Description updated (diff)
  • Subject changed from API: Pageing is broken to API: Paging is broken

Also available in: Atom PDF