chunks to upload to chunks manager with boolean workaround #1430
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.
Description
I've made things a little more generic by moving out the
chunks to upload
from theiterative upload
function. The result satisfies both theupload
and theacc pac
code that uses it.I plan to work this further and rearrange the way
chunk manager
andfiles api
is used. but this will do for now.messaging
code will be tidied upThis will affect code by @bochaco a little bit
Functions should do only one thing, so I've removed the counter feature inside the
iterative uploader
. That's a cool way to do it but the need for a counter has been decoupled.I know it's not good to use the boolean flag for a different response. We're going to need to bridge the gap between
acc pac
andupload
over its mutual use ofiterative upload
. They are using it in the same way yet require a separate response. Polymorphism / a builder can solve this. Either way the boolean flag we have will have to do for now as things aren't that complicated.