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

Display cluster details by type #1456

Merged
merged 6 commits into from
May 25, 2023
Merged

Conversation

arbulu89
Copy link
Contributor

@arbulu89 arbulu89 commented May 25, 2023

Description

Enable the display of ASCS/ERS clusters. I have renamed the ClusterDetails to HanaClusterDetails, as later on (next PR XD), we will have a AscsErsClusterDetails.

PD: Don't try to run this as it is. The backend part is in the deregistration branch 😅
As we have many changes in the frontend, I preferred to continue with this work in main, but simply rebasing deregistration to main enables everything

select_type

How was this tested?

Tests added

@arbulu89 arbulu89 added the enhancement New feature or request label May 25, 2023
@arbulu89 arbulu89 force-pushed the display-cluster-details-by-type branch from a6abc84 to 7156d14 Compare May 25, 2023 07:49
@@ -34,33 +29,35 @@ export function ClusterDetailsPage() {
return <div>Loading...</div>;
}

const renderedNodes = cluster.details?.nodes?.map((node) => ({
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moving this to the HanaClusterDetails view, as it depends on the details format, which in this case is HANA related. ASCS/ERS clusters have other details, so better to do the enrichment specifically for each type

/>
);
case 'ascs_ers':
return <div>ASCS/ERS</div>;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Simple placeholder by now. I will have the AscsErsClusterDetails component next.
I just put some text that will be in the details view to have the tests working fine

@arbulu89 arbulu89 marked this pull request as ready for review May 25, 2023 08:58
Copy link
Member

@nelsonkopliku nelsonkopliku left a comment

Choose a reason for hiding this comment

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

Cool! Great job!

assets/js/components/ClusterLink.jsx Outdated Show resolved Hide resolved
@arbulu89 arbulu89 merged commit 05ba92c into main May 25, 2023
@arbulu89 arbulu89 deleted the display-cluster-details-by-type branch May 25, 2023 15:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Development

Successfully merging this pull request may close these issues.

3 participants