-
Notifications
You must be signed in to change notification settings - Fork 14.4k
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
[SIP-5] Refactor Time Series Table #5775
Conversation
Codecov Report
@@ Coverage Diff @@
## master #5775 +/- ##
==========================================
- Coverage 63.73% 63.63% -0.11%
==========================================
Files 374 375 +1
Lines 23325 23363 +38
Branches 2607 2618 +11
==========================================
Hits 14867 14867
- Misses 8445 8483 +38
Partials 13 13
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.
LGTM!
This is so much more readable, thanks for taking the time for that!
class TimeTable extends React.PureComponent { | ||
renderLeftCell(row) { | ||
const { rowType, url } = this.props; | ||
// const context = { ...fd, metric }; |
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.
remove?
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.
Does the url templating need anything other than the metric
?
The commented was the original code and I was not sure if the url template wants something else from formData
.
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.
Ohh I see. I think Michelle knows more about templating or @mistercrunch
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.
Hi @michellethomas , we would love your thoughts about the url template in time series table.
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 it's was created to be used with metric, I can't think of anything else in formData that would be useful in the url. If you want to be sure, we can query charts that use this feature.
53cbd4b
to
9190f90
Compare
@kristw is this one ready to merge when the build passes? |
Yes, it is ready. |
* Break TimeTable into smaller pieces * extract function to compute color * Handle height and scrollbar * sort out isGroupBy * Set default values * Specify proptypes for data * rename fields and update proptypes * Add default props * remove commented line * swap import
Then this one maybe the reason to break the Time Series Table features from version 0.28.0 :( |
slice
andformData
Verify same slice on production and produce the same result.