Skip to content

Conversation

@xhluca
Copy link

@xhluca xhluca commented Aug 15, 2018

Autodeploy on: https://dash-cytoscape.herokuapp.com/

Please review:

  • Cytoscape.react.js
  • usage-elements.py
  • usage-events.py
  • usage-stylesheet.py

Thanks!

@xhluca xhluca requested a review from chriddyp August 15, 2018 00:28
@xhluca xhluca self-assigned this Aug 15, 2018
@xhluca
Copy link
Author

xhluca commented Aug 16, 2018

Notable Problems Noticed: Can't select "preset" Layout inside callbacks. Please refer to #6

@xhluca xhluca temporarily deployed to dash-cytoscape August 17, 2018 17:01 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape August 17, 2018 20:18 Inactive
TODO: testing background, multiple bugs seem to exist
@xhluca xhluca temporarily deployed to dash-cytoscape August 17, 2018 21:36 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape August 20, 2018 21:28 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape October 25, 2018 22:16 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape October 25, 2018 22:40 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape October 27, 2018 22:18 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape October 27, 2018 22:20 Inactive
@xhluca
Copy link
Author

xhluca commented Oct 29, 2018

@Bachibouzouk Please feel free to review too :)

@xhluca xhluca temporarily deployed to dash-cytoscape October 29, 2018 19:24 Inactive
@xhluca
Copy link
Author

xhluca commented Oct 29, 2018

@matthewchan15 Updated as per your recommendations. Thank you for reviewing!

Copy link
Contributor

@shammamah-zz shammamah-zz left a comment

Choose a reason for hiding this comment

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

Awesome job, Xing! Just a few things I noticed. Let me know if anything is unclear.

parentData = parent.data();
} else {
parentData = null;
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
}
let parentData = null;
if (parent) {
parentData = parent.data();
}

Copy link
Author

Choose a reason for hiding this comment

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

Why are we setting it to null?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's just a way of rewriting the code that you already have. Not a super big deal, but this way you have a "default" value :)

Copy link
Author

Choose a reason for hiding this comment

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

@shammamah It makes sense! In this particular case i believe it doesn't affect how the app work since the subsequent if/else statement forces the variable to be assigned to a defined value. However I'd love to read more about the differences between null and undefined; feel free to share me an article/blog post about it :)

with open('demos/data/sample_network.txt', 'r') as f:
data = f.read().split('\n')

edges = data[:750]
Copy link
Contributor

Choose a reason for hiding this comment

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

Why only 750 lines? Is the dataset too big to render?

Copy link
Author

Choose a reason for hiding this comment

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

Yes, above 750 edges it's harder to visualize the graph

Copy link
Contributor

Choose a reason for hiding this comment

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

You may want to make a note of this (like in a comment) so that your users can understand - otherwise they might be confused about why 750

Copy link
Author

@xhluca xhluca Nov 2, 2018

Choose a reason for hiding this comment

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

Ok will do

Edit: Just committed proposed comments

@xhluca
Copy link
Author

xhluca commented Nov 1, 2018

Thank you @matthewchan15 @shammamah for the review! Really helped making the source code better :)

@xhluca xhluca temporarily deployed to dash-cytoscape November 1, 2018 20:40 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape November 1, 2018 22:25 Inactive
@xhluca xhluca temporarily deployed to dash-cytoscape November 1, 2018 22:59 Inactive
@xhluca
Copy link
Author

xhluca commented Nov 3, 2018

Thank you all for the great reviews! I will be merging now. next milestone: dash cytoscape v0.1.0: a stable, well-documented, community-aware version

@xhluca xhluca merged commit 8b8da6a into master Nov 3, 2018
@xhluca xhluca deleted the dev branch November 3, 2018 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants