-
Notifications
You must be signed in to change notification settings - Fork 143
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 specific error message when organization is missing for SonarCloud #1549
Conversation
92f3b03
to
653193f
Compare
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 am a bit surprised by the new parameter in SonarWebServer.IsServerLicenseValid
🤔
@@ -41,7 +41,7 @@ public SonarQubeWebServer(IDownloader downloader, Version serverVersion, ILogger | |||
} | |||
} | |||
|
|||
public override async Task<bool> IsServerLicenseValid() | |||
public override async Task<bool> IsServerLicenseValid(string serverUrl) |
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.
It is bizarre to have a parameter here only to be able to log as it could be different from the one used to make the request.
I'd rather have the IDownloader.GetBaseUri
back and use it to log. That way, we ensure the right serverUrl
from the HttpClient
.
WDYT?
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 agree. This simplifies the commit a bit.
636fa5b
to
3a2cfec
Compare
Kudos, SonarCloud Quality Gate passed! |
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.
LGTM!
Nice coverage! 😉
Fixes #1149