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

[Manual Backport 2.x][Discover] Add long numerals support (#5592) #5798

Merged
merged 2 commits into from
Feb 6, 2024

Conversation

AMoo-Miki
Copy link
Collaborator

cherry picked 10ae4ee from #5592

* Fix the usage of `pegjs` in tasks

Signed-off-by: Miki <[email protected]>

* [Discover] Add long numerals support

* Add long numerals support to Discover tabular view, document view, inspector, hash-url, and share
* Use a fork of `numeral-js` that supports long numerals
* Patch `rison` to correctly serialize BigInts
* Replace the uses of `withLongNumerals` with `withLongNumeralsSupport` to match the rest of the codebase and mark `withLongNumerals` for deprecation
* Add `withLongNumeralsSupport` as an option to `code/public/http/fetch`
* Add long numerals support to `UiSettingsClient`
* Add long numerals support to `core/server/http/router` response handler
* Add long numerals support to `RangeFilter` and `FilterBar`
* Add long numerals support to `kuery/ast`
* Introduce `OPENSEARCH_SEARCH_WITH_LONG_NUMERALS_STRATEGY` in `core/plugins/data/search`
* Remove `ng-non-bindable` leftovers

Signed-off-by: Miki <[email protected]>

---------

Signed-off-by: Miki <[email protected]>

(cherry picked from commit 10ae4ee)
Signed-off-by: Miki <[email protected]>
Copy link

codecov bot commented Feb 3, 2024

Codecov Report

Attention: 12 lines in your changes are missing coverage. Please review.

Comparison is base (ca4b395) 67.04% compared to head (8077fb4) 67.08%.
Report is 1 commits behind head on 2.x.

Files Patch % Lines
src/core/server/http/router/response_adapter.ts 0.00% 1 Missing and 2 partials ⚠️
...omponents/data_grid/data_grid_table_cell_value.tsx 40.00% 2 Missing and 1 partial ⚠️
src/core/public/ui_settings/ui_settings_client.ts 50.00% 0 Missing and 1 partial ⚠️
...ns/data/common/field_formats/converters/numeral.ts 66.66% 0 Missing and 1 partial ⚠️
...c/plugins/data/public/search/search_interceptor.ts 83.33% 0 Missing and 1 partial ⚠️
...c/ui/filter_bar/filter_editor/lib/filter_label.tsx 0.00% 1 Missing ⚠️
...a/server/search/opensearch_search/decide_client.ts 50.00% 0 Missing and 1 partial ⚠️
...lic/saved_object/helpers/serialize_saved_object.ts 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##              2.x    #5798      +/-   ##
==========================================
+ Coverage   67.04%   67.08%   +0.03%     
==========================================
  Files        3294     3294              
  Lines       63370    63381      +11     
  Branches    10067    10079      +12     
==========================================
+ Hits        42485    42517      +32     
+ Misses      18440    18420      -20     
+ Partials     2445     2444       -1     
Flag Coverage Δ
Linux_1 35.24% <6.25%> (?)
Linux_2 55.23% <28.57%> (-0.01%) ⬇️
Linux_3 43.93% <56.09%> (+0.01%) ⬆️
Linux_4 35.46% <14.28%> (-0.01%) ⬇️
Windows_1 35.26% <6.25%> (-0.01%) ⬇️
Windows_2 55.19% <28.57%> (?)
Windows_3 43.94% <56.09%> (?)
Windows_4 35.46% <14.28%> (-0.01%) ⬇️

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ashwin-pc ashwin-pc changed the title [Manual Backport][Discover] Add long numerals support (#5592) [Manual Backport 2.x][Discover] Add long numerals support (#5592) Feb 5, 2024
@abbyhu2000 abbyhu2000 merged commit 2fbe480 into opensearch-project:2.x Feb 6, 2024
65 of 66 checks passed
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.

5 participants