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

Remove stores from WatchRequestClient #4528

Merged
merged 4 commits into from
Apr 10, 2024

Conversation

briangregoryholmes
Copy link
Contributor

@briangregoryholmes briangregoryholmes commented Apr 6, 2024

This PR refactors the WatchRequestClient so that it no longer relies on writables internally. Instead, the methods have been updated to allow the same behavior externally (and slightly more explicitly).

This was done as an incremental step to breaking up the monolithic runtime store (see: https://github.com/rilldata/rill-private-issues/issues/253#issuecomment-2028387087) and to help moving initial data fetching into + files. While my instinct is that we won't need actual stores for any of the runtime properties, this refactor is agnostic to that.

This is a low risk refactor as, in Rill Developer (the only app in which this client is used currently), the host and instanceId do not change.

Note: I was a little unclear on the behavior of the ExponentialBackoffTracker. It only seems to be used in a catch block and the method in which it's used doesn't seem to result in different behavior.

@briangregoryholmes briangregoryholmes marked this pull request as ready for review April 7, 2024 07:34
@briangregoryholmes briangregoryholmes self-assigned this Apr 7, 2024
Copy link
Contributor

@ericpgreen2 ericpgreen2 left a comment

Choose a reason for hiding this comment

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

Great 💪

</script>

<svelte:window on:visibilitychange={handleVisibilityChange} />
Copy link
Collaborator

Choose a reason for hiding this comment

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

Nice approach!

@briangregoryholmes briangregoryholmes merged commit 1d9813f into main Apr 10, 2024
4 checks passed
@briangregoryholmes briangregoryholmes deleted the bgh/refactor-watch-client branch April 10, 2024 13:23
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