Open serundeputy opened 7 years ago
I'm not sure if we need the fields on the question
content type. Right now score
is being calculated on the fly.
We'll see if this becomes too expensive of a calculation and if storing it on the content type would result in faster page loads?
If so how to ensure that the fields on the question
content type are in sync with the qaf_events
table?
Why a custom solution and not use votingapi? With an existing solution it would be easy to add votes to comments as well as nodes, and there are any number of existing vote-collection widgets already available.
No really good reason. I just didn't want to inherit any cruft and solve a problem in as streamlined, backdrop native, way as possible.
That doesn't mean votingapi is bad, and may be a better solution here, but I'd like to have specific reasons to port it be they speed or more functionality, or both.
I just didn't want to inherit any cruft
I hear that, but ...
but I'd like to have specific reasons to port it
:)
Those are good reasons :)
but i've already written the functionality is now just a matter of data storage for performance (which is more performant the flattened table or storing it on the node? that requires testing).
I also would like if qa_forum
is self contained solution for users that want stackoverflow type thing and depend on as little contrib as possible. I've been on the userland end of just install this module and this module, and this module needs this lib and this module ... which sometimes just results in frustration especially for beginners.
is now just a matter of data storage for performance
problems likely already solved with existing solutions... ;)
I've been on the userland end of just install this module and this module, and this module needs this lib and this module...
I hear that!!! Just keep in mind that the more features you add, the fewer adopters you'll find you have, as each feature is likely to turn someone away. Don't do too much! :) Keep an eye out for easy places where you can say "if you also want X feature use Y module".
Add fields to
question
content type inqa_forum.install
:up_votes
(total ofup_votes
)down_votes
(total ofdown_votes
)score
(sum ofup_votes
+down_votes
)These should be hidden fields.