Page MenuHomePhabricator

MPIC: Fix empty toast message when an error occurs
Closed, ResolvedPublic1 Estimated Story Points

Description

Description

The toast notification is working fine when user actions are successful but its message is empty when an error occurs.

That's happening because we take the message for any case (successful and error) from response.data.title to print it in the toast but we are not putting there the message when an error occurs. For those cases we are adding a formatted error message to response.data.

Screenshot 2024-08-01 at 11.01.08.png (418×876 px, 95 KB)

Acceptance criteria

  • The toast shows always a message according to the result of the operation that users perform

Event Timeline

Sfaci set the point value for this task to 1.Aug 6 2024, 9:28 AM

Change #1062101 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[operations/deployment-charts@master] Metrics Platform Instrument Configuration: Deploy to staging

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

Change #1062101 merged by jenkins-bot:

[operations/deployment-charts@master] Metrics Platform Instrument Configuration: Deploy to staging

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

Change #1062105 had a related patch set uploaded (by Clare Ming; author: Clare Ming):

[operations/deployment-charts@master] Metrics Platform Instrument Configuration: Deploy to production

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

Change #1062105 merged by jenkins-bot:

[operations/deployment-charts@master] Metrics Platform Instrument Configuration: Deploy to production

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