-
Notifications
You must be signed in to change notification settings - Fork 3.7k
Closed
Closed
Copy link
Labels
AutoAssignerNewDotQualityUsed to assign quality issues to engineersUsed to assign quality issues to engineersAwaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributor
Description
Proposal:
- Create a
Parserlib, whereExpensiMarkis going to be imported and initialized only once - Forbid importing ExpensiMark from expensify-common globally (can be easily done with ESLint)
- (optional) Pass Onyx context with a new
ExpensiMarkmethod instead of wrappingparseHtmlToText,parseHtmlToMarkdownlike in src/libs/OnyxAwareParser.ts.
This way, there will be only one instance of ExpensiMark, and src/libs/Parser will be used throughout the codebase. This will potentially prevent regressions like this going forward.
Problems
ExpensiMarkmethods (parseHtmlToText,parseHtmlToMarkdown) should always be used with Onyx context. Otherwise server is spammed with a lot of errors like this.- We introduced
OnyxAwareParsera while ago, but we can't expect everybody to know it's mandatory to use it. Instead contributors often importExpensiMark, initialize it and use it's methods, which causes problems (like here). ExpensiMarkis initialized 14 times in E/App.
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~01ddda297d9f5526e7
- Upwork Job ID: 1813359382413182920
- Last Price Increase: 2024-07-16
- Automatic offers:
- hoangzinh | Reviewer | 103148367
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @kadiealexanderReactions are currently unavailable
Metadata
Metadata
Labels
AutoAssignerNewDotQualityUsed to assign quality issues to engineersUsed to assign quality issues to engineersAwaiting PaymentAuto-added when associated PR is deployed to productionAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.Something is broken. Auto assigns a BugZero manager.DailyKSv2KSv2ExternalAdded to denote the issue can be worked on by a contributorAdded to denote the issue can be worked on by a contributor
Type
Projects
Status
Done