-
-
Notifications
You must be signed in to change notification settings - Fork 102
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
Remove redundant code and fix flag option #734
Conversation
Codecov Report
@@ Coverage Diff @@
## master #734 +/- ##
==========================================
+ Coverage 54.71% 54.81% +0.09%
==========================================
Files 77 77
Lines 5596 5610 +14
==========================================
+ Hits 3062 3075 +13
- Misses 2251 2253 +2
+ Partials 283 282 -1
Continue to review full report at Codecov.
|
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.
I think we don't actually need to deprecate the --project
flag see comments and getCIRunOptions
Ah I'm realizing that marking for deprecation doesn't disable the functionality, tho I still have some concerns about removing it down the line. Despite the inconsistency in the tool, very fair assessment there, the |
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.
downgrading my request for changes to a request for comment
@zaquestion I replied to your specific comments in the code before realizing you did a general comment in the PR. |
ahh.. obviously I missed the |
@bmeneguele , this PR is still in draft after 20 days. Is that intentional? I've been holding off reviewing until it was "Ready". Maybe that was a mistake on my part? |
@prarit no, it's intentional. I need to come back to this code and rework. But unfortunately I had no time to rethink it yet. |
In lab.FindProject() the GetProject API is being used in the exact same way the function lab.GetProject() is using. This patch removes this redundant code and use the lab.GetProject() function instead. Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
To move this PR forward I'm going to remove the "deprecation" commit and move it to the next PR I'm preparing with the |
The `token` variable was getting the `--project` option value instead of the `--token` itself, making it completely unusable. Signed-off-by: Bruno Meneguele <bmeneg@redhat.com>
@zampierilucas @prarit @zaquestion please, feel free to re-review this patch, like I said in the previous comment, the part that generated the whole discussion was removed. I'll do that in the next PR. With that, only two really simple commits were left. |
Considering the above comment from @zaquestion and also the fact I'm going to open a new PR with the changes we discussed here so far, I'm going ahead and merge this PR. |
A new PR will be created with a more contextualized change set.
This MR has three different and minor fixes:
internal/gitlab/gitlab.go::FindProject()
--project
value was being used as the value fortoken
variable instead of--token
value.Check the individual commits for more information.