/services/ API does offset/length calculation wrong
Bug #974431 reported by
Daniel Holbach
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
harvest |
Fix Released
|
High
|
Daniel Holbach |
Bug Description
The code is currently written like this:
offset = parse_number_
length = parse_number_
if not length or length > CHUNK_SIZE:
length = CHUNK_SIZE
results = model.objects.
This means that we will never be able to get more objects with an id> CHUNK_SIZE.
Related branches
lp:~dholbach/harvest/974431
- harvest-dev: Pending requested
-
Diff: 24 lines (+6/-4)1 file modifiedharvest/services/__init__.py (+6/-4)
Changed in harvest: | |
assignee: | nobody → Daniel Holbach (dholbach) |
status: | Triaged → In Progress |
Changed in harvest: | |
milestone: | none → 0.2.14 |
status: | In Progress → Fix Committed |
Changed in harvest: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Won't get around to this until next week. If anyone wants to work on this, please go ahead.
It will be good to fix this, so we can have interesting clients talking to Harvest, ie. a dev opportunities lens for Unity. ;-)