-
Notifications
You must be signed in to change notification settings - Fork 41
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
Use "internal/project" in commands #455
Conversation
d372831
to
e34d87b
Compare
Starting with some functional testing, @adambabik:
I am going to continue explorative testing now ahead of an actual code review. |
It's not immediately actionable; just dropping some notes here. Two things:
|
@sourishkrout thanks for the tests! Regarding the problem of stuck In terms of speeding this up, there are two things: (1) the current logic walks the project dir recursively twice; once for Regarding the next comments, I will verify (1) and will fix (2). One more thing I noticed is that when running |
@adambabik sounds like a plan! Let's tackle 1. and 2., and then see if Another cosmetic change, if you have a minute, is the absolute vs relative paths inside the TUI below. I think with these things done, we should be pretty close to a merge.
|
This is fixed.
This is fixed too. It shows a relative path to the dir from which With regard to #455 (comment), I was not right 100%. The logic is correct as The optimization I talked about to avoid walking the directory twice won't speed things much because the second pass is very quick, likely due to pruning thanks to ignoring dirs. In terms of its speed, I compared It's also a fact that in the latest release of |
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.
Code LGTM 👍
@adambabik aye on all of the above's comments counts. If it's more accurate, I think that's totally fair. Let's ship it 🚀. |
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 12 New issues |
9ec1c13
to
779d901
Compare
779d901
to
44f7d1b
Compare
In #438, a new package for handling projects was introduced:
internal/project
. In this PR,internal/project
is used in all TUI and non-TUI CLI commands.This is ready to be reviewed. All tests should pass, I did substantial manual testing, but it likely needs more of that.