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

Compatibility with 7.15 #236

Merged
merged 6 commits into from
Dec 21, 2021
Merged

Compatibility with 7.15 #236

merged 6 commits into from
Dec 21, 2021

Conversation

cpiment
Copy link
Contributor

@cpiment cpiment commented Dec 21, 2021

Partially solves #197

I have successfully built the plugin and deployed it in a Kibana 7.15.2 instance. I have noticed that you have rolled back the "build" task of package.json to use ../../node_modules/.bin/plugin-helpers. That script doesn't exist in my environment so I have used ../../scripts/plugins_helpers.js to build the plugin. How can I do to use the same script as you to build so I don't have to modify the package.json?

Regarding the PR, it just changes the way that Angular is initialized inside the plugin. Kibana team has created a loadAngularBootstrap() function that has to be called from vis_controller.ts.

I hope this helps! If I can do some tests to help you test the plugin please let me know.

@fbaligand
Copy link
Owner

fbaligand commented Dec 21, 2021

Hi @cpiment,

Thanks again for your devotion!

As you notice, I change "build" task.
I have to explain : I have a fork kbn-plugin-helpers (from Kibana 7.9) that can build all Kibana versions (before and after Kibana new platform).
And I have a "release-all" shell script that checkout every branch and then call "yarn build" to compile and build the package.
That's why I change the "build" task, that is used in my generic script for all Kibana versions.

That said, you can still build the package using standard Kibana tool, using this task:
yarn compile-and-build

So to resume:
compile : generate only target folder
build : generate only the zip package, using existing target folder as input
compile-and-build : compile and generate zip package (using Kibana official tool)

@fbaligand
Copy link
Owner

I just did a complete test session and everything works well!
So I will merge the PR as is.

I also tried the same package for Kibana 7.16, but unfortunately, it doesn't work.
So it seems that there is another migration to do.

So I will create a new 1.12.2 release with Kibana 7.15 support.

Thanks again for your great work!

@fbaligand fbaligand merged commit 7b59d21 into fbaligand:master Dec 21, 2021
@cpiment
Copy link
Contributor Author

cpiment commented Dec 21, 2021

Thanks @fbaligand! I think that 7.16 is going to be tricky since they have removed the legacy data table plugin in this version from the Kibana codebase... I'll give it a try when I have some time :)

@fbaligand
Copy link
Owner

Ouch…
I dreaded this moment…
Here we are…

As you say, it can be really tricky…

@fbaligand
Copy link
Owner

Concerning Kibana 7.16 support, I think that the best way is to copy/paste "AngularJS integration code" from Kibana 7.15 branch to Enhanced Table code.
More easy to say than to do :)

@cpiment
Copy link
Contributor Author

cpiment commented Jan 19, 2022

Hi @fbaligand

I have had some time to review this. I have seen that all 7.16 versions have this PR merged:

elastic/kibana#115464

I think that means that the Angular dependency is removed from the project, so I think it should be included in the package.json of your plugin, is that right? What do you think?

@fbaligand
Copy link
Owner

Well, if it is necessary, yes.
That said, in a standalone kibana (not dev version), is angularjs module is present in node_modules directory?
If yes, we could just put angularjs as dev dependency in package.json and see if it works as is in a standalone kibana instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants