KatrinaHoffert / EatSafe

An app for finding safe places to eat
Other
2 stars 2 forks source link

Create ratings formula and function #33

Closed KatrinaHoffert closed 9 years ago

KatrinaHoffert commented 9 years ago
  1. Come up with a formula for ratings. See the forum board post by Mike for a start. You will have to decide the exact weights, and should implement the weights in such a way that it's easy to change them. Don't worry about their exact values, as you can come back and tweak them later.
  2. Implement rating: String in Location, which returns a letter grade (eg, A+, B-, etc) according to the previously mentioned formula. Return "N/A" if a rating cannot be calculated (ie, there's somehow no inspections).
  3. Modify the display location page to call this function where there's currently a hard coded "N/A". The page should check the rating an apply a different CSS style to each letter (so "A+", "A", and "A-" all would have the same CSS rule applied to them). This is for the purpose of applying colors (and possibly other styles?). Choose appropriate colors (green = A, red = F, etc).
  4. Create a simple, static view describing the rating formula. Be sure to mention the weights (should use the values directly, so that there's only one place to change the weights) and shortfalls of the ratings in general (eg, the fact that our violations are binary pass-fail values and don't tell us the severity of the violation). Also mention a general disclaimer that the values don't necessarily represent the current situation at the location (may be outdated).
  5. Add a link to open that page next to the rating (see the original mockup).
KatrinaHoffert commented 9 years ago

So... anything?

Assisting commented 9 years ago

This got done, sort of.