couchdb-futon.git
13 years agoAdded 'Jump to Document' in the database.htmlscreen. Would like maybe to see in the...
Damien F. Katz [Mon, 22 Jun 2009 19:10:48 +0000 (19:10 +0000)] 
Added 'Jump to Document' in the database.htmlscreen. Would like maybe to see in the future about making it limit input to only existing doc ids, and perhaps only show on the 'All documents' view.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@787354 13f79535-47bb-0310-9956-ffa450edef68

13 years agoSend CouchDB Server: header for all external queries. Fixes COUCHDB-379.
Jan Lehnardt [Mon, 15 Jun 2009 09:49:46 +0000 (09:49 +0000)] 
Send CouchDB Server: header for all external queries. Fixes COUCHDB-379.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@784706 13f79535-47bb-0310-9956-ffa450edef68

13 years agomerge list-iterator branch to trunk. changes JavaScript _list API
John Christopher Anderson [Sun, 14 Jun 2009 18:45:49 +0000 (18:45 +0000)] 
merge list-iterator branch to trunk. changes JavaScript _list API

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@784601 13f79535-47bb-0310-9956-ffa450edef68

13 years agodoh. remove console.log
John Christopher Anderson [Thu, 4 Jun 2009 19:10:28 +0000 (19:10 +0000)] 
doh. remove console.log

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@781830 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded tests for heartbeat and timeout options in the _changes api.
Damien F. Katz [Mon, 1 Jun 2009 00:27:28 +0000 (00:27 +0000)] 
Added tests for heartbeat and timeout options in the _changes api.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780539 13f79535-47bb-0310-9956-ffa450edef68

13 years agoTest and fix for infinite loops in view_servers, fix for crashed OS processes causing...
Damien F. Katz [Sat, 30 May 2009 02:43:52 +0000 (02:43 +0000)] 
Test and fix for infinite loops in view_servers, fix for crashed OS processes causing leaked erlang processes and fix for view server crashing when view group process terminates.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@780165 13f79535-47bb-0310-9956-ffa450edef68

13 years agoRemoved unfixed tests cases accidently checked in.
Damien F. Katz [Fri, 29 May 2009 03:34:33 +0000 (03:34 +0000)] 
Removed unfixed tests cases accidently checked in.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779826 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFix and test for COUCHDB-366, uploading large attachments causes 500 error.
Damien F. Katz [Fri, 29 May 2009 03:29:25 +0000 (03:29 +0000)] 
Fix and test for COUCHDB-366, uploading large attachments causes 500 error.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@779824 13f79535-47bb-0310-9956-ffa450edef68

13 years agoMerging new tail append storage into trunk. Upgrades are automatic, once opened by...
Damien F. Katz [Mon, 25 May 2009 19:52:28 +0000 (19:52 +0000)] 
Merging new tail append storage into trunk. Upgrades are automatic, once opened by this version  old versions of CouchDB will not be able to open the files. As a precaution, you should back-up your production databases before upgrading.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@778485 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded an design doc option so that doc._local_seq can be available in the map view...
John Christopher Anderson [Sat, 23 May 2009 01:14:13 +0000 (01:14 +0000)] 
added an design doc option so that doc._local_seq can be available in the map view. Closes COUCHDB-346

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@777757 13f79535-47bb-0310-9956-ffa450edef68

13 years agoView source loads the original file now.
Paul Joseph Davis [Mon, 18 May 2009 03:12:54 +0000 (03:12 +0000)] 
View source loads the original file now.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@775796 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixes COUCHDB-349
Paul Joseph Davis [Wed, 13 May 2009 23:10:43 +0000 (23:10 +0000)] 
Fixes COUCHDB-349

    Removing a _view can cause the database browser interface to break

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774587 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdding testing for GET /_changes?continuous=true by adding a GET /_sleep?time=Msecs...
Damien F. Katz [Wed, 13 May 2009 18:27:11 +0000 (18:27 +0000)] 
Adding testing for GET /_changes?continuous=true by adding a GET /_sleep?time=Msecs call, which allows the browser to process the waiting data on the other async XHR request.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774474 13f79535-47bb-0310-9956-ffa450edef68

