couchdb-dev mailing list archives

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

     [ https://issues.apache.org/jira/browse/COUCHDB-2265?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexander Shorin updated COUCHDB-2265:
--------------------------------------

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

{code}
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"}

{code}

Issues:
- 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:

{code}
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"}

{code}

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

{code}
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"}

{code}

Issues:
- 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:

{code}
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"}

{code}


> Better EventSource feed for server database updates
> ---------------------------------------------------
>
>                 Key: COUCHDB-2265
>                 URL: https://issues.apache.org/jira/browse/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}}
request:
> {code}
> 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"}
> {code}
> Issues:
> - 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:
> {code}
> 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"}
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message