abhishekrb19 commented on code in PR #20619:
URL: https://github.com/apache/druid/pull/20619#discussion_r4305227620


##########
web-console/src/views/supervisors-view/supervisors-view.tsx:
##########
@@ -1049,6 +1050,26 @@ export class SupervisorsView extends React.PureComponent<
           },
           show: visibleColumns.shown('Running tasks'),
         },
+        {
+          Header: 'Partitions',
+          id: 'partitions',
+          accessor: 'supervisor_id',
+          width: 110,
+          filterable: false,
+          sortable: false,
+          className: 'padded',
+          show: visibleColumns.shown('Partitions'),
+          Cell: ({ value, original }) => {
+            const status = useContext(StatusContext);
+            if (!oneOf(original.type, 'kafka', 'kinesis', 'rabbit')) return 
null;
+            const partitions = status[value]?.payload?.partitions;
+            return isNumberLike(partitions) ? (
+              <span data-tooltip="Number of partitions in the stream">

Review Comment:
   I left the wording as partitions because the supervisor status API uses that 
field for Kinesis too



-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to