13 years agoCloses COUCHDB-334 - Add JSONP support to CouchDB
Paul Joseph Davis [Wed, 13 May 2009 03:33:31 +0000 (03:33 +0000)] 
Closes COUCHDB-334 - Add JSONP support to CouchDB

Use JSONP by providing a ?callback=function_name URL paramter for any URL
returning JSON data.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774180 13f79535-47bb-0310-9956-ffa450edef68

13 years agoYou can now specify either "_sum" or "_count" as the source code for 2 built-in Erlan...
John Christopher Anderson [Tue, 12 May 2009 21:38:43 +0000 (21:38 +0000)] 
You can now specify either "_sum" or "_count" as the source code for 2 built-in Erlang reduce functions. The framework is ready for YOU to add more built in reductions. The short list includes: _avg, _stddev, _min, and _max. We could also have one function that does all that in a single function, but it might not be as fun to use.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@774101 13f79535-47bb-0310-9956-ffa450edef68

13 years agorefactor JSON body error handling, also consolidate update_docs JSON response generation.
John Christopher Anderson [Sun, 10 May 2009 19:20:23 +0000 (19:20 +0000)] 
refactor JSON body error handling, also consolidate update_docs JSON response generation.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773387 13f79535-47bb-0310-9956-ffa450edef68

13 years agoRefactor the make_view_fold_function stuff. Added a proper Acc to both map and reduce...
John Christopher Anderson [Sun, 10 May 2009 09:12:01 +0000 (09:12 +0000)] 
Refactor the make_view_fold_function stuff. Added a proper Acc to both map and reduce view folds. Cleaned up some pattern matchers.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773319 13f79535-47bb-0310-9956-ffa450edef68

13 years agoCheck for invalid document members.
Paul Joseph Davis [Sat, 9 May 2009 19:06:08 +0000 (19:06 +0000)] 
Check for invalid document members.

Removes a guard that only checked for fields with integer values. Adds tests to
basics.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@773260 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFirst cut at _changes api. Update the by_id and by_seq indexes to contain update...
Damien F. Katz [Wed, 6 May 2009 19:11:10 +0000 (19:11 +0000)] 
First cut at _changes api. Update the by_id and by_seq indexes to contain update seq numbers and pointers to bodies on disk, for use in the _changes api. This is a new file version, but the code can continue to serve the old 0.9 version without problems, though certain features in the _changes api will not be able to work. Upgrade to new file version (from 1 to 2) by compacting the file. Also fixed bugs with how the stats api tracks open databases.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@772406 13f79535-47bb-0310-9956-ffa450edef68

13 years agostandalone attachment GETs should respect "rev" qs param
Adam Kocoloski [Mon, 4 May 2009 22:25:23 +0000 (22:25 +0000)] 
standalone attachment GETs should respect "rev" qs param

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@771474 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreduce_limit error is thrown when the reduce function output is not small enough...
John Christopher Anderson [Mon, 4 May 2009 22:06:12 +0000 (22:06 +0000)] 
reduce_limit error is thrown when the reduce function output is not small enough compared to the input. Errors can be switched off using the config API.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@771466 13f79535-47bb-0310-9956-ffa450edef68

13 years agoUse batch=ok query param for document PUT and POST to defer index updates until a...
John Christopher Anderson [Mon, 4 May 2009 19:59:39 +0000 (19:59 +0000)] 
Use batch=ok query param for document PUT and POST to defer index updates until a threshold of documents (or amount of time) has been passed.
This option returns a 202 Accepted response instead of a 201 Created, so do not use it for applications which require all data to be saved safely to disk. It is ideal for applications like logging where losing some events in a crash will be ok.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@771418 13f79535-47bb-0310-9956-ffa450edef68

13 years agoCloses COUCHDB-320 (ignore Content-Type in _temp_view). Thanks B. Candler
Adam Kocoloski [Wed, 29 Apr 2009 14:07:09 +0000 (14:07 +0000)] 
Closes COUCHDB-320 (ignore Content-Type in _temp_view).  Thanks B. Candler

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@769792 13f79535-47bb-0310-9956-ffa450edef68

13 years agoResolves COUCHDB-332 Proper errors for invalid docids.
Paul Joseph Davis [Mon, 27 Apr 2009 19:41:23 +0000 (19:41 +0000)] 
Resolves COUCHDB-332 Proper errors for invalid docids.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@769127 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFix and test for COUCHDB-334 where a database with delayed commits pending is conside...
Damien F. Katz [Mon, 27 Apr 2009 19:08:33 +0000 (19:08 +0000)] 
Fix and test for COUCHDB-334 where a database with delayed commits pending is considered idle, and subject to losing changes when shutdown

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@769109 13f79535-47bb-0310-9956-ffa450edef68

13 years agoResolves COUCHDB-331 - Allow reduce=true&include_docs=false
Paul Joseph Davis [Sat, 25 Apr 2009 18:29:15 +0000 (18:29 +0000)] 
Resolves COUCHDB-331 - Allow reduce=true&include_docs=false

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@768573 13f79535-47bb-0310-9956-ffa450edef68

13 years agoRefactoring the view URL parameter parsing.
Paul Joseph Davis [Wed, 22 Apr 2009 14:41:47 +0000 (14:41 +0000)] 
Refactoring the view URL parameter parsing.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@767543 13f79535-47bb-0310-9956-ffa450edef68

13 years agoCOUCHDB-306 - Improving reported errors.
Paul Joseph Davis [Sun, 19 Apr 2009 20:02:45 +0000 (20:02 +0000)] 
COUCHDB-306 - Improving reported errors.

Case #3 turns out to be misusing the end-point for HTML forms that Futon uses.
For new people it would also be triggered by accidentally using POST when a PUT
to /db_name/docid is used.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766505 13f79535-47bb-0310-9956-ffa450edef68

13 years agorefactor main.js into many files and improve show/list error handling
John Christopher Anderson [Sat, 18 Apr 2009 20:15:44 +0000 (20:15 +0000)] 
refactor main.js into many files and improve show/list error handling

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766383 13f79535-47bb-0310-9956-ffa450edef68

13 years agoResolves COUCHDB-306 - Wacky error responses to malformed documents
Paul Joseph Davis [Sat, 18 Apr 2009 18:34:31 +0000 (18:34 +0000)] 
Resolves COUCHDB-306 - Wacky error responses to malformed documents

Mostly adds improvements to the parsing of Json bodies for _bulk_docs and
multi-get queries. Includes tests in basics.js and view_errors.js.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766373 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixes COUCHDB-322
Paul Joseph Davis [Sat, 18 Apr 2009 16:16:35 +0000 (16:16 +0000)] 
Fixes COUCHDB-322

Specifying reduce=true now returns a 400 error when the view has no reduce
function.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@766347 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadd bulkSave method to jquery.couch.js
John Christopher Anderson [Wed, 15 Apr 2009 23:20:16 +0000 (23:20 +0000)] 
add bulkSave method to jquery.couch.js

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765419 13f79535-47bb-0310-9956-ffa450edef68

13 years agoURL-encode attachment paths during replication
Adam Kocoloski [Wed, 15 Apr 2009 21:21:23 +0000 (21:21 +0000)] 
URL-encode attachment paths during replication

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@765364 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFixes for leaked file handles, with test.
Damien F. Katz [Fri, 10 Apr 2009 02:21:37 +0000 (02:21 +0000)] 
Fixes for leaked file handles, with test.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@763858 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFix for attachment sparseness bug COUCHDB-220 by giving each attachment it's own...
Damien F. Katz [Thu, 9 Apr 2009 21:37:23 +0000 (21:37 +0000)] 
Fix for attachment sparseness bug COUCHDB-220 by giving each attachment it's own stream and calling set_min_buffer instead of ensure_buffer. Also fixed spurious couch_file crash messages by putting the statistics decrement code into a seperate monitoring process.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@763816 13f79535-47bb-0310-9956-ffa450edef68

13 years agoalways load _conflicts in _show functions
Jan Lehnardt [Sat, 28 Mar 2009 21:02:41 +0000 (21:02 +0000)] 
always load _conflicts in _show functions

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@759588 13f79535-47bb-0310-9956-ffa450edef68

