Skip to content

Conversation

@krishagarwal278
Copy link
Member

@krishagarwal278 krishagarwal278 commented Sep 12, 2025

Updated CRD list pages(secret, deployment, deployment-config, daemon-set, PDB, configmap) in workloads

workloads.1.mp4

Note: I've only updated modals in this PR because of failing integration tests due to a conflict when pulling the useOverlay Hook story work

@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Sep 12, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 12, 2025

@krishagarwal278: This pull request references CONSOLE-4772 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 story to target the "4.21.0" version, but no target version was set.

In response to this:

Modified the Secrets.jsx
https://github.com/user-attachments/assets/4c298b8d-6953-483c-be8c-08f2834c5932

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 added component/core Related to console core functionality kind/cypress Related to Cypress e2e integration testing labels Sep 12, 2025
</>
);
const rowCells = {
name: {
Copy link
Member

Choose a reason for hiding this comment

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

Deduplicate the keys by pulling them out to a separate array of objects.

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 12, 2025

@krishagarwal278: This pull request references CONSOLE-4772 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 story to target the "4.21.0" version, but no target version was set.

In response to this:

Modified Secrets.jsx

488963068-4c298b8d-6953-483c-be8c-08f2834c5932.mp4

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.

@krishagarwal278 krishagarwal278 changed the title CONSOLE-4772: Update CRD list pages to use DataView in Workloads Tab [WIP] CONSOLE-4772: Update CRD list pages to use DataView in Workloads Tab Sep 15, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 15, 2025
@krishagarwal278
Copy link
Member Author

/retest

@openshift-merge-robot openshift-merge-robot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 17, 2025
@krishagarwal278 krishagarwal278 changed the title [WIP] CONSOLE-4772: Update CRD list pages to use DataView in Workloads Tab CONSOLE-4772: Update CRD list pages to use DataView in Workloads Tab Sep 17, 2025
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 17, 2025
@krishagarwal278 krishagarwal278 changed the title CONSOLE-4772: Update CRD list pages to use DataView in Workloads Tab [WIP] CONSOLE-4772: Update CRD list pages to use DataView in Workloads Tab Sep 17, 2025
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Sep 17, 2025
@krishagarwal278 krishagarwal278 force-pushed the CONSOLE-4772 branch 2 times, most recently from afacb45 to 66c1116 Compare September 17, 2025 23:45
@openshift-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Sep 17, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 18, 2025

@krishagarwal278: This pull request references CONSOLE-4772 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 story to target the "4.21.0" version, but no target version was set.

In response to this:

Updated CRD list pages(secret, deployment, deployment-config, configmap) in workloads

workloads.1.mp4

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-merge-robot openshift-merge-robot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Oct 22, 2025
@Leo6Leo
Copy link
Contributor

Leo6Leo commented Oct 23, 2025

/retest-required

Seems flaky from the error log.

skipYamlReloadTest: true,
skipYamlSaveTest: true,
});
// .set('buildconfigs', {
Copy link
Member

Choose a reason for hiding this comment

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

Still needed

});

// disabled as listPage.rows.shouldExist isn't a valid test
// disabled as listPage.dvRows.shouldExist isn't a valid test
Copy link
Member

Choose a reason for hiding this comment

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

The code below didn't get updated, so this comment update is unnecessary.

"Create {{label}}": "Create {{label}}",
"Edit {{label}}": "Edit {{label}}",
"{helpText}": "{helpText}",
"Disruptions allowed": "Disruptions allowed",
Copy link
Member

Choose a reason for hiding this comment

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

This new string is indicative there are unintended changes somewhere.

Copy link
Member Author

Choose a reason for hiding this comment

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

This change came as part of my discussion with @jseseCCS on improving user texts. The updates to user-texts are part of this commit: 92bacc7

import { useActiveColumns } from '@console/internal/components/factory/Table/active-columns-hook';
import VirtualizedTable from '@console/internal/components/factory/Table/VirtualizedTable';
import { getPDBTableColumns } from './pdb-table-columns';
import PodDisruptionBudgetTableRow from './PDBTableRow';
Copy link
Member

Choose a reason for hiding this comment

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

If the existing row is shared, we want to maintain that sharing.

Copy link
Member Author

Choose a reason for hiding this comment

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

okay, i'll import and apply https://github.com/openshift/console/blob/main/frontend/packages/console-app/src/components/pdb/pdb-table-columns.tsx in the new table implementation. Won't be changing cell contents since it's out of scope 👍🏻


const usePDBColumns = (): TableColumn<PodDisruptionBudgetKind>[] => {
const { t } = useTranslation();
const [columns] = useActiveColumns({ columns: getPDBTableColumns() });
Copy link
Member

Choose a reason for hiding this comment

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

We want to keep column management.

qs: { kind: 'Pod', q: 'app=name', name: WORKLOAD_NAME },
});
listPage.rows.shouldExist(WORKLOAD_NAME);
listPage.dvRows.shouldExist(WORKLOAD_NAME);
Copy link
Member

Choose a reason for hiding this comment

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

This test is disabled, so no need to update.

listPage.dvRows.shouldBeLoaded();
cy.visit(`/k8s/ns/${testName}/cronjobs/${CRONJOB_NAME}/jobs`);
listPage.dvRows.countShouldBe(2);
listPage.rows.countShouldBe(2);
Copy link
Member

Choose a reason for hiding this comment

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

jobs list was already updated, so this change is gonna break the test.

cell: <ResourceLink kind="Namespace" name={namespace} />,
},
[tableColumnInfo[2].id]: {
cell: <span>{dataSize}</span>,
Copy link
Member

Choose a reason for hiding this comment

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

This is incorrect.

Copy link
Member Author

Choose a reason for hiding this comment

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

removed <span/> tag

Copy link
Member

Choose a reason for hiding this comment

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

Removing the unnecessary <span> is great! But it looks like the value of this cell changed from {_.size(configMap.data) + _.size(configMap.binaryData)} to sorts.dataSize(configMap).

Copy link
Member Author

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

i am importing sort from './factory/table' and applying sorts.dataSize to the cell

cell: <ResourceLink kind="Namespace" name={namespace} />,
},
[tableColumnInfo[2].id]: {
cell: <span>{cronjob.spec.schedule}</span>,
Copy link
Member

Choose a reason for hiding this comment

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

Contents are not the same as before. I'm gonna stop reviewing here and have you double check the rest of the files.

@openshift-merge-robot openshift-merge-robot added needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. and removed needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. labels Oct 24, 2025
…ap, cronjob, PDBList, daemon-set)in workloads

	modified:   frontend/packages/console-app/src/components/data-view/ResourceDataView.tsx
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-cli-download.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-notification.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-yaml-sample.cy.ts
	modified:   frontend/public/components/configmap.tsx
	modified:   frontend/public/components/deployment-config.tsx
	modified:   frontend/public/components/deployment.tsx
	modified:   frontend/public/components/factory/list-page.tsx
	modified:   frontend/public/components/filter-toolbar.tsx
	modified:   frontend/public/components/secret.tsx
	modified:   frontend/public/components/cron-job.tsx
	modified:   frontend/public/components/secret.tsx
	modified:   frontend/public/locales/en/public.json
	modified:   frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/views/list-page.ts
	modified:   frontend/public/components/daemon-set.tsx
	modified:   frontend/public/locales/en/public.json

	modified:   frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/views/list-page.ts
	modified:   frontend/public/components/daemon-set.tsx
	modified:   frontend/public/locales/en/public.json
…orkload-table.tsx

	modified:   frontend/packages/console-app/src/components/data-view/ResourceDataView.tsx
	modified:   frontend/packages/console-app/src/components/pdb/PDBList.tsx
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-cli-download.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-external-log-link.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-link.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-notification.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-yaml-sample.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/views/list-page.ts
	modified:   frontend/public/components/configmap.tsx
	modified:   frontend/public/components/cron-job.tsx
	modified:   frontend/public/components/daemon-set.tsx
	modified:   frontend/public/components/deployment-config.tsx
	modified:   frontend/public/components/deployment.tsx
	modified:   frontend/public/components/secret.tsx
	modified:   frontend/public/components/workload-table.tsx
	modified:   frontend/public/locales/en/public.json

	modified:   frontend/packages/console-app/src/components/pdb/PDBList.tsx
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-cli-download.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-external-log-link.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-link.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-notification.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-yaml-sample.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crud/namespace-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/views/list-page.ts
	modified:   frontend/public/components/configmap.tsx
	modified:   frontend/public/components/cron-job.tsx
	modified:   frontend/public/components/daemon-set.tsx
	modified:   frontend/public/components/deployment-config.tsx
	modified:   frontend/public/components/deployment.tsx
	modified:   frontend/public/components/secret.tsx
	modified:   frontend/public/components/workload-table.tsx
	modified:   frontend/public/locales/en/public.json
	modified:   frontend/public/components/modals/expand-pvc-modal.tsx
	modified:   frontend/packages/integration-tests-cypress/tests/app/demo-dynamic-plugin.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/app/deployments.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/app/filtering-and-searching.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/app/start-job-from-cronjob.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-cli-download.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-external-log-link.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-notification.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crd-extensions/console-yaml-sample.cy.ts
	modified:   frontend/packages/integration-tests-cypress/tests/crud/resource-crud.cy.ts
	modified:   frontend/packages/integration-tests-cypress/views/list-page.ts
	modified:   frontend/public/components/configmap.tsx
	modified:   frontend/public/components/daemon-set.tsx
	modified:   frontend/public/components/workload-table.tsx
	modified:   frontend/public/locales/en/public.json
@krishagarwal278 krishagarwal278 force-pushed the CONSOLE-4772 branch 2 times, most recently from 97639ce to 083bb3d Compare October 28, 2025 03:06
@krishagarwal278
Copy link
Member Author

/retest

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Oct 28, 2025

@krishagarwal278: The following tests failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/prow/e2e-gcp-console 2ab51b4 link true /test e2e-gcp-console
ci/prow/okd-scos-e2e-aws-ovn 2ab51b4 link false /test okd-scos-e2e-aws-ovn

Full PR test history. Your PR dashboard.

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-sigs/prow repository. I understand the commands that are listed here.

@rhamilto
Copy link
Member

Replaced by #15653

@rhamilto rhamilto closed this Oct 28, 2025
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. component/core Related to console core functionality component/dev-console Related to dev-console docs-approved Signifies that Docs has signed off on this PR jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. kind/cypress Related to Cypress e2e integration testing kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated px-approved Signifies that Product Support has signed off on this PR tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges.

Projects

None yet

Development

Successfully merging this pull request may close these issues.