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

minor: fallback on the project id if the namespace is missing #3353

Merged
merged 6 commits into from
Oct 16, 2024

Conversation

ciyer
Copy link
Contributor

@ciyer ciyer commented Oct 11, 2024

In production there is a case of a project that has no namespace in the search DB, but the ID is correct. This change should make the search display more robust against such projects.

/deploy renku=leafty/improve-cypress-tests

@ciyer ciyer requested a review from a team as a code owner October 11, 2024 15:04
@ciyer ciyer temporarily deployed to renku-ci-ui-3353 October 11, 2024 15:04 — with GitHub Actions Inactive
@RenkuBot
Copy link
Contributor

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

leafty
leafty previously approved these changes Oct 14, 2024
Copy link
Member

@leafty leafty left a comment

Choose a reason for hiding this comment

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

LGTM, thanks. One small nitpick below.

@ciyer ciyer force-pushed the ciyer/project-search-results-fix branch from 4677eab to eb7714c Compare October 14, 2024 08:45
@ciyer ciyer temporarily deployed to renku-ci-ui-3353 October 14, 2024 08:45 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-3353 October 15, 2024 08:27 — with GitHub Actions Inactive
@@ -263,7 +263,7 @@ interface SearchV2ResultProjectProps {
project: Project;
}
function SearchV2ResultProject({ project }: SearchV2ResultProjectProps) {
const { creationDate, description, name, namespace, slug, visibility } =
const { creationDate, description, id, name, namespace, slug, visibility } =
project;

const namespaceUrl =
Copy link
Member

Choose a reason for hiding this comment

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

Maybe we should have another fix where we don't show this if we get null from search.

@leafty leafty temporarily deployed to renku-ci-ui-3353 October 15, 2024 08:48 — with GitHub Actions Inactive
@ciyer ciyer temporarily deployed to renku-ci-ui-3353 October 15, 2024 13:19 — with GitHub Actions Inactive
@ciyer ciyer merged commit 4fdd953 into main Oct 16, 2024
21 of 24 checks passed
@ciyer ciyer deleted the ciyer/project-search-results-fix branch October 16, 2024 10:00
@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.

3 participants