-
Notifications
You must be signed in to change notification settings - Fork 370
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
[JENKINS-31462] GitHub Enterprise Servers validation #12
Conversation
This pull request originates from a CloudBees employee. At CloudBees, we require that all pull requests be reviewed by other CloudBees employees before we seek to have the change accepted. If you want to learn more about our process please see this explanation. |
🐝 , but the PR is blocked by github-api |
@oleg-nenashev Thanks, I'm waiting for hub4j/github-api#232 |
@oleg-nenashev The dependency was upgraded. |
@@ -36,10 +36,11 @@ | |||
<artifactId>git</artifactId> | |||
<version>2.3</version> | |||
</dependency> | |||
<!-- TODO: Update when org.jenkins-ci.plugins:github-api is released --> |
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's no more a TODO
cb88226
to
bf55ed0
Compare
🐝 |
Occasionally commented in the PR. 🐛 for the loss of the error info in the Web UI validation output |
|
I'm removing the bug according to my discussion with @recena |
The message is definitely helpful, but it does not cover all possible cases. Examples of other causes, which may lead to the IOException
|
It should be considered in the library, not here.
If you mean GitHub Enterprise in private mode, it is considered. |
But the current code will show "This does not look like a GitHub Enterprise API URL" in both cases, won't it? What prevents you from displaying the exception message in the validation output? |
@oleg-nenashev I hope you agree with me on both cases are exceptional. The current PR handles:
By the way, I had to modify the code after your first 🐝 because @kohsuke modified my initial proposal. I was confident with the first approach. |
@oleg-nenashev Trying to improve the PR I've found an example about why don't use
Imagine the warning message in the UI. |
@jglick If you agree, I'd like to merge this PR. IMO is ready to merge. |
I'm not convinced, but feel free to go forward if you feel strong |
@oleg-nenashev I totally disagree with show to the user technical information like Additionally, all cases that you mentioned before should be handle in the library. I only needed a |
@oleg-nenashev I agree with show to the user detailed information if he can do anything with this information. Only in these cases. |
GitHub github = GitHub.connectToEnterpriseAnonymously(api.toString()); | ||
github.checkApiUrlValidity(); | ||
return FormValidation.ok(); | ||
} catch (MalformedURLException mue) { |
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.
You could use catch (MalformedURLException | JsonParseException e)
and avoid the duplicated message.
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 know but we are not using this feature of Java SE 7 in this plugin.
🐝 |
1 similar comment
🐝 |
@reviewbybees done |
This pull request has completed our internal processes and we now respectfully request the maintainers of this repository to consider our proposal contained within this pull request for merging. |
[JENKINS-31462] GitHub Enterprise Servers validation
…ycrawl.tools-checkstyle-8.18 Bump checkstyle from 8.17 to 8.18
JENKINS-31462
Please, consider the comments and reviews in this PR #10 (original)
downstream jenkinsci/github-api-plugin#6, downstream hub4j/github-api#232
Result
@reviewbybees, specially @jglick