Skip to content

Commit

Permalink
reorder columns
Browse files Browse the repository at this point in the history
  • Loading branch information
fuziontech committed Jan 9, 2025
1 parent 6a80f32 commit daa1b33
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 14 deletions.
49 changes: 36 additions & 13 deletions frontend/src/pages/Replication/Replication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ interface ReplicationQueueItem {
last_attempt_time: string
num_attempts: number
type: string
postpone_reason: string
postpone: string
}

export default function Replication() {
Expand Down Expand Up @@ -82,36 +84,57 @@ export default function Replication() {
key: 'table',
},
{
title: 'Error',
dataIndex: 'error',
key: 'error',
render: (error: string) => (
<Paragraph
style={{ maxWidth: '400px', color: 'red' }}
title: 'Type',
dataIndex: 'type',
key: 'type',
},
{
title: 'Last Postpone',
dataIndex: 'last_postpone_time',
key: 'postpone_time',
},
{
title: 'Postpone Reason',
dataIndex: 'postpone_reason',
key: 'postpone_reason',
render: (reason: string) => (
reason ? <Paragraph
style={{ maxWidth: '400px', color: 'orange' }}
ellipsis={{
rows: 2,
expandable: true,
}}
>
{error}
</Paragraph>
{reason}
</Paragraph> : null
),
},
{
title: 'Last Attempt',
dataIndex: 'last_attempt_time',
key: 'last_attempt_time',
},
{
title: 'Exception',
dataIndex: 'last_exception',
key: 'last_exception',
render: (last_exception: string) => (
last_exception ? <Paragraph
style={{ maxWidth: '400px', color: 'red' }}
ellipsis={{
rows: 2,
expandable: true,
}}
>
{last_exception}
</Paragraph> : null
),
},
{
title: 'Attempts',
dataIndex: 'num_attempts',
key: 'num_attempts',
},
{
title: 'Type',
dataIndex: 'type',
key: 'type',
},
]

usePollingEffect(
Expand Down
1 change: 0 additions & 1 deletion housewatch/clickhouse/clusters.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def get_replication_queue(node):
last_attempt_time,
last_postpone_time,
postpone_reason,
last_postpone_time,
merge_type
FROM system.replication_queue
WHERE last_exception != '' or postpone_reason != ''
Expand Down

0 comments on commit daa1b33

Please sign in to comment.