/[Apache-SVN]/couchdb/trunk/src/couchdb/couch_httpd_view.erl
ViewVC logotype

Log of /couchdb/trunk/src/couchdb/couch_httpd_view.erl

Parent Directory Parent Directory | Revision Log Revision Log


Links to HEAD: (view) (annotate)
Sticky Revision:

Revision 882903 - (view) (annotate) - [select for diffs]
Modified Sat Nov 21 13:43:43 2009 UTC (3 days, 15 hours ago) by kocolosk
File length: 25152 byte(s)
Diff to previous 880951 (colored)
code improvements from tidier. Patch by Kostis Sagonas. COUCHDB-570

Revision 880951 - (view) (annotate) - [select for diffs]
Modified Mon Nov 16 20:42:14 2009 UTC (8 days, 8 hours ago) by davisp
File length: 25198 byte(s)
Diff to previous 815984 (colored)
Fix a couple typos in the source.

paramter -> parameter
InitalBuild -> InitialBuild

Thanks David Coallier and Glenn Rempe for pointing them out.


Revision 815984 - (view) (annotate) - [select for diffs]
Modified Wed Sep 16 22:04:18 2009 UTC (2 months, 1 week ago) by jchris
File length: 25156 byte(s)
Diff to previous 814921 (colored)
include_docs now take an _id (as well as a _rev) in the emitted value, to load docs other than the one doing the emitting. This means you can have one doc list a set of other docs to load in a single query. Enjoy!

Revision 814921 - (view) (annotate) - [select for diffs]
Modified Mon Sep 14 23:21:41 2009 UTC (2 months, 1 week ago) by jasondavies
File length: 25073 byte(s)
Diff to previous 814893 (colored)
Fix speling.

Revision 814893 - (view) (annotate) - [select for diffs]
Modified Mon Sep 14 22:33:05 2009 UTC (2 months, 1 week ago) by damien
File length: 25074 byte(s)
Diff to previous 814828 (colored)
View refactoring and addition of raw collationoption. Significant performance improvements in view indexer.

Revision 814828 - (view) (annotate) - [select for diffs]
Modified Mon Sep 14 20:20:50 2009 UTC (2 months, 1 week ago) by jchris
File length: 25108 byte(s)
Diff to previous 814778 (colored)
finish committing my changes adventure. pardon the dust.

Revision 814778 - (view) (annotate) - [select for diffs]
Modified Mon Sep 14 19:03:36 2009 UTC (2 months, 1 week ago) by jchris
File length: 25113 byte(s)
Diff to previous 814078 (colored)
removed _all_docs_by_seq in favor of _changes

Revision 814078 - (view) (annotate) - [select for diffs]
Modified Fri Sep 11 23:23:07 2009 UTC (2 months, 1 week ago) by damien
File length: 25260 byte(s)
Diff to previous 805201 (colored)
Refactoring of endkey code in views and btrees. End key functionaility is now handled inside the btree code, simplfying calling code and making it trivial to add new collation options

Revision 805201 - (view) (annotate) - [select for diffs]
Modified Mon Aug 17 23:04:28 2009 UTC (3 months, 1 week ago) by jan
File length: 26761 byte(s)
Diff to previous 804552 (colored)
allow list function and view function to be in different design docs, patch by Mark Hammond, closes COUCHDB-446

Revision 804552 - (view) (annotate) - [select for diffs]
Modified Sun Aug 16 02:37:57 2009 UTC (3 months, 1 week ago) by davisp
File length: 26747 byte(s)
Diff to previous 803690 (colored)
Update our Erlang VM requirement to 5.6.5 (R12B5). Also fixes the remaining two
compiler warnings.


Revision 803690 - (view) (annotate) - [select for diffs]
Modified Wed Aug 12 20:07:06 2009 UTC (3 months, 1 week ago) by kocolosk
File length: 26746 byte(s)
Diff to previous 803663 (colored)
rollback _conflicts view patch

