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

CNV-19414: Templates project tab #753

Merged

Conversation

metalice
Copy link
Member

Signed-off-by: Matan Schatzman mschatzm@redhat.com

📝 Description

Adding template project tab - this gives the user option to move common templates from one name space to another.

🎥 Demo

templates-project

@openshift-ci openshift-ci bot requested review from pcbailey and tnisan July 12, 2022 08:46
@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Jul 12, 2022
@metalice metalice force-pushed the CNV-19414-templates-projects-tab branch 4 times, most recently from 61bf50a to db10846 Compare July 14, 2022 08:37
@metalice metalice changed the title [WIP] CNV-19414: Templates project tab CNV-19414: Templates project tab Jul 14, 2022
Signed-off-by: Matan Schatzman <mschatzm@redhat.com>
@metalice metalice force-pushed the CNV-19414-templates-projects-tab branch from db10846 to cdc13dd Compare July 14, 2022 09:42
Copy link
Member

@avivtur avivtur left a comment

Choose a reason for hiding this comment

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

I think we need to change in all the text shown to user all resources like Templates Projects Namespaces to be PascalCase, please fix them as well
other than that looks good to me :)

isDisabled={isEmpty(name)}
>
<Text>
{t('An OpenShift project is an alternative representation of a Kubernetes namespace.')}
Copy link
Member

Choose a reason for hiding this comment

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

I think we can simply omit the 'An' at the beginning

<Popover
bodyContent={
<Trans t={t} ns="plugin__kubevirt-plugin">
A Project name must consist of lower case alphanumeric characters or &apos;, and
Copy link
Member

Choose a reason for hiding this comment

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

I think we can omit the 'A' at the beginning

{
op: 'replace',
path: `/spec/commonTemplatesNamespace`,
value: newNamespace === OPENSHIFT ? null : newNamespace,
Copy link
Member

Choose a reason for hiding this comment

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

why do you need to check here if the newNamespace is openshift? what will happen if we changed it once from openshift to some other namespace and than I want to change it back? won't we lose all templates?

@avivtur
Copy link
Member

avivtur commented Jul 14, 2022

/retest
/lgtm

@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Jul 14, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jul 14, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: avivtur, metalice

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot merged commit 3ca09e5 into kubevirt-ui:main Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved This issue is something we want to fix lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants