Skip to content

[HOLD on ISSUE #34616] Web - App crashes when open /participants link #38816

Closed

Description

@lanitochka17

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

Activity

  1. added
    BugSomething is broken. Auto assigns a BugZero manager.
    on Mar 22, 2024
  2. melvin-bot commented on Mar 22, 2024

    @melvin-bot

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

  3. lanitochka17 commented on Mar 22, 2024

    @lanitochka17
    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

  4. ahmedGaber93 commented on Mar 22, 2024

    @ahmedGaber93
    Contributor

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

  5. ShridharGoel commented on Mar 22, 2024

    @ShridharGoel
    Contributor

    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.

  6. Krishna2323 commented on Mar 22, 2024

    @Krishna2323
    Contributor

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

  7. changed the title [-]Web - App crashes when open /participants link[/-] [+][HOLD on ISSUE #34616] Web - App crashes when open /participants link[/+] on Apr 2, 2024
  8. added and removed on Apr 2, 2024
  9. muttmuure commented on Apr 17, 2024

    @muttmuure
    Contributor

    Held

  10. muttmuure commented on Apr 26, 2024

    @muttmuure
    Contributor

    Held

  11. muttmuure commented on May 1, 2024

    @muttmuure
    Contributor

    Held

  12. Krishna2323 commented on May 1, 2024

    @Krishna2323
    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.

  13. muttmuure commented on May 14, 2024

    @muttmuure
    Contributor

    Great! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugSomething is broken. Auto assigns a BugZero manager.WeeklyKSv2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions