mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-08 21:30:57 +00:00
the aborting flag of the pass before is shown properly when the race is unscheduled if available
This commit is contained in:
1 parent
b960234f02
commit
d57d41fe35
3 files changed
+11
-8
No files matched your search
+1
-1
@@ -139,7 +139,7 @@ public class RegattaRaceStatesComponent extends SimplePanel implements Component
|
||||
numberOfFinishedRacesOfCurrentRegattaFleet++;
|
||||
} else if (entry.raceInfo.lastStatus.equals(RaceLogRaceStatus.UNSCHEDULED)) {
|
||||
//don't filter when the race is unscheduled and aborted before
|
||||
if (entry.raceInfo.lastUpperAbortingFlag == null) {
|
||||
if (!entry.raceInfo.isRaceAbortedInPassBefore) {
|
||||
racesToBeShown.remove(entry);
|
||||
}
|
||||
|
||||
|
||||
+9
-4
@@ -118,6 +118,7 @@ import com.sap.sailing.domain.common.impl.Util;
|
||||
import com.sap.sailing.domain.common.impl.Util.Pair;
|
||||
import com.sap.sailing.domain.common.impl.Util.Triple;
|
||||
import com.sap.sailing.domain.common.impl.WindSourceImpl;
|
||||
import com.sap.sailing.domain.common.racelog.RaceLogRaceStatus;
|
||||
import com.sap.sailing.domain.leaderboard.Leaderboard;
|
||||
import com.sap.sailing.domain.leaderboard.LeaderboardGroup;
|
||||
import com.sap.sailing.domain.leaderboard.MetaLeaderboard;
|
||||
@@ -523,11 +524,15 @@ public class SailingServiceImpl extends ProxiedRemoteServiceServlet implements S
|
||||
|
||||
RaceLogFlagEvent abortingFlagEvent = abortingFlagFinder.getAbortingFlagEvent();
|
||||
if (abortingFlagEvent != null) {
|
||||
raceInfoDTO.lastUpperAbortingFlag = abortingFlagEvent.getUpperFlag();
|
||||
raceInfoDTO.lastLowerAbortingFlag = abortingFlagEvent.getLowerFlag();
|
||||
raceInfoDTO.isAbortingFlagDisplayed = abortingFlagEvent.isDisplayed();
|
||||
raceInfoDTO.isRaceAbortedInPassBefore = true;
|
||||
|
||||
if (raceInfoDTO.lastStatus.equals(RaceLogRaceStatus.UNSCHEDULED)) {
|
||||
raceInfoDTO.lastUpperFlag = abortingFlagEvent.getUpperFlag();
|
||||
raceInfoDTO.lastLowerFlag = abortingFlagEvent.getLowerFlag();
|
||||
raceInfoDTO.isLastFlagDisplayed = abortingFlagEvent.isDisplayed();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
LastPublishedCourseDesignFinder courseDesignFinder = new LastPublishedCourseDesignFinder(raceLog);
|
||||
raceInfoDTO.lastCourseDesign = convertCourseDesignToRaceCourseDTO(courseDesignFinder.getLastCourseDesign());
|
||||
}
|
||||
|
||||
+1
-3
@@ -21,9 +21,7 @@ public class RaceInfoDTO implements IsSerializable {
|
||||
public RaceIdentifier raceIdentifier;
|
||||
public String pathfinderId;
|
||||
public Long gateLineOpeningTime;
|
||||
public Flags lastUpperAbortingFlag;
|
||||
public Flags lastLowerAbortingFlag;
|
||||
public boolean isAbortingFlagDisplayed;
|
||||
public boolean isRaceAbortedInPassBefore;
|
||||
// for GWT serialization
|
||||
public RaceInfoDTO() { }
|
||||
|
||||
|
||||
Reference in new issue
Block a user