13 years agoLocation header responses should be absolute URIs, thanks Christopher
Jan Lehnardt [Fri, 27 Mar 2009 00:26:39 +0000 (00:26 +0000)] 
Location header responses should be absolute URIs, thanks Christopher

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758942 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreturn a Location header on newly created documents using PUT requests
Jan Lehnardt [Thu, 26 Mar 2009 17:40:27 +0000 (17:40 +0000)] 
return a Location header on newly created documents using PUT requests

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758768 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreturn Location header for newly create databases
Jan Lehnardt [Thu, 26 Mar 2009 16:28:21 +0000 (16:28 +0000)] 
return Location header for newly create databases

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758723 13f79535-47bb-0310-9956-ffa450edef68

13 years agowhitespace
Jan Lehnardt [Thu, 26 Mar 2009 16:18:37 +0000 (16:18 +0000)] 
whitespace

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@758717 13f79535-47bb-0310-9956-ffa450edef68

13 years agofix unstable stats test; the open_os_files counter needs a separate test
Jan Lehnardt [Tue, 24 Mar 2009 11:32:57 +0000 (11:32 +0000)] 
fix unstable stats test; the open_os_files counter needs a separate test

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@757744 13f79535-47bb-0310-9956-ffa450edef68

13 years agoforce full doc reload because ETags don't honour compaction
Jan Lehnardt [Tue, 24 Mar 2009 10:45:48 +0000 (10:45 +0000)] 
force full doc reload because ETags don't honour compaction

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@757711 13f79535-47bb-0310-9956-ffa450edef68

13 years agoregression test for update/delete in one bulk_docs update
John Christopher Anderson [Sat, 21 Mar 2009 14:42:44 +0000 (14:42 +0000)] 
regression test for update/delete in one bulk_docs update
closes COUCHDB-172

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756953 13f79535-47bb-0310-9956-ffa450edef68

13 years agoprovide a 404 response on deletion of non-existant docs
John Christopher Anderson [Sat, 21 Mar 2009 14:18:46 +0000 (14:18 +0000)] 
provide a 404 response on deletion of non-existant docs
closes COUCHDB-297

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756948 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFix for COUCHDB-300. Old seq were being removed when a conflict. An old bug, but...
Damien F. Katz [Sat, 21 Mar 2009 12:27:40 +0000 (12:27 +0000)] 
Fix for COUCHDB-300. Old seq were being removed when a conflict. An old bug, but recent changes made it much more likely to happen.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756925 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFuton reduce pagination. Fixes COUCHDB-172
John Christopher Anderson [Fri, 20 Mar 2009 12:18:11 +0000 (12:18 +0000)] 
Futon reduce pagination. Fixes COUCHDB-172
Thanks Jason Davies.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756428 13f79535-47bb-0310-9956-ffa450edef68

13 years agomap queries with group=true query option will return an error.
John Christopher Anderson [Fri, 20 Mar 2009 10:58:52 +0000 (10:58 +0000)] 
map queries with group=true query option will return an error.
closes COUCHDB-185.
changes to jquery.couch.js to support ajaxOptions may be useful for more than just openDoc, will need to be spread to the rest of the API.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756413 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremove leftovers of MOVE form the stats tests
Jan Lehnardt [Fri, 20 Mar 2009 10:26:13 +0000 (10:26 +0000)] 
remove leftovers of MOVE form the stats tests

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@756404 13f79535-47bb-0310-9956-ffa450edef68

