-
Notifications
You must be signed in to change notification settings - Fork 919
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(share): Implement ODSreader #1377
Conversation
Why did none of the CI run on this PR? |
@walldiss if you create a PR that is based on another PR, it is helpful to target that PRs branch so the diff is only what you've done. otherwise you should leave the PR in draft until it is ready for review. |
@MSevey Is it possible to change target from fork branch to main repo later without recreating PR? At least right now I can't set target to fork, only main repo branches. We briefly discussed the stacking PR issue with @distractedm1nd and thought it would be nice to have feature branches for epics. |
@MSevey the issue is that the branches are not merged yet, so they still exist on our forks. It also means that when we merge, it gets merged into a branch that needs to again be merged into main. Any good solutions? There is a lot of tooling around stacked PRs but github makes them kind of annoying to review |
Do less stacked PRs 😜 |
you can change the target branch by clicking so it is better to just put this in draft until call the dependant code is merged. |
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.
Awesome :) and great test.
I've updated logic to greatly reduce amount of allocation by skipping extra slice allocation on every lead read. It is a bit harder to read but should be multiple times more performant now. |
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.
excited for this
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.
Super clean. Was a joy to read the code and the test! Requesting changes due to ODSReader
signature and some other nits
f52fd5e
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.
Good job!
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
Apply review suggestions: - rescale Intn range - small renames & refactoring
Co-authored-by: Ryan <ryanford@poluglottos.com>
Co-authored-by: Ryan <ryanford@poluglottos.com>
Co-authored-by: rene <41963722+renaynay@users.noreply.github.com>
- add header length in error
- update ODSReader to use io.Reader - add reconstruction test - utilise provided container as much as possible before returning it
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.
lfg
Based on #1232,
The diff with original base PR is
ods.go
andods_test.go
.