couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j..@apache.org
Subject couchdb-global-changes git commit: enable feed=eventsource for /_db_updates [Forced Update!]
Date Sun, 17 Apr 2016 17:33:18 GMT
Repository: couchdb-global-changes
Updated Branches:
  refs/heads/2665-db-updates-eventsource e4cf3bf61 -> f9cd1d9eb (forced update)


enable feed=eventsource for /_db_updates

The fix is adding `eventsource` to the allowed options to
/_db_updates?feed=eventsource, since the underlying implementation
is a global database’s _changes feed.

Closes COUCHDB-2665


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

Branch: refs/heads/2665-db-updates-eventsource
Commit: f9cd1d9eb9ed26f7275c33c38623d0a50e9ac44d
Parents: e55de37
Author: Jan Lehnardt <jan@apache.org>
Authored: Sun Apr 17 19:31:22 2016 +0200
Committer: Jan Lehnardt <jan@apache.org>
Committed: Sun Apr 17 19:32:55 2016 +0200

----------------------------------------------------------------------
 src/global_changes_httpd.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-global-changes/blob/f9cd1d9e/src/global_changes_httpd.erl
----------------------------------------------------------------------
diff --git a/src/global_changes_httpd.erl b/src/global_changes_httpd.erl
index 1d50fb9..07a7353 100644
--- a/src/global_changes_httpd.erl
+++ b/src/global_changes_httpd.erl
@@ -57,10 +57,10 @@ handle_global_changes_req(#httpd{method='GET'}=Req) ->
             chttpd:etag_respond(Req, Etag, fun() ->
                 fabric:changes(Db, fun changes_callback/2, Acc#acc{etag=Etag}, Options1)
             end);
-        Feed when Feed =:= "continuous"; Feed =:= "longpoll" ->
+        Feed when Feed =:= "continuous"; Feed =:= "longpoll"; Feed =:= "eventsource" ->
             fabric:changes(Db, fun changes_callback/2, Acc, Options1);
         _ ->
-            Msg = <<"Supported `feed` types: normal, continuous, longpoll">>,
+            Msg = <<"Supported `feed` types: normal, continuous, longpoll, eventsource">>,
             throw({bad_request, Msg})
     end;
 handle_global_changes_req(Req) ->


Mime
View raw message