Skip to content

Commit

Permalink
Roll back missionRunCounter feature
Browse files Browse the repository at this point in the history
  • Loading branch information
MuhammadUsama-afk-equinor committed Feb 7, 2024
1 parent e263d89 commit c55e999
Show file tree
Hide file tree
Showing 8 changed files with 1,400 additions and 32 deletions.
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

0 comments on commit c55e999

Please sign in to comment.