-
Notifications
You must be signed in to change notification settings - Fork 28
Fix size of flexible confusion matrix #2531
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
| field: string | undefined, | ||
| isMultiView: boolean | ||
| ): string => { | ||
| const transformRevisionData = ( |
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.
[F] This change is good because we are not looping over the datapoints twice anymore.
a54f201 to
9fb343f
Compare
|
I will fix any Code climate issues once the previous PR has been merged and it starts working again. |
9fb343f to
00cf805
Compare
| ): string => { | ||
| if (!field || (!isMultiView && !isConcatenatedField(field))) { | ||
| return JSON.stringify(datapoints) | ||
| const transformRevisionData = ( |
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.
Function transformRevisionData has 39 lines of code (exceeds 30 allowed). Consider refactoring.
|
Code Climate has analyzed commit 00cf805 and detected 1 issue on this pull request. Here's the issue category breakdown:
The test coverage on the diff in this pull request is 95.6% (85% is the threshold). This pull request will bring the total coverage in the repository to 96.9%. View more on Code Climate. |
2/2
main<- #2523 <- thisThe plots webview uses the number of revisions provided for a confusion matrix to change the size of the plot being rendered. In order to fix the size problem, I have corrected the revisions provided in the webview in the message.
This is the line in the webview: https://github.com/iterative/vscode-dvc/blob/cf15eaa2d990211e9e1c10a5c592b14bc49f85ba/webview/src/plots/components/templatePlots/TemplatePlotsGrid.tsx#L111
Screenshot
Related to #2516