-
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
Add stop all robots button #1012
Conversation
🔔 Changes in database folder detected 🔔 |
backend/api.test/EndpointTest.cs
Outdated
// The code below does not work since the request above runs in another thread which may not complete before the code below | ||
/* | ||
string filterQuery = $"?Statuses=Ongoing&Statuses=Pending&PageSize=100&OrderBy=DesiredStartTime"; | ||
var currentMissionResponse = await _client.GetAsync("/missions/runs" + filterQuery); | ||
Assert.True(currentMissionResponse.IsSuccessStatusCode); | ||
|
||
var missionRuns = await currentMissionResponse.Content.ReadFromJsonAsync<List<MissionRun>>(_serializerOptions); | ||
Assert.True(missionRuns != null); | ||
Assert.NotEmpty(missionRuns); | ||
var newMission = missionRuns.Find(m => m.Tasks != null && JsonSerializer.Serialize(m.Tasks[0].RobotPose.Position) == | ||
JsonSerializer.Serialize(testPosition)); | ||
Assert.NotNull(newMission); | ||
*/ |
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.
Remove comments
public async Task<ActionResult> ClearInstallationEmergencyState( | ||
[FromRoute] string robotId) | ||
{ |
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.
Change this to clear emergency state for all robots
I am closing this because main has changed to much and I have rebased main but would also have to rebase the aestene/new-branch-test. Continues in #1045 |
No description provided.