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 on ISSUE #34616] Web - App crashes when open /participants link #38816

Closed
1 of 6 tasks
lanitochka17 opened this issue Mar 22, 2024 · 10 comments
Closed
1 of 6 tasks
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2

Comments

@lanitochka17
Copy link

lanitochka17 commented Mar 22, 2024

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.56-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: N/A
Issue reported by: Applause - Internal Team

Action Performed:

  1. Go to staging.new.expensify.com
  2. Paste https://staging.new.expensify.com/request/new/participants
    into browser address or send it to any report

Expected Result:

Link should lead to participants page

Actual Result:

App crashes when open https://staging.new.expensify.com/request/new/participants

Workaround:

Unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

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

Screenshots/Videos

Add any screenshot/video evidence

Bug6423383_1711125665668.Recording__2668.mp4

View all open jobs on GitHub

@lanitochka17 lanitochka17 added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Mar 22, 2024
Copy link

melvin-bot bot commented Mar 22, 2024

Triggered auto assignment to @muttmuure (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

@lanitochka17
Copy link
Author

@muttmuure FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@ahmedGaber93
Copy link
Contributor

ahmedGaber93 commented Mar 22, 2024

I think it is a regression from #35455 which remove
ROUTES.MONEY_REQUEST but not remove its usage

@ShridharGoel
Copy link
Contributor

ShridharGoel commented Mar 22, 2024

Proposal

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

App crashes when open /participants link.

What is the root cause of that problem?

navigateBack uses this ROUTES.MONEY_REQUEST.getRoute in MoneyRequestParticipantsPage.js.

const navigateBack = useCallback((forceFallback = false) => {
Navigation.goBack(ROUTES.MONEY_REQUEST.getRoute(iouType, reportID), forceFallback);
// eslint-disable-next-line react-hooks/exhaustive-deps -- no deps as we use only initial values
}, []);

getRoute is not defined for ROUTES.MONEY_REQUEST. In fact, MONEY_REQUEST is not even there in this file.

This leads to getRoute being called on undefined object.

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

Define ROUTES.MONEY_REQUEST here and also add getRoute for it or use some other route in the goBack method.

@Krishna2323
Copy link
Contributor

We need to hold this for #34616, this will be fixed in that.

@melvin-bot melvin-bot bot added the Overdue label Mar 25, 2024
@muttmuure muttmuure changed the title Web - App crashes when open /participants link [HOLD on ISSUE #34616] Web - App crashes when open /participants link Apr 2, 2024
@muttmuure muttmuure added Weekly KSv2 and removed Daily KSv2 labels Apr 2, 2024
@melvin-bot melvin-bot bot removed the Overdue label Apr 2, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 11, 2024
@muttmuure
Copy link
Contributor

Held

@melvin-bot melvin-bot bot removed the Overdue label Apr 17, 2024
@melvin-bot melvin-bot bot added the Overdue label Apr 25, 2024
@muttmuure
Copy link
Contributor

Held

@melvin-bot melvin-bot bot removed the Overdue label Apr 26, 2024
@muttmuure
Copy link
Contributor

Held

@Krishna2323
Copy link
Contributor

@muttmuure, #34616 has been merged and closed, we can also close this one. The issue has been resolved. Instead of crashing, it now shows 'not found' because the request/new/participants route isn't valid anymore.

@melvin-bot melvin-bot bot added the Overdue label May 9, 2024
@melvin-bot melvin-bot bot removed the Overdue label May 14, 2024
@muttmuure
Copy link
Contributor

Great! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

5 participants