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

[monitorlib, uss_qualifier] Add flight_planning client and resource #284

Merged

Conversation

BenjaminPelletier
Copy link
Member

This PR adds a FlightPlannerClient implementation for the flight_planning interface and adjusts the FlightPlanner uss_qualifier resource to optionally use it.

The functionality in the new client is not exercised as doing so would require a mock_uss implementation of the API (and a PR of the mock_uss implementation of the API would require the content in this PR) and putting both things in one PR would make a very large PR. So, this PR is intended to commit a draft of the client to reduce the size of the PR that adds the mock_uss implementation of the API.

@BenjaminPelletier BenjaminPelletier marked this pull request as ready for review October 22, 2023 18:22
return self._inject(flight_id, updated_flight_info, execution_style)

def try_end_flight(
self, flight_id: FlightID, execution_style: ExecutionStyle
Copy link
Contributor

Choose a reason for hiding this comment

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

execution_style is not used. Should it be removed or the value be checked to only allow IfAllowed ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Hmm, this is probably a larger question for the API. The issue is that a standard RESTful DELETE cannot carry a request body, so we can't easily deliver the execution style to this endpoint (hypothetically it could be a query argument, but that's not a very standard way of using those arguments I think). It seems like the standard upsert operation could be used to handle a graceful delete (actually cancel/close), and then this endpoint could be used only as a cleanup of last resort. Added the check you suggested in the mean time (will push after merging main after merging other PR).

@BenjaminPelletier BenjaminPelletier merged commit 8a39765 into interuss:main Oct 23, 2023
9 checks passed
@BenjaminPelletier BenjaminPelletier deleted the flight_planning-client branch October 23, 2023 18:07
github-actions bot added a commit that referenced this pull request Oct 23, 2023
…284)

* Add flight_planning client and resource

* Fix message signing

* Check execution style 8a39765
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