-
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] Room - "Uh oh" error when leaving private room when parent message is highlighted #55055
Comments
Triggered auto assignment to @OfstadC ( |
Edited by proposal-police: This proposal was edited at 2025-01-10 08:47:40 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes. What is the root cause of that problem?We do not pass default value to this Onyx then the app crashes when the chatReportID is changed from an empty string to an exist ID.
What changes do you think we should make in order to solve the problem?We should add || CONST.DEFAULT_NUMBER_ID to this
What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional)NA Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
Edited by proposal-police: This proposal was edited at 2025-01-10 09:23:44 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.Room - App crashes when leaving private room when parent message is higlighted What is the root cause of that problem?When we leave room we set the report to App/src/libs/actions/Report.ts Lines 3029 to 3030 in 219e66d
And We missing fallback ID here
What changes do you think we should make in order to solve the problem?We should add fallback report ID
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID || CONST.DEFAULT_NUMBER_ID}`); And
const [report] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportID || CONST.DEFAULT_NUMBER_ID}`); After updating the code above, the app no longer crashes. However, I noticed another issue: while the app doesn't crash, it starts spamming calls to certain functions. To fix this, we need to add a fallback ID here as well:
const [childReport] = useOnyx(`${ONYXKEYS.COLLECTION.REPORT}${reportAction?.childReportID || CONST.DEFAULT_NUMBER_ID}`); What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?N/A What alternative solutions did you explore? (Optional)Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job. |
ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when leaving private room when parent message is higlighted What is the root cause of that problem?When we leave a workspace in optimistic data, we set the reportID to App/src/libs/actions/Report.ts Lines 3030 to 3031 in 219e66d
What changes do you think we should make in order to solve the problem?We need App/src/libs/actions/Report.ts Lines 3030 to 3031 in 219e66d
: {
reportID: undefined, What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
🚨 Edited by proposal-police: This proposal was edited at 2025-01-10 09:26:36 UTC. Edited by proposal-police: This proposal was edited at 2025-01-10 09:26:36 UTC. ProposalPlease re-state the problem that we are trying to solve in this issue.App crashes when leaving private room when parent message is higlighted What is the root cause of that problem?
And that is causing the crash. From
And when there is no
What changes do you think we should make in order to solve the problem?Following the new eslint rule, we shouldn't default to empty string or '-1' since a change from
Then we should fix any type errors and lint errors that will be caused by this change according to the new What specific scenarios should we cover in automated tests to prevent reintroducing this issue in the future?What alternative solutions did you explore? (Optional) |
@OfstadC Uh oh! This issue is overdue by 2 days. Don't forget to update your issues! |
Testing this now |
App doesn't crash for me 🤔 |
Error happens pretty consistently so I don't think this is #quality - sorting which project this should live under |
Job added to Upwork: https://www.upwork.com/jobs/~021879569257320846693 |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf ( |
@allgandalf Could you please review the proposals above? |
@OfstadC, @allgandalf Eep! 4 days overdue now. Issues have feelings too... |
Reviewing today |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@allgandalf you might want to take a look at this dupe issue that has similar root cause to this one. |
mentioned that over here |
@OfstadC @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! |
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.83-0
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail: Exp
Email or phone of affected tester (no customers): [email protected]
Issue reported by: Applause Internal Team
Device used: Mac 15.0 / Chrome
App Component: Chat Report View
Action Performed:
Expected Result:
App will not crash.
Actual Result:
App crashes.
Workaround:
Unknown
Platforms:
Screenshots/Videos
Bug6710684_1736496469088.20250110_151242.mp4
Bug6710684_1736496469086!staging.new.expensify.com-1736495466704.txt
View all open jobs on GitHub
Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @allgandalfThe text was updated successfully, but these errors were encountered: