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

[backport 2.x]Replace re2 with RegExp in timeline and add unit tests #4203

Merged
merged 2 commits into from
Jun 15, 2023

Conversation

ananzh
Copy link
Member

@ananzh ananzh commented Jun 1, 2023

Description

Remove re2 usage and replace it with JavaScript built-in RegExp object. Also add more unit tests to make sure that using RegExp has same expressions as using re2 library.

Issue Resolve

#3901

Backport PR

#3908

Check List

  • All tests pass
    • yarn test:jest
    • yarn test:jest_integration
    • yarn test:ftr
  • New functionality includes testing.
  • New functionality has been documented.
  • Update CHANGELOG.md
  • Commits are signed per the DCO using --signoff

Remove re2 usage and replace it with JavaScript built-in
RegExp object. Also add more unit tests to make sure that
using RegExp has same expressions as using re2 library.

Issue Resolve
opensearch-project#3901

Backport PR
opensearch-project#3908

Signed-off-by: Anan Zhuang <[email protected]>
@codecov
Copy link

codecov bot commented Jun 1, 2023

Codecov Report

Merging #4203 (e620fc9) into 2.x (473f3a4) will increase coverage by 0.01%.
The diff coverage is 88.88%.

@@            Coverage Diff             @@
##              2.x    #4203      +/-   ##
==========================================
+ Coverage   66.37%   66.39%   +0.01%     
==========================================
  Files        3229     3229              
  Lines       62139    62141       +2     
  Branches     9626     9627       +1     
==========================================
+ Hits        41245    41256      +11     
+ Misses      18571    18561      -10     
- Partials     2323     2324       +1     
Flag Coverage Δ
Linux 66.31% <88.88%> (-0.01%) ⬇️
Windows 66.34% <88.88%> (+0.02%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/dev/build/tasks/patch_native_modules_task.ts 90.32% <85.71%> (+4.11%) ⬆️
...vis_type_timeline/server/series_functions/label.js 100.00% <100.00%> (ø)

... and 3 files with indirect coverage changes

Flyingliuhub
Flyingliuhub previously approved these changes Jun 2, 2023
zhongnansu
zhongnansu previously approved these changes Jun 8, 2023
@ananzh ananzh dismissed stale reviews from zhongnansu and Flyingliuhub via e620fc9 June 14, 2023 21:21
@manasvinibs manasvinibs merged commit b19344a into opensearch-project:2.x Jun 15, 2023
@ashwin-pc ashwin-pc changed the title [2.x backport]Replace re2 with RegExp in timeline and add unit tests [backport 2.x]Replace re2 with RegExp in timeline and add unit tests Jun 28, 2023
@ashwin-pc ashwin-pc changed the title [backport 2.x]Replace re2 with RegExp in timeline and add unit tests [backport 2.x]Replace re2 with RegExp in timeline and add unit tests Feb 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants