Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Re^6: Reputation: -4 (+-0.5 -3.5)

by ikegami (Patriarch)
on Jul 22, 2019 at 18:11 UTC ( #11103157=note: print w/replies, xml ) Need Help??


in reply to Re^5: Reputation: -4 (+-0.5 -3.5)
in thread Reputation: -4 (+-0.5 -3.5)

the DB wont store any other info.

It surely stores who cast the votes (to prevent duplicate votes). As such, there are two ways to update reputation as a vote is cast:

  • Increment or decrement it as appropriate.
  • Calculate it from the votes in the database.

RMGir was pointing out the former approach was used; the latter would make the effect of the bug transient.

Actually, the latter would avoid the bug completely.

Replies are listed 'Best First'.
Re^7: Reputation: -4 (+-0.5 -3.5)
by LanX (Saint) on Jul 22, 2019 at 19:26 UTC
    > It surely stores who cast the votes (to prevent duplicate votes).

    yes, good point

    > Actually, the latter would avoid the bug completely.

    Everything::Experience.pm is not trivial to understand or to change

    and I'm suspecting a recent change to introduce this problem which can't be fixed without changing the data model.

    Cheers Rolf
    (addicted to the Perl Programming Language :)
    Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11103157]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (4)
As of 2023-12-03 14:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (20 votes). Check out past polls.

    Notices?