Skip to content

[HOLD for payment 2024-07-17] [$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences #44178

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: 9.0.0.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

Issue found when executing PR #43543

Action Performed:

  1. Go to staging.new.expensify.com
  2. Press CMD + D

Expected Result:

Troubleshoot modal opened from shortcut will be complete

Actual Result:

Troubleshoot modal opened from shortcut is missing Testing preferences

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

Bug6520668_1718987164941.20240622_002210.mp4

View all open jobs on GitHub

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~01a41f20c0677b7543
  • Upwork Job ID: 1805670065479684749
  • Last Price Increase: 2024-06-25
  • Automatic offers:
    • allgandalf | Reviewer | 102915241
    • aeioual | Contributor | 102915244
Issue OwnerCurrent Issue Owner: @anmurali

Activity

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

    @melvin-bot

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

  3. lanitochka17 commented on Jun 21, 2024

    @lanitochka17
    Author

    @anmurali 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. nyomanjyotisa commented on Jun 22, 2024

    @nyomanjyotisa
    Member

    Proposal

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

    Troubleshoot modal opened from shortcut is missing Testing preferences

    What is the root cause of that problem?

    The Testing preference on troubleshoot modal is only displayed if the environment is Development

    {isDevelopment && <TestToolMenu />}

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

    Make the Testing preference on troubleshoot displayed if the environment is not Production, so it will be displayed on Development and Staging environment

    image

    What alternative solutions did you explore? (Optional)

    Create a reusable component to display a list of troubleshooting configurations. This component will ensure that both the Troubleshoot modal and the Troubleshoot page consistently display the same configurations. It will also simplify the process of adding or modifying configurations in the future if needed.

    Result:
    https://github.com/Expensify/App/assets/73281575/e07b738a-ac78-4f09-98d1-e8e85bc28e2a

  5. aeioual commented on Jun 22, 2024

    @aeioual
    Contributor

    Proposal

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

    Troubleshoot modal opened from shortcut is missing Testing preferences

    What is the root cause of that problem?

    We do not allow the testtoolMenu on staging, hence we do not see the options.

    {isDevelopment && <TestToolMenu />}

    I also found one more bug, the order of options is not right, we should first display the Logs options and then the TestToolMenu (We do the same with the troubleshoot page too):
    Screenshot 2024-06-23 at 12 30 52 AM

    As you can see the first option is of client side logging then the testing preference, we should maintain this order in shortcut too.

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

    • Change the check to !isProduction from the following hook>
      isProduction: environment === CONST.ENVIRONMENT.PRODUCTION,
    • Then we should move the code block after the following line to match the UI with the troubleshoot page:

    </TestToolRow>
    )}

    </TestToolRow>
                    )}
                    {!isProduction && <TestToolMenu />}

    What alternative solutions did you explore? (Optional)

  6. melvin-bot commented on Jun 25, 2024

    @melvin-bot

    @anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick!

  7. added
    ExternalAdded to denote the issue can be worked on by a contributor
    on Jun 25, 2024
  8. changed the title [-]Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/-] [+][$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/+] on Jun 25, 2024
  9. melvin-bot commented on Jun 25, 2024

    @melvin-bot
  10. added
    Help WantedApply this label when an issue is open to proposals by contributors
    on Jun 25, 2024
  11. melvin-bot commented on Jun 25, 2024

    @melvin-bot

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

  12. 34 remaining items

  13. changed the title [-][HOLD for payment 2024-07-17] [$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/-] [+][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/+] on Jul 15, 2024
  14. melvin-bot commented on Jul 15, 2024

    @melvin-bot

    The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.6-8 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-07-22. 🎊

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

  15. melvin-bot commented on Jul 15, 2024

    @melvin-bot

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

    • [@allgandalf] Please propose regression test steps to ensure the new feature will work correctly on production in further releases.
    • [@anmurali] Link the GH issue for creating/updating the regression test once above steps have been agreed upon.
  16. allgandalf commented on Jul 16, 2024

    @allgandalf
    Contributor

    Regression Test Proposal

    Note: Can only test on Desktop/MacOS Web:

    1. Open App
    2. Press CMD + D

    Verify that the Troubleshoot modal opens up

    Do we agree 👍 or 👎

  17. allgandalf commented on Jul 16, 2024

    @allgandalf
    Contributor

    Note

    @anmurali , this is already ready for payment, melvin really is acting weird, the actual date for payment was 15th

  18. changed the title [-][HOLD for payment 2024-07-22] [HOLD for payment 2024-07-17] [$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/-] [+][HOLD for payment 2024-07-17] [$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/+] on Jul 18, 2024
  19. allgandalf commented on Jul 19, 2024

    @allgandalf
    Contributor

    Waiting for payment!

  20. melvin-bot commented on Jul 19, 2024

    @melvin-bot

    @bondydaa, @anmurali, @allgandalf, @aeioual Whoops! This issue is 2 days overdue. Let's get this updated quick!

  21. allgandalf commented on Jul 22, 2024

    @allgandalf
    Contributor

    This issue can be closed, payment has been completed

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

Metadata

Metadata

Labels

Awaiting PaymentAuto-added when associated PR is deployed to productionDailyKSv2ExternalAdded to denote the issue can be worked on by a contributorNewFeatureSomething to build that is a new item.

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions