-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[Payment due][$250] Centralize ExpensiMark
usage with a dedicated Parser
module
#44451
Comments
Triggered auto assignment to @kadiealexander ( |
Current assignee @neil-marcellini is eligible for the AutoAssignerNewDotQuality assigner, not assigning anyone new. |
Can we not use the existing |
@ShridharGoel I think I'll reuse |
I'll come back to this issue early next week as I'm OOO 27-30.06. |
Not overdue, waiting for Blazej to come back. |
I'm on it, will update tomorrow :) |
Update: PR is ready for C+ review! |
@kadiealexander @neil-marcellini can you help to assign me and apply payment status here? I helped review this PR #44732. Thank you. |
ExpensiMark
usage with a dedicated Parser
moduleExpensiMark
usage with a dedicated Parser
module
Job added to Upwork: https://www.upwork.com/jobs/~01ddda297d9f5526e7 |
Current assignee @hoangzinh is eligible for the External assigner, not assigning anyone new. |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
@kadiealexander I think we can apply "Awaiting Payment" label for this issue, the PR has been deployed to Production #44732 (comment) |
Payouts due:
Upwork job is here. |
ExpensiMark
usage with a dedicated Parser
moduleExpensiMark
usage with a dedicated Parser
module
@kadiealexander This issue is just a refactoring issue, therefore I think we don't have a BZ checklist. |
Proposal:
Parser
lib, whereExpensiMark
is going to be imported and initialized only onceExpensiMark
method instead of wrappingparseHtmlToText
,parseHtmlToMarkdown
like in src/libs/OnyxAwareParser.ts.This way, there will be only one instance of
ExpensiMark
, andsrc/libs/Parser
will be used throughout the codebase. This will potentially prevent regressions like this going forward.Problems
ExpensiMark
methods (parseHtmlToText
,parseHtmlToMarkdown
) should always be used with Onyx context. Otherwise server is spammed with a lot of errors like this.OnyxAwareParser
a 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).ExpensiMark
is initialized 14 times in E/App.Upwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @Issue Owner
Current Issue Owner: @kadiealexanderThe text was updated successfully, but these errors were encountered: