Skip to content

Conversation

@vojtechszocs
Copy link
Contributor

@vojtechszocs vojtechszocs commented Aug 7, 2025

This PR follows up on #14897 and #15057 by introducing a reusable ResourceDataView component and related code.

Existing resource list tables are not modified; there will be follow-up PRs to put this component into use.

Thanks to @rhamilto for testing the new component in CronTab plugin so we can fix any immediate issues.

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

openshift-ci-robot commented Aug 7, 2025

@vojtechszocs: This pull request references CONSOLE-4667 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.20.0" version, but no target version was set.

Details

In response to this:

Summary

This PR follows up on #14897 and #15057 by introducing reusable ResourceDataView component and related code.

Existing resource list tables are not modified; there will be follow up PRs to put this component into use.

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 TheRealJon and cajieh August 7, 2025 14:02
@openshift-ci openshift-ci bot added component/core Related to console core functionality kind/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Aug 7, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Aug 11, 2025

@vojtechszocs: This pull request references CONSOLE-4667 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.20.0" version, but no target version was set.

Details

In response to this:

This PR follows up on #14897 and #15057 by introducing reusable ResourceDataView component and related code.

Existing resource list tables are not modified; there will be follow up PRs to put this component into use.

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.

@vojtechszocs
Copy link
Contributor Author

/retest

Copy link
Member

@rhamilto rhamilto left a comment

Choose a reason for hiding this comment

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

A few observations from when I applied this code in openshift/console-crontab-plugin#45

