anyweez / newsy

News content extraction.
0 stars 0 forks source link

Allow users to submit feedback by clicking on labels #2

Closed anyweez closed 7 years ago

anyweez commented 7 years ago

Current design is to create a new /api/feedback endpoint that accepts post requests. Payload would include:

correct: <bool>
docid: <string>
label: <string>     // example: countries
value: <string>    // example: costa rica

Pings are sent from the frontend and keyed off of docid, label, and value. Should be able to tabulate

To compare two implementations, mirror tables in rethinkdb and label using separate processes. compute state for each. TODO: make scripts to help with this last part.

anyweez commented 7 years ago

Success! Also serving them back to the frontend.