pharmaverse / admiral

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

Closes #2441 refactor for modular design #2425

Closed imccay13 closed 1 month ago

imccay13 commented 2 months ago

In response to https://github.com/pharmaverse/admiral/discussions/2349, refactors derive_vars_merged

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.

bms63 commented 2 months ago

Hi @imccay13 I see this is draft, but just wanted to say there seems to be quite a few files that are not needed for this update in this PR.

imccay13 commented 2 months ago

Hi @imccay13 I see this is draft, but just wanted to say there seems to be quite a few files that are not needed for this update in this PR.

@bms63 Believe I fixed this, and also fixed the problem I was having with the vignettes - let me know if I'm right about those two things and I'll open the PR

github-actions[bot] commented 2 months ago

Code Coverage

Package Line Rate Health
admiral 97%
Summary 97% (4721 / 4852)
bms63 commented 2 months ago

Hi @imccay13 if they pass all the checks (you can ignore link one), then please click ready for review. For the new function, I'm just glancing at this PR so far, I see only one unit test for it. Do you think that is sufficient coverage for the new function? I'd might error on the side of caution and have some dirty data scenarios and checks for messaging to users??

@bundfussr and @manciniedoardo can we prioritize a review as it might impact on admiralroche.

manciniedoardo commented 2 months ago

@millerg23 @bundfussr please could you give this a look-over with admiralroche in mind? thanks

imccay13 commented 2 months ago

@bundfussr thank you for your comments, I implemented them all so far other than the ones describing what we're doing here: I think @paltusplintus will come up with something better than I can so I've looped him in - I'll re-request review when those documentation changes are made

bms63 commented 2 months ago

ooohhh I was just having a thought about dirty data - should a simple message be returned to the user if nothing is flagged. I'm assuming the user would be expecting something if they are using this to derive something else...if nothing gets flagged then something might be amiss?? warning might be overkill

I guess they could also put in there own custom check...but if they go to the trouble to use this function we might want to give them something?

bms63 commented 2 months ago

Hi @imccay13 - we have a release planned for June 2nd. It would be really nice to finish this PR by EOW please. Please implement our requested changes so we can re-review.

Also!! many thanks for contributing!! I know you work at GSK, but I'm not sure of your formal name.. :) Can we add you to the contributors to the Description file as well?

bms63 commented 2 months ago

@imccay13 I created the Discussion as an issue and updated the title of the PR. This way once the PR merges into main it will automatically close the issue. The issue and discussion are linked together in case we need to chase back for whatever reason.

@paltusplintus and @imccay13 can this be completed by EOW with our requested changes? The code is fine, we just like our documentation and tests to be really clean and have pretty bows.

Release is happening on June 2nd.

imccay13 commented 2 months ago

@imccay13 I created the Discussion as an issue and updated the title of the PR. This way once the PR merges into main it will automatically close the issue. The issue and discussion are linked together in case we need to chase back for whatever reason.

@paltusplintus and @imccay13 can this be completed by EOW with our requested changes? The code is fine, we just like our documentation and tests to be really clean and have pretty bows.

Release is happening on June 2nd.

@bms63 Yeah, that should be good - super feasible to have this done by EOW, and I've done all the low hanging fruit with docs, and I'll take a stab at the testing +try/catch this afternoon, as well as adding myself to contributors - will make a push to make sure this is all done EOW for sure

update: Just changed per the comments

bms63 commented 2 months ago

@imccay13 can you make these last couple of tweaks and then we can merge in!! Also, please add yourself to description file or ping me in TEAMS and I can add you to the list