-
Notifications
You must be signed in to change notification settings - Fork 10
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: add threshold line to timeseries charts [MA-3442] #1825
Conversation
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.
Need to update the readme for the new threshold prop.
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 think dashboard-renderer
should be updated so that threshold can be passed through the tile definition -> chart renderer so it's supported in dashboards as well?
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.
3e14d7c
to
e6ee577
Compare
packages/analytics/dashboard-renderer/src/types/dashboard-renderer-types.ts
Outdated
Show resolved
Hide resolved
threshold: { | ||
type: 'object', | ||
properties: Object.fromEntries( | ||
exploreAggregations.map((key) => [key, { type: 'number' }]), |
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 sort of dynamic definition is going to prevent TS inference from working. I don't have context on what this is trying to do; at the least trying to make this dynamic will be a journey with the way the current dashboard types are set up. Maybe just splat it out for now?
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.
Dropped the properties
and just ended up doing
additionalProperties: {
type: 'number',
},
packages/analytics/dashboard-renderer/src/types/dashboard-renderer-types.ts
Outdated
Show resolved
Hide resolved
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.
Dashboard side looks good to me.
Summary
https://konghq.atlassian.net/browse/MA-3442
Analytics Chart
Dashboard Renderer