History log of /2.1.1/couchbase-examples/ (Results 1 - 25 of 69)
Revision (<<< Hide revision tags) (Show revision tags >>>)Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
Revision tags: 2.0.1-linux
cd9c860021-Nov-2012 Sergey Avseyev <sergey.avseyev@gmail.com>

MB-7359: Rename brewery property "geo.lng" to "geo.lon"

<mschoch> for breweries we encode the geo point as { lat: x, lng: y }
<mschoch> elasticsearch supports a variety of formats, but n

MB-7359: Rename brewery property "geo.lng" to "geo.lon"

<mschoch> for breweries we encode the geo point as { lat: x, lng: y }
<mschoch> elasticsearch supports a variety of formats, but not that one
<mschoch> it requires "lon" not "lng"
<mschoch> if we switched to "lon" it would pretty much work out of the box

Reference: https://github.com/avsej/beer-sample/commit/5efe2032
Change-Id: I882959bea7991353b592724439be1005bb0ec13d
Reviewed-on: http://review.couchbase.org/22729
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

c59551ad08-Nov-2012 Sergey Avseyev <sergey.avseyev@gmail.com>

MB-7126 Add "if guards" in sample data view functions

gamesim-sample/design_docs/players.json:leaderboard/map

function (doc, meta) {
if (doc.jsonType == "player" && doc.ex

MB-7126 Add "if guards" in sample data view functions

gamesim-sample/design_docs/players.json:leaderboard/map

function (doc, meta) {
if (doc.jsonType == "player" && doc.experience) {
emit(doc.experience, null);
}
}

beer-sample/design_docs/beer.json:brewery_beers/map

function(doc, meta) {
switch(doc.type) {
case "brewery":
emit([meta.id]);
break;
case "beer":
if (doc.brewery_id) {
emit([doc.brewery_id, meta.id]);
}
break;
}
}

Change-Id: Ibb6039580ec1d2a4f232e4302e57baeaeb8530e6
Reviewed-on: http://review.couchbase.org/22364
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aaron Miller <apage43@ninjawhale.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

544688dc26-Oct-2012 Farshid Ghods <farshid.ghods@gmail.com>

MB-6969 added missing zip files to dist target

Change-Id: I565f71f7a33abd2c9507b62e6aac023316ea512e
Reviewed-on: http://review.couchbase.org/21996
Reviewed-by: Bin Cui <bin.cui@gmail

MB-6969 added missing zip files to dist target

Change-Id: I565f71f7a33abd2c9507b62e6aac023316ea512e
Reviewed-on: http://review.couchbase.org/21996
Reviewed-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Farshid Ghods <farshid@couchbase.com>

show more ...

21e6161a01-Oct-2012 Bin Cui <bin.cui@gmail.com>

MB-6784: Add uuid.py to bin directory

uuid.py is indirectly referenced by couchbase python library even
though it is not directly used anywhere by docloader itself.

Change-Id: I

MB-6784: Add uuid.py to bin directory

uuid.py is indirectly referenced by couchbase python library even
though it is not directly used anywhere by docloader itself.

Change-Id: I786bc8da62fae275d5eb253db160d023ab304d9a
Reviewed-on: http://review.couchbase.org/21226
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Farshid Ghods <farshid@couchbase.com>

show more ...

a9e2e92b17-Sep-2012 Sergey Avseyev <sergey.avseyev@gmail.com>

MB-6674 Remove spatial view because it's experimental

Link: https://github.com/avsej/beer-sample/commit/071c5661
Change-Id: I0e7bdee838151eda993ec7cf0933130515f51383
Reviewed-on: htt

MB-6674 Remove spatial view because it's experimental

Link: https://github.com/avsej/beer-sample/commit/071c5661
Change-Id: I0e7bdee838151eda993ec7cf0933130515f51383
Reviewed-on: http://review.couchbase.org/20909
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>

show more ...

bdc5d5f317-Sep-2012 Sergey Avseyev <sergey.avseyev@gmail.com>

MB-6675 Rename docs using underscored names separated with dash

Example:

Brewery "Borsodi Sörgyár" => "borsodi_sorgyar"
Beer "Alt Munich Dark" => "hacker_pschorr_bru-alt_

MB-6675 Rename docs using underscored names separated with dash

Example:

Brewery "Borsodi Sörgyár" => "borsodi_sorgyar"
Beer "Alt Munich Dark" => "hacker_pschorr_bru-alt_munich_dark"

Links:

https://github.com/avsej/beer-sample/commit/1ae4f6f4
https://github.com/avsej/beer-sample/commit/0d7977df

Change-Id: I3e3bfb0e9ff1c960624aa65f91201da4c7345a93
Reviewed-on: http://review.couchbase.org/20908
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Matt Ingenthron <matt@couchbase.com>

show more ...

e7ede56926-Sep-2012 Bin Cui <bin.cui@gmail.com>

MB-6731: Add required modules for docloadgen

Since we remove module workloadgen, we need to make docloadgen
self sufficient to copy all dependent modules during build

Change-Id:

MB-6731: Add required modules for docloadgen

Since we remove module workloadgen, we need to make docloadgen
self sufficient to copy all dependent modules during build

Change-Id: I0794705032b0b91b590df84a81594b3d25fd395e
Reviewed-on: http://review.couchbase.org/21118
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Farshid Ghods <farshid@couchbase.com>

show more ...

693225bb20-Sep-2012 Bin Cui <bin.cui@gmail.com>

CBD-594: Add cbdocloader func spec

Change-Id: I086222c5e6eede296a29435a2f4bd490ac3f7061
Reviewed-on: http://review.couchbase.org/20996
Reviewed-by: Steve Yen <steve.yen@gmail.com>

CBD-594: Add cbdocloader func spec

Change-Id: I086222c5e6eede296a29435a2f4bd490ac3f7061
Reviewed-on: http://review.couchbase.org/20996
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

0a08bf1415-Sep-2012 Bin Cui <bin.cui@gmail.com>

MB-6669: Use system provided random temp directory

mkdtemp creates a temporary directory in secure manner.

Change-Id: I962c5cdce4250e48c7a145f6e92a2678d4738364
Reviewed-on: http

MB-6669: Use system provided random temp directory

mkdtemp creates a temporary directory in secure manner.

Change-Id: I962c5cdce4250e48c7a145f6e92a2678d4738364
Reviewed-on: http://review.couchbase.org/20888
Reviewed-by: Jens Alfke <jens@couchbase.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

6c6ff9fb17-Sep-2012 Sergey Avseyev <sergey.avseyev@gmail.com>

Strip file extension properly (fixes docloader)

Change-Id: Ic0b5860a48b601cb112fa7cf8b6bd217945e65a3
Reviewed-on: http://review.couchbase.org/20910
Tested-by: Sergey Avseyev <sergey.

Strip file extension properly (fixes docloader)

Change-Id: Ic0b5860a48b601cb112fa7cf8b6bd217945e65a3
Reviewed-on: http://review.couchbase.org/20910
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>

show more ...

c71d9aec15-Sep-2012 Bin Cui <bin.cui@gmail.com>

MB-6452: Use same extractall function as for python 2.4

For python2.6 on Mac, zipfile.extractall() wrongly create parent
directory as file. And it lealds to extractall failure. The ZipUt

MB-6452: Use same extractall function as for python 2.4

For python2.6 on Mac, zipfile.extractall() wrongly create parent
directory as file. And it lealds to extractall failure. The ZipUtil
implementation won't have such problems.

Change-Id: I17a7e8dc5a664680ffbce58ba7cd3106c3a527b0
Reviewed-on: http://review.couchbase.org/20880
Reviewed-by: Jens Alfke <jens@couchbase.com>
Tested-by: Farshid Ghods <farshid@couchbase.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>

show more ...

5626f00612-Sep-2012 Bin Cui <bin.cui@gmail.com>

MB-6606: Implement extractall function for python 2.4

ZipFile.extractall() only exists since python 2.6. For platforms with
older python version installed, we have our own implementation

MB-6606: Implement extractall function for python 2.4

ZipFile.extractall() only exists since python 2.6. For platforms with
older python version installed, we have our own implementation to
extract all zip content to a working directory.

Change-Id: I67e3cd7bbd540e62d0088444e273788ff7360623
Reviewed-on: http://review.couchbase.org/20765
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Reviewed-by: Farshid Ghods <farshid@couchbase.com>
Tested-by: Farshid Ghods <farshid@couchbase.com>

show more ...

2284fc5324-Aug-2012 Bin Cui <bin.cui@gmail.com>

MB-6233: Retrieve couch_api_base from server

For unconfigured setup, the couch_api_base value cannot be retrieved
correctly by url: http://ip:port/pools/default. But it is avaible
by

MB-6233: Retrieve couch_api_base from server

For unconfigured setup, the couch_api_base value cannot be retrieved
correctly by url: http://ip:port/pools/default. But it is avaible
by using url: http://ip:port/pools/default/buckets/bucket_name
Before saving any design docs, it is better to reset the couch_api_base
value in couchbase client object.

Change-Id: I432064afddf18c0bf10a2218fe595b86b4180288
Reviewed-on: http://review.couchbase.org/20137
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>

show more ...

c22674bf24-Aug-2012 Bin Cui <bin.cui@gmail.com>

MB-6411: Create zip working dir under system temp directory

Instead of using the current working directory such as bin or
/opt/couchbase/lib/python, use system temp directory.

C

MB-6411: Create zip working dir under system temp directory

Instead of using the current working directory such as bin or
/opt/couchbase/lib/python, use system temp directory.

Change-Id: Ie2452df0581f5f3659d1deab856e7092037c68fb
Reviewed-on: http://review.couchbase.org/20141
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

250c194628-Aug-2012 Jens Alfke <jens@couchbase.com>

MB-6452: Fix path quoting in wrapper script

The generic wrapper script would blow up if the path to the tool
contained a space, as happens in the Mac package.

Change-Id: I184e75

MB-6452: Fix path quoting in wrapper script

The generic wrapper script would blow up if the path to the tool
contained a space, as happens in the Mac package.

Change-Id: I184e75c11ef63372e59cae8053cf2b0f72445001
Reviewed-on: http://review.couchbase.org/20252
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Jens Alfke <jens@couchbase.com>

show more ...

7cd129e521-Aug-2012 Sergey Avseyev <sergey.avseyev@gmail.com>

Fixup last non-utf8 characters and references

Patches:

https://github.com/avsej/beer-sample/commit/b1e0eba5
https://github.com/avsej/beer-sample/commit/5e514ff3

Fixup last non-utf8 characters and references

Patches:

https://github.com/avsej/beer-sample/commit/b1e0eba5
https://github.com/avsej/beer-sample/commit/5e514ff3
https://github.com/avsej/beer-sample/commit/4bedfcc9

Change-Id: Ice411cbfd60a699994b9557d97aa2c77cdbbabcb
Reviewed-on: http://review.couchbase.org/19955
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...

7182a80520-Aug-2012 Sergey Avseyev <sergey.avseyev@gmail.com>

Update beer-sample documents

Why Does This Dataset is Better?

* It really use UTF-8
* It uses meaningless and uniform IDs
* All documents has type attribute
* The bigger

Update beer-sample documents

Why Does This Dataset is Better?

* It really use UTF-8
* It uses meaningless and uniform IDs
* All documents has type attribute
* The bigger dataset
* Geo attributes has names (lat, lng) instead of just two-element array

Original repo: https://github.com/avsej/beer-sample

Change-Id: I5d73f50aa9d284089667d22a4fd763359a757dc1
Reviewed-on: http://review.couchbase.org/19905
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...

efa2d5ab18-Aug-2012 Bin Cui <bin.cui@gmail.com>

MB-6295: Remove view 'by_key_value' completely.

Change-Id: I77fce1b62688562888fda41dc85abf5b787ed30e
Reviewed-on: http://review.couchbase.org/19834
Reviewed-by: Aliaksey Kandratsenka

MB-6295: Remove view 'by_key_value' completely.

Change-Id: I77fce1b62688562888fda41dc85abf5b787ed30e
Reviewed-on: http://review.couchbase.org/19834
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>

show more ...

e26a61d718-Aug-2012 Bin Cui <bin.cui@gmail.com>

CBD-514: Use a more meaningful function name

Change-Id: Ib2056cc0aa8febce1099f432deec2f2c88aa461f
Reviewed-on: http://review.couchbase.org/19819
Reviewed-by: Steve Yen <steve.yen@gma

CBD-514: Use a more meaningful function name

Change-Id: Ib2056cc0aa8febce1099f432deec2f2c88aa461f
Reviewed-on: http://review.couchbase.org/19819
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

8465c80217-Aug-2012 Bin Cui <bin.cui@gmail.com>

MB-6249: Don't set default for user/password/bucket

User/password should be provided as arguments or retrieved from
environment. And bucket name is always required.

Change-Id: I

MB-6249: Don't set default for user/password/bucket

User/password should be provided as arguments or retrieved from
environment. And bucket name is always required.

Change-Id: Ie446a626c07e9a441a1299f24d544ee9b4bdd7aa
Reviewed-on: http://review.couchbase.org/19789
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

2399ac0b17-Aug-2012 Bin Cui <bin.cui@gmail.com>

CBD-514: Avoid using temporary files

Instead, extracting files to a temp location and upload files
on temp directory. It will speed up the uploading process.

Change-Id: I5298dc8

CBD-514: Avoid using temporary files

Instead, extracting files to a temp location and upload files
on temp directory. It will speed up the uploading process.

Change-Id: I5298dc84ef4000a86ed6586bcab0073c2463fd5f
Reviewed-on: http://review.couchbase.org/19788
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

10913bb515-Aug-2012 Bin Cui <bin.cui@gmail.com>

MB-6212: Check if bucket ram quota

If specified ram quota exeeds available quota in the cluster,
give out error message and exit

Change-Id: I8cb43e5083fe03a835a12672f951f9bccc38

MB-6212: Check if bucket ram quota

If specified ram quota exeeds available quota in the cluster,
give out error message and exit

Change-Id: I8cb43e5083fe03a835a12672f951f9bccc3877db
Reviewed-on: http://review.couchbase.org/19661
Tested-by: Bin Cui <bin.cui@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>

show more ...

11d89e5e10-Aug-2012 Bin Cui <bin.cui@gmail.com>

MB-6181: Use meta.id instead of doc._id for view

Since we separate meta data from doc fields, we need to replace
doc._id with meta.id in the view design docs.

Change-Id: I050542

MB-6181: Use meta.id instead of doc._id for view

Since we separate meta data from doc fields, we need to replace
doc._id with meta.id in the view design docs.

Change-Id: I050542e7fcf69ac1edf3c03b417bdd9126c4c3f5
Reviewed-on: http://review.couchbase.org/19480
Reviewed-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

9522e46a31-Jul-2012 Bin Cui <bin.cui@gmail.com>

MB-6003: Load view docs after other docs

Design docs should be uploaded and created after all other docs
are uploaded.

Change-Id: I3f922db6eebb24828efc6148187a63735b7a2bcf
R

MB-6003: Load view docs after other docs

Design docs should be uploaded and created after all other docs
are uploaded.

Change-Id: I3f922db6eebb24828efc6148187a63735b7a2bcf
Reviewed-on: http://review.couchbase.org/19131
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

d6606d2228-Jul-2012 Bin Cui <bin.cui@gmail.com>

CBD-465: Set script path to environment path

On 64bit windows, py2exe doesn't support to bundle everything
as oen executable. As result, .exe file may sit in different
directory from

CBD-465: Set script path to environment path

On 64bit windows, py2exe doesn't support to bundle everything
as oen executable. As result, .exe file may sit in different
directory from support dlls and other pyd files.

Change-Id: Idc09e8016b43725823f99e1113dffb72a1598b77
Reviewed-on: http://review.couchbase.org/18981
Reviewed-by: Pavel Paulau <pavel.paulau@gmail.com>
Tested-by: Bin Cui <bin.cui@gmail.com>

show more ...

123