pharmaverse / admiral

ADaM in R Asset Library
https://pharmaverse.github.io/admiral
Apache License 2.0
215 stars 60 forks source link

Closes #2247 left join relationship #2433

Closed sophie-gem closed 1 month ago

sophie-gem commented 2 months ago

Thank you for your Pull Request! We have developed this task checklist from the Development Process Guide to help with the final steps of the process. Completing the below tasks helps to ensure our reviewers can maximize their time on your code as well as making sure the admiral codebase remains robust and consistent.

Please check off each taskbox as an acknowledgment that you completed the task or check off that it is not relevant to your Pull Request. This checklist is part of the Github Action workflows and the Pull Request will not be merged into the main branch until you have checked off each task.

github-actions[bot] commented 2 months ago

Code Coverage

Package Line Rate Health
admiral 96%
Summary 96% (4798 / 4993)
sophie-gem commented 2 months ago

Apologies for the many names put down as review - wasn't sure who was in the best place to look at this PR. A few notes:

Sorry this PR comes in late! If there is anything else I need to do, please let me know.

sophie-gem commented 1 month ago

Update get_hori_data() typo.

bundfussr commented 1 month ago

@bundfussr should we add tests checking that the relationship argument works within our functions.

Yes, some snapshot checks for the error messages would be nice.

By the way, I am off tomorrow and on Friday.

bms63 commented 1 month ago

@bundfussr should we add tests checking that the relationship argument works within our functions.

Yes, some snapshot checks for the error messages would be nice.

By the way, I am off tomorrow and on Friday.

@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work

sophie-gem commented 1 month ago

@sophie-gem Thank you so much! Can you make these updates for the error messaging requested by Stefan? Hoping to finish everything up by Friday. :)

Will try and have it in place by morning US time tomorrow (so around lunchtime-ish UK time).

sophie-gem commented 1 month ago

@sophie-gem Thank you so much! Can you make these updates for the error messaging requested by Stefan? Hoping to finish everything up by Friday. :)

@bundfussr should we add tests checking that the relationship argument works within our functions.

Updated the error messaging. Learnt a lot doing this!

sophie-gem commented 1 month ago

@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work

Hi @bms63, apologies but I don't think I'm going to have the time to implement tests also. I'm not an expert in snapshot testing and so would need more time to research into this and then also come up with some dummy examples that work.

If you don't want to make this available without tests and no-one else has the capacity, I am happy to work on this after release and leave this PR til the next release (not ideal, I know). Apologies again!

bms63 commented 1 month ago

@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work

Hi @bms63, apologies but I don't think I'm going to have the time to implement tests also. I'm not an expert in snapshot testing and so would need more time to research into this and then also come up with some dummy examples that work.

If you don't want to make this available without tests and no-one else has the capacity, I am happy to work on this after release and leave this PR til the next release (not ideal, I know). Apologies again!

All good Sophie - I can try and make some additional tests. Is everything else ready to go? All @bundfussr comments have been addressed?

sophie-gem commented 1 month ago

@sophie-gem can you also implement a few simple tests for the relationship arguments just so we know they work/don't work

Hi @bms63, apologies but I don't think I'm going to have the time to implement tests also. I'm not an expert in snapshot testing and so would need more time to research into this and then also come up with some dummy examples that work. If you don't want to make this available without tests and no-one else has the capacity, I am happy to work on this after release and leave this PR til the next release (not ideal, I know). Apologies again!

All good Sophie - I can try and make some additional tests. Is everything else ready to go? All @bundfussr comments have been addressed?

I believe so. Went through and double checked.

bms63 commented 1 month ago

@sophie-gem I added a few snapshots tests in - they make testing a lot simpler. Do check it out when you have the time.

bms63 commented 1 month ago

I got a couple of tests in - but ran out of time and of low quality. We can write new tests for 1.2.0 as this caused us to dip from 98% to 97%...a catastrophe!! J/K! But has given me pause to think about some other testing ideas - https://github.com/pharmaverse/admiral/discussions/2453