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

Dashboard: fix issue with trying to process deleted project data #2465

Merged
merged 6 commits into from
Apr 14, 2023

Conversation

leafty
Copy link
Member

@leafty leafty commented Apr 12, 2023

Fixes a bug where the API /projects/<project>?statistics=false&doNotTrack=true 404 response is processed as project data. We now skip these items.

/deploy #persist #cypress renku=renku-ui-3.4.2-updates
Fixes #2437.

Fixes a bug where the API `/projects/<project>?statistics=false&doNotTrack=true`
404 response is processed as project data. We now skip these items.

Fixes #2437.
Comment on lines +131 to +132
if (projectData.status === "fulfilled" && !projectData.value.error)
projectList.push(formatProjectMetadata(projectData.value.data));
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: it seems that the { error: e as FetchBaseQueryError } return below is not processed; the error seems to be silently swallowed in client/src/utils/customHooks/useGetRecentlyVisitedProjects.ts.

@leafty leafty marked this pull request as ready for review April 12, 2023 12:33
@leafty leafty requested a review from a team as a code owner April 12, 2023 12:33
@RenkuBot
Copy link
Contributor

You can access the deployment of this PR at https://renku-ci-ui-2465.dev.renku.ch

@leafty leafty temporarily deployed to renku-ci-ui-2465 April 12, 2023 12:55 — with GitHub Actions Inactive
@leafty leafty temporarily deployed to renku-ci-ui-2465 April 12, 2023 16:21 — with GitHub Actions Inactive
Copy link
Member

@lorenzo-cavazzi lorenzo-cavazzi left a comment

Choose a reason for hiding this comment

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

Lgtm!

@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2465 April 13, 2023 17:04 — with GitHub Actions Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2465 April 13, 2023 18:09 — with GitHub Actions Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2465 April 13, 2023 19:07 — with GitHub Actions Inactive
@lorenzo-cavazzi lorenzo-cavazzi temporarily deployed to renku-ci-ui-2465 April 13, 2023 20:14 — with GitHub Actions Inactive
@leafty leafty temporarily deployed to renku-ci-ui-2465 April 14, 2023 08:51 — with GitHub Actions Inactive
@leafty leafty deployed to renku-ci-ui-2465 April 14, 2023 09:20 — with GitHub Actions Active
@leafty leafty merged commit dcc9324 into master Apr 14, 2023
@leafty leafty deleted the leafty/2437-fix-dashboard-deleted-project branch April 14, 2023 09:35
@RenkuBot
Copy link
Contributor

Tearing down the temporary RenkuLab deplyoment for this PR.

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.

Dashboard suddenly listing no projects
3 participants