Skip to content

Add exporter to a local MongoDB#463

Open
amanchoudhri wants to merge 48 commits intomasterfrom
add-mongo-exporter
Open

Add exporter to a local MongoDB#463
amanchoudhri wants to merge 48 commits intomasterfrom
add-mongo-exporter

Conversation

@amanchoudhri
Copy link
Copy Markdown
Collaborator

Add functions to export a given graph to a local MongoDB and then query some basic information back from that DB.

Before, get_edges() could be called either with:
a node as an input or criteria to search for matching nodes as the input
Now, those two input sets are broken up into smaller functions
@cthoyt
Copy link
Copy Markdown
Member

cthoyt commented Jul 30, 2020

Needs unit tests!

Comment thread src/pybel/io/mongodb.py
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread tests/test_io/test_mongodb.py Outdated
Comment thread tests/test_io/test_mongodb.py Outdated
@codecov
Copy link
Copy Markdown

codecov bot commented Aug 1, 2020

Codecov Report

❌ Patch coverage is 82.50000% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.33%. Comparing base (9331675) to head (ce37753).
⚠️ Report is 66 commits behind head on master.

Files with missing lines Patch % Lines
src/pybel/io/mongodb.py 81.08% 13 Missing and 8 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #463      +/-   ##
==========================================
+ Coverage   78.30%   78.33%   +0.03%     
==========================================
  Files         176      177       +1     
  Lines        9443     9555     +112     
  Branches     1364     1387      +23     
==========================================
+ Hits         7394     7485      +91     
- Misses       1762     1775      +13     
- Partials      287      295       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

amanchoudhri and others added 5 commits August 1, 2020 13:07
Before, there was a lot of repetition in deleting the '_id' and
'type' keys from mongo items. This commit makes that more DRY by
pulling that functionality out into _rm_mongo_keys().
@amanchoudhri amanchoudhri marked this pull request as ready for review August 2, 2020 20:10
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread src/pybel/io/mongodb.py
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread tests/test_io/test_mongodb.py
Comment thread tests/test_io/test_mongodb.py Outdated
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread src/pybel/io/mongodb.py Outdated
Comment thread src/pybel/io/mongodb.py Outdated
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.

2 participants