Skip to content

Fixed plots by adding extra check in transformOutput #8343

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

Merged
merged 2 commits into from
Nov 1, 2019

Conversation

DavidKutu
Copy link

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.
@DavidKutu DavidKutu added the no-changelog No news entry required label Nov 1, 2019
@DavidKutu DavidKutu self-assigned this Nov 1, 2019
@@ -353,7 +353,7 @@ export class CellOutput extends React.Component<ICellOutputProps> {
const buffer: JSX.Element[] = [];
const transformedList = outputs.map(this.transformOutput);
Copy link

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
Author

Choose a reason for hiding this comment

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

Done

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

🕐

@codecov-io
Copy link

codecov-io commented Nov 1, 2019

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.

Copy link

@rchiodo rchiodo left a comment

Choose a reason for hiding this comment

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

:shipit:

@DavidKutu DavidKutu merged commit 47b19d0 into master Nov 1, 2019
@DavidKutu 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