Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Many fixes & improvements #15

Merged
merged 17 commits into from Jul 22, 2020
Merged

Many fixes & improvements #15

merged 17 commits into from Jul 22, 2020

Conversation

dsevillamartin
Copy link
Member

@dsevillamartin dsevillamartin commented Jul 9, 2020

Improvements to performance, resolving issues, better votes calculation for posts, discussions & users...

Pusher & votes modal are currently broken.

Changed type column in DB to an integer to allow SUM through SQL directly.


composer require fof/gamification=dev-ds/improvements

Votes w/ value > 0 are upvotes, < 0 are downvotes. Right now only 1 & -1 are used, but this introduces the possibility of weighed votes & improves performance by allowing SQL to perform the SUM.

Permissions have been moved to the posts instead of the discussion. A migration should keep current configurations working.
Last commit removed it on the frontend & simplified the backend to simply use existing bound Pusher and post & user IDs
@KyrneDev
Copy link
Contributor

How are you doing on this? Is it ready for review?

@dsevillamartin
Copy link
Member Author

I think it's ready for review, just a draft so its not merged yet.

@dsevillamartin dsevillamartin marked this pull request as ready for review July 21, 2020 23:52
@dsevillamartin dsevillamartin merged commit 6d2e4a0 into master Jul 22, 2020
@dsevillamartin dsevillamartin deleted the ds/improvements branch July 22, 2020 12:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants