-
Notifications
You must be signed in to change notification settings - Fork 20
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
[mock_uss] save a notification when telemetry is too sparse #922
base: main
Are you sure you want to change the base?
Conversation
@@ -114,6 +115,9 @@ def ridsp_create_test(test_id: str) -> Tuple[str, int]: | |||
|
|||
with db as tx: | |||
tx.tests[test_id] = record | |||
for notif in check_and_generate_slow_update_notification(record.flights): |
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.
Shouldn't we keep it consistent between #911 and there ?
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.
That would make sense. I can add the create_notifications_if_needed
function as well with the specifics of the present PR.
""" | ||
if not self.telemetry or len(self.telemetry) == 1: | ||
return None | ||
if len(self.telemetry) == 1: |
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.
same condition as before
39c0fa3
to
e6012cc
Compare
Aligned with #911 (also did a pass of import optimization with my IDE which explains some of the reordering in the imports) |
a6a3204
to
89bf5d0
Compare
89bf5d0
to
0115f26
Compare
This is a building block for the scenario that will cover Net0040, for which notifications must be sent to the operator when the telemetry update rate is insufficient.