from T309366: Investigate: IP info not shown when all IP's edits are deleted
Feature summary
- The IP Info feature should show up on the DeletedContributions page
- It should only show data if there are deleted contributions that the current user has access to see
Use case(s)
- Way to see information for deleted edits, at least for admins (see https://phabricator.wikimedia.org/T309366#7962303)
Notes
It may be helpful to see how the infobox is added to Special:Contributions.
- The infobox is added by IPInfo to Special:Contributions here
- This adds a hook handler for the SpecialContributionsBeforeMainOutput hook (see SpecialContributons.php in core)
- This hook is specific to SpecialContributions so we can't use it for SpecialDeletedContributions
- But previously, IPInfo used a different hook SpecialPageBeforeExecute, which is fired for all special pages. Maybe we could use that hook here. Here's how it looked: https://gerrit.wikimedia.org/r/c/mediawiki/extensions/IPInfo/+/644959/10/src/HookHandler/InfoBoxHandler.php
General information:
- Documentation on the hooks system in MediaWiki: https://www.mediawiki.org/wiki/Manual:Hooks
Testing notes
- It should be possible to test this on beta
- This should work the same as the infobox on Special:Contributions
- It's worth testing this all the different permission levels possible for IPInfo
NB: The feedback button and some other links, all added by the WikimediaMessages extension, don't show up on Special:DeletedContributions yet. This will be fixed by: T325214: Ensure WikimediaMessages links show up on IPInfo infobox on Special:DeletedContributions