-
Notifications
You must be signed in to change notification settings - Fork 121
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
feat: debug state for the heatmap chart #976
Conversation
export type HeatmapDebugState = Pick<DebugState, 'legend'> & { | ||
cells: CellDebug[]; | ||
selectedArea: { x: number; y: number; width: number; height: number } | null; | ||
axes: DebugStateAxes; | ||
}; |
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.
We had talked about using a single DebugState
type for all chart types to simplify the API. In that case, we would add these additional keys on the DebugState
as optional.
@markov00 any thoughts?
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.
I'm also for simplifying the API here if possible
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.
hey @nickofthyme @markov00 , I've updated the DebugState
interface, please take a look at the recent changes
Codecov Report
@@ Coverage Diff @@
## master #976 +/- ##
==========================================
+ Coverage 72.47% 72.78% +0.30%
==========================================
Files 366 383 +17
Lines 11361 11701 +340
Branches 2472 2524 +52
==========================================
+ Hits 8234 8516 +282
- Misses 3112 3162 +50
- Partials 15 23 +8
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
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.
This is exactly what I was thinking. Thanks for the changes.
src/state/types.ts
Outdated
type HeatmapDebugState = { | ||
cells: CellDebug[]; | ||
selectedArea: { x: number; y: number; width: number; height: number } | null; | ||
}; |
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.
👍🏼
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 to merge when Jenkins is green
🎉 This PR is included in version 25.3.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
# [25.3.0](elastic/elastic-charts@v25.2.0...v25.3.0) (2021-03-11) ### Bug Fixes * **brush:** force brush tool per panel ([opensearch-project#1071](elastic/elastic-charts#1071)) ([61d6b7a](elastic/elastic-charts@61d6b7a)), closes [opensearch-project#1070](elastic/elastic-charts#1070) ### Features * debug state for the heatmap chart ([opensearch-project#976](elastic/elastic-charts#976)) ([9ba7666](elastic/elastic-charts@9ba7666))
Summary
Resolves #959
DebugState
interface with heatmap related data under theheatmap
property