Skip to content

Conversation

@rawagner
Copy link
Contributor

@rawagner rawagner commented Jun 25, 2019

inventory

Plugins can contribute new items to Inventory tab and also new status groups via DashboardsOverviewInventoryItem and DashboardsInventoryItemGroup extension points.

Every status group is a link pointing to resource page with enabled filters (ie Pods in OK group will link to Pods page with 'Running and Succeeded status).

@openshift-ci-robot
Copy link
Contributor

Hi @rawagner. 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.

Details

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 25, 2019
@rawagner rawagner force-pushed the dashboards-inventory-2 branch 2 times, most recently from 129b5fc to 9b11440 Compare June 25, 2019 08:39
@vojtechszocs
Copy link
Contributor

Plugins can contribute new items to Inventory tab

... to Cluster Inventory card within the Overview tab 😃

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems that resource.kind value can fall back to model.kind unless the developer wants to be explicit about it.

More generally, we should try to keep the extension properties (API surface) as small and lean as possible.

With these typings added to public/declarations.d.ts (source):

type OptionalExceptFor<T, K extends keyof T> = Partial<T> & Pick<T, K>;
type RequiredExceptFor<T, K extends keyof T> = Pick<T, Diff<keyof T, K>> & Partial<T>;

We can now modify resource.kind to be optional:

resource: RequiredExceptFor<FirehoseResource, 'kind'>;

which makes the extension properties declaration shorter.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

RequiredExceptFor definition isn't correct as we are using different Diff definition than expected. Sticking to FirehoseResource for now

Copy link
Contributor

Choose a reason for hiding this comment

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

OK, we can improve this later on.

Copy link
Contributor

Choose a reason for hiding this comment

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

Please rename this property to icon to better reflect its purpose.

Copy link
Contributor

Choose a reason for hiding this comment

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

Based on discussion, please change the type to React.ReactElement - similar to Perspective.icon.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

isnt React.ReactNode more appropriate here ? I could also rename icon to Icon to sign that it is React component.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Using React.ReactElement same as in Perspective.icon

@rawagner rawagner force-pushed the dashboards-inventory-2 branch 3 times, most recently from 22f03be to bc125b4 Compare June 26, 2019 13:03
@spadgett spadgett added this to the v4.2 milestone Jun 26, 2019
@spadgett
Copy link
Member

/assign @vojtechszocs

@spadgett
Copy link
Member

/approve

Approving pending lgtm from @vojtechszocs

@openshift-ci-robot openshift-ci-robot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 26, 2019
@spadgett
Copy link
Member

/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 26, 2019
@rawagner rawagner force-pushed the dashboards-inventory-2 branch from bc125b4 to 9ca4349 Compare June 26, 2019 13:51
@rawagner rawagner force-pushed the dashboards-inventory-2 branch from 9ca4349 to bd57b3f Compare June 26, 2019 14:50
@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
@rawagner rawagner force-pushed the dashboards-inventory-2 branch from bd57b3f to f330161 Compare June 26, 2019 16:26
@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 26, 2019
@rawagner
Copy link
Contributor Author

@vojtechszocs as per our discussion I removed plugin-stats from package.json. Can you take a look ?

@rawagner rawagner force-pushed the dashboards-inventory-2 branch 2 times, most recently from 2e49f44 to e7deb4a Compare July 2, 2019 06:42
@rawagner
Copy link
Contributor Author

rawagner commented Jul 2, 2019

@vojtechszocs as per our discussion I removed plugin-stats from package.json. Can you take a look ?

added back sice #1871 is up

@rawagner rawagner force-pushed the dashboards-inventory-2 branch 2 times, most recently from 75abbaf to ae6d993 Compare July 2, 2019 10:02
@rawagner rawagner force-pushed the dashboards-inventory-2 branch from ae6d993 to dc21720 Compare July 2, 2019 10:25
@rawagner
Copy link
Contributor Author

rawagner commented Jul 2, 2019

/test e2e-aws

@vojtechszocs
Copy link
Contributor

/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: rawagner, spadgett, vojtechszocs

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

The pull request process is described here

Details 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-bot
Copy link
Contributor

/retest

Please review the full test history for this PR and help us cut down flakes.

@openshift-merge-robot openshift-merge-robot merged commit 21e8143 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/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants