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

Debounce requests for a filesystem refresh #805

Merged
merged 1 commit into from
Oct 28, 2024
Merged

Conversation

jansorg
Copy link
Collaborator

@jansorg jansorg commented Oct 22, 2024

Closes #665

This reduces the flickering of the "Indexing..." progress indicator in the status bar when a lot of AppMap data changes in a short time interval. This happens when multiple test cases are executed, for example.

I extracted the refresh logic from the command line service into a new service for better separation and easier testing.
There's already a test case covering the refresh request handling.
There's no test to test the debouncing of the requests, I don't think that there's a way to do this.

This reduces the flickering of the "Indexing..." progress indicator in the status bar.
Copy link

AppMap runtime code review

Summary Status
Failed tests ✅ All tests passed
API changes 0️⃣ No API changes
Security flaws ✅ None detected
Performance problems ✅ None detected
Code anti-patterns ✅ None detected
New AppMaps 0️⃣ No new AppMaps

@dustinbyrne dustinbyrne merged commit 464fa2f into develop Oct 28, 2024
7 checks passed
@dustinbyrne dustinbyrne deleted the jansorg/fs-debounce branch October 28, 2024 18:33
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.

Filesystem refresh requests should be debounced
2 participants