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-4768. Fix receiving file tracking operation calls from client at refactoring #5041

Merged
merged 1 commit into from
May 17, 2017

Conversation

RomanNikitenko
Copy link
Member

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

What does this PR do?

  1. Fix receiving file tracking operation calls on server side at refactoring.
  2. Send file tracking operation calls on server side asynchronously to avoid incorrect "External operation" events

What issues does this PR fix or reference?

#4768

Changelog

Fix receiving file tracking operation calls from client at refactoring

@codenvy-ci
Copy link


store.dispose(source.getLocation(), !source.isFile()); //TODO: need to be tested
return clientServerEventService.sendFileTrackingSuspendEvent().thenPromise(success -> {
eventBus.fireEvent(newFileTrackingSuspendedEvent());
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 really need this event bus event then?

if (source.isProject() && source.getLocation().segmentCount() == 1) {
return ps.getProjects().then((Function<List<ProjectConfigDto>, Resource>)updatedConfigs -> {
clientServerEventService.sendFileTrackingResumeEvent().then(arg -> {
eventBus.fireEvent(newFileTrackingResumedEvent());
Copy link
Contributor

Choose a reason for hiding this comment

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

The same as above

@RomanNikitenko
Copy link
Member Author

@vzhukovskii You are right - we can avoid to use FileTrackingEvent on client side. I've deprecated this class and updated the pull request. Thank you!

@codenvy-ci
Copy link

…refactoring

Signed-off-by: Roman Nikitenko <rnikitenko@codenvy.com>
@RomanNikitenko
Copy link
Member Author

@vparfonov I've fixed conflicts and updated the pull request

@codenvy-ci
Copy link

@RomanNikitenko RomanNikitenko merged commit b436793 into master May 17, 2017
@RomanNikitenko RomanNikitenko added this to the 5.11.0 milestone May 17, 2017
@RomanNikitenko RomanNikitenko deleted the CHE-4768 branch May 17, 2017 14:43
@slemeur slemeur added the kind/bug Outline of a bug - must adhere to the bug report template. label May 26, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Outline of a bug - must adhere to the bug report template.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants