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

[uss_qualifier] NET0450 check that observed details (from a display provider) correspond to injected ones #220

Merged
merged 1 commit into from
Sep 26, 2023

Conversation

Shastick
Copy link
Contributor

@Shastick Shastick commented Sep 22, 2023

Also validate details that are observed through the DP.

Note that this PR also replaces a few dashes (from – to -)

@Shastick Shastick force-pushed the net0450-details branch 13 times, most recently from c207680 to 2a38645 Compare September 25, 2023 08:38
@Shastick Shastick changed the title [uss_qualifier] NET0450 check that observed details (on a display provider) correspond to injected ones [uss_qualifier] NET0450 check that observed details (from a display provider) correspond to injected ones Sep 25, 2023
Copy link
Member

@BenjaminPelletier BenjaminPelletier left a comment

Choose a reason for hiding this comment

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

Looks good -- just one comment.

operator_location,
Altitude.w84m(value=operator_altitude_value),
operator_altitude.get("altitude_type"),
injected_details.get("operator_location"),
Copy link
Member

Choose a reason for hiding this comment

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

Are we sure the "operator_location" key exists at this point? If not, this may raise a KeyError exception which will catastrophically stop the scenario. Same comment for other .get's without default values.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fair concern: there's no guarantee beyond "it currently works", I'll see that I add meaningful defaults.

@Shastick
Copy link
Contributor Author

Added meaningful defaults to the .get()'s around the changes in this PR.

@BenjaminPelletier BenjaminPelletier merged commit ca7c10e into interuss:main Sep 26, 2023
9 checks passed
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