Permalink
Commits on Oct 25, 2012
Commits on Jul 20, 2012
  1. MB-100: Make GeoCouch safe for future rebar versions

    In newer rebar versions, you need to name the "src" directory
    explicitly in `src_dirs`, else those files won't get compiled.
    
    Change-Id: Iff510a22e6ade20220ceac3b59e4bf0ef2c7a87f
    Reviewed-on: http://review.couchbase.org/18641
    Tested-by: buildbot <build@couchbase.com>
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    vmx committed Jul 20, 2012
Commits on Jul 12, 2012
  1. Remove unused record

    Remove the record #node{} that wasn't used anymore.
    
    Change-Id: I432747ba22457c2c28dd078deafabbc1ca6713ea
    Reviewed-on: http://review.couchbase.org/10951
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed Nov 16, 2011
  2. Make geojson_get_bbox/1 work

    The geojson_get_bbox/1 function didn't actually work. Fix it.
    
    Change-Id: I07124f763f4b473c3eb81e496cfb3d89179d12d0
    Reviewed-on: http://review.couchbase.org/10092
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed Sep 29, 2011
  3. Fix spatial design docs test

    The test was too fragile. It tested for a certain file size,
    which can easily change whenever the underlying data storage
    or structure changes.
    
    Change-Id: I79b052f50032a7b5f0c06c59e21e9a2a3374b64d
    Reviewed-on: http://review.couchbase.org/14731
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    vmx committed Apr 10, 2012
Commits on Jun 15, 2012
  1. List functions also work without a bounding box

    If you don't specify a bounding box all the data of an
    spatial index is reeturned.
    
    Change-Id: I208ab04e2613d9e3258dd5ba457ed1e23dd9cfed
    vmx committed Jun 15, 2012
  2. Prepare for polygon search

    Internal functions can be re-used for the polygon search if
    the geometry types are converted to atoms, which is the way
    they are stored in the Erlang term representation.
    
    Change-Id: I0b946648976938bc875ac1970731afe9c48c7c66
    Reviewed-on: http://review.couchbase.org/10093
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
    vmx committed Sep 29, 2011
  3. Use rebar for building GeoCouch

    Instead of using Emake, use rebar to build GeoCouch.
    This will make it easier for future dependencies.
    The output directory for the beam files changed from "build"
    to "ebin".
    
    Change-Id: Idbe9e2ef4197e5886f7ed6627d3689c9f530714f
    Reviewed-on: http://review.couchbase.org/9825
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
    vmx committed Sep 28, 2011
  4. Do actually run the insert_outliers/5 tests

    The tests for insert_outliers/5 weren't run, caused by
    a typo.
    
    Change-Id: Ib11cbf49c70faad93aae8e21a6be31f63a561659
    Reviewed-on: http://review.couchbase.org/13514
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed Feb 23, 2012
  5. Make GeoCouch Etap tests work with Erlang R15

    Erlang R15 changed the output of random:seed/1. Hence some
    tests were failing. This commit makes the Etap tests compatible
    with R15.
    
    Change-Id: I0c3819b4ca8e58354d38e18ab766ccb10ca2ecf9
    Reviewed-on: http://review.couchbase.org/13513
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed Feb 23, 2012
  6. Improve GeoCouch tests

    Close file descriptors correctly.
    
    This is based on http://review.couchbase.org/12617
    
    Change-Id: I9e05a87611f823b0b25598c7c971ddc2202fb621
    vmx committed Jan 24, 2012
Commits on Jun 13, 2012
  1. Return all the data when no bbox is given

    Previously you always needed to supply a bounding
    box, else you would get an error. With this commit
    all the data of the index will be returned when no
    bounding box is specified.
    
    Change-Id: Ib21713767e75001d7b9134acc3854d719ba79fc3
    Reviewed-on: http://review.couchbase.org/11653
    Reviewed-by: Chris Anderson <jchris@couchbase.com>
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed Dec 14, 2011
  2. Only list spatial indexes

    list_index_files/1 previously returned all index files,
    also the ones from Views. But what we really want is
    only the files from the spatial indexes.
    
    Change-Id: I646dd7aebb5d0255115a352ab03331d915e15e6e
    Reviewed-on: http://review.couchbase.org/11462
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed Nov 29, 2011
Commits on Apr 20, 2012
  1. Add skip and limit to GeoCouch

    GeoCouch now supports the "skip" and "limit" parameter
    for spatial indexes as well as for spatial _list
    functions.
    
    Change-Id: I596b634170f13a453541f47abe7fe7f2cf60492c
    Reviewed-on: http://review.couchbase.org/11166
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed Nov 24, 2011
Commits on Jan 6, 2012
  1. GeoCouch now works with Apache CouchDB 1.2.x

    Change-Id: Ib973964c865518621abd2366be2f047c74a4e970
    Reviewed-on: http://review.couchbase.org/12111
    Tested-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    vmx committed Jan 6, 2012
  2. Remove all couch_file:flush() calls.

    couch_file:flush() is Couchbase specific. Apache CouchDB
    flushes automatically after every write.
    vmx committed Jan 6, 2012
  3. Take arguments out of ERL, so make can override

    Change-Id: Ifaded0a317978cf2cd417d11070a51e51bbd4312
    Reviewed-on: http://review.couchbase.org/9135
    Tested-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    daleharvey committed with vmx Aug 20, 2011
  4. Make _spatial/_list tests more robust

    GeoCouch doesn't guarantee any ordering of the results,
    hence the tests shouldn't depend on any ordering.
    
    Change-Id: Ibbfffbcd41e00f707fcaafb272a8a7409626b297
    Reviewed-on: http://review.couchbase.org/10949
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed with vmx Nov 16, 2011
  5. remove superfluous vtree:lookup/5 case

    Both is_list and not is_list case when last argument (plane bounds) is
    nil do same thing, thus we can have only one case.
    
    Change-Id: I531102f5cf177c794c2c5a76184da5c4cf123981
    Reviewed-on: http://review.couchbase.org/11414
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Aliaksey Kandratsenka committed with vmx Dec 4, 2011
  6. don't needlessly repeate bboxes_not_disjoint computation

    This computation is purely functional and does not depend on current
    loop item (child entry position), thus can be moved out of loop.
    
    Change-Id: I430b15757097ea2b53ef335e15ab30b3454e9d5e
    Reviewed-on: http://review.couchbase.org/11413
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Aliaksey Kandratsenka committed with vmx Dec 4, 2011
  7. start_doc_map/3 is exported by couch_query_servers.

    start_doc_map/3 is exported, so we don't need to have
    it in geocouch_duplicates any longer.
    
    Change-Id: Ia9f4e005258f4ac045cd6ef451146ca5d6f723df
    Reviewed-on: http://review.couchbase.org/10845
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed with vmx Nov 14, 2011
  8. Reword error message.

    Change not_found error from missing_named_view to
    missing_named_index.
    
    Change-Id: I402b769e31337e1f05de1f4b16a013846cd2d223
    Reviewed-on: http://review.couchbase.org/10842
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed with vmx Oct 19, 2011
  9. Move GeoCouch config file.

    The config file of GeoCouch belongs to default.d, not
    local.d.
    
    Change-Id: I6e760c575bef971df8eeb8ea36bdbc9a395632dd
    Reviewed-on: http://review.couchbase.org/9139
    Reviewed-by: Jan Lehnardt <jan@couchbase.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed with vmx Aug 20, 2011
  10. Make tests more robust.

    Don't depend on the on-disk format for the tests,
    better test if the data has the correct structure.
    
    Change-Id: I114f6ef423be8196367aec547a7452a0f493e674
    Reviewed-on: http://review.couchbase.org/10950
    Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
    vmx committed with vmx Nov 16, 2011
  11. Make timing calculations simpler.

    No longer use a custom function for timing.
    
    Change-Id: Iec46b723de9a0a59f5f4d5ddd7a2c7a0786dd71a
    Reviewed-on: http://review.couchbase.org/10091
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Sep 29, 2011
  12. Compacting an empy index creates errors.

    When you compacted an index that didn't contain any data,
    GeoCouch spit out a huge stack trace. This commit fixes
    the problem.
    
    Change-Id: I201683ea135bf00841734595024e8c7e436292f0
    Reviewed-on: http://review.couchbase.org/9781
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Dale Harvey <daleharvey@arandomurl.com>
    Reviewed-by: Dale Harvey <daleharvey@arandomurl.com>
    vmx committed with vmx Sep 27, 2011
  13. Make GeoCouch work again.

    The couch_tasks module was changed an rendered GeoCouch
    unusable. This commit fixes the problem.
    
    Change-Id: I7c0a90e1595ffecf0afd68e4f917fd4fdacae40b
    Reviewed-on: http://review.couchbase.org/9780
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Tested-by: Dale Harvey <daleharvey@arandomurl.com>
    Reviewed-by: Dale Harvey <daleharvey@arandomurl.com>
    vmx committed with vmx Sep 27, 2011
  14. Update README to reflect current output.

    In previous versions the response didn't contain the original
    geometry, now it does.
    
    Change-Id: I386d666aa708c74b3d0794affda1bd0cc25d3569
    Reviewed-on: http://review.couchbase.org/9779
    Tested-by: Dale Harvey <daleharvey@arandomurl.com>
    Reviewed-by: Dale Harvey <daleharvey@arandomurl.com>
    vmx committed with vmx Sep 27, 2011
  15. Wrong path to the couch_tests.js file

    Change-Id: I8dcbafe704bcb34f2e1890b1df8c4a60ff877742
    Reviewed-on: http://review.couchbase.org/8759
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    pgiraud committed with vmx May 17, 2011
  16. There seem to be a typo in the README file.

    Change-Id: Ib13b09650760429bce6b169443d2000d9db29a85
    Reviewed-on: http://review.couchbase.org/8758
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    pgiraud committed with vmx May 17, 2011
  17. More forgiveness during make clean.

    This is helpful to external scripts & makefiles which build geocouch.
    
    Change-Id: Ia7e9ff6247c97609b7cd6f0781e245dda5497ea8
    Reviewed-on: http://review.couchbase.org/8318
    Tested-by: Steve Yen <steve.yen@gmail.com>
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    steveyen committed with vmx Jul 24, 2011
  18. Simplify "make dist".

    "make dist" is now like the one from mccouch. It uses Git to
    make the tarball.
    
    Change-Id: I21cc271745baa13a0e41a365c46e51229a7a803e
    Reviewed-on: http://review.couchbase.org/8221
    Tested-by: Steve Yen <steve.yen@gmail.com>
    Reviewed-by: Steve Yen <steve.yen@gmail.com>
    vmx committed with vmx Jul 22, 2011
  19. Take arguments out of ERL, so make can override

    Change-Id: Ifaded0a317978cf2cd417d11070a51e51bbd4312
    Reviewed-on: http://review.couchbase.org/9135
    Tested-by: Volker Mische <volker.mische@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    daleharvey committed with vmx Aug 20, 2011
  20. Add Etap dir to "make check" target.

    In order to make tests work, Etap needs to be found.
    
    Change-Id: I63d0b0ae77fb335ebff17706dac0c0ea4066ce71
    Reviewed-on: http://review.couchbase.org/8328
    Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
    Reviewed-by: Volker Mische <volker.mische@gmail.com>
    Tested-by: Volker Mische <volker.mische@gmail.com>
    vmx committed with vmx Jul 25, 2011