You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The process of finalizing a regatta, whether via the user pane or the "autofinalize script", does not reset RP cache information for the teams. This can lead to some teams in the regatta being labeled as dt_rp_complete = null incorrectly. This can be even more confusing because when vising the "Missing RP" page, Techscore properly indicates that all teams have complete RP data.
Reproducing
Create a regatta with 2 races and 2 teams, A and B.
Enter RP information for only the first race for team A. Enter RP information for both races for team B.
Add finishes for first race only
Finalize the regatta, which will remove the unsailed second race
After step 2, team A has an incomplete RP (dt_rp_complete = null) because there is no entry for race 2. Meanwhile, team B has a complete RP (dt_rp_complete = 1) because it has entries for both races. After step 4, when the second race is removed from the regatta, team A's RP is now technically complete, since it includes data for all available races. However, because dt_rp_complete was not reset as part of finalizing the regatta, it still indicates incompleteness.
Resolution
Reset team's RP cache when finalizing a regatta. E.g.:
$rpManager->resetCacheComplete($team);
The text was updated successfully, but these errors were encountered:
Summary
The process of finalizing a regatta, whether via the user pane or the "autofinalize script", does not reset RP cache information for the teams. This can lead to some teams in the regatta being labeled as
dt_rp_complete = null
incorrectly. This can be even more confusing because when vising the "Missing RP" page, Techscore properly indicates that all teams have complete RP data.Reproducing
After step 2, team A has an incomplete RP (
dt_rp_complete = null
) because there is no entry for race 2. Meanwhile, team B has a complete RP (dt_rp_complete = 1
) because it has entries for both races. After step 4, when the second race is removed from the regatta, team A's RP is now technically complete, since it includes data for all available races. However, becausedt_rp_complete
was not reset as part of finalizing the regatta, it still indicates incompleteness.Resolution
Reset team's RP cache when finalizing a regatta. E.g.:
The text was updated successfully, but these errors were encountered: