-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[$250] When we set description of a room for the first time, optimistically it is shown as a comment in the LHN and later updates to system message #46046
Comments
Triggered auto assignment to @VictoriaExpensify ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we set description of a room for the first time, optimistically it is shown as a comment in the LHN and later updates to system message What is the root cause of that problem?Because we do not create an optimistic action (room description updated type of action) in updateDescription the LHN will default to show the description as there will no be any report action until the room update report action is returned from the server. What changes do you think we should make in order to solve the problem?We need to create an optimistic room description updated report action in updateDescription. App/src/libs/actions/Report.ts Lines 2239 to 2262 in a3df238
We create a similar util function as buildOptimisticRenamedRoomReportAction which takes new description as a param and creates a UPDATEROOMDESCRIPTION report action with the same content as would be returned from the server. And we then update the optimistic, success and failure data accordingly to include the optimistically created report action.
Work expected from the BE : the What alternative solutions did you explore? (Optional) |
Note I can take this as a C+ as i reported this issue and have more context |
Recreated the issue. Agree this is buggy and we should fix it |
Job added to Upwork: https://www.upwork.com/jobs/~01d1a09eb334a44e74 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allroundexperts ( |
@allroundexperts , mind if i take this over? I have a little extra context as i reported this one :) |
ProposalPlease re-state the problem that we are trying to solve in this issue.When we set description of a room for the first time, optimistically it is shown as a comment in the LHN and later updates to system message What is the root cause of that problem?We don't initiate a new optimistic report action when updating the description. Therefore, we need to wait for a response from the backend to show the revised description message What changes do you think we should make in order to solve the problem?We need to implement a function to create a new optimistic report action.
Next, in the updateDescription function, add this object to optimisticData.
Additionally, you'll need to update successData and failureData accordingly Optional: To be safe, we should add these below field to optimistic report
We also need to include reportActionID as a parameter and ensure that we get the update from the backend. When removing the description, the message display "set the room description to: " but the subtitle on LHN display "cleared the room description" Since there is no logic in place to determine whether the message is for updating or removing the description App/src/libs/ReportActionsUtils.ts Line 1294 in 5e65276
We should apply the same logic used in the Left Hand Navigation (LHN) for consistency.
|
Sure, all yours 😄 |
Thank you so much @allroundexperts, @VictoriaExpensify , can you assign me over here please, thanks :) |
📣 @allgandalf 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
Over to you @allgandalf |
Thanks for your proposals @FitseTLT @cretadn22 , A little feedback to both of you:
This section is to ensure that you understand what the actual problem is, i would expect that you write this in a way that explains the problem and not copy paste the issue title. This section is to make sure that you understood what the problem is, so please try to write in your own understanding of the bug. Now coming to the proposals, Both of you have the same and correct RCA! I am inclined towards @FitseTLT's proposal as they were first to identify the RCA and also provide solution to it. But before proceeding, @cretadn22 , From my understanding, I feel your solution is just an elaborated version of @FitseTLT's solution. Is that assumption correct or do you have anything different in your proposed solution ? I will wait for your reply till next overdue label before getting an internal engineer on this, thanks for your proposals both of you! |
@allgandalf This is some different things
I believe it's incorrect because the updated room name message differs from the set description message. Let's see two below messages So we can't apply the same logic to both cases
They don't specify which field is crucial and effectively used to obtain accurate results. In my proposal, I highlighted that detail.
|
@cretadn22 It's not a must for a contributor to provide code changes as long as the give every important steps to be done and in my proposal I have mentioned every major important detail and tasks we need to do, all that is left is the code detail that should be dealt with in the PR phase. |
@allgandalf For more context you can see a similar example of the same situation as we are facing here and the decision and logic the reviewer use which is the same as your review. |
In this example, two solutions are different. And the reviewer say that your proposal is selected because
|
@FitseTLT Sure, the changes are in review, I let you know when they are live. |
@marcochavezf @FitseTLT @VictoriaExpensify @allgandalf this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
Chill melvin, we are waiting for |
@FitseTLT @allgandalf the BE changes are live, the parameter for the API command |
Thanks for the quick changes @marcochavezf , and not overdue sir melvin |
not overdue |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
What is the ETA of the PR @FitseTLT ? |
PR was raised, today, I will review it soon |
Approved the PR, all yours @marcochavezf 🙇 |
PR is on staging ♻️ |
Regression Test Proposal
Verify that 'the room description updated' system message is shown Verify also that the same system message is shown in LHN Do we agree 👍 or 👎 |
@VictoriaExpensify can you pay this one please 🙇 |
Current assignee @allgandalf is eligible for the External assigner, not assigning anyone new. |
Created a GH to add this to TestRail - https://github.com/Expensify/Expensify/issues/423524 |
Payment Summary: Thanks for your work on this! |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 9.0.11-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @allgandalf
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1721729123500449
Action Performed:
Expected Result:
Description entered is displayed
Actual Result:
Description entered is shown first then it updates to system message
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Screen.Recording.2024-07-23.at.3.35.05.PM.mov
Add any screenshot/video evidence
View all open jobs on GitHub
Recording.381.mp4
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @The text was updated successfully, but these errors were encountered: