Skip to content

Commit 6e07168

Browse files
aeshubandchiind
authored andcommitted
Set AnalysisTypes on MissionTask in ToMissionRunTask
The AnalysisTypes field on MissionTask was added alongside the analysis-types model but was never populated when a TaskDefinition template was turned into a runtime MissionTask. The data was only copied onto the nested Inspection. This left MissionTask.AnalysisTypes silently empty for every scheduled mission, and meant the round-trip back through ToMissionTaskDefinition zeroed out the analysis types. Populate both fields from the same source so the model is internally consistent.
1 parent de7c14f commit 6e07168

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

backend/api/Database/Models/TaskDefinition.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ public MissionTask ToMissionRunTask()
6363
RobotPose = this.RobotPose,
6464
Status = TaskStatus.NotStarted,
6565
IsarZoomDescription = this.ZoomDescription,
66+
AnalysisTypes = this.AnalysisTypes,
6667
Inspection = new Inspection(
6768
this.SensorType,
6869
this.TargetPosition,

0 commit comments

Comments
 (0)