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

filter: fix end second parsing #1269

Merged

Conversation

james-rms
Copy link
Collaborator

@james-rms james-rms commented Nov 12, 2024

Changelog

  • Fixed: the -e argument to mcap filter will be interpreted properly again.

Docs

None.

Description

The last change to filter mistakenly swapped the nanos and seconds arguments to parseTimestampArgs for the filter end time.

Testing

  • Tested mcap filter -s 10 -e 1000 manually, previously failed, now works.

Fixes: #1268

Copy link

linear bot commented Nov 12, 2024

@jtbandes
Copy link
Member

@james-rms thoughts on @bennetthardwick's comment here? #1268 (comment)

@james-rms james-rms force-pushed the james/fg-9465-mcap-filter-with-e-s-not-behaving-correctly branch from b3651fc to 24561c5 Compare November 13, 2024 01:15
@james-rms james-rms force-pushed the james/fg-9465-mcap-filter-with-e-s-not-behaving-correctly branch from 24561c5 to a3b6203 Compare November 13, 2024 01:15
@james-rms
Copy link
Collaborator Author

@jtbandes that one is a red herring - it does nothing. I've deleted it in this PR.

@jtbandes
Copy link
Member

Any tests we can add for this?

@james-rms james-rms merged commit 77ad4b2 into main Nov 13, 2024
23 checks passed
@james-rms james-rms deleted the james/fg-9465-mcap-filter-with-e-s-not-behaving-correctly branch November 13, 2024 05:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

mcap filter with -e, -s not behaving correctly
2 participants