Page MenuHomePhabricator

Wire the reporting form to the API endpoint
Closed, ResolvedPublic

Description

After T337635: Create API endpoint for receiving report data is done, we'll have an API endpoint that we can post the form contents to.

Acceptance criteria:

Event Timeline

kostajh added a subscriber: JSengupta-WMF.

@Madalina @JSengupta-WMF What is the error message that we display to the user in case there is an error from the server-side? Do we allow the user to retry the submission? (My suggestion is to allow pressing "Submit" again.)

@Madalina @JSengupta-WMF What is the error message that we display to the user in case there is an error from the server-side? Do we allow the user to retry the submission? (My suggestion is to allow pressing "Submit" again.)

I found this error message (https://drive.google.com/drive/u/0/folders/1H8doID3uD0rR_5O8iXF03vjSikseSDpd) which implies that the user has to start the process over again.

Change 955905 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/ReportIncident@master] form: POST form data to intake API

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

Change 956421 had a related patch set uploaded (by Kosta Harlan; author: Kosta Harlan):

[mediawiki/extensions/ReportIncident@master] api: Support receiving "something else" details

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

@Madalina @JSengupta-WMF What is the error message that we display to the user in case there is an error from the server-side? Do we allow the user to retry the submission? (My suggestion is to allow pressing "Submit" again.)

I found this error message (https://drive.google.com/drive/u/0/folders/1H8doID3uD0rR_5O8iXF03vjSikseSDpd) which implies that the user has to start the process over again.

Let's follow up on this discussion in T338804: [S] Inform the user about the success or failure of submitting a report.

Change 955905 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] form: POST form data to intake API

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

I feel that showing user an error message that late asking to restart the process again could be frustrating to the user. I would keep the filled form open and show an inline error message with the option to resubmit it.

Change 956421 merged by jenkins-bot:

[mediawiki/extensions/ReportIncident@master] api: Support receiving "something else" details

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

I feel that showing user an error message that late asking to restart the process again could be frustrating to the user. I would keep the filled form open and show an inline error message with the option to resubmit it.

We will follow up on the workflows for that in T338804: [S] Inform the user about the success or failure of submitting a report