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 for payment 2024-04-15] HIGH: [Reliability] Enable console logging with four-finger tap #38456

Closed
quinthar opened this issue Mar 17, 2024 · 14 comments
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 NewFeature Something to build that is a new item.

Comments

@quinthar
Copy link
Contributor

Problem:

We've gotten very good at fixing bugs that can be reproduced in our dev environments. However, bugs we can't reproduce in dev are typically ignored -- even if they happen frequently in production. We have added better diagnostics tools via the About > Troubleshooting > Client side logging toggle. However, currently it takes you out of the context in which the bug is actually happening to enable. This means to use it you must:

  1. Experience the bug
  2. Leave that context to go to About > Troubleshooting > Client side logging
  3. Enable client side logging
  4. Go back to the original context
  5. Try to reproduce the bug
  6. Leave that context to go to About > Troubleshooting > Client side logging
  7. Open the console
  8. Save the file
  9. Disable client side logging

In that whole process, the logs are filled with tons and tons of extraneous lines, making it very hard to isolate the problem -- assuming you can even reproduce it.

Solution:

Margelo recently added a "four finger tap" to enable low-level performance logging:

Image

This works great because:

  1. You can enable and disable right where you experiencing the problem, without needing to leave that context. This tightens up the focus on the actual problem period, avoiding extraneous sampling.
  2. It automatically saves the file to local storage when disabled.

Let's expand that as follows:

  1. Allow enabling/disabling the console log directly from the "four finger tap menu"
  2. Automatically save the logs to disk when disabled (in either the four-finger menu, or in the About > Troubleshooting menu)
  3. Show the filename that it was saved to, along with the platform Share button to share it (this is already being used for the profile traces, so let's use it for logs as well)
@quinthar quinthar converted this from a draft issue Mar 17, 2024
@quinthar
Copy link
Contributor Author

@TMisiukiewicz hoping you can take this?

@TMisiukiewicz
Copy link
Contributor

@quinthar sure, I should be able to work on this later this week 👍

@quinthar
Copy link
Contributor Author

Great, so ETA Friday?

@TMisiukiewicz
Copy link
Contributor

@quinthar yeah, I am about to start working on that tomorrow 👍 What if the client side logging in Troubleshoot section is enabled while you access the hidden menu, should it be just enabled or both of these features should work independently?

@TMisiukiewicz
Copy link
Contributor

Opened a PR

@quinthar
Copy link
Contributor Author

What if the client side logging in Troubleshoot section is enabled while you access the hidden menu, should it be just enabled or both of these features should work independently?

They should both control the same console, so if it's enabled in one, it should show as enabled in the other.

@quinthar quinthar changed the title HIGH: Enable console logging with four-finger tap HIGH: [Reliability] Enable console logging with four-finger tap Mar 25, 2024
Copy link

melvin-bot bot commented Mar 26, 2024

Triggered auto assignment to @amyevans, see https://stackoverflow.com/c/expensify/questions/7972 for more details.

@s77rt
Copy link
Contributor

s77rt commented Apr 4, 2024

@amyevans Can you please assign me here?

@amyevans amyevans added the NewFeature Something to build that is a new item. label Apr 4, 2024
Copy link

melvin-bot bot commented Apr 4, 2024

@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 labels Apr 8, 2024
@melvin-bot melvin-bot bot changed the title HIGH: [Reliability] Enable console logging with four-finger tap [HOLD for payment 2024-04-15] HIGH: [Reliability] Enable console logging with four-finger tap Apr 8, 2024
@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Apr 8, 2024
Copy link

melvin-bot bot commented Apr 8, 2024

Reviewing label has been removed, please complete the "BugZero Checklist".

Copy link

melvin-bot bot commented Apr 8, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.60-13 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-04-15. 🎊

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

  • @TMisiukiewicz does not require payment (Contractor)
  • @s77rt requires payment (Needs manual offer from BZ)

Copy link

melvin-bot bot commented Apr 8, 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:

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

@s77rt
Copy link
Contributor

s77rt commented Apr 9, 2024

Regression Test Proposal

  1. Press anywhere using 4 fingers (four-finger tap)
  2. Verify that a debug modal is opened
  3. Enable Client side logging
  4. Close modal
  5. Do any regular activity (e.g. open a report)
  6. Open debug modal again (four-finger tap)
  7. Disable Client side logging
  8. Verify that a file path is displayed and the Share button is visible
  9. Press the share button
  10. Verify you are able to share the file

(Related https://expensify.testrail.io/index.php?/cases/view/2990265)

@melvin-bot melvin-bot bot removed the Weekly KSv2 label Apr 14, 2024
@melvin-bot melvin-bot bot added the Daily KSv2 label Apr 14, 2024
@twisterdotcom
Copy link
Contributor

twisterdotcom commented Apr 15, 2024

Payment Summary:

@github-project-automation github-project-automation bot moved this from HIGH to CRITICAL in [#whatsnext] #vip-vsb Apr 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Daily KSv2 NewFeature Something to build that is a new item.
Projects
No open projects
Status: CRITICAL
Development

No branches or pull requests

5 participants