Skip to content

Fixed plots by adding extra check in transformOutput - #8343

Merged
David Kutugata (DavidKutu) merged 2 commits into
masterfrom
davidkutu/plots_fix
Nov 1, 2019
Merged

David Kutugata (DavidKutu) merged 2 commits into
masterfrom
davidkutu/plots_fix

Conversation

@DavidKutu

Copy link
Copy Markdown

For #8342

  • Pull request represents a single change (i.e. not fixing disparate/unrelated things in a single PR)
  • Title summarizes what is changing
  • Has a news entry file (remember to thank yourself!)
  • Appropriate comments and documentation strings in the code
  • Has sufficient logging.
  • Has telemetry for enhancements.
  • Unit tests & system/integration tests are added/updated
  • Test plan is updated as appropriate
  • package-lock.json has been regenerated by running npm install (if dependencies have changed)
  • The wiki is updated with any design decisions/details.

transformOutput.

Also added the prop key to some outputs
to avoid errors in the console.
@@ -353,7 +353,7 @@ export class CellOutput extends React.Component<ICellOutputProps> {
const buffer: JSX.Element[] = [];
const transformedList = outputs.map(this.transformOutput);

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

transformOutput [](start = 49, length = 15)

This should instead be this.transformOutput.bind(this), then you wouldn't need to check the this pointer above

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

@codecov-io

Codecov (codecov-io) commented Nov 1, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #8343 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #8343   +/-   ##
=======================================
  Coverage   59.23%   59.23%           
=======================================
  Files         508      508           
  Lines       23236    23236           
  Branches     3750     3750           
=======================================
  Hits        13765    13765           
  Misses       8577     8577           
  Partials      894      894

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c6bede...4de0e68. Read the comment docs.

@rchiodo Rich Chiodo (rchiodo) left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@DavidKutu
David Kutugata (DavidKutu) merged commit 47b19d0 into master Nov 1, 2019
@DavidKutu
David Kutugata (DavidKutu) deleted the davidkutu/plots_fix branch November 1, 2019 23:28
@lock lock Bot locked as resolved and limited conversation to collaborators Nov 9, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

no-changelog No news entry required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants