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.
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:
-
https://github.com/discourse/discourse/commit/96aca6d7e6dc3c05d761098a19f96b82d2783b1c ;and
-
https://github.com/discourse/discourse/commit/b49c662aa4724b4761927a7ceb31bcda35f9880a
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.