-
Notifications
You must be signed in to change notification settings - Fork 119
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
Missing params on partial theme merge #253
Closed
2 tasks done
Comments
@markov00 Ya that was one of the edge cases I neglected to consider thinking we would always have a default value. I'll take a look. |
nickofthyme
added a commit
to nickofthyme/elastic-charts
that referenced
this issue
Jul 2, 2019
nickofthyme
added a commit
that referenced
this issue
Jul 2, 2019
Allow the option to merge optional partial params on a partial `Theme`. fix #253
Closed with #256 |
🎉 This issue has been resolved in version 7.0.2 🎉 The release is available on: Your semantic-release bot 📦🚀 |
1 task
AMoo-Miki
pushed a commit
to AMoo-Miki/OpenSearch-Dashboards
that referenced
this issue
Feb 10, 2022
## [7.0.2](elastic/elastic-charts@v7.0.1...v7.0.2) (2019-07-03) ### Bug Fixes * **theme:** merge optional params ([opensearch-project#256](elastic/elastic-charts#256)) ([1b9bb05](elastic/elastic-charts@1b9bb05)), closes [opensearch-project#253](elastic/elastic-charts#253)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I think we miss an important part on the
mergePartial
function. We actually relay on the fact that the default theme has all the property in place, and we are merging the partial theme on top of those properties. The problem comes when we want to merge in a property that isundefined
on the default theme, like thedash
array of aStrokeStyle
. The merge should take all the elements from the default theme + all the element of the partial and merge them together.To Reproduce
Steps to reproduce the behavior: add a test with the following code:
Expected behavior
Merging two object will results in a merge, not just on an object overwritten with the partial values.
Screenshots
n/a
Version (please complete the following information):
Additional context
n/a
Errors in browser console
n/a
Kibana Cross Issues
n/a
Checklist
Kibana Cross Issues
listkibana cross issue
tag is associated to the issue if any kibana cross issue is presentThe text was updated successfully, but these errors were encountered: