pierrejeambrun commented on code in PR #33611:
URL: https://github.com/apache/airflow/pull/33611#discussion_r1305444158
##########
airflow/www/static/js/cluster-activity/live-metrics/Health.tsx:
##########
@@ -107,11 +106,16 @@ const Health = (props: CenterProps) => {
latestHeartbeat={data?.triggerer?.latestTriggererHeartbeat}
mb={3}
/>
- <HealthSection
- title="Dag Processor"
- status={data?.dagProcessor?.status}
- latestHeartbeat={data?.dagProcessor?.latestDagProcessorHeartbeat}
- />
+ {!!standaloneDagProcessor && (
Review Comment:
All item should have a margin bottom, but the last one. (Both when the last
one is the `Dag Processor` or the `Triggerer`.
To not add ternary into the `mb` props you can simply define a margin top on
the `Dag Processor` section and remove the `mb` on the Triggerer.
##########
airflow/www/static/js/cluster-activity/live-metrics/Health.tsx:
##########
@@ -107,11 +106,16 @@ const Health = (props: CenterProps) => {
latestHeartbeat={data?.triggerer?.latestTriggererHeartbeat}
mb={3}
/>
- <HealthSection
- title="Dag Processor"
- status={data?.dagProcessor?.status}
- latestHeartbeat={data?.dagProcessor?.latestDagProcessorHeartbeat}
- />
+ {!!standaloneDagProcessor && (
Review Comment:
All items should have a margin bottom, but the last one. (Both when the last
one is the `Dag Processor` or the `Triggerer`.
To not add ternary into the `mb` props you can simply define a margin top on
the `Dag Processor` section and remove the `mb` on the Triggerer.
--
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]