Page MenuHomePhabricator

Log email contents to browser console when in developer mode
Closed, ResolvedPublic

Description

When ReportIncidentDeveloperMode is on, return the email contents with the API response. The caller (ReportIncidentDialog.vue) should log this to the browser console. The idea is that a user can see what the email would look like, for QA and testing purposes.

Acceptance criteria:

  • submitting a valid report form shows me the email contents in the browser console when ReportIncidentDeveloperMode is true
  • email contents are included in the API repsonse when ReportIncidentDeveloperMode is true

Event Timeline

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

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

[mediawiki/extensions/ReportIncident@master] Print email contents to console on successful report submission

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

Change 967484 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] Print email contents to console on successful report submission

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

Suggested QA steps (should work on patchdemo):

  1. Install the ReportIncident extension
  2. Load a user talk page
  3. Open DevTools and open the browser console
  4. Click on the Report button in the Tools menu on the browser tab
  5. Navigate to the second step
  6. Fill out the form with valid data
  7. Submit the form
  8. Verification step 1: The browser console should contain the information that was submitted in the form in the form of an email.

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

I have verified the new code to display contents of the email in DevTools-Console has been implemented and is functioning and displaying as expected.
Testing was executed at https://patchdemo.wmflabs.org/wikis/70e76793db/wiki/User_talk:Bob
As always @Dreamy_Jazz thank you for the great work and the QA Steps.

image.png (335×1 px, 47 KB)

image.png (912×445 px, 252 KB)

Dreamy_Jazz updated the task description. (Show Details)

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

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

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

https://patchdemo.wmflabs.org/wikis/70e76793db/w/

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

https://patchdemo.wmflabs.org/wikis/3bd06730af/w/

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

https://patchdemo.wmflabs.org/wikis/fb27d4dfac/w/