-
Notifications
You must be signed in to change notification settings - Fork 60
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
Show gpu model in deployment detail page #127
Conversation
Redm4x
commented
Mar 13, 2024
•
edited
Loading
edited
- Fetch bid info on deployment detail page and show gpu models (GPU model display in deployment detail (Lease) #93)
- Fix Kube version in provider page on refresh
@@ -60,7 +58,7 @@ const ProviderDetailPage: React.FunctionComponent<Props> = ({ owner, _provider } | |||
isLoading: isLoadingStatus, | |||
refetch: getProviderStatus | |||
} = useProviderStatus(provider?.hostUri, { | |||
enabled: false, | |||
enabled: true, |
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.
It was not working properly? I don't remember exactly why I made explicity query only once before. It just made me think, at some point the /status
rest endpoint won't exist anymore, so we'll probably have to migrate to the grpc in the frontend as well.
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.
It was working when coming to the provider page from another page, but it was not loading when opening/refreshing directly on the provider page. I think you may have put it to false so that it doesnt query the endpoint during server rendering, didn't look too far into it
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.
I don't think it was for ssr, but more to not spam the provider endpoint since the status doesn't really change.
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.
Got it, yeah for sure we could change react-query options to keep the cache longer for /version
. I'll let it like this for now, but we will need to refactor the provider pages after the rebrand. This merging of 3 sources into the same provider object is causing weird issues. Also just realized a similar problem happens with the "Your active leases" count.