Skip to content

Commit 64482d1

Browse files
authored
add indexer id to output
add additional id column to bin/magento indexer:status command in order to have that information ready
1 parent 9fc6972 commit 64482d1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/code/Magento/Indexer/Console/Command/IndexerStatusCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ protected function configure()
3434
protected function execute(InputInterface $input, OutputInterface $output)
3535
{
3636
$table = new Table($output);
37-
$table->setHeaders(['Title', 'Status', 'Update On', 'Schedule Status', 'Schedule Updated']);
37+
$table->setHeaders(['ID', 'Title', 'Status', 'Update On', 'Schedule Status', 'Schedule Updated']);
3838

3939
$rows = [];
4040

@@ -43,6 +43,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
4343
$view = $indexer->getView();
4444

4545
$rowData = [
46+
'ID' => $indexer->getId(),
4647
'Title' => $indexer->getTitle(),
4748
'Status' => $this->getStatus($indexer),
4849
'Update On' => $indexer->isScheduled() ? 'Schedule' : 'Save',

0 commit comments

Comments
 (0)