-
Notifications
You must be signed in to change notification settings - Fork 147
Show progress when skipping and verifying #904
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
Conversation
|
The last commit tries to simplify the logic for progress call backs. I couldn't get it to work with references, so I'm boxing things now. If this isn't acceptable I'll revert back to using |
|
Eh, I went a different way. I removed the optionality and then added an empty impl as the "do nothing" value. |
The progress callbacks get initialized and updated even if we skip a segment. For verification, we add an extra step to the progress which is updated once verification is complete.
|
I think this is looking pretty good in general, thanks for this. We had discussed using the null object pattern like this when we originally added the callbacks, don't recall why we didn't end up doing it, but I think it's fine. One nit, I don't love the name There is one comment from a user which may need addressing still, haven't read through it yet honestly. |
I really did try to make it work nicely with
Would
Thanks, I missed the skip flag part, that's a good idea, I'll add it. |
… via skip or real work was done
jessebraham
left a comment
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.
Thanks, LGTM!
The progress callbacks get initialized and updated even if we skip a segment. For verification, we add an extra step to the progress which is updated once verification is complete.