-
Notifications
You must be signed in to change notification settings - Fork 913
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
[2.0] Dashboards Plugin Errors #1206
Comments
Note there were some NPM packages there we upgraded to mitigate CVEs, there might be some conflict of package versions in your plugin for example: #1146 Also make sure to update your package.json and opensearch_dashboards.json to be
For runtime, I would make sure if you have an OpenSearch plugin has a Well upgrading to |
For plugins hookup with the lastest osd with opensearch-js client, please refer to this issue . |
I followed the steps given in this issue for plugin hookup (Anomaly Detection). The first issue I experienced was related to package mismatch that was easy to fix. The other issues I am experiencing and not sure how to solve yet are that a lot of the AD requests from the frontend are getting a 400 bad request response. Specifically a lot of them such as |
Issues in AD hookup: [1] 400 bad request
Issue link here Issue is due to this line here After typescript upgrade, Dashboards use a more restrict type check. For the get API from AD, we could see body is null. Body There are two ways to change:
Both would solve the issue. [2] AnnotationDomainTypes no longer exists in @elastic/charts Issue link here Two ways to change:
[3] Other issues
Could simply remove this line since it is not used.
Could add id here
This issue is not a blocker. After these changes, AD plugin can run on current Dashboards 2.0. Please help me to verify. |
See unit tests all fail for AD. Continue deep dive here. Some issues: [1] test-env is missing
I think probably related to we taking out the test environment in src/dev/jest/config.js and only having it in the npm package. So the solution would be adding back in jest.config.js:
[2] wait does not exist in @testing-library/react
[3] see some errors regarding
Two issues here:
Solution would be simplify style and remove un-match parts. For example here, change to:
For this one, I made an ugly fix. Not sure whether this is the best solution. I see
After all these changes, all unit tests passed: Again, not a UI expert, so I think my fix is a bit tmp and ugly. Just want to research on this and see they could be fixed or not. There might be other better solutions. |
@tmarkley If those are all merged, can we close this issue? |
@CEHENKLE We’re using this as a place for plugins to reach out if they have issues with 2.0 changes. Those PRs were just a few of the recent changes that we wanted to highlight. Our plan was to keep this open for visibility until we release 2.0. |
Cool beans, thanks :) |
@kavilla |
This is the place to ask questions and get insights into errors you run into as you work on preparing your Plugin for 2.0. The main branch currently has the Node v14 upgrade as well as several dependency upgrades for CVE fixes. The main branch is stable and working for Core Dashboards but may not be stable for downstream plugins.
NOTE: The errors and issues posted here are not a list of things the core dashboards team will take on fix. This is a platform to engage the Core team on issues that you may need more guidance on or questions that you may have after your initial debugging work.
The text was updated successfully, but these errors were encountered: