Watch for changes to row to ensure summary row is up-to-date#11625
Watch for changes to row to ensure summary row is up-to-date#11625trevan wants to merge 1 commit intoelastic:masterfrom trevan:listen-in-table-row-for-changes
Conversation
|
Can one of the admins verify this patch? |
|
Hmmm can you provide a set of steps that reproduces the issue in core Kibana? We fixed a similar issue in the past #10385 so it's odd that your scenario wouldn't work out of the box. |
|
This is to actually get around the issue that @lukasolson mentioned in #10385 (review). Updating the doc through a docview causes the docview to disappear if I have the courier refetch the data. So, instead, my docview is just updating the hit in memory (as well as saving it to ES) and this change allows the summary row to see the update. After re-reading #10385, though, it looks like you do plan a major rewrite of discover that might do this as part of it. So, I can just keep this in my own fork if you don't want it. I filed #11626 which is part of my hack so that could probably be closed as well. |
|
Got it, thanks for the details @trevan. @lukasolson @weltenwort what do you guys think? I'm thinking the only risk is possible performance implication, but perhaps because it's a shallow watch it wouldn't be a problem. |
|
It is a At least we would get rid of the As @trevan guessed the React refactoring should not have that problem. |
|
@weltenwort has continued to make steps toward a larger rewrite of the doc table, so I'm going to close this for now. |
I've built a docview plugin that allows my users to edit the row. I noticed that when I updated the hit, the table summary wouldn't change. After investigating, all that was needed was to add the row to the watch for createSummaryRow.