Page MenuHomePhabricator

Add Page creation log to action=Delete
Closed, ResolvedPublicFeature

Description

Feature summary (what you would like to be able to do and where):
The page creation log should also be show in action=Delete.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):
Pages that need to be deleted are often vandalism. In this case, the page creation log must also be deleted. At the moment, the page creation log is only visible on the corresponding page, and many administrators (especially administrators from smaller projects) are unaware that it exists.

Benefits (why should this be implemented?):
When deleting pages, an administrator can immediately see that it exists. The administrator can also see the content and knows whether it needs to be deleted.

action delete.png (1,084×319 px, 42 KB)

The implementation could be as follows:

DeleteAction.php
	protected function showLogEntries(): void {
		$deleteLogPage = new LogPage( 'delete' );
		$outputPage = $this->getContext()->getOutput();
		$outputPage->addHTML( Html::element( 'h2', [], $deleteLogPage->getName()->text() ) );
		LogEventsList::showLogExtract( $outputPage, 'delete', $this->getTitle() );
		
		$createLogPage = new LogPage( 'create' );
		$outputPage->addHTML( Html::element( 'h2', [], $createLogPage->getName()->text() ) );
	 	LogEventsList::showLogExtract( $outputPage, 'create', $this->getTitle() );
	}

Details

Related Changes in Gerrit:

Event Timeline

Atieno subscribed.

Moving this here to Discuss the request against other priorities not discuss the request itself

Change #1248662 had a related patch set uploaded (by Pppery; author: Pppery):

[mediawiki/core@master] Show creation log on action=delete

https://gerrit.wikimedia.org/r/1248662

Change #1248662 merged by jenkins-bot:

[mediawiki/core@master] Show creation log on action=delete

https://gerrit.wikimedia.org/r/1248662