[Cases] Attach lens visualizations from dashboards#154918
[Cases] Attach lens visualizations from dashboards#154918angorayc merged 56 commits intoelastic:mainfrom
Conversation
…-ref HEAD~1..HEAD --fix'
…-ref HEAD~1..HEAD --fix'
This issue is not reproducible anymore. Select modal is working as expected. |
| bfetch: 22837 | ||
| canvas: 1066647 | ||
| cases: 175000 | ||
| cases: 180000 |
There was a problem hiding this comment.
I could not find a way to reduce the bundle size. The imports from @kbn/embeddable-plugin/public and @kbn/ui-actions-plugin/public increased it. I tried to import only what we need by setting the path of the import to the folder we need but I got this error
Module not found: Error: import [@kbn/embeddable-plugin/public/lib/embeddables/error_embeddable references a non-public export of the [embeddable] bundle and must point to one of the public directories: [public,common].
This PR #157492 will reduce the limit substantially.
There was a problem hiding this comment.
Works for me. Thanks for looking into it.
Thanks for catching this bug @jonathan-buttner , it should be fixed now: Screen.Recording.2023-06-01.at.15.40.00.movScreen.Recording.2023-06-01.at.15.40.39.mov |
| casePermissions.update && | ||
| casePermissions.create && | ||
| hasInput(embeddable), | ||
| isCompatible: async ({ embeddable }) => { |
There was a problem hiding this comment.
Just curious why this fixed the issue?
There was a problem hiding this comment.
If it's about create case button the flyout wouldn’t appear, it's fixed here:
e1e671c#diff-4b6429a0bd15d6fd67fb5734dd24068c314f12abc8a1ecbe49f2006adbef73f5R291
There was a problem hiding this comment.
Do you mean about the owner moved inside isCompatible. If yes, it is because when createAddToExistingCaseLensAction is being called the currentAppId is not set yet. But isCompatible and execute are being called after the render of the app where the currentAppId is set. We need to get the owner after currentAppId is set.
💚 Build Succeeded
Metrics [docs]Module Count
Async chunks
Page load bundle
Unknown metric groupsESLint disabled line counts
Total ESLint disabled count
History
To update your PR or re-run it, just comment with: cc @angorayc |





Summary
Original issue: #154842
Collaboration with @cnasikas
In dashboard, when clicking on
...of each chart, we should be able to:Screen.Recording.2023-05-25.at.11.51.28.mov
Checklist
Delete any items that are not applicable to this PR.