-
Notifications
You must be signed in to change notification settings - Fork 117
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
feat: add filter
option to de-duplicate blocks in car files
#557
Merged
Merged
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
1a5b288
Skips exporting duplicate blocks as they are encountered
jtsmedley c626c1f
Remove semicolons
jtsmedley 0366cec
Add allowDuplicateBlocks flag
jtsmedley f71ddce
Merge branch 'ipfs:main' into fix-duplicate-blocks
jtsmedley 4829512
Add test for duplicate CAR export
jtsmedley edf1d1f
Merge remote-tracking branch 'origin/fix-duplicate-blocks' into fix-d…
jtsmedley 7cd15af
Use cuckoo filter
jtsmedley 81b6784
Use external optional blockFilter instead
jtsmedley ee666f0
Switch to string comparison for better compatibility with existing sets
jtsmedley 6ec36e3
Merge branch 'main' into fix-duplicate-blocks
jtsmedley 927558e
Small Suggestion Changes
jtsmedley 48d97fa
Small Suggestion Changes
jtsmedley 42b80fe
Merge branch 'main' into fix-duplicate-blocks
jtsmedley d4fa7ec
Fix Dep-Check
jtsmedley 57e789f
Merge branch 'main' into fix-duplicate-blocks
jtsmedley 8ffefe2
Apply suggestions from code review for types
jtsmedley e5fdaf2
Update packages/car/src/index.ts
jtsmedley 55af4eb
Convert blockFilter to use bytes
jtsmedley File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
@achingbrain should we merge these two tests and export one with filter and one without?
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.
There's a lot of duplication, it'd be good to either define it as a fixture or put it in a new test file that has a setup block that creates the car exporters, writer, etc.