** Changed in: harvest
Status: Triaged => In Progress
** Changed in: harvest
Assignee: (unassigned) => Daniel Holbach (dholbach)
--
You received this bug notification because you are a member of harvest-
dev, which is the registrant for harvest.
https://bugs.launchpad.net/bugs/974431
Title:
/services/ API does offset/length calculation wrong
Status in Harvest Service:
In Progress
Bug description:
The code is currently written like this:
offset = parse_number_argument(extra_arguments, '_offset')
length = parse_number_argument(extra_arguments, '_length')
if not length or length > CHUNK_SIZE:
length = CHUNK_SIZE
results = model.objects.filter(**search_values)[offset:length]
This means that we will never be able to get more objects with an id>
CHUNK_SIZE.
To manage notifications about this bug go to:
https://bugs.launchpad.net/harvest/+bug/974431/+subscriptions
_______________________________________________
Mailing list: https://launchpad.net/~harvest-dev
Post to : [email protected]
Unsubscribe : https://launchpad.net/~harvest-dev
More help : https://help.launchpad.net/ListHelp