-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove Area #2015
base: main
Are you sure you want to change the base?
Remove Area #2015
Conversation
🔔 Changes in database folder detected 🔔 |
Will now give warnings on Return to Home missions if they fail becuase we dont have an Area, awaiting Return Home functionallity to be removed aswell. |
0552a91
to
1e99cac
Compare
1e99cac
to
8029def
Compare
@@ -397,7 +339,6 @@ [.. missionInspectionAreaNames] | |||
Name = missionDefinition.Name, | |||
InspectionFrequency = scheduledMissionQuery.InspectionFrequency, | |||
InstallationCode = scheduledMissionQuery.InstallationCode, | |||
InspectionArea = area.InspectionArea, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Won't this cause the created MissionRun to always have no inspection area?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It either uses a existing missionDefinition or creates a new mission definition here. Since this is the only way new mission definitions are created, and since we don't give the mission definition an inspection area, none of the mission definitions and mission runs will have inspection areas. And since the robots get inspection areas from the first mission they run, they also won't have inspection areas.
if ( | ||
missionRun.Robot.CurrentInspectionArea != null | ||
&& !await localizationService.RobotIsOnSameInspectionAreaAsMission( | ||
missionRun.Robot.Id, | ||
missionRun.InspectionArea!.Id | ||
) | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change should ideally be in a separate commit
Ready for review checklist: