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

do not loop forever when message when Gateway API is not available #2738

Open
Tracked by #2733
joaquimrocha opened this issue Jan 9, 2025 · 4 comments
Open
Tracked by #2733
Labels
bug Something isn't working
Milestone

Comments

@joaquimrocha
Copy link
Collaborator

joaquimrocha commented Jan 9, 2025

See #2504 (comment) for context.
Like other views, we need to account for whether this is resource is available.

@joaquimrocha joaquimrocha added blocker Completely prevents the user from using the software. bug Something isn't working labels Jan 9, 2025
@joaquimrocha joaquimrocha moved this from Queued to Proposed in Release Plan / Roadmap Jan 9, 2025
@joaquimrocha joaquimrocha moved this from Proposed to Queued in Release Plan / Roadmap Jan 9, 2025
@joaquimrocha joaquimrocha added this to the v0.28.0 milestone Jan 9, 2025
@illume illume removed the blocker Completely prevents the user from using the software. label Jan 9, 2025
@farodin91
Copy link
Contributor

@joaquimrocha Do you any link how it is done in different locations?

@joaquimrocha
Copy link
Collaborator Author

joaquimrocha commented Jan 10, 2025

The useList function, which we use for most listings, returns results as null till the fetching is done. After that, if there's an error, we display it (otherwise the results are shown). E.g.:

const { items, error, clusterErrors } = resourceClass.useList({ namespace: useNamespaces() });

errorMessage={resourceClass.getErrorMessage(error)}

@joaquimrocha
Copy link
Collaborator Author

@farodin91 Let me know if you are taking a look or whether you prefer us to do it. Cheers.

@farodin91
Copy link
Contributor

I'll try checkout these ideas in the evening.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Development

No branches or pull requests

3 participants