-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
[TSVB] Refactor Table Visualization #15747
Conversation
b517f95
to
9f41f7e
Compare
@@ -15,7 +15,9 @@ export default function (kibana) { | |||
return Joi.object({ | |||
enabled: Joi.boolean().default(true), | |||
chartResolution: Joi.number().default(150), | |||
minimumBucketSize: Joi.number().default(10) | |||
minimumBucketSize: Joi.number().default(10), | |||
tablePartitionSize: Joi.number().default(50), |
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.
Why make these configuration options global? I think it would be much more flexible if it were on a per table basis instead.
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.
Let’s do both... I think admins should have a way to put safe guards on their systems.
woah! what a gift @simianhacker!! Just checked out the PR, couple of comments below. Hope this helps, feel free to ping me with any questions.
|
Re the table... We should have another table pagination component in eui to use for this purpose. One that:
For now though... With the current (and only) eui table pagination component... A single page is still showing as a button.. To change this behavior we'll need to change it in eui, not here.... Though I wouldn't change it... Instead I would just ask to build another pagination component that is better suited for this scenario (as I mentioned above) |
@uboness thanks for the additional info, I'll sync with @snide and team on the table component. @simianhacker let me know if you have any questions around my other feedback |
💔 Build Failed |
💔 Build Failed |
💔 Build Failed |
1747b72
to
18439b0
Compare
💚 Build Succeeded |
💚 Build Succeeded |
0ffc28a
to
acce848
Compare
@timroes I can re-produce this behavior when I increase the time frame to the point that the auto bucketing produces a bucket for the last value which contains all of the data (which get's dropped and displays zero). If you go under the panel options and turn off "drop last bucket" the values should display properly. PR #15760 introduces a new "drop partial buckets" behavior that only drops the last bucket if it's a partial bucket. |
💔 Build Failed |
@simianhacker I think I am getting a different failure. a) I have data for at least 30 days in there and getting that when selecting the last 7 days, so there should still be data outside of the last bucket. b) With just one Count column it draws perfectly fine for that time range, and it also shows, that there are several documents found: But as soon as I add another column if switches to that error, unless I switch the timerange to something small (without data?): (Sorry for the flickering in the GIF, but Linux and GIF recording....) So I think there should still be documents available to draw that. |
@timroes @simianhacker I am also able to reproduce |
- Use partitioning to get all rows - Add sorting to all columns - Add pagination controls - Convert table to use EUI - Add Kibana config to control the total limit of rows - Add Kibana config to control the partition size - Adding check for data - Converting es5 functions to es6 because prettier disagrees with our ES lint, why are we still using eslint with prettier? - Only show the pagination if there are enough rows to justify it. - Adding check for compatible data type
acce848
to
c995dc4
Compare
@timroes @alexfrancoeur This has to do with how the drop last bucket feature works and how sparse the data is. PR #15760 replaces the drop last bucket feature with a drop partial bucket feature, which I think will fix some of the data issues you're seeing. |
💔 Build Failed |
💚 Build Succeeded |
I'm closing this PR because it's been open for too long and would need a non-trivial amount of work to fix. |
This PR refactors the table visualization in TSVB with the following changes:
Merry Xmas @alexfrancoeur !