HWBOT
  1. HWBOT
  2. HWBOT-658

Competition points are not recalculated ?

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: hwbot v4.6.12
    • Labels:
      None

      Description

      I'm trying to recalculate the competition points for Live competitions (GOOC WW 2010 and GOOC EU 2010). When I open the competition and delete all entries in the contest_rank table, the competition ranking is recalculated, but the competition points are not.

      Eg: http://hwbot.org/competition/gooc_ww_2010/ => matose should be getting 50 UCP for winning the competition.

        Activity

        Hide
        Pieter-Jan Plaisier added a comment -
        Same problem occurs with normal competitions like http://hwbot.org/competition/gbt_classic_challenge_2/

        The ranking was incorrect, so I removed all entries from the contest_rank table. Also re-opened the competition and then had the engine check for competitions that should be closed. Now the competition is closed, but the competition points (UCP) are not updated. So users are not receiving the correct UCP.

        On a sidenote, for that particular competition there's another bug too: "11888 more people recieved 1.0 pts for participating in this competition... ". There are not 11888 people that competed.
        Show
        Pieter-Jan Plaisier added a comment - Same problem occurs with normal competitions like http://hwbot.org/competition/gbt_classic_challenge_2/ The ranking was incorrect, so I removed all entries from the contest_rank table. Also re-opened the competition and then had the engine check for competitions that should be closed. Now the competition is closed, but the competition points (UCP) are not updated. So users are not receiving the correct UCP. On a sidenote, for that particular competition there's another bug too: "11888 more people recieved 1.0 pts for participating in this competition... ". There are not 11888 people that competed.
        Hide
        Build Server added a comment -
        Integrated in HWBOT v4 #2559 (See [http://dev.hwbot.org/job/HWBOT%20v4/2559/])
            HWBOT-658

        Competition points are not recalculated ?

        - Fixed the "10k+ more people received 1.0 pts form participating" bug
        - The ranking seems to work just fine but it screwed up on this contest. Perhaps messing with the database did something funky.

        Steps needed to effectively recalculate the rankings (shouldn't be done manually, this might get added later as a feature to the admin console):
        - open the competition
        - delete all entries in the contest_rank table for the competition
        - delete the custom_rank entry for the competition
        - delete all the rank_entry entries for the custom_rank

        - Also fixed some i18n bugs

        dennis :
        Files :
        * /hwbot/trunk/src/main/java/org/hwbot/web/actions/CompetitionController.java
        * /hwbot/trunk/src/main/webapp/WEB-INF/views/submit/submit.result.application.rev2.jsp
        * /hwbot/trunk/src/main/java/org/hwbot/facade/ResultFacadeImpl.java
        * /hwbot/trunk/src/main/java/org/hwbot/facade/UserFacadeImpl.java
        * /hwbot/trunk/src/main/webapp/WEB-INF/views/submit/submissionInfoRanking.jsp
        Show
        Build Server added a comment - Integrated in HWBOT v4 #2559 (See [ http://dev.hwbot.org/job/HWBOT%20v4/2559/ ])      HWBOT-658 Competition points are not recalculated ? - Fixed the "10k+ more people received 1.0 pts form participating" bug - The ranking seems to work just fine but it screwed up on this contest. Perhaps messing with the database did something funky. Steps needed to effectively recalculate the rankings (shouldn't be done manually, this might get added later as a feature to the admin console): - open the competition - delete all entries in the contest_rank table for the competition - delete the custom_rank entry for the competition - delete all the rank_entry entries for the custom_rank - Also fixed some i18n bugs dennis : Files : * /hwbot/trunk/src/main/java/org/hwbot/web/actions/CompetitionController.java * /hwbot/trunk/src/main/webapp/WEB-INF/views/submit/submit.result.application.rev2.jsp * /hwbot/trunk/src/main/java/org/hwbot/facade/ResultFacadeImpl.java * /hwbot/trunk/src/main/java/org/hwbot/facade/UserFacadeImpl.java * /hwbot/trunk/src/main/webapp/WEB-INF/views/submit/submissionInfoRanking.jsp

          People

          • Assignee:
            Dennis Devriendt
            Reporter:
            Pieter-Jan Plaisier
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: