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

Add tool for filtering FE data in realtime. #318

Merged
merged 2 commits into from
May 29, 2024
Merged

Add tool for filtering FE data in realtime. #318

merged 2 commits into from
May 29, 2024

Conversation

axlan
Copy link
Collaborator

@axlan axlan commented May 22, 2024

New Features

  • Allow unknown MessageTypes to be specified as args
  • Tool to filter FusionEngine data over stdin

Fixes

  • Avoid error with empty fast_indexer results

@axlan axlan requested a review from adamshapiro0 May 22, 2024 22:57
@axlan axlan self-assigned this May 22, 2024
int_val = int(pattern)
result.add(MessageType(int_val))
# Allow specifying unknown MessageType values if they are preceded by 'u'.
if len(pattern) > 1 and pattern[0] == 'u':
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this u prefix really necessary? Any reason not to just treat any manually specified integer as "might be unknown and that's allowable"?

Copy link
Collaborator Author

@axlan axlan May 29, 2024

Choose a reason for hiding this comment

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

The thought was that 99% of the time an external customer would want to filter known messages and this would allow detecting typos. Other then that just assuming unknown is fine. Maybe the compromise would be to print a warning.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I think in practice this will just be an annoyance more than helpful. The majority of the time someone using this tool is probably going to be specifying message types by name, not number.

Copy link
Collaborator

@adamshapiro0 adamshapiro0 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 some minor cleanup for clarity.

@axlan axlan merged commit 1b3c436 into master May 29, 2024
14 checks passed
@axlan axlan deleted the p1-filter branch May 29, 2024 17:50
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