developmentseed / planet-stream

Stream the planet!
BSD 3-Clause "New" or "Revised" License
31 stars 9 forks source link

fix for dropped changesets elements #17

Closed kriscarle closed 8 years ago

kriscarle commented 8 years ago

fixes https://github.com/developmentseed/planet-stream/issues/16

I tracked down what is happening here. The data elements are saved as an empty array. If opts.limits is set, the 1 changeset is "split" into 0 changesets because it maps using the elements.

Part of the confusion is probably that Ramda .has() returns true for an empty array http://goo.gl/xqLZ0Z

kriscarle commented 8 years ago

resubmitting this PR because I accidentally sent it from master... don't want to forget and attach additional commits