-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
[lens] update LensEmbeddable.getSavedVis to return LensSavedObjectAttributes #177064
Conversation
/ci |
Pinging @elastic/kibana-visualizations (Team:Visualizations) |
@elasticmachine merge upstream |
💚 Build Succeeded
Metrics [docs]Async chunks
Public APIs missing exports
History
To update your PR or re-run it, just comment with: |
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.
Looks good!
…ributes (elastic#177064) Blocking elastic#176869 While working on elastic#176869, I discovered there is a type mismatch between `LensEmbeddable.getSavedVis` internal implementation and consumers of `LensEmbeddable.getSavedVis` results. LensEmbeddable.getSavedVis returns `Readonly<Document | undefined>`. LensEmbeddable.getSavedVis consumers are typing the response as `LensSavedObjectAttributes`. This PR updates `LensEmbeddable.getSavedVis` to return `Readonly<LensSavedObjectAttributes | undefined>` since that is how its being used. --------- Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Blocking #176869
While working on #176869, I discovered there is a type mismatch between
LensEmbeddable.getSavedVis
internal implementation and consumers ofLensEmbeddable.getSavedVis
results.LensEmbeddable.getSavedVis returns
Readonly<Document | undefined>
.LensEmbeddable.getSavedVis consumers are typing the response as
LensSavedObjectAttributes
.This PR updates
LensEmbeddable.getSavedVis
to returnReadonly<LensSavedObjectAttributes | undefined>
since that is how its being used.