Skip to content
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

Gpl 745 sample and plate UUID #158

Merged
merged 26 commits into from
Nov 24, 2020
Merged

Conversation

Chris-Friend
Copy link
Contributor

Closes #156

Changes proposed in this pull request:

  • Add lh_sample_uuid to each sample. Store in mongo, MLWH and DART
  • Store all newly uploaded source plates in new mongo source_plates collection, unique on barcode with the added implementation logic that source plates with the same barcode must have the same lab id
  • Assign new/existing lh_source_plate_uuids to each sample, or reject sample if source plate not unique (above point). Store lh_source_plate_uuids in MLWH and mongo

@codecov
Copy link

codecov bot commented Nov 19, 2020

Codecov Report

Merging #158 (a89c2f1) into develop (cafcb4f) will increase coverage by 0.50%.
The diff coverage is 100.00%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #158      +/-   ##
===========================================
+ Coverage    90.23%   90.73%   +0.50%     
===========================================
  Files           13       13              
  Lines         1219     1285      +66     
  Branches       142      148       +6     
===========================================
+ Hits          1100     1166      +66     
  Misses          91       91              
  Partials        28       28              
Impacted Files Coverage Δ
crawler/sql_queries.py 100.00% <ø> (ø)
crawler/constants.py 100.00% <100.00%> (ø)
crawler/file_processing.py 85.92% <100.00%> (+1.09%) ⬆️
crawler/helpers.py 96.71% <100.00%> (+0.15%) ⬆️
crawler/main.py 83.33% <100.00%> (+1.70%) ⬆️

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 cafcb4f...a89c2f1. Read the comment docs.

harrietc52
harrietc52 previously approved these changes Nov 23, 2020
Copy link
Contributor

@harrietc52 harrietc52 left a comment

Choose a reason for hiding this comment

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

Looks great, some minor comments 👍

crawler/file_processing.py Show resolved Hide resolved
crawler/main.py Outdated Show resolved Hide resolved
tests/test_main.py Show resolved Hide resolved
tests/test_main.py Show resolved Hide resolved
@Chris-Friend
Copy link
Contributor Author

@harrietc52 just replied to some of your comments. Let me know what you think

@Chris-Friend
Copy link
Contributor Author

@harrietc52 do you mind approving so I don't have to force merge without approval?

Copy link
Contributor

@harrietc52 harrietc52 left a comment

Choose a reason for hiding this comment

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

@Chris-Friend sorry missed your comments yesterday. Agree with your tests comments, me and Andrew were discussing a wider refactor of crawler for this reason. Merge away.

crawler/file_processing.py Show resolved Hide resolved
@Chris-Friend Chris-Friend merged commit 4e4ce8d into develop Nov 24, 2020
@Chris-Friend Chris-Friend deleted the GPL-745-sample-and-plate-uuid branch November 24, 2020 10:16
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.

GPL-745 Add sample and plate uuids to lighthouse cherrypicking - Crawler
2 participants