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

Show gpu model in deployment detail page #127

Merged
merged 5 commits into from
Mar 14, 2024

Conversation

Redm4x
Copy link
Contributor

@Redm4x Redm4x commented Mar 13, 2024

@Redm4x Redm4x requested a review from baktun14 March 13, 2024 21:13
@@ -60,7 +58,7 @@ const ProviderDetailPage: React.FunctionComponent<Props> = ({ owner, _provider }
isLoading: isLoadingStatus,
refetch: getProviderStatus
} = useProviderStatus(provider?.hostUri, {
enabled: false,
enabled: true,
Copy link
Contributor

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.

Copy link
Contributor Author

@Redm4x Redm4x Mar 13, 2024

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

Copy link
Contributor

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.

Copy link
Contributor Author

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.

@Redm4x Redm4x merged commit 78b3f93 into main Mar 14, 2024
5 checks passed
@Redm4x Redm4x deleted the features/add-deployment-bids-endpoint branch March 14, 2024 00:52
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.

2 participants