mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-08-04 15:18:17 +00:00
This commit is contained in:
parent
e7072a3177
commit
325992d086
@ -55,7 +55,7 @@ const EntityVersionTimeLine: React.FC<Props> = ({
|
||||
})}>
|
||||
v{parseFloat(currV?.version).toFixed(1)}
|
||||
</p>
|
||||
<div className="tw-text-xs tw-font-normal">
|
||||
<div className="tw-text-xs tw-font-normal tw-break-all">
|
||||
{getSummary(currV?.changeDescription)}
|
||||
</div>
|
||||
<p className="tw-text-xs tw-italic">
|
||||
|
@ -166,9 +166,9 @@ export const summaryFormatter = (v: FieldChange) => {
|
||||
: '{}'
|
||||
);
|
||||
if (v.name === 'columns') {
|
||||
return `columns ${value?.map((val: any) => val?.name).join(',')}`;
|
||||
return `columns ${value?.map((val: any) => val?.name).join(', ')}`;
|
||||
} else if (v.name === 'tags' || v.name?.endsWith('tags')) {
|
||||
return `tags ${value?.map((val: any) => val?.tagFQN)?.join(',')}`;
|
||||
return `tags ${value?.map((val: any) => val?.tagFQN)?.join(', ')}`;
|
||||
} else {
|
||||
return v.name;
|
||||
}
|
||||
@ -182,13 +182,19 @@ export const getSummary = (changeDescription: ChangeDescription) => {
|
||||
return (
|
||||
<Fragment>
|
||||
{fieldsAdded?.length > 0 ? (
|
||||
<p>{fieldsAdded?.map(summaryFormatter)} has been added</p>
|
||||
<p className="tw-mb-2">
|
||||
{fieldsAdded?.map(summaryFormatter)} has been added
|
||||
</p>
|
||||
) : null}
|
||||
{fieldsUpdated?.length ? (
|
||||
<p>{fieldsUpdated?.map(summaryFormatter)} has been updated</p>
|
||||
<p className="tw-mb-2">
|
||||
{fieldsUpdated?.map(summaryFormatter)} has been updated
|
||||
</p>
|
||||
) : null}
|
||||
{fieldsDeleted?.length ? (
|
||||
<p>{fieldsDeleted?.map(summaryFormatter)} has been deleted</p>
|
||||
<p className="tw-mb-2">
|
||||
{fieldsDeleted?.map(summaryFormatter)} has been deleted
|
||||
</p>
|
||||
) : null}
|
||||
</Fragment>
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user