-
Notifications
You must be signed in to change notification settings - Fork 78
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
Refactor FigureExtractor to have client/core features. Closes #1760 #1771
Conversation
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.
Good start! See comments below.
1. All the functions using client/core changed to operate on NodeInfoJSON 2. Address PR review suggestions 3. Grab GraphNode from controllers: `PlotlyGraphControl`, `ExecutionIndexControl`
1. Fix nodejs btoa function unavailability 2. Change FigureReference.json to a single line 3. Refactor extract method to both client/core FigureExtractor
desc = { | ||
id: id, | ||
execId: execId, | ||
type: this.getMetaType(nodeInfo) === EXTRACTORS.PLOT3D ? 'plot3D' : 'plot2D', |
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.
Why is "plot2D" lowercase here (rather than conforming to the earlier "Plot2D"? Since this isn't a change added in this commit, it doesn't need to be changed here but I just find it a bit odd...
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.
Also, add test to check equality of objects
Closes #1760.