sortFunction: sort,
props: {
className: props.classes,
sort: {
Copy link
Member

@rhamilto rhamilto Aug 28, 2025

Choose a reason for hiding this comment

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

This results in the actions column getting sorting functionality, which is not desired. Sorting should be optional on a per column basis.

Copy link
Member

@rhamilto rhamilto Aug 28, 2025

Choose a reason for hiding this comment

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

And I believe sorting is broken for all but the first column, but even there the header doesn't correctly indicate the sort direction.

Copy link
Member

@rhamilto rhamilto Aug 29, 2025

Choose a reason for hiding this comment

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

openshift/console-crontab-plugin@87da69a makes sorting optional.

Still need to troubleshoot the sorting issues in useResourceDataViewSort.

Copy link
Contributor Author

@vojtechszocs vojtechszocs Sep 3, 2025

Choose a reason for hiding this comment

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

Note that the hard-coded sortBy object was present in the original DataView PoC code:

sortBy: {
  defaultDirection: SortByDirection.asc,
  direction: SortByDirection.asc,
  index: 0,
}

I think that fixing sorting bugs (beyond any immediate issues) can be done as a follow-up.

This PR was supposed to introduce a reusable ResourceDataView component by refactoring and restructuring the original DataView PoC code.

@openshift-ci openshift-ci bot added component/sdk Related to console-plugin-sdk plugin-api-changed Categorizes a PR as containing plugin API changes labels Aug 28, 2025
@rhamilto
Copy link
Member

rhamilto commented Sep 3, 2025

ResourceDataView.patch

includes the correct fix so the filters dropdown correctly honors hideNameLabelFilters and hideLabelFilter props.

@rhamilto
Copy link
Member

rhamilto commented Sep 3, 2025

Oye. One more change.

useResourceDataViewSort.patch

@rhamilto
Copy link
Member

rhamilto commented Sep 4, 2025

It occurs to me those patches won't apply cleanly since my directory structure in the CronTab plugin doesn't match, but at least they're there.

@rhamilto
Copy link
Member

rhamilto commented Sep 4, 2025

It occurs to me those patches won't apply cleanly since my directory structure in the CronTab plugin doesn't match, but at least they're there.

I think this patch should work (it should contain all the changes we discussed yesterday).

DataView.patch

@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 4, 2025

@vojtechszocs: This pull request references CONSOLE-4667 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.

Details

In response to this:

This PR follows up on #14897 and #15057 by introducing a reusable ResourceDataView component and related code.

Existing resource list tables are not modified; there will be follow-up PRs to put this component into use.

Thanks to @rhamilto for testing the new component so we can fix any immediate issues.

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-robot
Copy link
Contributor

openshift-ci-robot commented Sep 4, 2025

@vojtechszocs: This pull request references CONSOLE-4667 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.

Details

In response to this:

This PR follows up on #14897 and #15057 by introducing a reusable ResourceDataView component and related code.

Existing resource list tables are not modified; there will be follow-up PRs to put this component into use.

Thanks to @rhamilto for testing the new component in CronTab plugin so we can fix any immediate issues.

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.

@rhamilto
Copy link
Member

rhamilto commented Sep 8, 2025

@vojtechszocs, you need to run yarn i18n and commit the diff.

@rhamilto
Copy link
Member

rhamilto commented Sep 9, 2025

code approval:
/assign @jhadvig
qe approval:
/assign @yapei
px approval:
/assign @sferich888
docs approval:
/assign @jseseCCS

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 9, 2025

@rhamilto: GitHub didn't allow me to assign the following users: jseseCCS.

Note that only openshift members with read permissions, repo collaborators and people who have commented on this issue/PR can be assigned. Additionally, issues/PRs can only have 10 assignees at the same time.
For more information please see the contributor guide

Details

In response to this:

code approval:
/assign @jhadvig
qe approval:
/assign @yapei
px approval:
/assign @sferich888
docs approval:
/assign @jseseCCS

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.

/**
* Console DataView component based on PatternFly DataView.
*/
export const ResourceDataView = <
Copy link
Contributor

Choose a reason for hiding this comment

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

Shall we add unit test for the new 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.

@yapei I think we can skip adding unit tests for this component at this point in time.

The main goal of this PR was to refactor original DataView PoC code from #14897 and #15057 without putting this component into any use. This is the initial step towards using PatternFly DataView code in Console.

Any immediate issues found by @rhamilto via CronTab plugin testing should be covered in this PR. Once this PR merges, the next step should be putting this component into use on select Console data tables and resolve any other issues we find along the way.

Once we're confident about the API (props) for this component, we can add unit tests for it.

@vojtechszocs
Copy link
Contributor Author

@rhamilto Updated i18n - see the last commit.

@rhamilto
Copy link
Member

/lgtm

Will address the remaining issues in 08a353c or additional follow ons.

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 10, 2025
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 10, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: rhamilto, 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

@rhamilto
Copy link
Member

Adding labels since this is foundational code that is not yet in use. Approvals will be done in #15469 where this code is applied.

/label docs-approved
/label px-approved

@openshift-ci openshift-ci bot added docs-approved Signifies that Docs has signed off on this PR px-approved Signifies that Product Support has signed off on this PR labels Sep 10, 2025
@rhamilto
Copy link
Member

/test okd-scos-e2e-aws-ovn

@rhamilto rhamilto added the plugin-api-approved Indicates a PR with plugin API changes has been approved by an API reviewer label Sep 11, 2025
@rhamilto
Copy link
Member

@yapei, can we punt on the unit test for the time being?

@rhamilto
Copy link
Member

@yapei, can we punt on the unit test for the time being?

If so, can you add the remaining labels (qe-approved and verified)?

@yapei
Copy link
Contributor

yapei commented Sep 12, 2025

verified the changes in #15469, no issues found
/verified by @yapei
/label qe-approved

@openshift-ci openshift-ci bot added the qe-approved Signifies that QE has signed off on this PR label Sep 12, 2025
@openshift-ci-robot
Copy link
Contributor

openshift-ci-robot commented Sep 12, 2025

@vojtechszocs: This pull request references CONSOLE-4667 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.

Details

In response to this:

This PR follows up on #14897 and #15057 by introducing a reusable ResourceDataView component and related code.

Existing resource list tables are not modified; there will be follow-up PRs to put this component into use.

Thanks to @rhamilto for testing the new component in CronTab plugin so we can fix any immediate issues.

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-robot openshift-ci-robot added the verified Signifies that the PR passed pre-merge verification criteria label Sep 12, 2025
@openshift-ci-robot
Copy link
Contributor

@yapei: This PR has been marked as verified by @yapei.

Details

In response to this:

verified the changes in #15469, no issues found
/verified by @yapei
/label qe-approved

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-robot
Copy link
Contributor

/retest-required

Remaining retests: 0 against base HEAD 5981a88 and 2 for PR HEAD 7af299a in total

@rhamilto
Copy link
Member

/test frontend

@openshift-ci
Copy link
Contributor

openshift-ci bot commented Sep 12, 2025

@vojtechszocs: all tests passed!

Full PR test history. Your PR dashboard.

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

@openshift-merge-bot openshift-merge-bot bot merged commit fd95953 into openshift:main Sep 12, 2025
8 checks passed
@logonoff logonoff deleted the resource-data-view branch November 26, 2025 18:27
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/sdk Related to console-plugin-sdk 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/i18n Indicates issue or PR relates to internationalization or has content that needs to be translated lgtm Indicates that a PR is ready to be merged. plugin-api-approved Indicates a PR with plugin API changes has been approved by an API reviewer plugin-api-changed Categorizes a PR as containing plugin API changes px-approved Signifies that Product Support has signed off on this PR qe-approved Signifies that QE has signed off on this PR tide/merge-method-squash Denotes a PR that should be squashed by tide when it merges. verified Signifies that the PR passed pre-merge verification criteria

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants