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

[mock_uss] save a notification when telemetry is too sparse #922

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Shastick
Copy link
Contributor

@Shastick Shastick commented Feb 4, 2025

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.

@@ -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):
Copy link
Contributor

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 ?

Copy link
Contributor Author

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:
Copy link
Contributor

Choose a reason for hiding this comment

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

same condition as before

@Shastick Shastick force-pushed the mock-uss-slow-update-notif branch 2 times, most recently from 39c0fa3 to e6012cc Compare February 4, 2025 12:03
@Shastick Shastick requested a review from the-glu February 4, 2025 12:03
@Shastick
Copy link
Contributor Author

Shastick commented Feb 4, 2025

Aligned with #911 (also did a pass of import optimization with my IDE which explains some of the reordering in the imports)

@Shastick Shastick force-pushed the mock-uss-slow-update-notif branch from 89bf5d0 to 0115f26 Compare February 5, 2025 09: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