13 years agoinclusive_end query option for views, defaults to true (does not change current behav...
John Christopher Anderson [Thu, 19 Mar 2009 11:20:36 +0000 (11:20 +0000)] 
inclusive_end query option for views, defaults to true (does not change current behavior). inclusive_end=false treats endkey as an open interval.
this is progress on COUCHDB-194. I think it is enough for 0.9, we can discuss switching the default behavior, and adding a similar option for startkey.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755926 13f79535-47bb-0310-9956-ffa450edef68

13 years agoreflect filename change in the loadTest() function
Jan Lehnardt [Wed, 18 Mar 2009 12:28:38 +0000 (12:28 +0000)] 
reflect filename change in the loadTest() function

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755577 13f79535-47bb-0310-9956-ffa450edef68

13 years agorename test file to reclect new test name
Jan Lehnardt [Wed, 18 Mar 2009 12:15:50 +0000 (12:15 +0000)] 
rename test file to reclect new test name

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755576 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremove MOVE requests as they can't sensibly be supported and COPY & DELETE does the...
Jan Lehnardt [Wed, 18 Mar 2009 12:15:17 +0000 (12:15 +0000)] 
remove MOVE requests as they can't sensibly be supported and COPY & DELETE does the same thing

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755575 13f79535-47bb-0310-9956-ffa450edef68

13 years agoshow group=true notice only when view results are shown
Jan Lehnardt [Tue, 17 Mar 2009 11:52:57 +0000 (11:52 +0000)] 
show group=true notice only when view results are shown

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755205 13f79535-47bb-0310-9956-ffa450edef68

13 years agoCloses COUCHDB-135 View offset regression after 0.8.1
Paul Joseph Davis [Tue, 17 Mar 2009 03:47:37 +0000 (03:47 +0000)] 
Closes COUCHDB-135 View offset regression after 0.8.1

This test shows that Damien's changes to couch_btree.erl have alleviated the
offset regersion reported by Paul Carey.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@755105 13f79535-47bb-0310-9956-ffa450edef68

13 years agotabs->spaces, other whitespace enhancements
Jan Lehnardt [Mon, 16 Mar 2009 08:45:18 +0000 (08:45 +0000)] 
tabs->spaces, other whitespace enhancements

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754843 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadd note about Futon adding `?group=true` to view queries automatically
Jan Lehnardt [Sun, 15 Mar 2009 18:58:39 +0000 (18:58 +0000)] 
add note about Futon adding `?group=true` to view queries automatically

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754720 13f79535-47bb-0310-9956-ffa450edef68

13 years agoStreaming attachment replication now follows redirects and checks for error codes...
John Christopher Anderson [Sun, 15 Mar 2009 17:47:29 +0000 (17:47 +0000)] 
Streaming attachment replication now follows redirects and checks for error codes. Includes tests that design doc attachments are replicated.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754704 13f79535-47bb-0310-9956-ffa450edef68

13 years agoerror message on invalid rev format.
John Christopher Anderson [Sun, 15 Mar 2009 00:15:40 +0000 (00:15 +0000)] 
error message on invalid rev format.
another replication test.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@754563 13f79535-47bb-0310-9956-ffa450edef68

13 years agoCommit Damien's rep_security branch to trunk.
John Christopher Anderson [Fri, 13 Mar 2009 22:15:34 +0000 (22:15 +0000)] 
Commit Damien's rep_security branch to trunk.
Changes bulk_docs conflict checking.
Breaks file format, see mailing list for data upgrade procedure, or
http://wiki.apache.org/couchdb/Breaking_changes

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@753448 13f79535-47bb-0310-9956-ffa450edef68

13 years agoUpdate the 'Raw view' link on the Futon database page to reflect the recent view...
Christopher Lenz [Tue, 10 Mar 2009 17:15:06 +0000 (17:15 +0000)] 
Update the 'Raw view' link on the Futon database page to reflect the recent view URL change.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@752167 13f79535-47bb-0310-9956-ffa450edef68

13 years agoRemove leftover console.log(). Should we get a pre-commit hook for these? Closes...
Jan Lehnardt [Tue, 10 Mar 2009 08:19:58 +0000 (08:19 +0000)] 
Remove leftover console.log(). Should we get a pre-commit hook for these? Closes COUCHDB-286. Patch by Jason Smith, thanks.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@752020 13f79535-47bb-0310-9956-ffa450edef68

13 years agomerge design doc resource branch. breaking changes to _view query paths.
John Christopher Anderson [Mon, 9 Mar 2009 19:52:54 +0000 (19:52 +0000)] 
merge design doc resource branch. breaking changes to _view query paths.
closes COUCHDB-280

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@751813 13f79535-47bb-0310-9956-ffa450edef68

13 years agovalidate reduce view list queries, make query_parse_error response code 400
John Christopher Anderson [Fri, 6 Mar 2009 16:45:45 +0000 (16:45 +0000)] 
validate reduce view list queries, make query_parse_error response code 400
thanks Jan, thanks Jason Davies. closes COUCHDB-283

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750969 13f79535-47bb-0310-9956-ffa450edef68

13 years agoroll Applications tab out of Futon index page
John Christopher Anderson [Fri, 6 Mar 2009 04:50:58 +0000 (04:50 +0000)] 
roll Applications tab out of Futon index page

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750769 13f79535-47bb-0310-9956-ffa450edef68

13 years agoVerify attachment names. They must be utf-8 (closes COUCHDB-280) and must not start...
Jan Lehnardt [Fri, 6 Mar 2009 00:12:15 +0000 (00:12 +0000)] 
Verify attachment names. They must be utf-8 (closes COUCHDB-280) and must not start with an underscore.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750695 13f79535-47bb-0310-9956-ffa450edef68

13 years agoallow multi-key POST requests for _list.
John Christopher Anderson [Thu, 5 Mar 2009 19:47:25 +0000 (19:47 +0000)] 
allow multi-key POST requests for _list.
closes COUCHDB-269. thanks Jason Davies

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@750565 13f79535-47bb-0310-9956-ffa450edef68

13 years agowhitespace
Jan Lehnardt [Wed, 4 Mar 2009 00:26:38 +0000 (00:26 +0000)] 
whitespace

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749857 13f79535-47bb-0310-9956-ffa450edef68

13 years agoallow for handling 404s in document show functions
Jan Lehnardt [Wed, 4 Mar 2009 00:15:07 +0000 (00:15 +0000)] 
allow for handling 404s in document show functions

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749852 13f79535-47bb-0310-9956-ffa450edef68

13 years agostats metrics renamed: os_open_files -> open_os_files, database_changes -> database_w...
Jan Lehnardt [Tue, 3 Mar 2009 11:33:14 +0000 (11:33 +0000)] 
stats metrics renamed: os_open_files -> open_os_files, database_changes -> database_writes

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@749583 13f79535-47bb-0310-9956-ffa450edef68

13 years agosupply etags for reduce view lists
John Christopher Anderson [Sat, 28 Feb 2009 00:04:10 +0000 (00:04 +0000)] 
supply etags for reduce view lists

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748754 13f79535-47bb-0310-9956-ffa450edef68

13 years ago- remove unused aggregate metrics field
Jan Lehnardt [Fri, 27 Feb 2009 18:07:37 +0000 (18:07 +0000)] 
- remove unused aggregate metrics field
- return an empty object when there are no stats

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748622 13f79535-47bb-0310-9956-ffa450edef68

13 years ago- group HTTP method stats into httpd_requests_methods as per Christopher Lenz's sugge...
Jan Lehnardt [Fri, 27 Feb 2009 16:44:53 +0000 (16:44 +0000)] 
- group HTTP method stats into httpd_requests_methods as per Christopher Lenz's suggestion
- renamed http_status_codes to httpd_status_codes
- better internal variable naming
- remove comments that were leftovers from earlier refactoring

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748582 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFix and test for file descriptor leaks
Damien F. Katz [Thu, 26 Feb 2009 21:01:24 +0000 (21:01 +0000)] 
Fix and test for file descriptor leaks

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748299 13f79535-47bb-0310-9956-ffa450edef68

13 years ago- add descriptions to metrics
Jan Lehnardt [Thu, 26 Feb 2009 17:28:25 +0000 (17:28 +0000)] 
- add descriptions to metrics
- move document_* metrics to couch_db module and merge them into database_* metrics

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@748217 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadd js test suite for stats, enable access for a previously internal metric
Jan Lehnardt [Wed, 25 Feb 2009 16:39:55 +0000 (16:39 +0000)] 
add js test suite for stats, enable access for a previously internal metric

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747852 13f79535-47bb-0310-9956-ffa450edef68

13 years agoSupport for reduce views in _list. closes COUCHDB-260. Thanks Jason Davies.
John Christopher Anderson [Wed, 25 Feb 2009 06:34:03 +0000 (06:34 +0000)] 
Support for reduce views in _list. closes COUCHDB-260. Thanks Jason Davies.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747679 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadded newline to JSON responses, closes COUCHDB-107
Noah Slater [Tue, 24 Feb 2009 18:10:19 +0000 (18:10 +0000)] 
added newline to JSON responses, closes COUCHDB-107

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@747465 13f79535-47bb-0310-9956-ffa450edef68

13 years agoremove old test file.
Jan Lehnardt [Sun, 22 Feb 2009 20:58:12 +0000 (20:58 +0000)] 
remove old test file.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746817 13f79535-47bb-0310-9956-ffa450edef68

13 years agoundefined protection for design doc attachments in futon
John Christopher Anderson [Sun, 22 Feb 2009 18:44:26 +0000 (18:44 +0000)] 
undefined protection for design doc attachments in futon

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746798 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdd runtime statistics -- without EUnit tests for now.
Jan Lehnardt [Sun, 22 Feb 2009 13:50:38 +0000 (13:50 +0000)] 
Add runtime statistics -- without EUnit tests for now.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746691 13f79535-47bb-0310-9956-ffa450edef68

13 years agoLink to design docs that have ddoc.couchapp.index or index.html, from Futon database...
John Christopher Anderson [Sun, 22 Feb 2009 07:31:26 +0000 (07:31 +0000)] 
Link to design docs that have ddoc.couchapp.index or index.html, from Futon database index.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@746644 13f79535-47bb-0310-9956-ffa450edef68

13 years agoBetter error messages on decoding invalid JSON. Changes the CouchDB version of mochij...
John Christopher Anderson [Wed, 18 Feb 2009 07:47:57 +0000 (07:47 +0000)] 
Better error messages on decoding invalid JSON. Changes the CouchDB version of mochijson2. Closes COUCHDB-258

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@745401 13f79535-47bb-0310-9956-ffa450edef68

13 years agoReorganize the tests into one file per test. No other changes.
John Christopher Anderson [Sun, 15 Feb 2009 23:59:38 +0000 (23:59 +0000)] 
Reorganize the tests into one file per test. No other changes.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@744782 13f79535-47bb-0310-9956-ffa450edef68

13 years agoView etags are now provided. See note in the source about how they could be more...
John Christopher Anderson [Sun, 15 Feb 2009 20:36:53 +0000 (20:36 +0000)] 
View etags are now provided. See note in the source about how they could be more efficient. Changes arity on make_view_fold_fun etc. Closes COUCHDB-4

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@744747 13f79535-47bb-0310-9956-ffa450edef68

13 years agoapply COUCHDB-252.
John Christopher Anderson [Fri, 13 Feb 2009 20:52:28 +0000 (20:52 +0000)] 
apply COUCHDB-252.
Allow _list functions to signal that iteration of the view should cease.
Thanks davisp.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@744240 13f79535-47bb-0310-9956-ffa450edef68

13 years agoApply COUCHDB-251.
John Christopher Anderson [Fri, 13 Feb 2009 18:33:16 +0000 (18:33 +0000)] 
Apply COUCHDB-251.
Allow _list functions to accept arbitrary GET parameters.
Thanks Paul Davis.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@744210 13f79535-47bb-0310-9956-ffa450edef68

13 years agoChanged _uuid to respond to GET instead of POST. Bug COUCHDB-190
Damien F. Katz [Wed, 11 Feb 2009 16:12:39 +0000 (16:12 +0000)] 
Changed _uuid to respond to GET instead of POST. Bug COUCHDB-190

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@743373 13f79535-47bb-0310-9956-ffa450edef68

13 years agoFix for COUCHDB-238, explicit check and error for doc ids starting with underscore.
Damien F. Katz [Wed, 11 Feb 2009 16:08:38 +0000 (16:08 +0000)] 
Fix for COUCHDB-238, explicit check and error for doc ids starting with underscore.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@743371 13f79535-47bb-0310-9956-ffa450edef68

13 years agorow_info object for _list pagination. Thanks benoitc.
John Christopher Anderson [Mon, 9 Feb 2009 01:00:33 +0000 (01:00 +0000)] 
row_info object for _list pagination. Thanks benoitc.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@742220 13f79535-47bb-0310-9956-ffa450edef68

13 years agowhitespace
John Christopher Anderson [Sun, 8 Feb 2009 20:24:40 +0000 (20:24 +0000)] 
whitespace

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@742156 13f79535-47bb-0310-9956-ffa450edef68

13 years agoDo not change local.ini during test suite run. Patch by BradfordW. Thanks.
Jan Lehnardt [Tue, 3 Feb 2009 10:53:36 +0000 (10:53 +0000)] 
Do not change local.ini during test suite run. Patch by BradfordW. Thanks.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@740269 13f79535-47bb-0310-9956-ffa450edef68

13 years agoadd iteration numbers to list row functions. closes COUCHDB-233. thanks Benoit Chesneau.
John Christopher Anderson [Mon, 2 Feb 2009 20:27:03 +0000 (20:27 +0000)] 
add iteration numbers to list row functions. closes COUCHDB-233. thanks Benoit Chesneau.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@740094 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdd strict semicolons to the test suite for Webkit. thanks davisp. closes COUCH-232
John Christopher Anderson [Sun, 1 Feb 2009 22:30:36 +0000 (22:30 +0000)] 
Add strict semicolons to the test suite for Webkit. thanks davisp. closes COUCH-232

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739872 13f79535-47bb-0310-9956-ffa450edef68

13 years agoAdded options member to design docs. Currently the only option is include_designs...
John Christopher Anderson [Sun, 1 Feb 2009 22:21:09 +0000 (22:21 +0000)] 
Added options member to design docs. Currently the only option is include_designs (views can now run over design docs as well if they need to), the default is false, which is the current behavior. Thanks davisp for the original patch. Closes COUCHDB-156

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739866 13f79535-47bb-0310-9956-ffa450edef68

13 years agoall_docs view with descending=true works properly now. fix COUCHDB-109
John Christopher Anderson [Fri, 30 Jan 2009 04:57:44 +0000 (04:57 +0000)] 
all_docs view with descending=true works properly now. fix COUCHDB-109

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739170 13f79535-47bb-0310-9956-ffa450edef68

13 years agoswap 412 ad 409 error codes. fixes COUCHDB-226
John Christopher Anderson [Fri, 30 Jan 2009 03:50:44 +0000 (03:50 +0000)] 
swap 412 ad 409 error codes. fixes COUCHDB-226

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739157 13f79535-47bb-0310-9956-ffa450edef68

13 years agoPOST to create docs returns a Location header. fixes COUCHDB-8
John Christopher Anderson [Fri, 30 Jan 2009 01:40:38 +0000 (01:40 +0000)] 
POST to create docs returns a Location header. fixes COUCHDB-8

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739133 13f79535-47bb-0310-9956-ffa450edef68

13 years agoReplacement of inets with ibrowse. Fixes COUCHDB-179 and enhances replication.
John Christopher Anderson [Thu, 29 Jan 2009 22:15:48 +0000 (22:15 +0000)] 
Replacement of inets with ibrowse. Fixes COUCHDB-179 and enhances replication.
Thanks Jason Davies and Adam Kocoloski for the fix, Maximillian Dornseif for reporting.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@739047 13f79535-47bb-0310-9956-ffa450edef68

13 years agoImproved etag handling for show funcs and db_doc requests; main.js cleanup (baby...
John Christopher Anderson [Tue, 27 Jan 2009 20:46:39 +0000 (20:46 +0000)] 
Improved etag handling for show funcs and db_doc requests; main.js cleanup (baby steps); null doc allowed for show funcs

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@738237 13f79535-47bb-0310-9956-ffa450edef68

13 years agoRename 'Custom query' in Futon to 'Temporary view', and add a warning about the use...
Christopher Lenz [Mon, 26 Jan 2009 22:10:58 +0000 (22:10 +0000)] 
Rename 'Custom query' in Futon to 'Temporary view', and add a warning about the use of temp views.

git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@737893 13f79535-47bb-0310-9956-ffa450edef68