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

Fix bug with votes count #1585

Merged
merged 1 commit into from
Feb 10, 2019
Merged

Conversation

Martii
Copy link
Member

@Martii Martii commented Feb 10, 2019

  • Script up to down or down to up improperly counts script votes and messes up good/bad bar. Shouldn't affect Rating in Script or Group but will recheck a few.
  • At the same time move to MVC (Currently isolated to Script e.g. parallel change)... Fixes TODO in routes.js
  • Some styleguide.md conformance
  • Simplify some views. e.g. turn some things off when they aren't able to be used. Save b/w and possibly improve understanding for most
  • Still would prefer returning err (aErr) with libs but that's probably a separate PR since there are still inconsistent return callback parms
  • Some filling in for Site sluggishness #1548
  • Some additions for Decide which of the current console messages are to be production/development/debug environment #430. e.g. we want to know if a DB action fails currently

NOTES:


Reversal of a portion of the PR due to transcription error... no mitigation needed at this time. Still MVC.

* Script up to down or down to up improperly counts script votes and messes up good/bad bar. Shouldn't affect Rating in Script or Group but will recheck a few.
* At the same time move to MVC *(Currently isolated to Script e.g. parallel change)*... Fixes TODO in routes.js
* Some styleguide.md conformance
* Simplify some views. e.g. turn some things off when they aren't able to be used. Save b/w and possibly improve understanding for most
* Still would prefer returning `err` *(aErr)* with libs but that's probably a separate PR since there are still inconsistent return callback parms
* Some filling in for OpenUserJS#1548
* Some additions for OpenUserJS#430. e.g. we want to know if a DB action fails currently

NOTES:
* Structure mirrored and altered from `flagsLib`
Applies to OpenUserJS#262 and Active Maintainer override (Sorry sizzle but needed to be done so it doesn't mess up other areas down the line)
* Will run through scripts and mitigate any script `votes` counts.
@Martii Martii added bug You've guessed it... this means a bug is reported. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge. CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. labels Feb 10, 2019
@Martii Martii merged commit bf885af into OpenUserJS:master Feb 10, 2019
@Martii Martii deleted the Issue-262voteMove branch February 10, 2019 23:22
return;
} else if (aVoteModel.vote !== vote) {
aVoteModel.vote = vote;
aScript.rating += vote ? 2 : -2;
Copy link
Member Author

@Martii Martii Feb 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug of missing inverse the votes count.

if (aVote.vote !== aCasting) {
aVote.vote = aCasting;
aScript.rating += (aCasting ? 2 : -2);
aScript.votes = aScript.votes + (aCasting ? 2 : -2);
Copy link
Member Author

@Martii Martii Feb 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The bug fix of missing inverse the votes count.

Martii added a commit to Martii/OpenUserJS.org that referenced this pull request Feb 10, 2019
Martii added a commit that referenced this pull request Feb 10, 2019
Martii added a commit to Martii/OpenUserJS.org that referenced this pull request Feb 12, 2019
* Transcription error from inline to MVC. My bad.
* Notate in model

Applies to OpenUserJS#262 and post OpenUserJS#1585
@Martii Martii mentioned this pull request Feb 12, 2019
Martii added a commit that referenced this pull request Feb 12, 2019
* Transcription error from inline to MVC. My bad.
* Notate in model

Applies to #262 and post #1585

Auto-merge
@Martii Martii removed the bug You've guessed it... this means a bug is reported. label Feb 12, 2019
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 2, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CODE Some other Code related issue and it should clearly describe what it is affecting in a comment. enhancement Something we do have implemented already but needs improvement upon to the best of knowledge.
Development

Successfully merging this pull request may close these issues.

1 participant