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-37457: Add user provided tab to instance type #1748

Conversation

metalice
Copy link
Member

@metalice metalice commented Jan 25, 2024

📝 Description

Add a brief description
Adding user user-provided tab to the instance type

🎥 Demo

After:
image

Before:
image

@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jan 25, 2024

@metalice: This pull request references CNV-37457 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set.

In response to this:

📝 Description

Add a brief description
Adding user provided tab to instance type

🎥 Demo

After:
image

Before:
image

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@openshift-ci openshift-ci bot requested review from tnisan and yaacov January 25, 2024 11:27
@openshift-ci openshift-ci bot added the approved This issue is something we want to fix label Jan 25, 2024
@metalice metalice requested review from pcbailey, hstastna and avivtur and removed request for yaacov January 25, 2024 11:28
@openshift-ci-robot
Copy link
Collaborator

openshift-ci-robot commented Jan 25, 2024

@metalice: This pull request references CNV-37457 which is a valid jira issue.

Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the bug to target the "4.16.0" version, but no target version was set.

In response to this:

📝 Description

Add a brief description
Adding user user-provided tab to the instance type

🎥 Demo

After:
image

Before:
image

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository.

@hstastna
Copy link

/retest

@pcbailey
Copy link
Member

It's unfortunate that the acronym for user-provided ITs is VMI since is may cause some confusion for users.

const UserInstancetypeList: FC = () => {
const { t } = useKubevirtTranslation();
const [activeNamespace] = useActiveNamespace();
const [instanceTypes, loaded, loadError] = useK8sWatchResource<
Copy link
Member

Choose a reason for hiding this comment

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

There's a hook for this already: useUserInstanceTypes. You can modify it to take a namespace.

Copy link
Member Author

Choose a reason for hiding this comment

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

yes i know, i used it already, but this hook will fetch all except all projects, now I can edit it and add a boolean arg to it but seems redundant and less redable, because It will make branching in the hook, as there isn't any logic in this hook except the ns checking, so when using here directly usek8swatch , is same as using a custom hook, because there is no logic except the fetching.. so i didn't used the hook u recommended and directly fetched.

Copy link

@hstastna hstastna left a comment

Choose a reason for hiding this comment

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

Your PR looks good! Great work! I like it. I'd just renamed list-managment-group.scss file to list-management-group.scss while editing this file (see the missing 'e' there). But that's a minor thing, up to you, Matan :)

<ListPageHeader
title={
activeTabKey === 0
? t('VirtualMachineClusterInstancetype')

Choose a reason for hiding this comment

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

Why singular form used if it is a list of items we display?

Copy link
Member Author

Choose a reason for hiding this comment

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

sure changed

@metalice
Copy link
Member Author

Your PR looks good! Great work! I like it. I'd just renamed list-managment-group.scss file to list-management-group.scss while editing this file (see the missing 'e' there). But that's a minor thing, up to you, Matan :)

u right, but should be in separate pr as this will add 9 more files to this PR

Signed-off-by: Matan Schatzman <mschatzm@redhat.com>
@metalice metalice force-pushed the CNV-37457-add-user-provided-to-instance-type branch from e168612 to a49acec Compare January 30, 2024 13:53
@openshift-ci openshift-ci bot added the lgtm Passed code review, ready for merge label Jan 30, 2024
Copy link
Contributor

openshift-ci bot commented Jan 30, 2024

[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-merge-bot openshift-merge-bot bot merged commit 01428db into kubevirt-ui:main Jan 30, 2024
8 checks passed
@metalice
Copy link
Member Author

/cherry-pick release-4.15

@openshift-cherrypick-robot
Copy link
Collaborator

@metalice: new pull request created: #1764

In response to this:

/cherry-pick release-4.15

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

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 jira/valid-reference lgtm Passed code review, ready for merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants