Skip to content
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-28] [$250] Group Chat custom avatar not saved when navigating back to invite members page #40198

Closed
marcaaron opened this issue Apr 12, 2024 · 41 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor

Comments

@marcaaron
Copy link
Contributor

marcaaron commented Apr 12, 2024

Coming from #39757 (comment)

  1. Create a new group chat
  2. Choose a picture for custom avatar
  3. Go back to member invite page
  4. Proceed again
  5. Create chat

Expected:

Avatar image should be saved.

Actual

Picture is not taken into consideration.

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~014f246ab8eb2607ee
  • Upwork Job ID: 1785758481083801600
  • Last Price Increase: 2024-06-05
  • Automatic offers:
    • s77rt | Reviewer | 102700850
    • wildan-m | Contributor | 102700854
Issue OwnerCurrent Issue Owner: @adelekennedy
@marcaaron
Copy link
Contributor Author

I am guessing this is because the file ref needs to be cached outside the component lifecycle or some other strategy to achieve it. Feels like a minor issue that can be easily solved.

@melvin-bot melvin-bot bot added the Overdue label Apr 22, 2024
@s77rt
Copy link
Contributor

s77rt commented Apr 22, 2024

No progress yet. Focused on QBO

@melvin-bot melvin-bot bot removed the Overdue label Apr 22, 2024
@melvin-bot melvin-bot bot added the Overdue label May 1, 2024
@marcaaron
Copy link
Contributor Author

Gonna take this one External so we can make some progress.

@melvin-bot melvin-bot bot removed the Overdue label May 1, 2024
@marcaaron marcaaron added Overdue Bug Something is broken. Auto assigns a BugZero manager. labels May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

Triggered auto assignment to @adelekennedy (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@melvin-bot melvin-bot bot added Daily KSv2 and removed Overdue Weekly KSv2 labels May 1, 2024
@marcaaron marcaaron added the External Added to denote the issue can be worked on by a contributor label May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

Job added to Upwork: https://www.upwork.com/jobs/~014f246ab8eb2607ee

@melvin-bot melvin-bot bot changed the title Group Chat custom avatar not saved when navigating back to invite members page [$250] Group Chat custom avatar not saved when navigating back to invite members page May 1, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label May 1, 2024
Copy link

melvin-bot bot commented May 1, 2024

Current assignee @s77rt is eligible for the External assigner, not assigning anyone new.

@neonbhai
Copy link
Contributor

neonbhai commented May 1, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Group Chat custom avatar not saved when navigating back to invite members page

What is the root cause of that problem?

When creating the group, we use the outdated fileRef.current which is undefined when coming back.

Report.navigateToAndOpenReport(logins, true, newGroupDraft.reportName ?? '', newGroupDraft.avatarUri ?? '', fileRef.current, optimisticReportID.current);

What changes do you think we should make in order to solve the problem?

We should use stashedLocalAvatarImage which takes the saved picture from the NEW_GROUP_CHAT_DRAFT Onyx key when creating the groupChat

const stashedLocalAvatarImage = newGroupDraft?.avatarUri;

@s77rt
Copy link
Contributor

s77rt commented May 2, 2024

@neonbhai Thanks for the proposal. Your RCA makes sense but the solution won't work. In onyx we only store the url and we want to pass the whole image.

@melvin-bot melvin-bot bot added the Overdue label May 6, 2024
@s77rt
Copy link
Contributor

s77rt commented May 6, 2024

Still looking for proposals

@melvin-bot melvin-bot bot removed the Overdue label May 6, 2024
Copy link

melvin-bot bot commented May 8, 2024

📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸

@melvin-bot melvin-bot bot added the Overdue label May 8, 2024
@adelekennedy
Copy link

still waiting for proposals - @marcaaron @s77rt is this a more complex issue than originally thought?

Copy link

melvin-bot bot commented Jun 10, 2024

Triggered auto assignment to @MonilBhavsar, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@wildan-m
Copy link
Contributor

@MonilBhavsar, do we need to consider anything else before we proceed?

@MonilBhavsar
Copy link
Contributor

No thanks! looks good to me. Thanks for keeping it consistent with receipt scan flow

@melvin-bot melvin-bot bot removed the Help Wanted Apply this label when an issue is open to proposals by contributors label Jun 12, 2024
Copy link

melvin-bot bot commented Jun 12, 2024

📣 @s77rt 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job

Copy link

melvin-bot bot commented Jun 12, 2024

📣 @wildan-m 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app!

Offer link
Upwork job
Please accept the offer and leave a comment on the Github issue letting us know when we can expect a PR to be ready for review 🧑‍💻
Keep in mind: Code of Conduct | Contributing 📖

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jun 12, 2024
@wildan-m
Copy link
Contributor

@s77rt The PR is ready for review.

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Jun 21, 2024
@melvin-bot melvin-bot bot changed the title [$250] Group Chat custom avatar not saved when navigating back to invite members page [HOLD for payment 2024-06-28] [$250] Group Chat custom avatar not saved when navigating back to invite members page Jun 21, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 21, 2024
Copy link

melvin-bot bot commented Jun 21, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Jun 21, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.0-9 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-28. 🎊

For reference, here are some details about the assignees on this issue:

Copy link

melvin-bot bot commented Jun 21, 2024

BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:

  • [@s77rt] The PR that introduced the bug has been identified. Link to the PR:
  • [@s77rt] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@s77rt] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@s77rt] Determine if we should create a regression test for this bug.
  • [@s77rt] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@adelekennedy] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@s77rt
Copy link
Contributor

s77rt commented Jun 22, 2024


Regression Test Proposal

  1. Click FAB > Start chat
  2. Select multiple users (group) and press Next
  3. Upload a group avatar
  4. Go back
  5. Click Next
  6. Click Start group
  7. Verify that the group is created and the custom avatar is used

@marcaaron
Copy link
Contributor Author

LGTM

@melvin-bot melvin-bot bot added Daily KSv2 Overdue and removed Weekly KSv2 labels Jun 28, 2024
@adelekennedy
Copy link

adelekennedy commented Jul 1, 2024

Payouts due:

@melvin-bot melvin-bot bot removed the Overdue label Jul 1, 2024
@adelekennedy
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

6 participants