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-07-10] Repeated "[ExpensiMark] Missing account name" errors #44299

Closed
1 of 6 tasks
srikarparsi opened this issue Jun 24, 2024 · 13 comments
Closed
1 of 6 tasks
Assignees
Labels
Awaiting Payment Auto-added when associated PR is deployed to production Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2

Comments

@srikarparsi
Copy link
Contributor

srikarparsi commented Jun 24, 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:
Reproducible in staging?: Yes
Reproducible in production?: Yes
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: @quinthar
Slack conversation: https://expensify.slack.com/archives/C05LX9D6E07/p1719084949691449

Action Performed:

Break down in numbered steps

  1. Add a keystroke under some accounts

Expected Result:

Describe what you think should've happened

Shouldn't see repeated error logs

Actual Result:

Describe what actually happened

See repeated [ExpensiMark] Missing account name errors in the console

Workaround:

Can the user still use Expensify without this being fixed? Have you informed them of the workaround?

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

image

View all open jobs on GitHub

Issue OwnerCurrent Issue Owner: @VictoriaExpensify
@srikarparsi srikarparsi added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Jun 24, 2024
@srikarparsi srikarparsi self-assigned this Jun 24, 2024
Copy link

melvin-bot bot commented Jun 24, 2024

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

@srikarparsi
Copy link
Contributor Author

I believe this is related to this PR. @blazejkustra if you have time to take a look at this that would be much appreciated :)

@mountiny mountiny changed the title Repeated "[ExpensiMark] Missing account name" errors [CRITICAL] Repeated "[ExpensiMark] Missing account name" errors Jun 24, 2024
@mountiny mountiny moved this to CRITICAL in [#whatsnext] #quality Jun 24, 2024
@mountiny mountiny moved this from CRITICAL to HIGH in [#whatsnext] #quality Jun 24, 2024
@mountiny mountiny changed the title [CRITICAL] Repeated "[ExpensiMark] Missing account name" errors [HIGH] Repeated "[ExpensiMark] Missing account name" errors Jun 24, 2024
@blazejkustra
Copy link
Contributor

Hey, I'm looking into it now!

@melvin-bot melvin-bot bot added Reviewing Has a PR in review Weekly KSv2 and removed Daily KSv2 labels Jun 25, 2024
@blazejkustra
Copy link
Contributor

PR is up with a quick explanation @srikarparsi @mountiny

This is a fix that is good enough to merge ASAP, but similar regressions will happen again in the future if we don't think holistically about this problem. I'm going to follow up with a proposal how to fix this issue going forward

@blazejkustra
Copy link
Contributor

Proposal (Long Run)

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

ExpensiMark methods (parseHtmlToText, parseHtmlToMarkdown) should always be used with onyx context. Otherwise ExpensiMark is going to spam server with a lot of "[ExpensiMark] Missing account name" errors.

What is the root cause of that problem?

We introduced OnyxAwareParser a while ago, but we can't expect everybody to know it's mandatory to use it. Instead contributors often import ExpensiMark, initialize it and use it's methods, which causes problems.

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

  • Create a Parser lib, where ExpensiMark will be imported, Onyx context added and exported to the E/App for use
  • Forbid importing ExpensiMark globally (can be easily done with ESLint)

With this, such regressions won't happen in the future and we'll have only one instance of ExpensiMark

@melvin-bot melvin-bot bot added Daily KSv2 Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Weekly KSv2 Daily KSv2 labels Jun 25, 2024
@melvin-bot melvin-bot bot changed the title [HIGH] Repeated "[ExpensiMark] Missing account name" errors [HOLD for payment 2024-07-02] [HIGH] Repeated "[ExpensiMark] Missing account name" errors Jun 25, 2024
Copy link

melvin-bot bot commented Jun 25, 2024

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

@melvin-bot melvin-bot bot removed the Reviewing Has a PR in review label Jun 25, 2024
Copy link

melvin-bot bot commented Jun 25, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.1-19 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-02. 🎊

Copy link

melvin-bot bot commented Jun 25, 2024

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

  • [@srikarparsi] The PR that introduced the bug has been identified. Link to the PR:
  • [@srikarparsi] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@srikarparsi] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@srikarparsi] Determine if we should create a regression test for this bug.
  • [@srikarparsi] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@VictoriaExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

@srikarparsi
Copy link
Contributor Author

Moving this back to a daily to implement this change. Also removing the HOLD for payment since this PRs payment is being taken care of in another issue. Is that right @mountiny @blazejkustra

@srikarparsi srikarparsi removed the Awaiting Payment Auto-added when associated PR is deployed to production label Jun 25, 2024
@srikarparsi srikarparsi changed the title [HOLD for payment 2024-07-02] [HIGH] Repeated "[ExpensiMark] Missing account name" errors Repeated "[ExpensiMark] Missing account name" errors Jun 25, 2024
@srikarparsi srikarparsi added Daily KSv2 and removed Weekly KSv2 labels Jun 25, 2024
@mountiny
Copy link
Contributor

@srikarparsi I think @blazejkustra will create a new issue for that so we can keep it separate

@srikarparsi
Copy link
Contributor Author

Cool sounds good, I will close this issue then.

@github-project-automation github-project-automation bot moved this from HIGH to Done in [#whatsnext] #quality Jun 26, 2024
@melvin-bot melvin-bot bot added Weekly KSv2 Awaiting Payment Auto-added when associated PR is deployed to production and removed Daily KSv2 labels Jul 3, 2024
@melvin-bot melvin-bot bot changed the title Repeated "[ExpensiMark] Missing account name" errors [HOLD for payment 2024-07-10] Repeated "[ExpensiMark] Missing account name" errors Jul 3, 2024
Copy link

melvin-bot bot commented Jul 3, 2024

The solution for this issue has been 🚀 deployed to production 🚀 in version 9.0.3-7 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-10. 🎊

Copy link

melvin-bot bot commented Jul 3, 2024

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

  • [@srikarparsi] The PR that introduced the bug has been identified. Link to the PR:
  • [@srikarparsi] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake. Link to comment:
  • [@srikarparsi] A discussion in #expensify-bugs has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner. Link to discussion:
  • [@srikarparsi] Determine if we should create a regression test for this bug.
  • [@srikarparsi] If we decide to create a regression test for the bug, please propose the regression test steps to ensure the same bug will not reach production again.
  • [@VictoriaExpensify] Link the GH issue for creating/updating the regression test once above steps have been agreed upon:

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 Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2
Projects
Development

No branches or pull requests

4 participants