-
Notifications
You must be signed in to change notification settings - Fork 2.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[HOLD for payment 2024-06-06] [$250] Implement offline behavior and error handling for UpdateGroupChatName
#39984
Comments
Cases to check (not limited to):
Screen.Recording.2024-04-11.at.8.47.27.AM.mov |
UpdateGroupChatName
UpdateGroupChatName
This can come off HOLD now |
On looking some more I am not sure if we need any BE change for this. This is the only check we have that might throw... So, in reality the BE is more restrictive than the frontend atm. But I think that is fine. Let's just update the frontend and make sure we handle any possible error (though I'm not sure what that would be really besides user losing access to the report - and that is quite rare). |
Triggered auto assignment to @jliexpensify ( |
|
Triggered auto assignment to Design team member for new feature review - @dannymcclain ( |
UpdateGroupChatName
UpdateGroupChatName
Job added to Upwork: https://www.upwork.com/jobs/~0128ec154dad5b4df3 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @dukenv0307 ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.Implement offline behavior and error handling for UpdateGroupChatName What is the root cause of that problem?This is a new feature What changes do you think we should make in order to solve the problem?
App/src/libs/actions/Report.ts Line 635 in ee8f9c6
And here, we should only get the latest error to avoid duplicate error is displayed
What alternative solutions did you explore? (Optional)NA |
@marcaaron do you need anything specific from design for this other than a review? It looks like we should be able to just follow our standard error patterns that we're using elsewhere, yeah? |
Nope, I think we're good! |
@nkdengineer We already have the PR to handle errors: #40587, so when users update the new name, the previous error will be cleared. I see in your proposal you update |
@dukenv0307 Thanks for your feedback In App/src/pages/settings/Report/ReportSettingsPage.tsx Lines 73 to 75 in 4c243a2
|
Thanks @nkdengineer, your proposal looks good to me. We don't need to update error in 🎀👀🎀 C+ reviewed |
Current assignee @marcaaron is eligible for the choreEngineerContributorManagement assigner, not assigning anyone new. |
I think we should set the
Let's just ignore whatever the backend is sending as a message and use something generic. There are so few ways this could go wrong that it isn't worth optimizing for right now. |
📣 @dukenv0307 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @nkdengineer 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
@dukenv0307 The PR is here. |
UpdateGroupChatName
UpdateGroupChatName
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.77-11 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-06-06. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR adding this new feature has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Payment Summary
Just waiting on the checklist |
BugZero Checklist:
Regression test:
Do we 👍 or 👎 |
That sounds like a good test case to me 👍 |
Paid, job closed. Thanks everyone! |
Similar to #39983
We are now able to add a custom Group chat name. However, we do not handle any failure case yet.
Let's take whatever we are doing for the update "workspace room" name flow and apply the same error handling here.
In the backend, we currently send exceptions like this:
Which will put an error field on the report if updating the name fails.
We need that error to lead the user back to the "Settings" > "Name" field (RBR) and display an error message back to the user.
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @jliexpensifyThe text was updated successfully, but these errors were encountered: