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-09-25] [$125] Chat - App crashes after selecting Flag as offensive #48070

Closed
2 of 6 tasks
IuliiaHerets opened this issue Aug 27, 2024 · 26 comments
Closed
2 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor

Comments

@IuliiaHerets
Copy link

IuliiaHerets commented Aug 27, 2024

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.25-1
Reproducible in staging?: Y
Reproducible in production?: N
Issue reported by: Applause Internal Team

Action Performed:

  1. Go to https://staging.new.expensify.com/ and log in as user A
  2. Navigate to a chat with user B
  3. Right click on any message from user B
  4. From the context menu select Flag as offensive

Expected Result:

The RHP is opened with the reasons for flagging

Actual Result:

The app crashes

Workaround:

Unknown

Platforms:

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

2708_1.log

Bug6583781_1724726491694.Recording__720.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~011311fecba3ab9bf4
  • Upwork Job ID: 1828397176278986997
  • Last Price Increase: 2024-08-27
  • Automatic offers:
    • nkdengineer | Contributor | 103700093
Issue OwnerCurrent Issue Owner: @muttmuure
@IuliiaHerets IuliiaHerets added DeployBlockerCash This issue or pull request should block deployment Bug Something is broken. Auto assigns a BugZero manager. labels Aug 27, 2024
Copy link

melvin-bot bot commented Aug 27, 2024

Triggered auto assignment to @lschurr (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.

Copy link

melvin-bot bot commented Aug 27, 2024

Triggered auto assignment to @mountiny (DeployBlockerCash), see https://stackoverflowteams.com/c/expensify/questions/9980/ for more details.

@melvin-bot melvin-bot bot added the Daily KSv2 label Aug 27, 2024
@github-actions github-actions bot added Engineering Hourly KSv2 and removed Daily KSv2 labels Aug 27, 2024
Copy link
Contributor

👋 Friendly reminder that deploy blockers are time-sensitive ⏱ issues! Check out the open `StagingDeployCash` deploy checklist to see the list of PRs included in this release, then work quickly to do one of the following:

  1. Identify the pull request that introduced this issue and revert it.
  2. Find someone who can quickly fix the issue.
  3. Fix the issue yourself.

@nkdengineer
Copy link
Contributor

Proposal

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

The app crashes

What is the root cause of that problem?

connection here can be undefined then the app crashes

https://github.com/Expensify/react-native-onyx/blob/11b36cc6ea54b2e58806fde99ae16b9deb0cfced/lib/OnyxConnectionManager.ts#L230

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

Safely check for connection.id in addToEvictionBlockList and removeFromEvictionBlockList by changing connection.id to connection?.id or we can return early if connection is undefined or not call these function if connection is undefined

https://github.com/Expensify/react-native-onyx/blob/11b36cc6ea54b2e58806fde99ae16b9deb0cfced/lib/OnyxConnectionManager.ts#L230

What alternative solutions did you explore? (Optional)

@nkdengineer
Copy link
Contributor

This problem comes from this PR.

@mountiny mountiny added the External Added to denote the issue can be worked on by a contributor label Aug 27, 2024
Copy link

melvin-bot bot commented Aug 27, 2024

Job added to Upwork: https://www.upwork.com/jobs/~011311fecba3ab9bf4

@melvin-bot melvin-bot bot changed the title Chat - App crashes after selecting Flag as offensive [$250] Chat - App crashes after selecting Flag as offensive Aug 27, 2024
@melvin-bot melvin-bot bot added the Help Wanted Apply this label when an issue is open to proposals by contributors label Aug 27, 2024
Copy link

melvin-bot bot commented Aug 27, 2024

Triggered auto assignment to Contributor-plus team member for initial proposal review - @getusha (External)

@mountiny mountiny changed the title [$250] Chat - App crashes after selecting Flag as offensive [$125] Chat - App crashes after selecting Flag as offensive Aug 27, 2024
Copy link

melvin-bot bot commented Aug 27, 2024

Upwork job price has been updated to $125

@mountiny
Copy link
Contributor

Super small change, @nkdengineer can you raise the PR quickly?

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

melvin-bot bot commented Aug 27, 2024

📣 @nkdengineer 🎉 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 📖

@mountiny
Copy link
Contributor

@nkdengineer can you also check if there are any other places we might have missed the connection change? cc @fabioh8010 @ikevin127

@nkdengineer
Copy link
Contributor

@mountiny Sure, will raise the PR soon.

@nkdengineer
Copy link
Contributor

nkdengineer commented Aug 27, 2024

@mountiny The react-native-onyx PR here.

@nkdengineer
Copy link
Contributor

Sure

@nkdengineer
Copy link
Contributor

@mountiny The App PR is here. I have some problems with native app building after RN upgrade.

@puneetlath
Copy link
Contributor

I just tested the CP'd fix on web and it seems to be working. Going to go ahead and demote.

@puneetlath puneetlath removed the DeployBlockerCash This issue or pull request should block deployment label Aug 27, 2024
@melvin-bot melvin-bot bot added Monthly KSv2 and removed Weekly KSv2 labels Sep 19, 2024
Copy link

melvin-bot bot commented Sep 19, 2024

This issue has not been updated in over 15 days. @lschurr, @mountiny, @getusha, @nkdengineer eroding to Monthly issue.

P.S. Is everyone reading this sure this is really a near-term priority? Be brave: if you disagree, go ahead and close it out. If someone disagrees, they'll reopen it, and if they don't: one less thing to do!

@mountiny mountiny added Daily KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Reviewing Has a PR in review Monthly KSv2 labels Sep 21, 2024
@mountiny mountiny changed the title [$125] Chat - App crashes after selecting Flag as offensive [HOLD for payment 2024-09-25] [$125] Chat - App crashes after selecting Flag as offensive Sep 21, 2024
@mountiny
Copy link
Contributor

@lschurr the automation failed this is ready for payment

@mountiny
Copy link
Contributor

$125 to @getusha and to @nkdengineer

@lschurr lschurr removed their assignment Sep 21, 2024
@lschurr lschurr added Bug Something is broken. Auto assigns a BugZero manager. and removed Bug Something is broken. Auto assigns a BugZero manager. labels Sep 21, 2024
Copy link

melvin-bot bot commented Sep 21, 2024

Triggered auto assignment to @muttmuure (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.

@lschurr
Copy link
Contributor

lschurr commented Sep 21, 2024

@muttmuure I'm OOO from 9/23-10/4. Can you handle payment on 9/25 for me? #48070 (comment)

Thank you!!

Copy link

melvin-bot bot commented Sep 24, 2024

@mountiny, @muttmuure, @getusha, @nkdengineer Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot melvin-bot bot added the Overdue label Sep 24, 2024
@muttmuure
Copy link
Contributor

@nkdengineer paid

@melvin-bot melvin-bot bot removed the Overdue label Sep 25, 2024
@muttmuure
Copy link
Contributor

@getusha submits for payment in ND

@garrettmknight
Copy link
Contributor

$250 approved for @getusha

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 Engineering External Added to denote the issue can be worked on by a contributor
Projects
None yet
Development

No branches or pull requests

8 participants