-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
CHE-1204. Use correct url for request on FormatService #1347
Conversation
@@ -116,8 +116,7 @@ public String getProposalDocUrl(int id, String sessionId) { | |||
return newPromise(new AsyncPromiseHelper.RequestCall<List<Change>>() { | |||
@Override | |||
public void makeCall(AsyncCallback<List<Change>> callback) { | |||
String url = appContext.getDevMachine().getWsAgentBaseUrl() + "/code-formatting/format?offset=" + offset + | |||
"&length=" + length; | |||
String url = appContext.getDevMachine().getWsAgentBaseUrl() + "/java/code-formatting/format?offset=" + offset + "&length=" + length; |
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.
should we use a constant prefix for all the paths of this class ?
constant being "/java/code-formatting/" to avoid to miss some endpoint in a future
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.
@benoitf done!
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.
perfect
Build # 698 - FAILED Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/698/ to view the results. |
ci-build |
ok |
@ApiParam(value = "The given length to stop recording the edits (exclusive)") | ||
@QueryParam("length") int length, | ||
@ApiParam(value = "The content to format") | ||
final String content) throws BadLocationException, IllegalArgumentException { |
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.
Do we have description of content format?
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.
@skabashnyuk I've added note for 'content' param. WDYT?
ок |
Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
Build # 708 - FAILED Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/708/ to view the results. |
@vparfonov please review
Signed-off-by: Roman Nikitenko rnikitenko@codenvy.com