Revision 803663 - (view) (annotate) - [select for diffs]
Modified Wed Aug 12 18:48:25 2009 UTC (3 months, 1 week ago) by jan
File length: 26914 byte(s)
Diff to previous 803358 (colored)
add native /db/_conflicts view, patch by Adam Kocolosk, closes COUCHDB-462

Revision 803358 - (view) (annotate) - [select for diffs]
Modified Wed Aug 12 03:20:21 2009 UTC (3 months, 1 week ago) by jchris
File length: 26746 byte(s)
Diff to previous 800938 (colored)
recloses COUCHDB-4 (view etags) thanks to Matt Goodall for the tests. keep 'em coming!

Revision 800938 - (view) (annotate) - [select for diffs]
Modified Tue Aug 4 19:50:46 2009 UTC (3 months, 3 weeks ago) by damien
File length: 26664 byte(s)
Diff to previous 794057 (colored)
Initial check-in of OAuth and cookie authentication.

Revision 794057 - (view) (annotate) - [select for diffs]
Modified Tue Jul 14 20:21:39 2009 UTC (4 months, 1 week ago) by nslater
File length: 26644 byte(s)
Diff to previous 792771 (colored)
wheeeeeeee

Revision 792771 - (view) (annotate) - [select for diffs]
Modified Fri Jul 10 00:59:36 2009 UTC (4 months, 2 weeks ago) by jchris
File length: 26662 byte(s)
Diff to previous 792013 (colored)
Apply patch from Benoit Chesneau's COUCHDB-404

Restores 0.8-style /db/_view view urls and adds an option to render views and documents as other formats like:

/db/docid?show=blog/post
/db/_view/blog/posts?list=index

We're retaining the longer _design/appname paths as well because that resource is valuable for reverse proxies and rewriters.


Revision 792013 - (view) (annotate) - [select for diffs]
Modified Wed Jul 8 01:33:00 2009 UTC (4 months, 2 weeks ago) by davisp
File length: 24828 byte(s)
Diff to previous 791350 (colored)
Fixes COUCHDB-389

Provide an offset calculation for all view responses.

Thanks Brad Anderson.


Revision 791350 - (view) (annotate) - [select for diffs]
Modified Mon Jul 6 00:33:50 2009 UTC (4 months, 2 weeks ago) by nslater
File length: 24259 byte(s)
Diff to previous 786337 (colored)
trimmed trailing whitespace

Revision 786337 - (view) (annotate) - [select for diffs]
Modified Thu Jun 18 23:43:40 2009 UTC (5 months, 1 week ago) by davisp
File length: 24304 byte(s)
Diff to previous 774180 (colored)
Fixes COUCHDB-383 - Ignore extra URL parameters.

No one opposed the switch so here it is.


Revision 774180 - (view) (annotate) - [select for diffs]
Modified Wed May 13 03:33:31 2009 UTC (6 months, 1 week ago) by davisp
File length: 24592 byte(s)
Diff to previous 773387 (colored)
Closes COUCHDB-334 - Add JSONP support to CouchDB

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


Revision 773387 - (view) (annotate) - [select for diffs]
Modified Sun May 10 19:20:23 2009 UTC (6 months, 2 weeks ago) by jchris
File length: 24507 byte(s)
Diff to previous 773319 (colored)
refactor JSON body error handling, also consolidate update_docs JSON response generation.

Revision 773319 - (view) (annotate) - [select for diffs]
Modified Sun May 10 09:11:52 2009 UTC (6 months, 2 weeks ago) by jchris
File length: 24628 byte(s)
Diff to previous 770782 (colored)
Refactor the make_view_fold_function stuff. Added a proper Acc to both map and reduce view folds. Cleaned up some pattern matchers.

Revision 770782 - (view) (annotate) - [select for diffs]
Modified Fri May 1 18:28:16 2009 UTC (6 months, 3 weeks ago) by davisp
File length: 24334 byte(s)
Diff to previous 769792 (colored)
Exporting the main function for sending view responses.


