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

kubevirt: Add Status column to VmList #1689

Merged
merged 1 commit into from
Jul 2, 2019
Merged

kubevirt: Add Status column to VmList #1689

merged 1 commit into from
Jul 2, 2019

Conversation

mareklibra
Copy link
Contributor

@mareklibra mareklibra commented Jun 10, 2019

@openshift-ci-robot openshift-ci-robot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 10, 2019
@openshift-ci-robot
Copy link
Contributor

Hi @mareklibra. Thanks for your PR.

I'm waiting for a openshift member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work. Regular contributors should join the org to skip this step.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@openshift-ci-robot openshift-ci-robot added needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 10, 2019
@@ -0,0 +1,4 @@
/* Styles of all active plugins */

@import "kubevirt-plugin/src/style";
Copy link
Contributor Author

@mareklibra mareklibra Jun 13, 2019

Choose a reason for hiding this comment

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

Plugin's entrypoint can import style, so this will be removed

{/* TODO(mlibra): migrate VM status in a follow-up
<ColHead {...props} className={mainRowSize} sortField="spec.running">State</ColHead>
*/}
<ColHead {...props} className={mainRowSize} sortField="spec.running">
Copy link
Member

Choose a reason for hiding this comment

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

We should update to PF4 tables. See #1465 and follow on #1707.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ok, this is wip in #1758

frontend/packages/kubevirt-plugin/src/_style.scss Outdated Show resolved Hide resolved
@@ -0,0 +1,60 @@
import { K8sResourceKind, ObjectMetadata } from '@console/internal/module/k8s';
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit-pick: I'd use a more specific file name, i.e. k8s-types or similar.

frontend/public/style.scss Outdated Show resolved Hide resolved
@spadgett spadgett added this to the v4.2 milestone Jun 14, 2019
@openshift-ci-robot openshift-ci-robot added size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 19, 2019
@mareklibra
Copy link
Contributor Author

Rebased as master and #1682 were changed.

@mareklibra mareklibra changed the title WIP: kubevirt: Add Status column to VmList kubevirt: Add Status column to VmList Jun 19, 2019
@openshift-ci-robot openshift-ci-robot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 19, 2019
@openshift-ci-robot openshift-ci-robot added size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. and removed size/XL Denotes a PR that changes 500-999 lines, ignoring generated files. size/L Denotes a PR that changes 100-499 lines, ignoring generated files. needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Jun 20, 2019
@jtomasek
Copy link

/ok-to-test

@openshift-ci-robot openshift-ci-robot added ok-to-test Indicates a non-member PR verified by an org member that is safe to test. and removed needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jun 20, 2019
@mareklibra
Copy link
Contributor Author

@spadgett , can you please have a look?


const filters = [
{
type: kubevirtTableFilters.VmStatus.type,

Choose a reason for hiding this comment

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

Wouldn't it be simpler to define whole vmStatusFilter object in kubevirtTableFilters, export it and just pass it in rowFilters prop?

Copy link

@jtomasek jtomasek Jun 21, 2019

Choose a reason for hiding this comment

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

See 768bb67

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good idea, thanks. I've moved Filter type to @console/shared.

};

const VMRowFirehose = ({ obj: vm }: React.ComponentProps<typeof ResourceRow>) => {

Choose a reason for hiding this comment

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

Note that once this #1758 merges, it will be possible to pass resources to MultiListPage so you could use that to fetch migrations and pods and avoid connecting each row separately.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that will be much easier. I don't have any numbers, but I believe this is not a blocker for this PR as the performance is not significantly hit by wrapping every row.

Copy link
Member

Choose a reason for hiding this comment

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

I would prefer to wait for #1758 to merge (probably today) as the new approach is more performant and does use only few websockets instead of n.

@mareklibra
Copy link
Contributor Author

/test e2e-aws

@atiratree
Copy link
Member

#1758 was merged, please see #1761 on how to pass additional resources

@openshift-ci-robot openshift-ci-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 26, 2019
@openshift-ci-robot openshift-ci-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jun 27, 2019
@mareklibra
Copy link
Contributor Author

mareklibra commented Jun 27, 2019

Rebased on top of #1761 and #1839, just the last commit is relevant.

@openshift-ci-robot openshift-ci-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/L Denotes a PR that changes 100-499 lines, ignoring generated files. labels Jun 28, 2019
@mareklibra
Copy link
Contributor Author

Rebased as #1761 is merged now.

@mareklibra
Copy link
Contributor Author

/test frontend
/test e2e-aws-console
/test e2e-aws-console-olm

@jelkosz
Copy link

jelkosz commented Jul 1, 2019

/test frontend
/test e2e-aws-console
/test backend

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jul 2, 2019
@rawagner
Copy link
Contributor

rawagner commented Jul 2, 2019

all required PRs are now merged and i also rebased on master.
@suomiy please take a look

@atiratree
Copy link
Member

/lgtm

@openshift-ci-robot openshift-ci-robot added the lgtm Indicates that a PR is ready to be merged. label Jul 2, 2019
@openshift-ci-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: mareklibra, suomiy

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-robot openshift-merge-robot merged commit 71f40c5 into openshift:master Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. ok-to-test Indicates a non-member PR verified by an org member that is safe to test. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants