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

Log of /couchdb/trunk/src/couchdb/couch_httpd_show.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 (5 days, 9 hours ago) by kocolosk
File length: 19636 byte(s)
Diff to previous 831502 (colored)
code improvements from tidier. Patch by Kostis Sagonas. COUCHDB-570

Revision 831502 - (view) (annotate) - [select for diffs]
Modified Sat Oct 31 01:17:04 2009 UTC (3 weeks, 5 days ago) by davisp
File length: 19709 byte(s)
Diff to previous 830353 (colored)
List functions weren't returning OS processes.

Needed to add a call to couch_query_server:stop_map_doc/1 to return
outstanding OS processes back to the query servers pools. This was
causing some awesome errors by keeping the query_servers PID linked to
the socket PID, which caused errors in apparently unrelated requests as
the query_servers daemon was restarted on config changes.

Also needed to move where the query servers were requested in list
functions involving reduces. Map only lists were fine though.


Revision 830353 - (view) (annotate) - [select for diffs]
Modified Tue Oct 27 21:40:25 2009 UTC (4 weeks, 2 days ago) by damien
File length: 19634 byte(s)
Diff to previous 829456 (colored)
Make it harder to accidently terminate chunked resposnes by requiring callers to explicity call last_chunk(Req) and ignoring send_chunk calls with no data.

Revision 829456 - (view) (annotate) - [select for diffs]
Modified Sat Oct 24 21:53:02 2009 UTC (4 weeks, 5 days ago) by davisp
File length: 19625 byte(s)
Diff to previous 829419 (colored)
Fixed the test for couch_stats_aggregator.


Revision 829419 - (view) (annotate) - [select for diffs]
Modified Sat Oct 24 17:42:22 2009 UTC (4 weeks, 5 days ago) by jchris
File length: 19624 byte(s)
Diff to previous 826692 (colored)
Update functions can now handle any HTTP verb, excepting GET and HEAD

Revision 826692 - (view) (annotate) - [select for diffs]
Modified Mon Oct 19 14:49:50 2009 UTC (5 weeks, 3 days ago) by davisp
File length: 19889 byte(s)
Diff to previous 814893 (colored)
Fix bug when lists use two design docs.

The language was being pulled from the wrong doc in the pair. Also removed some
unused variables. Added a test in list_views.js


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: 20011 byte(s)
Diff to previous 814078 (colored)
View refactoring and addition of raw collationoption. Significant performance improvements in view indexer.

Revision 814078 - (view) (annotate) - [select for diffs]
Modified Fri Sep 11 23:23:07 2009 UTC (2 months, 2 weeks ago) by damien
File length: 20172 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: 20125 byte(s)
Diff to previous 803685 (colored)
allow list function and view function to be in different design docs, patch by Mark Hammond, closes COUCHDB-446

Revision 803685 - (view) (annotate) - [select for diffs]
Modified Wed Aug 12 19:58:14 2009 UTC (3 months, 2 weeks ago) by jchris
File length: 19396 byte(s)
Diff to previous 803358 (colored)
Introduces native Erlang query servers. Closes COUCHDB-377

Thanks Mark Hammond and Paul Davis for doing most of the work, and Michael McDaniel for the inspiration.

There is still room for improvement on the APIs exposed to the Erlang views, as well as likely a whole lot of work to be done to increase parallelism. But the important part now is that we have native Erlang views.

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

Revision 803325 - (view) (annotate) - [select for diffs]
Modified Tue Aug 11 23:38:43 2009 UTC (3 months, 2 weeks ago) by jan
File length: 19346 byte(s)
Diff to previous 803245 (colored)
silence compiler warnings, don't use unused variables

Revision 803245 - (view) (annotate) - [select for diffs]
Modified Tue Aug 11 18:50:08 2009 UTC (3 months, 2 weeks ago) by jchris
File length: 19361 byte(s)
Diff to previous 800938 (colored)
Initial commit of _update handler. Thanks to Paul Davis, Jason Davies for code and others for discussion.

The _update handler accepts POSTs to paths like: /db/_design/foo/_update/bar and PUTs which include docids, like: /db/_design/foo/_update/bar/docid

The function signature:

function(doc, req) {
  doc.a_new_field = req.query.something;
  return [doc, "<h1>added something to your doc</h1>"];
}

The tests in update_documents.js are fairly complete and include examples of bumping a counter, changing only a single field, parsing from (and returning) XML, and creating new documents.


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: 16986 byte(s)
Diff to previous 799835 (colored)
Initial check-in of OAuth and cookie authentication.

Revision 799835 - (view) (annotate) - [select for diffs]
Modified Sat Aug 1 11:16:36 2009 UTC (3 months, 3 weeks ago) by jan
File length: 16840 byte(s)
Diff to previous 795687 (colored)
enable include_docs=true for list functions, patch by Mark Hammond, closes COUCHDB-444

Revision 795687 - (view) (annotate) - [select for diffs]
Modified Mon Jul 20 04:11:36 2009 UTC (4 months, 1 week ago) by jchris
File length: 16797 byte(s)
Diff to previous 794057 (colored)
Initial checkin of _changes filters. The prime weak-spot for this approach is that it maintains an OS-process per connected filtered _changes consumer. I'm pretty sure we'll be able to work around this without changing the API, but it'll involve a lot of OS-process bookkeeping. Those enhancements should generally improve show & list performance as well. Punting on them for now, first wanted to get _changes filters implemented so people could give feedback.

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: 17122 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: 17140 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: 17306 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, 3 weeks ago) by nslater
File length: 17104 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: 17149 byte(s)
Diff to previous 784601 (colored)
Fixes COUCHDB-383 - Ignore extra URL parameters.