Revision 769792 - (view) (annotate) - [select for diffs]
Modified Wed Apr 29 14:07:09 2009 UTC (6 months, 3 weeks ago) by kocolosk
File length: 24304 byte(s)
Diff to previous 768573 (colored)
Closes COUCHDB-320 (ignore Content-Type in _temp_view).  Thanks B. Candler

Revision 768573 - (view) (annotate) - [select for diffs]
Modified Sat Apr 25 18:29:15 2009 UTC (7 months ago) by davisp
File length: 24489 byte(s)
Diff to previous 767543 (colored)
Resolves COUCHDB-331 - Allow reduce=true&include_docs=false


Revision 767543 - (view) (annotate) - [select for diffs]
Modified Wed Apr 22 14:41:47 2009 UTC (7 months ago) by davisp
File length: 24430 byte(s)
Diff to previous 766383 (colored)
Refactoring the view URL parameter parsing.


Revision 766383 - (view) (annotate) - [select for diffs]
Modified Sat Apr 18 20:15:44 2009 UTC (7 months, 1 week ago) by jchris
File length: 25143 byte(s)
Diff to previous 766373 (colored)
refactor main.js into many files and improve show/list error handling

Revision 766373 - (view) (annotate) - [select for diffs]
Modified Sat Apr 18 18:34:31 2009 UTC (7 months, 1 week ago) by davisp
File length: 25733 byte(s)
Diff to previous 766347 (colored)
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.


Revision 766347 - (view) (annotate) - [select for diffs]
Modified Sat Apr 18 16:16:26 2009 UTC (7 months, 1 week ago) by davisp
File length: 25299 byte(s)
Diff to previous 765819 (colored)
Fixes COUCHDB-322

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


Revision 765819 - (view) (annotate) - [select for diffs]
Modified Fri Apr 17 00:47:50 2009 UTC (7 months, 1 week ago) by jchris
File length: 24834 byte(s)
Diff to previous 756413 (colored)
output errors differently during chunked responses (view and list)

Revision 756413 - (view) (annotate) - [select for diffs]
Modified Fri Mar 20 10:58:52 2009 UTC (8 months ago) by jchris
File length: 24214 byte(s)
Diff to previous 755926 (colored)
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.

Revision 755926 - (view) (annotate) - [select for diffs]
Modified Thu Mar 19 11:20:36 2009 UTC (8 months, 1 week ago) by jchris
File length: 23911 byte(s)
Diff to previous 753448 (colored)
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.

Revision 753448 - (view) (annotate) - [select for diffs]
Modified Fri Mar 13 22:15:34 2009 UTC (8 months, 1 week ago) by jchris
File length: 23050 byte(s)
Diff to previous 751813 (colored)
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

Revision 751813 - (view) (annotate) - [select for diffs]
Modified Mon Mar 9 19:52:54 2009 UTC (8 months, 2 weeks ago) by jchris
File length: 23033 byte(s)
Diff to previous 747679 (colored)
merge design doc resource branch. breaking changes to _view query paths. 
closes COUCHDB-280

Revision 747679 - (view) (annotate) - [select for diffs]
Modified Wed Feb 25 06:34:03 2009 UTC (8 months, 4 weeks ago) by jchris
File length: 22971 byte(s)
Diff to previous 746691 (colored)
Support for reduce views in _list. closes COUCHDB-260. Thanks Jason Davies.

Revision 746691 - (view) (annotate) - [select for diffs]
Modified Sun Feb 22 13:50:38 2009 UTC (9 months ago) by jan
File length: 21193 byte(s)
Diff to previous 744747 (colored)
Add runtime statistics -- without EUnit tests for now.

Revision 744747 - (view) (annotate) - [select for diffs]
Modified Sun Feb 15 20:36:53 2009 UTC (9 months, 1 week ago) by jchris
File length: 21051 byte(s)
Diff to previous 744240 (colored)
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

