Question Answer Plugin

Ok, an update here. Sorry for the delay, this caught me at an inconvenient time.

I’ve just merged an update that:

  • Updates the plugin to use various custom_fields to store vote data and integrates that into a functionality identical post vote action UX.

  • Migrates existing post vote actions to the new custom_fields.

https://github.com/angusmcleod/discourse-question-answer/commit/257a6c680b8855790ae70b950654f91686e727a8

Example topic: https://discourse.angusmcleod.com.au/t/can-you-solve-aldhelms-lorica/59

This should work seamlessly for anyone who did not upgrade Discourse between these commits:

If you did upgrade Discourse between these commits, after upgrading Discourse and this plugin the QA functionality will work fine, but all votes in existing QA topics will be ‘0’.

The best idea I’ve come up with so far to retrieve vote data for those that upgraded between those commits is to search the production logs for instances of PostAction create, filtering by type and reducing by PostAction destroy (filtered by type). If anyone else has a better idea, let me know.

Rebuilding data from server logs is something of a last ditch effort, but nonetheless if you upgraded in specified period and you’re interested in this solution, please let me know.

3 Likes