couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Shorin (JIRA)" <>
Subject [jira] [Created] (COUCHDB-2265) Better EventSource feed for server database updates
Date Fri, 04 Jul 2014 20:31:34 GMT
Alexander Shorin created COUCHDB-2265:

             Summary: Better EventSource feed for server database updates
                 Key: COUCHDB-2265
             Project: CouchDB
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: HTTP Interface
            Reporter: Alexander Shorin

Currently, CouchDB returns the next output for {{http://localhost:5984/_db_updates?feed=eventsource}}

data: {"type":"created","db_name":"db"}

data: {"type":"updated","db_name":"db"}

data: {"type":"ddoc_updated","db_name":"{<<\"db\">>,<<\"_design/fauxton\">>}"}

data: {"type":"deleted","db_name":"db"}


- db_name for ddoc_updated event is broken. It have to be split into two fields db_name and
ddoc_id (and sure not to be serialized Erlang term)
- field type inside data is incorrect since EventSource has special field event on root level
for that

How it have to be:

event: created
data: {"db_name":"db"}

event: updated
data: {"db_name":"db"}

event: ddoc_updated
data: {"db_name":" "db", "ddoc_id": "_design/fauxton"}

event: deleted
data: {"db_name":"db"}


This message was sent by Atlassian JIRA

View raw message