Revision 744240 - (view) (annotate) - [select for diffs]
Modified Fri Feb 13 20:52:28 2009 UTC (9 months, 1 week ago) by jchris
File length: 19772 byte(s)
Diff to previous 744210 (colored)
apply COUCHDB-252.
Allow _list functions to signal that iteration of the view should cease.
Thanks davisp.

Revision 744210 - (view) (annotate) - [select for diffs]
Modified Fri Feb 13 18:33:16 2009 UTC (9 months, 1 week ago) by jchris
File length: 19583 byte(s)
Diff to previous 742217 (colored)
Apply COUCHDB-251. 
Allow _list functions to accept arbitrary GET parameters.
Thanks Paul Davis.

Revision 742217 - (view) (annotate) - [select for diffs]
Modified Mon Feb 9 00:57:26 2009 UTC (9 months, 2 weeks ago) by jchris
File length: 19337 byte(s)
Diff to previous 739866 (colored)
allow format query param to override accept headers for _list and _show

Revision 739866 - (view) (annotate) - [select for diffs]
Modified Sun Feb 1 22:21:09 2009 UTC (9 months, 3 weeks ago) by jchris
File length: 19234 byte(s)
Diff to previous 739169 (colored)
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

Revision 739169 - (view) (annotate) - [select for diffs]
Modified Fri Jan 30 04:41:12 2009 UTC (9 months, 3 weeks ago) by jchris
File length: 19123 byte(s)
Diff to previous 737859 (colored)
cleanup long lines

Revision 737859 - (view) (annotate) - [select for diffs]
Modified Mon Jan 26 21:22:18 2009 UTC (9 months, 4 weeks ago) by cmlenz
File length: 19028 byte(s)
Diff to previous 736876 (colored)
Change _slow_view back to _temp_view, as discussed on the mailing list (see http://markmail.org/message/o44cafucgwlpudov).

Revision 736876 - (view) (annotate) - [select for diffs]
Modified Fri Jan 23 00:53:05 2009 UTC (10 months ago) by jchris
File length: 19028 byte(s)
Diff to previous 736837 (colored)
View list functions can stream views in any format. See list_views test for details.

Revision 736837 - (view) (annotate) - [select for diffs]
Modified Thu Jan 22 22:42:45 2009 UTC (10 months ago) by jchris
File length: 17794 byte(s)
Diff to previous 733305 (colored)
change update=false to stale=ok

Revision 733305 - (view) (annotate) - [select for diffs]
Modified Sat Jan 10 17:53:37 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 17665 byte(s)
Diff to previous 733116 (colored)
include_docs error handling

Revision 733116 - (view) (annotate) - [select for diffs]
Modified Fri Jan 9 19:03:22 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 17537 byte(s)
Diff to previous 732420 (colored)
fixed _all_docs view to use the correct PassedEndFun for binary docid sorting

Revision 732420 - (view) (annotate) - [select for diffs]
Modified Wed Jan 7 18:33:51 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 17293 byte(s)
Diff to previous 732407 (colored)
friendly error message on use of count instead of limit

Revision 732407 - (view) (annotate) - [select for diffs]
Modified Wed Jan 7 17:33:31 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 17165 byte(s)
Diff to previous 731159 (colored)
apply patch to fix include docs q param parsing

Revision 731159 - (view) (annotate) - [select for diffs]
Modified Sun Jan 4 02:28:08 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 17287 byte(s)
Diff to previous 731144 (colored)
change count to limit in view query params

Revision 731144 - (view) (annotate) - [select for diffs]
Modified Sun Jan 4 01:01:33 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 17287 byte(s)
Diff to previous 728764 (colored)
Rename _temp_views to _slow_views. Any clients who were using temp views are encouraged not to use slow views, and instead transition to design documents (or running the views on the client).

Revision 728764 - (view) (annotate) - [select for diffs]
Modified Mon Dec 22 20:35:50 2008 UTC (11 months ago) by damien
File length: 17287 byte(s)
Diff to previous 727156 (colored)
Fix for leaked file handles when not explicitly closed, added file stats code for checking for leaked file handles, and some refactoring of the view api.

Revision 727156 - (view) (annotate) - [select for diffs]
Modified Tue Dec 16 21:19:03 2008 UTC (11 months, 1 week ago) by jchris
File length: 17346 byte(s)
Diff to previous 726143 (colored)
fix COUCHDB-177. thanks Paul Carey and Paul Davis

Revision 726143 - (view) (annotate) - [select for diffs]
Modified Fri Dec 12 22:32:42 2008 UTC (11 months, 1 week ago) by joes
File length: 17329 byte(s)
Diff to previous 724946 (colored)
move couchdb to tlp

Revision 724946 - (view) (annotate) - [select for diffs]
Modified Wed Dec 10 01:13:17 2008 UTC (11 months, 2 weeks ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 17329 byte(s)
Diff to previous 713914 (colored)
view group state gen_server. thanks damien and davisp.

Revision 713914 - (view) (annotate) - [select for diffs]
Modified Fri Nov 14 03:47:21 2008 UTC (12 months, 1 week ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 17306 byte(s)
Diff to previous 706744 (colored)
fix for _all_docs_by_seq with include_docs

Revision 706744 - (view) (annotate) - [select for diffs]
Modified Tue Oct 21 20:06:37 2008 UTC (13 months ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 17219 byte(s)
Diff to previous 706735 (colored)
fix for COUCHDB-139 keys available when reduce=false

Revision 706735 - (view) (annotate) - [select for diffs]
Modified Tue Oct 21 19:49:41 2008 UTC (13 months ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 17012 byte(s)
Diff to previous 706717 (colored)
fix for COUCHDB-138 include_docs=true&reduce=false

Revision 706717 - (view) (annotate) - [select for diffs]
Modified Tue Oct 21 18:44:33 2008 UTC (13 months ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 16810 byte(s)
Diff to previous 706714 (colored)
Removed debugging statement. 

Revision 706714 - (view) (annotate) - [select for diffs]
Modified Tue Oct 21 18:43:42 2008 UTC (13 months ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 16866 byte(s)
Diff to previous 701847 (colored)
Fix for COUCHDB-99. Certain Skipped KeyValue pairs weren't being assembled into final values before being reduces.

Revision 701847 - (view) (annotate) - [select for diffs]
Modified Sun Oct 5 18:54:36 2008 UTC (13 months, 2 weeks ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 16853 byte(s)
Diff to previous 701814 (colored)
include_docs option adds a doc member to view rows with the latest _rev of the document (or the _rev specified in the row value)

Revision 701814 - (view) (annotate) - [select for diffs]
Modified Sun Oct 5 16:00:15 2008 UTC (13 months, 2 weeks ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 15370 byte(s)
Diff to previous 701749 (colored)
added multi-key requests to _view, _temp_view, and _all_docs (with help from davisp)

Revision 701749 - (view) (annotate) - [select for diffs]
Modified Sun Oct 5 05:54:10 2008 UTC (13 months, 2 weeks ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 10950 byte(s)
Diff to previous 701748 (colored)
refactor couch_httpd_view to use output_map_view

Revision 701748 - (view) (annotate) - [select for diffs]
Modified Sun Oct 5 05:32:28 2008 UTC (13 months, 2 weeks ago) by jchris
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 11839 byte(s)
Diff to previous 701174 (colored)
remove unnecessary negative count feature

Revision 701174 - (view) (annotate) - [select for diffs]
Added Thu Oct 2 16:14:45 2008 UTC (13 months, 3 weeks ago) by damien
Original Path: incubator/couchdb/trunk/src/couchdb/couch_httpd_view.erl
File length: 13786 byte(s)
Added files forgotten in the httpd refactoring checkin.

This form allows you to request diffs between any two revisions of this file. For each of the two "sides" of the diff, enter a numeric revision.

  Diffs between and
  Type of Diff should be a

apache@apache.org
ViewVC Help
Powered by ViewVC 1.1.2