# Question Answer Plugin

**URL:** https://meta.discourse.org/t/question-answer-plugin/56032
**Category:** Plugin
**Tags:** deprecated
**Created:** [January 19, 2017, 4:43pm UTC](https://meta.discourse.org/t/question-answer-plugin/56032 "2017-01-19T16:43:47Z")
**Posts on this page:** 1
**Showing post:** 119

<div class="post-metadata">

### Author: ![angus](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/angus/32/341715_2.png) [@angus](https://meta.discourse.org/u/angus)
#### Post date: [July 13, 2018, 3:16am UTC](https://meta.discourse.org/t/question-answer-plugin/56032/119 "2018-07-13T03:16:13Z")

</div>

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](https://github.com/angusmcleod/discourse-question-answer/commit/257a6c680b8855790ae70b950654f91686e727a8)

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

 ![Screenshot%20at%20Jul%2013%2011-34-49](https://global.discourse-cdn.com/meta/original/3X/4/b/4bfb64ec29e9cfcc70da7f018ea37a0293008e7b.png) ![Screenshot%20at%20Jul%2013%2013-06-10](https://global.discourse-cdn.com/meta/original/3X/0/4/04a2b95502b5d00834445a9b3a58f4bd9e183a06.png)

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

- [Remove legacy vote post action code. (#6009) · discourse/discourse@96aca6d · GitHub](https://github.com/discourse/discourse/commit/96aca6d7e6dc3c05d761098a19f96b82d2783b1c) ;and

- [Remove the clean up migration for vote post action · discourse/discourse@b49c662 · GitHub](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.

---

_[View the full topic](https://meta.discourse.org/t/question-answer-plugin/56032)._
