archilogic-com / 3dio-js

JavaScript toolkit for interior apps
https://3d.io
MIT License
273 stars 73 forks source link

respect user provided search limit argument #121

Closed bnjm closed 6 years ago

bnjm commented 6 years ago

Scope & Features

Design

How to use

How to test

bnjm commented 6 years ago

To better explain...

Before this PR:

io3d.furniture.search('office', { limit: 5 })
 // 203 results

io3d.furniture.search('', { limit: 1000 })
 // 500 results

After this PR:

io3d.furniture.search('office', { limit: 5 })
// 5 results

io3d.furniture.search('', { limit: 1000 })
// 957 results
tomas-polach commented 6 years ago

@bnjm @m-ke thx for taking care of this :) 👍 do we have any blockers from also adding the offset param? means: outcomenting

m-ke commented 6 years ago

I was just looking at it as well... I don't think there are any blockers there. I'd suggest we coordinate the release tomorrow afternoon.