-
Notifications
You must be signed in to change notification settings - Fork 11
feat: adding gauge widget #347
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
Conversation
|
||
|
||
// Gauge | ||
export * from './shared/components/gauge/gauge.component'; |
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.
Doubled up gauge component/module
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.
removed
import { DonutWidgetRendererComponent } from './gauge-widget-renderer.component'; | ||
import { DonutWidgetModel } from './gauge-widget.model'; | ||
|
||
describe('Donut widget renderer component', () => { |
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.
Guessing this is not ready for review
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.
nope
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.
Ready now
Codecov Report
@@ Coverage Diff @@
## main #347 +/- ##
==========================================
+ Coverage 86.23% 86.25% +0.02%
==========================================
Files 725 728 +3
Lines 14807 14831 +24
Branches 1760 1896 +136
==========================================
+ Hits 12769 12793 +24
+ Misses 2007 2005 -2
- Partials 31 33 +2
Continue to review full report at Codecov.
|
const modelFactory = createModelFactory(); | ||
|
||
const data: GaugeWidgetData = { | ||
value: 5, |
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.
Hmm - I think I'd expect the max and thresholds to come from the widget model rather than the data model - those seem like they're independent of where we actually get the value from, and would allow dropping in our existing aggregation data sources.
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.
will follow up on the data/widget separation.
Description
Please include a summary of the change, motivation and context.
Adding Gauge Dashboard widget
Testing
Please describe the tests that you ran to verify your changes. Please summarize what did you test and what needs to be tested e.g. deployed and tested helm chart locally.
Added unit tests for both widget and its model. Also did some manual test. We need to ensure the widget renders the data correctly.
Checklist:
Documentation
Make sure that you have documented corresponding changes in this repository or hypertrace docs repo if required.