No one opposed the switch so here it is.


Revision 784601 - (view) (annotate) - [select for diffs]
Modified Sun Jun 14 18:45:49 2009 UTC (5 months, 1 week ago) by jchris
File length: 17173 byte(s)
Diff to previous 773319 (colored)
merge list-iterator branch to trunk. changes JavaScript _list API

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: 18420 byte(s)
Diff to previous 767543 (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 767543 - (view) (annotate) - [select for diffs]
Modified Wed Apr 22 14:41:47 2009 UTC (7 months ago) by davisp
File length: 18504 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: 18299 byte(s)
Diff to previous 759588 (colored)
refactor main.js into many files and improve show/list error handling

Revision 759588 - (view) (annotate) - [select for diffs]
Modified Sat Mar 28 21:02:41 2009 UTC (7 months, 4 weeks ago) by jan
File length: 17792 byte(s)
Diff to previous 753448 (colored)
always load _conflicts in _show functions

Revision 753448 - (view) (annotate) - [select for diffs]
Modified Fri Mar 13 22:15:34 2009 UTC (8 months, 2 weeks ago) by jchris
File length: 17783 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: 17791 byte(s)
Diff to previous 750969 (colored)
merge design doc resource branch. breaking changes to _view query paths. 
closes COUCHDB-280

Revision 750969 - (view) (annotate) - [select for diffs]
Modified Fri Mar 6 16:45:45 2009 UTC (8 months, 3 weeks ago) by jchris
File length: 17697 byte(s)
Diff to previous 750565 (colored)
validate reduce view list queries, make query_parse_error response code 400
thanks Jan, thanks Jason Davies. closes COUCHDB-283

Revision 750565 - (view) (annotate) - [select for diffs]
Modified Thu Mar 5 19:47:25 2009 UTC (8 months, 3 weeks ago) by jchris
File length: 17605 byte(s)
Diff to previous 749902 (colored)
allow multi-key POST requests for _list. 
closes COUCHDB-269. thanks Jason Davies

Revision 749902 - (view) (annotate) - [select for diffs]
Modified Wed Mar 4 04:45:10 2009 UTC (8 months, 3 weeks ago) by jchris
File length: 13451 byte(s)
Diff to previous 749852 (colored)
refactor show 404 handling doc-loading special case out of couch_httpd_db.erl

Revision 749852 - (view) (annotate) - [select for diffs]
Modified Wed Mar 4 00:15:07 2009 UTC (8 months, 3 weeks ago) by jan
File length: 13387 byte(s)
Diff to previous 748754 (colored)
allow for handling 404s in document show functions

Revision 748754 - (view) (annotate) - [select for diffs]
Modified Sat Feb 28 00:04:10 2009 UTC (8 months, 4 weeks ago) by jchris
File length: 13340 byte(s)
Diff to previous 747679 (colored)
supply etags for reduce view lists

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

Revision 745076 - (view) (annotate) - [select for diffs]
Modified Tue Feb 17 14:01:51 2009 UTC (9 months, 1 week ago) by damien
File length: 10335 byte(s)
Diff to previous 744747 (colored)
Put file ref_counting into it's own module, to make the speed of opening an already open database faster (by not waiting on file pending operations, particularly fsync).

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: 10334 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: 9711 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: 9618 byte(s)
Diff to previous 738237 (colored)
Apply COUCHDB-251. 
Allow _list functions to accept arbitrary GET parameters.
Thanks Paul Davis.

Revision 738237 - (view) (annotate) - [select for diffs]
Modified Tue Jan 27 20:46:39 2009 UTC (9 months, 4 weeks ago) by jchris
File length: 9602 byte(s)
Diff to previous 736876 (colored)
Improved etag handling for show funcs and db_doc requests; main.js cleanup (baby steps); null doc allowed for show funcs

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

Revision 733576 - (view) (annotate) - [select for diffs]
Modified Mon Jan 12 01:48:36 2009 UTC (10 months, 2 weeks ago) by jchris
File length: 5410 byte(s)
Copied from: couchdb/trunk/src/couchdb/couch_httpd_form.erl revision 733550
Diff to previous 730016 (colored)
rename _form to _show and move the funcs in the design doc to design.show.docs

Revision 730016 - (view) (annotate) - [select for diffs]
Modified Mon Dec 29 23:43:10 2008 UTC (10 months, 3 weeks ago) by jchris
Original Path: couchdb/trunk/src/couchdb/couch_httpd_form.erl
File length: 5097 byte(s)
Copied from: couchdb/branches/form/src/couchdb/couch_httpd_form.erl revision 730015
Diff to previous 729447 (colored)
merge form branch to trunk

Revision 729447 - (view) (annotate) - [select for diffs]
Modified Thu Dec 25 21:54:32 2008 UTC (11 months ago) by jchris
Original Path: couchdb/branches/form/src/couchdb/couch_httpd_form.erl
File length: 5097 byte(s)
Diff to previous 729443 (colored)
better error handling for missing docs and design docs

Revision 729443 - (view) (annotate) - [select for diffs]
Added Thu Dec 25 21:33:38 2008 UTC (11 months ago) by jchris
Original Path: couchdb/branches/form/src/couchdb/couch_httpd_form.erl
File length: 5107 byte(s)
The initial checkin of the form branch

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