11

I guess as a side effect of the fix for New reputation is too verbose: upvote/unupvote, upvote again, we now get empty sections on the reputation page;

enter image description here

8
  • 2
    Yes, there's no sane way to avoid this, not without dramatically increasing database load for a very rare case.
    – Nick Craver Mod
    Commented Mar 9, 2012 at 15:50
  • 4
    @NickCraver - Sure there is, a one-liner of javascript to hide the row of the content of the score line is 0 (or if there are no children, or whatever). Not everything needs to be fixed on the backend.
    – eykanal
    Commented Apr 12, 2012 at 12:53
  • @eykanal - A 0 may be +15 and -15, both valid changes which isn't fetched or known to the page at this time...fetching that is the "dramatically increasing database load" I mentioned above. It's not as simple as you suppose...trust me.
    – Nick Craver Mod
    Commented Apr 12, 2012 at 12:58
  • 4
    @NickCraver Would it be feasible for the details partial view to render a message explaining there's nothing to show? Something like "No actions resulted in an appreciable change" (but less awkwardly worded) in the case where it didn't actually generate any rows. I get why you can't know in advance, but I think the empty space comes off as a bit weird to people.
    – Tim Stone
    Commented Apr 12, 2012 at 13:08
  • 1
    @NickCraver - So, I see that the loaded-body row isn't populated until the triangle is clicked. However, when clicked, it's easy to tell whether it's empty or not... it's a check whether the child table tbl-reputation has any rows. I guess you could, on page load, automatically populate the table for rows with "total rep = 0", detect empty ones, and not show them, but at the cost (as you said) of a few more database hits per pageload, which is a non-trivial tradeoff.
    – eykanal
    Commented Apr 12, 2012 at 13:20
  • @NickCraver - by the way, I don't think this is as rare as you think... I have two 0-rep rows on my screen, and it seems that the two other folks here also see a few on their rep page.
    – eykanal
    Commented Apr 12, 2012 at 13:21
  • 5
    @TimStone: "Your reputation changed, but it has no effect" "Your reputation was eaten by a Grue" "Nothing to look at here" "0-Damage dealt to your reputation" "Reputation changes were reflected by the magic shield" "Hi, I slipped and accidentally deleted some records from the database, but everything should be fine now, you won't miss this reputation" Commented Apr 12, 2012 at 13:29
  • 1
    @Tim - aye, that we can do, I'll take a peek here in a bit
    – Nick Craver Mod
    Commented Apr 12, 2012 at 14:22

1 Answer 1

8

After the next build, you'll get a message instead of that blank area upon expanding: "There were no net reputation changes on this day"

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .