Optionally ignore outdated matches during bulk migration
This commit is contained in:
@@ -60,6 +60,10 @@ export const MigrationExecute = () => {
|
||||
() => entryList.filter((entry) => entry.status === MigrationEntryStatus.NO_MATCH),
|
||||
[entryList],
|
||||
);
|
||||
const outdatedEntries = useMemo(
|
||||
() => entryList.filter((entry) => entry.status === MigrationEntryStatus.OUTDATED),
|
||||
[entryList],
|
||||
);
|
||||
|
||||
return (
|
||||
<>
|
||||
@@ -102,6 +106,15 @@ export const MigrationExecute = () => {
|
||||
color="warning"
|
||||
isMigrating
|
||||
/>
|
||||
<MigrationEntryGroup
|
||||
status={MigrationEntryStatus.OUTDATED}
|
||||
title={plural(outdatedEntries.length, {
|
||||
one: '1 entry with only outdated matches',
|
||||
other: '# entries with only outdated matches',
|
||||
})}
|
||||
entries={outdatedEntries}
|
||||
color="warning"
|
||||
/>
|
||||
<MigrationEntryGroup
|
||||
status={MigrationEntryStatus.EXCLUDED}
|
||||
title={plural(excludedEntries.length, {
|
||||
|
||||
Reference in New Issue
Block a user