Skip to content

Conversation

@BenjaminPelletier
Copy link
Member

Currently, the flight_planning client keeps track of planned flights which need to be cleaned up, but then those planned flights are sometimes not removed from the set of flights to be cleaned up so there is unnecessary cleanup. This PR fixes this issue, and also fixes the response codes from mock_uss when deleting a flight to clean it up.

Since cleanup_flights was not really adding any value and merely added a level of indirection to try_end_flight and generating an unnecessary duplicate of the PlanningActivityError, it is removed and replaced with direct calls to try_end_flight.

@BenjaminPelletier BenjaminPelletier marked this pull request as ready for review September 26, 2025 21:53
Copy link
Contributor

@barroco barroco left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small suggestion

log(notes)
return unsuccessful(notes), 500
# Activity result is Failed, but we executed the activity successfully
return unsuccessful(notes), 200
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The changes in this file may be good candidates for a note in the NEXT_RELEASE_NOTE.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the change to 500 from 200 was relatively recent and this just fixes a bug rather than changing an intended behavior

@BenjaminPelletier BenjaminPelletier merged commit 1af55a1 into interuss:main Sep 29, 2025
21 checks passed
@BenjaminPelletier BenjaminPelletier deleted the fix-duplicate-cleanup branch September 29, 2025 17:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants