Page MenuHomePhabricator

Remove hard dependency on DiscussionTools from ReportIncident
Closed, ResolvedPublic

Description

Currently the DiscussionTools extension has to be installed for the ReportIncident extension to work. This is because the Hooks.php file implements a DiscussionTools hook and as such when the DiscussionTools extension is not installed this fails to work.

Acceptance criteria
  • The DiscussionTools hook usage should be moved to a separate handler
  • Tests related to DiscussionTools be skipped if not installed.
  • The extension be tested to work without DiscussionTools enabled

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 965111 had a related patch set uploaded (by Dreamy Jazz; author: Dreamy Jazz):

[mediawiki/extensions/ReportIncident@master] Remove hard dependency on DiscussionTools

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

Change 965111 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Remove hard dependency on DiscussionTools

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

Suggested QA steps (can be performed on PatchDemo or local wikis):

  1. Install ReportIncident extension
  2. Make sure the DiscussionTools extension is not installed and uninstall it if needed.
  3. Load a user talk page
  4. Verification step 1: Verify that the user talk page loads successfully.
  5. Verification step 2: Verify that a "Report" link appears in the "Tools" menu
  6. Click on the "Report" link
  7. Verification step 3: Verify that the reporting dialog is shown

Test wiki created on Patch demo by DJacksonA using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/09072d0263/w

Test wiki on Patch demo by DJacksonA using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/09072d0263/w/

Test wiki created on Patch demo by DJacksonA using patch(es) linked to this task:
https://patchdemo.wmflabs.org/wikis/5a294b3931/w

Djackson-ctr subscribed.

I have verified that without DiscussionTools extension installed the Report Incident still functions and displays as expected (per the instructions listed in the QA Steps) and (Acceptance Criteria listed in the ticket Description).
Great Work! @Dreamy_Jazz, and as always Thank You for the QA Steps!!!
Testing was performed at the following url:
https://patchdemo.wmflabs.org/wikis/5a294b3931/w/index.php?title=User_talk:Patch_Demo&action=edit&redlink=1

Test wiki on Patch demo by DJacksonA using patch(es) linked to this task was deleted:

https://patchdemo.wmflabs.org/wikis/5a294b3931/w/