-
Notifications
You must be signed in to change notification settings - Fork 758
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
Implement bal tool search
#40758
Implement bal tool search
#40758
Conversation
settings = Settings.from(); | ||
} | ||
CentralAPIClient client = new CentralAPIClient(RepoUtils.getRemoteRepoURL(), | ||
initializeProxy(settings.getProxy()), |
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.
@Thevakumar-Luheerathan is there anything more for the proxy implementation?
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.
We need to pass the username password too... Check
ballerina-lang/cli/ballerina-cli/src/main/java/io/ballerina/cli/cmd/PushCommand.java
Line 177 in 40af2ec
CentralAPIClient client = new CentralAPIClient(RepoUtils.getRemoteRepoURL(), |
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.
@Thevakumar-Luheerathan please check if it's correct now.
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.
ya... It's
} | ||
} catch (CentralClientException e) { | ||
String errorMessage = e.getMessage(); | ||
if (null != errorMessage && !"".equals(errorMessage.trim())) { |
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.
Let's throw a generic error if the message is not present.
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.
Added a generic error
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## master #40758 +/- ##
============================================
- Coverage 76.93% 76.42% -0.51%
- Complexity 53747 55274 +1527
============================================
Files 3332 3386 +54
Lines 200289 208284 +7995
Branches 25654 26959 +1305
============================================
+ Hits 154086 159185 +5099
- Misses 37819 40324 +2505
- Partials 8384 8775 +391
☔ View full report in Codecov by Sentry. |
186acca
to
e720106
Compare
e720106
to
8cd301c
Compare
Purpose
$ subject
Related to #40264
The output is identical to the bal search command output except for the newly added
ID
field.Approach
Samples
Remarks
Check List