ibm-watson-data-lab / sodashboard

Frontend for Stackoverflow Questions Data
1 stars 0 forks source link

add an event when a question is assigned and sync to Cloudant - issue #106 #112

Closed glynnbird closed 6 years ago

glynnbird commented 6 years ago

When a question is assigned, a new document is added to the events PouchDB database, like so:

{
  "_id": "53f6bd4f-849e-46d8-b7e5-d41923dc22fe",
  "_rev": "1-4ed835465fa844baa1ee5a5680f4f742",
  "type": "assigned",
  "assigned_by": "U7844223OL",
  "assigned_by_name": "stevie.smith",
  "assigned_at": "2018-02-08T08:53:58.518Z",
  "assigned_to": "U0Z2VN3EU",
  "assigned_to_name": "glynn.bird",
  "notified": false
}

PouchDB is then instructed to replicate to the remote Cloudant events database as a one-off operation.

To test:

glynnbird commented 6 years ago

sure. That should be easy enough