Skip to content
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

Merged
merged 1 commit into from
May 25, 2016

Conversation

RomanNikitenko
Copy link
Member

@RomanNikitenko RomanNikitenko commented May 24, 2016

  1. Use correct url for request for code formatting.
  2. Move FormatService to CodeAssistService
    @vparfonov please review

Signed-off-by: Roman Nikitenko rnikitenko@codenvy.com

@@ -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;
Copy link
Contributor

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

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@benoitf done!

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

perfect

@codenvy-ci
Copy link

Build # 698 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/698/ to view the results.

@riuvshin
Copy link
Contributor

ci-build

@vparfonov
Copy link
Contributor

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 {
Copy link
Contributor

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?

Copy link
Member Author

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?

@skabashnyuk
Copy link
Contributor

ок

Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
@RomanNikitenko RomanNikitenko merged commit 57345e8 into master May 25, 2016
@RomanNikitenko RomanNikitenko deleted the CHE-1204 branch May 25, 2016 14:20
@codenvy-ci
Copy link

Build # 708 - FAILED

Please check console output at http://ci.codenvy-dev.com/jenkins/job/che-pullrequests-build/708/ to view the results.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants