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

Refactor component management and add state caching #2502

Merged
merged 6 commits into from
Feb 5, 2025

Conversation

worksofliam
Copy link
Contributor

@worksofliam worksofliam commented Feb 3, 2025

Improve code readability and maintainability by refactoring library and directory checks into separate methods. Introduce caching for component states to enhance connection performance.

Adds the component stats to the settings cache and validation each one individually. This will allow us to update one component without updating them all again.

Before:

slow

After:

fast

… for improved readability and maintainability

Signed-off-by: worksofliam <[email protected]>
@worksofliam worksofliam temporarily deployed to testing_environment February 3, 2025 19:36 — with GitHub Actions Inactive
Copy link
Contributor

github-actions bot commented Feb 3, 2025

👋 A new build is available for this PR based on 0c03388.

@worksofliam worksofliam requested review from sebjulliand and SanjulaGanepola and removed request for sebjulliand February 3, 2025 19:37
@worksofliam worksofliam temporarily deployed to testing_environment February 3, 2025 19:44 — with GitHub Actions Inactive
@jwoehr
Copy link
Contributor

jwoehr commented Feb 3, 2025

  • Uninstalled Code4i and install .vsix
  • First connection it was about the same (as one would expect)
  • Disconnected and tried again, faster, obviously skipping some checks now that things are cached
  • Assuming that "Connect and Reload Server Settings" would void the cache and load everything again

Signed-off-by: worksofliam <[email protected]>
Co-authored-by: Sanjula Ganepola <[email protected]>
@worksofliam
Copy link
Contributor Author

worksofliam commented Feb 4, 2025

@SanjulaGanepola I followed through with your recommendations. Please give another review.

I need to fix the test cases before you review. (I love automated test cases!!)

Signed-off-by: worksofliam <[email protected]>
@worksofliam worksofliam temporarily deployed to testing_environment February 5, 2025 03:43 — with GitHub Actions Inactive
@worksofliam
Copy link
Contributor Author

@SanjulaGanepola This PR is now ready for review again. The tests are correctly passing after I added a missing await.

Copy link
Member

@SanjulaGanepola SanjulaGanepola left a comment

Choose a reason for hiding this comment

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

Looks good now and connect is faster. Another great change!

@worksofliam worksofliam merged commit 5a66ab7 into master Feb 5, 2025
4 checks passed
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.

3 participants