Skip to content

feat: add migrate project from Renku V1 to Renku 2.0 #3527

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

Merged
merged 23 commits into from
Mar 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
a9d3778
feat: add migration project modal
andre-code Feb 10, 2025
37df9ed
remove session values when migrate a project
andre-code Feb 20, 2025
8b60f0c
add session launcher when migrate a project
andre-code Feb 20, 2025
9c8e1b3
use slug to component to change project slug, fix session_launcher va…
andre-code Feb 24, 2025
dafb047
get launcher name from project.show if exists, show alert only if ha…
andre-code Feb 24, 2025
4081065
fixing input styles
andre-code Feb 25, 2025
c66133d
add component to display migration details
andre-code Feb 25, 2025
a848e3b
get default resource pool
andre-code Feb 25, 2025
b90255f
display message when container image is not available
andre-code Feb 25, 2025
49eb0e3
display error when project is not updated
andre-code Feb 26, 2025
1a96064
format what will be migrated details
andre-code Feb 27, 2025
e631671
Make the "Build Image" note more prominent in the modal and adjust it…
andre-code Feb 27, 2025
a62fad7
feat: add migration details format and refactor in form and details i…
andre-code Mar 3, 2025
783c162
fix icon datasets in migration description and styles when keywords o…
andre-code Mar 4, 2025
552551d
update copy and banner links, update icon sizes
andre-code Mar 4, 2025
561ef86
update link migration
andre-code Mar 4, 2025
a231954
apply code suggestions
andre-code Mar 5, 2025
34def1a
fix migrate project request and solve rebase conflict
andre-code Mar 6, 2025
f6748bc
add code suggestion:
andre-code Mar 12, 2025
b9f3c03
fix learn more button color
andre-code Mar 12, 2025
d0f1b72
fix copy workflows
andre-code Mar 12, 2025
80cf38b
remove session launcher values for migrating a v1 project, now handle…
andre-code Mar 12, 2025
7441a09
fix: include formId in ProjectVisibilityFormField used in Project mig…
andre-code Mar 17, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 29 additions & 10 deletions client/src/features/project/components/ProjectEntityHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
*/

import { skipToken } from "@reduxjs/toolkit/query";
import { ACCESS_LEVELS } from "../../../api-client";

import type { EntityHeaderProps } from "../../../components/entityHeader/EntityHeader";
import EntityHeader from "../../../components/entityHeader/EntityHeader";
Expand All @@ -27,15 +28,24 @@ import {
useProjectMetadataQuery,
} from "../projectKg.api";
import { ProjectStatusIcon } from "./migrations/ProjectStatusIcon";
import { ProjectEntityMigration } from "./projectMigration/ProjectEntityMigration";

type ProjectEntityHeaderProps = EntityHeaderProps & {
defaultBranch: string;
projectId: number;
accessLevel: number;
};

export function ProjectEntityHeader(props: ProjectEntityHeaderProps) {
const { defaultBranch, devAccess, fullPath, gitUrl, projectId, visibility } =
props;
const {
defaultBranch,
devAccess,
fullPath,
gitUrl,
projectId,
visibility,
accessLevel,
} = props;

const projectIndexingStatus = useGetProjectIndexingStatusQuery(
fullPath && projectId ? projectId : skipToken
Expand Down Expand Up @@ -73,13 +83,22 @@ export function ProjectEntityHeader(props: ProjectEntityHeaderProps) {
);

return (
<EntityHeader
{...props}
description={descriptionKg}
statusButton={statusButton}
visibility={projectMetadataQuery.data?.visibility || visibility}
tagList={projectMetadataQuery.data?.keywords ?? []}
imageUrl={entityImage}
/>
<>
{accessLevel >= ACCESS_LEVELS.OWNER && visibility === "public" && (
<ProjectEntityMigration
projectId={projectId}
description={descriptionKg}
tagList={projectMetadataQuery.data?.keywords ?? []}
/>
)}
<EntityHeader
{...props}
description={descriptionKg}
statusButton={statusButton}
visibility={projectMetadataQuery.data?.visibility || visibility}
tagList={projectMetadataQuery.data?.keywords ?? []}
imageUrl={entityImage}
/>
</>
);
}
Loading
Loading