Display cleanup policy in the topic list (#732)

* Add clean up policy to the topic overview

* Add clean up policy to the topic list
This commit is contained in:
Alexander Krivonosov 2021-07-29 10:16:10 +03:00 committed by GitHub
parent d29f42e0a0
commit 268c871312
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 15 additions and 1 deletions

View file

@ -139,6 +139,7 @@ const List: React.FC<Props> = ({
<th>Number of messages</th>
<th>Size</th>
<th>Type</th>
<th>Clean Up Policy</th>
<th> </th>
</tr>
</thead>

View file

@ -20,7 +20,14 @@ export interface ListItemProps {
}
const ListItem: React.FC<ListItemProps> = ({
topic: { name, internal, partitions, segmentSize, replicationFactor },
topic: {
name,
internal,
partitions,
segmentSize,
replicationFactor,
cleanUpPolicy,
},
deleteTopic,
clusterName,
clearTopicMessages,
@ -85,6 +92,9 @@ const ListItem: React.FC<ListItemProps> = ({
{internal ? 'Internal' : 'External'}
</div>
</td>
<td>
<span className="tag is-info">{cleanUpPolicy || 'Unknown'}</span>
</td>
<td className="topic-action-block">
{!internal && !isReadOnly ? (
<>

View file

@ -217,6 +217,9 @@ exports[`List when it does not have readonly flag matches the snapshot 1`] = `
<th>
Type
</th>
<th>
Clean Up Policy
</th>
<th>
</th>