himanish-star commented on code in PR #15331: URL: https://github.com/apache/pinot/pull/15331#discussion_r2011416002
########## pinot-controller/src/main/resources/app/components/Homepage/Operations/RebalanceServer/RebalanceResponse.tsx: ########## @@ -0,0 +1,63 @@ +import {RebalanceServerSection} from "./RebalanceServerSection"; +import React from 'react'; +import {Grid, Paper} from "@material-ui/core"; +import CustomCodemirror from "../../../CustomCodemirror"; +import { + RebalanceServerSectionResponse +} from "./RebalanceServerResponses/RebalanceServerSectionResponse"; +import {RebalanceServerPreChecksResponse} from "./RebalanceServerResponses/RebalanceServerPreChecksResponse"; +import {RebalanceServerResponseLabelValue} from "./RebalanceServerResponses/RebalanceServerResponseLabelValue"; +import { + RebalanceServerRebalanceSummaryResponse +} from "./RebalanceServerResponses/RebalanceServerRebalanceSummaryResponse"; +import {RebalanceServerResponseCard} from "./RebalanceServerResponses/RebalanceServerResponseCard"; + +export const RebalanceResponse = ({ response }) => { + const responseSectionsToShow = [ + { + name: 'Segment Assignment', + key: 'segmentAssignment' + }, + { + name: 'Instance Assignment', + key: 'instanceAssignment' + } + ]; + Review Comment: @somandal for adding new sections you just need to provide the `key` and `name of the section` and it will render -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@pinot.apache.org For additional commands, e-mail: commits-h...@pinot.apache.org