-
Notifications
You must be signed in to change notification settings - Fork 125
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
Refresh button for source rows in Status page #6175
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a lot of action when clicking the refresh button: flickering, jumpiness, table resizing. Some things I noticed:
Latest demo: CleanShot.2024-12-04.at.12.26.40.mp4 |
d78933b
to
22f6d01
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Mostly looks good, but I ran into a weird state: ~50% of the time when refreshing a Source with an error, the source is marked "Idle", yet for about 30s the "Refresh all sources and models" button is disabled and I see polling ListResources
network requests. Here's a Jam.
I also hit this 500 error, but I think it's been fixed on main
, right? So it'd help if you could merge main
into this branch.
d27ca47
to
792276e
Compare
I can see from the Jam that the specific resource didn't get refreshed properly due to the "failed to ingest source" error. Here's a video of a happy path: CleanShot.2024-12-10.at.10.32.21.mp4Is it expected to disable the refresh icon when a resource errors out? I can see in the Jam, the resource continues to error out even after a refresh.. Update: Gracefully stop polling after detecting reconcile error CleanShot.2024-12-10.at.14.36.28.mp4 |
This reverts commit 792276e.
After a rebase, I still run into the 500 error occasionally when I fire a Error message — "grpc: error while marshaling: marshaling rill.runtime.v1.ListResourcesResponse: size mismatch (see golang/protobuf#1609): calculated=229, measured=177" |
Yeah that should get fixed by this PR: #6233 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
UXQA: I've triggered a Source refresh, yet I don't see any polling of the ListResource
API.
Kapture.2024-12-16.at.14.40.05.mp4
onError: () => { | ||
stopPolling(); | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
onError
will be deprecated in TanStack Query v5 (see here)- Rather than the imperative
startPolling()
,stopPolling()
, have you considered using the built-in declarativerefetchInterval: () => number | false
?
In this PR, I've used the Specifically, the Refresh a model command. I see |
@lovincyrus @ericpgreen2 FYI |
address #6154