-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Correctly sort Index Management data streams by storage size. #86204
Correctly sort Index Management data streams by storage size. #86204
Conversation
…rrectly by storage size. They were previously being sorted alphabetically using the humanized size value. Now they're sorted numerically by the raw bytes value.
Pinging @elastic/es-ui (Team:Elasticsearch UI) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code LGTM. Verified locally. Thanks for fixing this @cjcenizal!
…rrectly by storage size. (elastic#86204) They were previously being sorted alphabetically using the humanized size value. Now they're sorted numerically by the raw bytes value.
…ed incorrectly by storage size. (#86204) (#86390) * Fix bug in which Index Management data streams were being sorted incorrectly by storage size. (#86204) They were previously being sorted alphabetically using the humanized size value. Now they're sorted numerically by the raw bytes value. # Conflicts: # x-pack/plugins/index_management/__jest__/client_integration/home/data_streams_tab.helpers.ts # x-pack/plugins/index_management/__jest__/client_integration/home/data_streams_tab.test.ts # x-pack/plugins/index_management/server/routes/api/data_streams/register_get_route.ts # x-pack/test/api_integration/apis/management/index_management/data_streams.ts * Fix get data stream API and eslint error.
💔 Build Failed
Failed CI Steps
Test FailuresX-Pack Detection Engine API Integration Tests.x-pack/test/detection_engine_api_integration/security_and_spaces/tests/add_actions·ts.detection engine api security and spaces enabled add_actions adding actions should be able to create a new webhook action and attach it to a ruleStandard Out
Stack Trace
Chrome UI Functional Tests.test/functional/apps/visualize/_vertical_bar_chart_nontimeindex·js.visualize app vertical bar chart with index without time filter vertical bar with multiple splits should show correct seriesStandard Out
Stack Trace
X-Pack Alerting API Integration Tests.x-pack/test/alerting_api_integration/security_and_spaces/tests/alerting/find·ts.alerting api integration security and spaces enabled Alerts alerts find superuser at space1 should handle find alert request appropriatelyStandard Out
Stack Trace
and 20 more failures, only showing the first 3. Metrics [docs]
History
To update your PR or re-run it, just comment with: |
Fixes #86122
Release note
The list of data streams in Index Management previously sorted alphabetically using the humanized size value. This resulted in an incorrect sort order, for example sorting in ascending order would display a data stream sized at "1kb" before one sized at "5b". Now they're sorted numerically by the raw bytes value, which displays the sorted data streams in the correct order.
Screenshots
Original incorrect order:
Current correct order:
To test
You can create a data stream with a size in megabytes by following the instructions in the Index Management
README
for creating a data stream and then spamming the request for creating a document in Console by holding down Cmd+Enter. The Console history will be overwhelmed and you'll see a ton of error toasts but you can ignore those. After you create 800-1000 documents the data stream should be 1mb in size.