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

ACM-13003-Fast-cluster-page-load #4110

Open
wants to merge 19 commits into
base: main
Choose a base branch
from

Conversation

jeswanke
Copy link
Contributor

@jeswanke jeswanke commented Nov 25, 2024

  1. environment label MOCK_CLUSTERS="number" in order to mock that many clusters and
    3 policies and
    44 system apps for each cluster
  2. that context error you found was caused by trying to use PluginContext in acm (mce only it looks like)
  3. there's a new LoadStatusProvider that any plugin can use that tells at what stage LoadData is:
    loadStarted --> the first packet has been received, if the data for that page is in the first packet it can start displaying
    loadCompleted --> the load of all data is done (the old loaded context value)

the first packets are these:
case 'ManagedCluster':
case 'HostedCluster':
case 'ClusterDeployment':
case 'Policy':
case 'PolicySet':
case 'AgentClusterInstall':
case 'ManagedClusterInfo':
case 'ManagedClusterAddOn':
case 'Search':
case 'Secret':

Signed-off-by: John Swanke [email protected]

Copy link

openshift-ci bot commented Nov 25, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jeswanke

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

Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
@jeswanke
Copy link
Contributor Author

jeswanke commented Dec 1, 2024

/test unit-tests-sonarcloud

1 similar comment
@jeswanke
Copy link
Contributor Author

jeswanke commented Dec 1, 2024

/test unit-tests-sonarcloud

Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Copy link
Contributor

@KevinFCormier KevinFCormier left a comment

Choose a reason for hiding this comment

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

Noted a bad import here. I will ping you separately about another change, and then re-test. Aiming to deliver this on Thursday (start of Train-22).

frontend/src/ui-components/AcmEmptyState/AcmEmptyState.tsx Outdated Show resolved Hide resolved
Signed-off-by: John Swanke <[email protected]>
…-13003-Fast-cluster-page-load3

Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
@jeswanke
Copy link
Contributor Author

jeswanke commented Dec 2, 2024

/test unit-tests-sonarcloud

@KevinFCormier
Copy link
Contributor

/hold for Train-22

Copy link
Contributor

@KevinFCormier KevinFCormier left a comment

Choose a reason for hiding this comment

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

Hey John,

I'm seeing some loading issues in places.

Applications, Advanced configuration tab

  • All 4 tables show a skeleton indefinitely

Governance, Overview tab

  • Shows spinner indefinitely
    Governance, Policies / Discovered policies tabs
  • Shows table skeleton indefinitely

@jeswanke
Copy link
Contributor Author

jeswanke commented Dec 3, 2024

hey Kevin,

oops I used:
const { loadCompleted } = useContext(PluginDataContext)
instead of:
const { dataContext } = useContext(PluginContext)
const { loadCompleted } = useContext(dataContext)

all better now

Signed-off-by: John Swanke <[email protected]>
Signed-off-by: John Swanke <[email protected]>
Copy link

sonarcloud bot commented Dec 3, 2024

Quality Gate Failed Quality Gate failed

Failed conditions
27.4% Coverage on New Code (required ≥ 70%)

See analysis details on SonarQube Cloud

Copy link

openshift-ci bot commented Dec 3, 2024

@jeswanke: The following test 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/unit-tests-sonarcloud 1a9dba2 link true /test unit-tests-sonarcloud

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.

@jeswanke
Copy link
Contributor Author

jeswanke commented Dec 3, 2024

/test console-acm-213-on-pull-request

Copy link

openshift-ci bot commented Dec 3, 2024

@jeswanke: The specified target(s) for /test were not found.
The following commands are available to trigger required jobs:

/test check
/test images
/test pr-image-mirror
/test pr-image-mirror-mce
/test unit-tests-sonarcloud

Use /test all to run all jobs.

In response to this:

/test console-acm-213-on-pull-request

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants