-
Notifications
You must be signed in to change notification settings - Fork 64
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
Compatibility with Kibana 7.14 #235
Conversation
Sync master with latest changes
…get hits for document table
Great! |
If you need some help with the testing please let me know! I think that testing is harder than coding in this case and maybe I can help with that too so you are not by yourself. |
Hi, Well, I already checked the code, that is clean. But when I run
But when I look to stack trace, I see that:
So the problems starts from enhanced-table. So I did a full compare between core "Data Table" plugin v7.12 and v7.14 (kibana/src/plugins/vis_type_table). Then can you tell me if you reproduce my issue when you launch "yarn build"? |
Good news: using So it is finally not so annoying that |
I have had not time yet to test this, but I would like to try and fix the Kibana |
Honestly, I'm quite pessimistic concerning |
I have also reproduced the The PR that changed the discover plugin is this: elastic/kibana#96766 and it talks about removing angular from the discover plugin, so I think it is related to the build problem because there is a reference to an angular file in the stack trace of the error... Maybe we can open a bug in Kibana, but since they are trying to get rid of all angular code I think they will not be able to help. I also added the try/catch you requested. |
Hi @cpiment, Well, I completely understand that Kibana core aims to remove all its dependencies to AngularJS framework. |
@@ -101,6 +102,9 @@ export function getEnhancedTableVisualizationController( | |||
} else { | |||
updateScope(); | |||
} | |||
} catch (error) { | |||
reject(error); | |||
} |
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.
could you indent nicely try/catch block and inside lines?
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.
I committed a new version with improved indentation, would you mind to review it?
I have reproduced the issue importing the |
Thanks for all the tests you did. Finally, thanks for your following tests and opening an issue on Kibana repository. |
public/vis_controller.ts
Outdated
updateScope(); | ||
} | ||
} catch (error) { | ||
reject(error); |
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.
Can you just remove 2 spaces on line 106 please?
And then, it will be OK for me. I will merge the PR.
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.
I committed a new version with this change :)
Thanks for this last change => LGTM! |
I have just filed the issue elastic/kibana#121713. While testing with my little test plugin I have confirmed that the error doesn't reproduce using Kibana 7.15.0 nor 7.15.1 source code, so maybe we can build the 7.14.2 plugin using the 7.15 source code, would that be possible? |
Hi @cpiment, Nice to see that you don't reproduce the issue with Kibana 7.15! That said, I just released enhanced-table v1.12.1 with Kibana 7.14 support! I have a custom package script that first generate "target" folder (using I also made tests with Kibana 7.15 (standalone) to see if the same code is compatible, and sadly, there are breaking changes :( |
Opened PR #236 with the changes to make the plugin with 7.15. Thanks for reviewing all this @fbaligand !! |
Partially solves #197
Only needed changes in courier.ts file this time. I have made some tests and everything seems to be working...