-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add a progress meter #237
Comments
Hi there, if nobody is working on this, please could I take this issue on for Hacktoberfest 2021? If so, I would like to use 'tqdm' if there is flexibility over which package to use for ease of incorporating a progress indicator. And, since you state that #227 might interplay, do you know when the PR #227 can be expected to be merged, so I can get a feel for whether I should in that case wait a few days before starting to work on this or not (to do this for Hacktoberfest I need to have the PR up by the end of the week so I would have to start preparing the PR by around Thursday at the latest)? |
Hi @sadielbartholomew! Sorry I took so long in getting back to you. If you are still interested in working on this, you would be very welcome!! I hope to get #227 merged in today, as we are very actively working on building up our set of features for a v3.0 release. A couple of things to keep in mind with this:
That's it! I'm also curious to hear why |
Hi @tarkatronic, no worries at all, and sorry I am quite slow to respond again myself (I have left Hacktoberfest very late this year so I am trying to prepare a number of PRs this week on top of my day job, so likely I will get everything finalised at the weekend).
Great, and I see #227 has now been merged, so that is helpful.
Noted, I've forked the repo and I am using that branch to develop my PR on.
That all makes sense and I will keep it in mind as I go. Maybe I can open a draft PR with my proposed solution and if it needs major changes I can make those before opening it up for review. I'll see how I get on.
The only reason is I've played around with |
Hi @sadielbartholomew, I'm in roughly the same place (some tqdm experience, but not with click). I just looked at the click doc and it doesn't seem too dissimilar. FWIW, I think your biggest obstacle is that @tarkatronic and I had discussed this earlier and felt the best approach (but don't feel limited if you have an idea) is for each scanner class to figure out itself some size estimate (number of commits, number of files, etc.) and then track progress against that with a Regarding intermingling with other output, about the only thought I have at this point is that Thanks! |
Thanks for the further info, @rbailey-godaddy! I'll keep it in mind. Expect the PR today or tomorrow. |
Fixed by #421 |
Feature Request
Is your feature request related to a problem? Please describe.
Right now, when tartufo is running, it can be very silent, and you may not even know that it's still going, or how much progress has been made.
Describe the solution you'd like
It would be nice to be able to specify something like
--progress
to display a friendly progress meter, showing that things are actually continuing to help, and even showing a rough percentage complete.Two possible (theoretically) drop-in packages I know of that could fill this feature are:
Describe alternatives you've considered
Live output (#227) helps with this somewhat, in that issues are displayed to the command line immediately, but if you have a very long history with no remaining issues, you may still experience a long runtime with no output.
Teachability, Documentation, Adoption, Migration Strategy
Easy enough, just add a
--progress
or similar command line switch. I think it should likely default to off. We will definitely need to investigate whether this will play nicely with the live output. I have a nagging suspicion that, if both of these are turned on, they will interfere with each other, since they will have interleaving output.The text was updated successfully, but these errors were encountered: