Skip to content
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

Roll back missionRunCounter feature #1398

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions backend/api/Controllers/Models/MissionRunResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@ public class MissionRunResponse
{
public string Id { get; set; }

public int MissionRunCount { get; set; }

public string? MissionId { get; set; }

public string? IsarMissionId { get; set; }
Expand Down Expand Up @@ -52,7 +50,6 @@ public MissionRunResponse() { }
public MissionRunResponse(MissionRun mission)
{
Id = mission.Id;
MissionRunCount = mission.MissionRunCount;
MissionId = mission.MissionId;
IsarMissionId = mission.IsarMissionId;
Name = mission.Name;
Expand Down
7 changes: 0 additions & 7 deletions backend/api/Database/Context/InitDb.cs
Original file line number Diff line number Diff line change
Expand Up @@ -567,7 +567,6 @@ private static List<MissionRun> GetMissionRuns()
var missionRun1 = new MissionRun
{
Name = "Placeholder Mission 1",
MissionRunCount = 1,
Robot = robots[0],
InstallationCode = areas[0].Installation!.InstallationCode,
Area = areas[0],
Expand All @@ -581,7 +580,6 @@ private static List<MissionRun> GetMissionRuns()
var missionRun2 = new MissionRun
{
Name = "Placeholder Mission 2",
MissionRunCount = 2,
Robot = robots[1],
InstallationCode = areas[1].Installation!.InstallationCode,
Area = areas[1],
Expand All @@ -596,7 +594,6 @@ private static List<MissionRun> GetMissionRuns()
var missionRun3 = new MissionRun
{
Name = "Placeholder Mission 3",
MissionRunCount = 3,
Robot = robots[2],
InstallationCode = areas[1].Installation!.InstallationCode,
Area = areas[1],
Expand All @@ -610,7 +607,6 @@ private static List<MissionRun> GetMissionRuns()
var missionRun4 = new MissionRun
{
Name = "Placeholder Mission 4",
MissionRunCount = 4,
Robot = robots[2],
InstallationCode = areas[1].Installation.InstallationCode,
Area = areas[1],
Expand All @@ -628,7 +624,6 @@ private static List<MissionRun> GetMissionRuns()
var missionRun5 = new MissionRun
{
Name = "Placeholder Mission 5",
MissionRunCount = 5,
Robot = robots[2],
InstallationCode = areas[1].Installation.InstallationCode,
Area = areas[1],
Expand All @@ -646,7 +641,6 @@ private static List<MissionRun> GetMissionRuns()
var missionRun6 = new MissionRun
{
Name = "Placeholder Mission 6",
MissionRunCount = 6,
Robot = robots[2],
InstallationCode = areas[1].Installation.InstallationCode,
Area = areas[1],
Expand All @@ -664,7 +658,6 @@ private static List<MissionRun> GetMissionRuns()
var missionRun7 = new MissionRun
{
Name = "Some failed tasks",
MissionRunCount = 7,
Robot = robots[2],
InstallationCode = areas[1].Installation.InstallationCode,
Area = areas[1],
Expand Down
3 changes: 0 additions & 3 deletions backend/api/Database/Models/MissionRun.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ namespace Api.Database.Models
{
public class MissionRun : SortableRecord
{
[Required]
public int MissionRunCount { get; set; }

private MissionStatus _status;

private IList<MissionTask> _tasks;
Expand Down
Loading
Loading