You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[HOLD for payment 2024-07-17] [$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences #44178
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
@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
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
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.
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):
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>
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
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
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:
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.
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
Activity
melvin-bot commentedon Jun 21, 2024
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.lanitochka17 commentedon Jun 21, 2024
@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
nyomanjyotisa commentedon Jun 22, 2024
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
App/src/components/TestToolsModal.tsx
Line 47 in b021195
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
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
aeioual commentedon Jun 22, 2024
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
testtoolMenuon staging, hence we do not see the options.App/src/components/TestToolsModal.tsx
Line 47 in b021195
I also found one more bug, the order of options is not right, we should first display the
Logsoptions and then theTestToolMenu(We do the same with the troubleshoot page too):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?
!isProductionfrom the following hook>App/src/hooks/useEnvironment.ts
Line 16 in 425804a
App/src/components/TestToolsModal.tsx
Lines 66 to 67 in b021195
What alternative solutions did you explore? (Optional)
melvin-bot commentedon Jun 25, 2024
@anmurali Whoops! This issue is 2 days overdue. Let's get this updated quick!
[-]Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/-][+][$250] Troubleshoot - Troubleshoot modal opened from shortcut is missing Testing preferences[/+]melvin-bot commentedon Jun 25, 2024
Job added to Upwork: https://www.upwork.com/jobs/~01a41f20c0677b7543
melvin-bot commentedon Jun 25, 2024
Triggered auto assignment to Contributor-plus team member for initial proposal review - @allgandalf (
External)34 remaining items
[-][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[/+]melvin-bot commentedon Jul 15, 2024
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:
melvin-bot commentedon Jul 15, 2024
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 commentedon Jul 16, 2024
Regression Test Proposal
Note: Can only test on Desktop/MacOS Web:
Verify that the Troubleshoot modal opens up
Do we agree 👍 or 👎
allgandalf commentedon Jul 16, 2024
Note
@anmurali , this is already ready for payment, melvin really is acting weird, the actual date for payment was 15th
[-][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[/+]allgandalf commentedon Jul 19, 2024
Waiting for payment!
melvin-bot commentedon Jul 19, 2024
@bondydaa, @anmurali, @allgandalf, @aeioual Whoops! This issue is 2 days overdue. Let's get this updated quick!
allgandalf commentedon Jul 22, 2024
This issue can be closed, payment has been completed