companies: Zusammenführungen zum Nachprüfen auflisten
companies:merges --batch= zeigt je Vorgang Überlebenden, Newsroom-URLs auf beiden Portalen, aufgegangene Firmen und deren alte URLs (301). Der scharfe Lauf gibt die ersten 30 Vorgänge jetzt ebenfalls als Tabelle aus. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
f3e7aca0f2
commit
235c20ce1d
4 changed files with 151 additions and 5 deletions
|
|
@ -69,11 +69,11 @@ class MergeCompanies extends Command
|
|||
$stats['meldungen'] += $result->pressReleases;
|
||||
$stats['both'] += $result->targetPortal->value === 'both' && $result->survivor->portal->value !== 'both' ? 1 : 0;
|
||||
|
||||
if ($dryRun) {
|
||||
if (count($plans) < 30) {
|
||||
$plans[] = $result;
|
||||
}
|
||||
if (count($plans) < 30) {
|
||||
$plans[] = $result;
|
||||
}
|
||||
|
||||
if ($dryRun) {
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
@ -107,7 +107,9 @@ class MergeCompanies extends Command
|
|||
));
|
||||
|
||||
if (! $dryRun) {
|
||||
$this->line(sprintf(' Batch %s — Rückabwicklung: companies:unmerge --batch=%s', $batch, $batch));
|
||||
$this->line(sprintf(' Batch %s', $batch));
|
||||
$this->line(sprintf(' Prüfen: companies:merges --batch=%s', $batch));
|
||||
$this->line(sprintf(' Rückabwicklung: companies:unmerge --batch=%s', $batch));
|
||||
}
|
||||
|
||||
foreach ($stats['uebersprungen'] as $reason => $count) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue