Skip to content

Conversation

@mattseddon
Copy link
Contributor

@mattseddon mattseddon commented Oct 5, 2022

2/2 main <- #2523 <- this

The 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

image

Related to #2516

@mattseddon mattseddon added the bug Something isn't working label Oct 5, 2022
@mattseddon mattseddon self-assigned this Oct 5, 2022
@mattseddon mattseddon changed the base branch from main to fix-flexible-confusion October 5, 2022 06:15
field: string | undefined,
isMultiView: boolean
): string => {
const transformRevisionData = (
Copy link
Contributor Author

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.

@mattseddon mattseddon force-pushed the fix-plot-size branch 2 times, most recently from a54f201 to 9fb343f Compare October 5, 2022 07:14
@mattseddon mattseddon marked this pull request as ready for review October 5, 2022 07:24
@mattseddon
Copy link
Contributor Author

I will fix any Code climate issues once the previous PR has been merged and it starts working again.

Base automatically changed from fix-flexible-confusion to main October 5, 2022 17:42
@mattseddon mattseddon enabled auto-merge (squash) October 5, 2022 17:49
): string => {
if (!field || (!isMultiView && !isConcatenatedField(field))) {
return JSON.stringify(datapoints)
const transformRevisionData = (

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.

@qlty-cloud-legacy
Copy link

Code Climate has analyzed commit 00cf805 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

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.

@mattseddon mattseddon merged commit 8ce1a4c into main Oct 5, 2022
@mattseddon mattseddon deleted the fix-plot-size branch October 5, 2022 17:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants