-
Notifications
You must be signed in to change notification settings - Fork 605
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
Add list page for network attachment definition #2545
Add list page for network attachment definition #2545
Conversation
@rawagner Could you please review? |
...ition-plugin/src/components/network-attachment-definitions/network-attachment-definition.tsx
Outdated
Show resolved
Hide resolved
70bb4d2
to
61667dd
Compare
frontend/packages/network-attachment-definition-plugin/src/utils/index.ts
Outdated
Show resolved
Hide resolved
...ition-plugin/src/components/network-attachment-definitions/network-attachment-definition.tsx
Outdated
Show resolved
Hide resolved
689f8aa
to
ad8de9f
Compare
c850c29
to
64457b5
Compare
333dcdf
to
f33d49a
Compare
...ition-plugin/src/components/network-attachment-definitions/network-attachment-definition.tsx
Outdated
Show resolved
Hide resolved
<ResourceLink kind={NamespaceModel.kind} name={namespace} title={namespace} /> | ||
</TableData> | ||
<TableData className={tableColumnClasses[2]}> | ||
{config.type || <span className="text-secondary">Not available</span>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please make a <NotAvailable />
component?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. But as this is already used on other multiple places, I suggest to do it consistently in a follow-up.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed. I'll make note to take care of this in a follow-up PR.
...ition-plugin/src/components/network-attachment-definitions/network-attachment-definition.tsx
Outdated
Show resolved
Hide resolved
...ition-plugin/src/components/network-attachment-definitions/network-attachment-definition.tsx
Outdated
Show resolved
Hide resolved
frontend/packages/kubevirt-plugin/src/components/create-vm-wizard/create-vm-wizard.tsx
Outdated
Show resolved
Hide resolved
<ResourceLink kind={NamespaceModel.kind} name={namespace} title={namespace} /> | ||
</TableData> | ||
<TableData className={tableColumnClasses[2]}> | ||
{config.type || <span className="text-secondary">Not available</span>} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense. But as this is already used on other multiple places, I suggest to do it consistently in a follow-up.
frontend/packages/network-attachment-definition-plugin/src/models/index.ts
Show resolved
Hide resolved
frontend/packages/network-attachment-definition-plugin/src/types/index.ts
Outdated
Show resolved
Hide resolved
frontend/packages/network-attachment-definition-plugin/src/utils/index.ts
Outdated
Show resolved
Hide resolved
0efca37
to
ad47bb8
Compare
I think there is a commit which doesn't belong to this PR ( |
.../network-attachment-definition-plugin/src/components/network-attachment-definitions/types.ts
Outdated
Show resolved
Hide resolved
.../network-attachment-definition-plugin/src/components/network-attachment-definitions/types.ts
Outdated
Show resolved
Hide resolved
frontend/packages/network-attachment-definition-plugin/src/utils/index.ts
Outdated
Show resolved
Hide resolved
frontend/packages/network-attachment-definition-plugin/src/utils/index.ts
Outdated
Show resolved
Hide resolved
013a06c
to
7b0af49
Compare
/retest |
/lgtm |
.../network-attachment-definition-plugin/src/components/network-attachment-definitions/types.ts
Show resolved
Hide resolved
7b0af49
to
fe2a608
Compare
/retest |
fe2a608
to
fb2094e
Compare
@@ -0,0 +1,13 @@ | |||
import { K8sKind } from '@console/internal/module/k8s'; | |||
|
|||
export const NetworkAttachmentDefinitionModel: K8sKind = { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please git-move packages/console-shared/src/models/index.ts
to packages/network-attachment-definition-plugin/src/models/index.ts
.
fb2094e
to
03c5a1d
Compare
/lgtm We should improve the imports, instead of the following forms
just import from
but this can be done as a follow-up. |
81b68cf
to
2a7cb7d
Compare
Since it removed the LGTM label due to the conflicts caused by f2fd107 merging first, I went ahead and fixed the imports as you suggested, so no follow-up needed. =) |
/retest |
checked that Vojtech's comment has been addressed, returning the lgtm /lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jelkosz, mareklibra, pcbailey, suomiy, vojtechszocs 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 |
This PR adds the list page for network attachment definitions.
Note: This does relocate the network attachment definition model from the kubevirt package to the share package.
Empty state:
Populated list: