couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [46/50] couch commit: updated refs/heads/2080-port-cors-to-chttpd to 529339b
Date Tue, 02 Jun 2015 19:36:17 GMT
add _changes?feed=live sugar for continuous

allow `feed=live` as sugar for `continuous` which is hard to
type. PouchDB already supports `live`.

PRs for the change:
https://github.com/apache/couchdb/pull/307
https://github.com/apache/couchdb-couch/pull/40
https://github.com/apache/couchdb-chttpd/pull/28

closes COUCHDB-2237


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/d95005d4
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/d95005d4
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/d95005d4

Branch: refs/heads/2080-port-cors-to-chttpd
Commit: d95005d4399047c52b5655cae6eb558258b8e6a5
Parents: 227bd06
Author: Robert Kowalski <rok@kowalski.gd>
Authored: Sun Mar 1 15:44:25 2015 +0100
Committer: Robert Kowalski <rok@kowalski.gd>
Committed: Sun May 24 14:34:51 2015 +0200

----------------------------------------------------------------------
 src/couch_httpd_db.erl | 3 +++
 1 file changed, 3 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/d95005d4/src/couch_httpd_db.erl
----------------------------------------------------------------------
diff --git a/src/couch_httpd_db.erl b/src/couch_httpd_db.erl
index 938521c..a3f2902 100644
--- a/src/couch_httpd_db.erl
+++ b/src/couch_httpd_db.erl
@@ -1131,6 +1131,9 @@ parse_doc_query(Req) ->
 parse_changes_query(Req, Db) ->
     ChangesArgs = lists:foldl(fun({Key, Value}, Args) ->
         case {string:to_lower(Key), Value} of
+        {"feed", "live"} ->
+            %% sugar for continuous
+            Args#changes_args{feed="continuous"};
         {"feed", _} ->
             Args#changes_args{feed=Value};
         {"descending", "true"} ->


Mime
View raw message