Promotions approval percentage
See original GitHub issueShould the calculated approval percentage for campaigns be Approved / (Approved + Abstained + Opposed)
or Approved / (Approved + Opposed)
? I noticed that the !promotions
command includes abstains in the total, but the progress bar on the web page doesn’t. Which is the preferred method?
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Promotion Timing, Zones, and Opportunity
BPZ percentages may be up to 10 percent of the total recommended number of promotions, or 15 percent with SECDEF approval. Promotion zones...
Read more >Secret to getting your promotions approved
Secret to getting your promotions approved · How to debunk the "No business need for the promotion"? · There could be a better...
Read more >Fusion Compensation: Salary: Promotion Approval Fails ...
For the Promotion approval rule, need a rule that allows for promotions to be submitted for approval with the salary percentage null or...
Read more >Enlisted Promotions
SUPPLEMENTAL PROMOTION CONSIDERATION · Only applicable to promotion eligible Airmen to the grades of E7, E8, and E9 who either did not meet...
Read more >How to understand special promotional financing offers on ...
A zero percent interest promotion will not add interest based on the balance of your promotional purchase during the promotional period.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yes, the math should be
Approved / (Approved + Opposed)
- abstained are not taken into account at all. The frontend is using the correct logic - see the bars on https://mod.gg/promotions for an example.For example, a campaign with 4 upvotes, 5 neutral votes, and 1 downvote should be at 80%.
Looking at picking this up. Current code seems to summarise as
round((approved / total) * 100)
, are we agreed onrround((approved / ((approved + opposed) - abstained)) * 100)
?See below for evidence: