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

Buffer input file change events and disable file tracking during git reset #8889

Merged
merged 8 commits into from
Mar 6, 2018

Conversation

vzhukovs
Copy link
Contributor

What does this PR do?

This changes proposal provides two dedicated change set.
At first, when jGit performs git reset it creates temporary files, which you can see on below screenshot:

eclipse che 2018-02-23 11-28-46

thats why file watcher service conceives this as dedicated file changing events and firing client to update the view. As a solution there is a proposal to suspend file watcher service before performing git reset and resume it after.

At second, when client receives a batch of file changing events there is no need to process each event if some or all of them are performed in one directory, there is a handler, which consumes events and calculates common path if there is a batch of events. (For single event the logic didn't change)

Signed-off-by: Vladyslav Zhukovskyi vzhukovs@redhat.com

What issues does this PR fix or reference?

#7773

Release Notes

N/A

Docs PR

N/A

…reset

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs vzhukovs added kind/bug Outline of a bug - must adhere to the bug report template. status/in-progress This issue has been taken by an engineer and is under active development. team/ide severity/P1 Has a major impact to usage or development of the system. labels Feb 23, 2018
@vzhukovs vzhukovs added this to the 6.2.0 milestone Feb 23, 2018
@vzhukovs vzhukovs self-assigned this Feb 23, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@eclipse-che eclipse-che deleted a comment from codenvy-ci Mar 2, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Mar 2, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs
Copy link
Contributor Author

vzhukovs commented Mar 3, 2018

ci-test

@codenvy-ci
Copy link

ci-test build report:
Build details
Test report
selenium tests report data
docker image: eclipseche/che-server:8889
https://github.com/orgs/eclipse/teams/eclipse-che-qa please check this report.

@eclipse-che eclipse-che deleted a comment from codenvy-ci Mar 5, 2018
@eclipse-che eclipse-che deleted a comment from codenvy-ci Mar 5, 2018
Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
@vzhukovs
Copy link
Contributor Author

vzhukovs commented Mar 6, 2018

ci-build

@codenvy-ci
Copy link

@vzhukovs vzhukovs merged commit 4d09c9b into master Mar 6, 2018
@vzhukovs vzhukovs deleted the che#7773 branch March 6, 2018 10:27
hkolvenbach pushed a commit to hkolvenbach/che that referenced this pull request Mar 12, 2018
…reset (eclipse-che#8889)

* Buffer input file change events and disable file tracking during git reset

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Process exceptional situation and resume file watcher service

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Working copy

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Working copy

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Working copy

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Fix formatting

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>

* Working copy

Signed-off-by: Vladyslav Zhukovskyi <vzhukovs@redhat.com>
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. severity/P1 Has a major impact to usage or development of the system. status/in-progress This issue has been taken by an engineer and is under active development.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants