UCB's First PR After Requirements Discussion#328
UCB's First PR After Requirements Discussion#328pharma-dev-hub wants to merge 0 commit intoinsightsengineering:mainfrom
Conversation
|
✅ All contributors have signed the CLA |
|
Going to fix this CLA thing soon, thanks, Andras |
|
recheck |
|
I have read the CLA Document and I hereby sign the CLA |
1 similar comment
|
I have read the CLA Document and I hereby sign the CLA |
Melkiades
left a comment
There was a problem hiding this comment.
Thanks for the addition :) It is good to go for me.
There is a vignette that shows how to update the cached data. Only changing the generator will not change the cache.
How do you want to proceed with that? do you need the internal cache to be updated? @shajoezhu @BFalquet fyi
|
hi @pharma-dev-hub , yes the cache will need updating as result of changing code, you are likely need to update the snapshot as well. for this particular PR, it is changing the ratio of patient SEX, once you update the cached data, we will need to assess downstream impact in scda.test and tlg-catalog public version (@pawelru FYI), I don't think we will have other impact on other nest packages, Thank you! |
|
Hi @Melkiades, @shajoezhu, I have run the script to update the cached data and no differences were found and so no data has been updated. I think this is because the hard-coded proportion was 0.52 and the new argument has a default of 0.52, so while this argument has not been specified in the generation of cached data, the proportion is still the same. |
|
hi @Alexandra01 , can you please update the snapshots, it seems the date time is slightly off and it shows difference at the moment. also, can you please fix the lintr issue. thank you |
|
Hi @shajoezhu yes, I will update the snapshots. |
|
Hi Guys, Could we please get some feedback on Alexandra’s question? :) |
|
hi @Alexandra01 , sorry, missed the notification. yes, please can you fix the lintr issue, so we can make all checks green. it is very minor. Thanks! |
|
recheck |
|
I have read the CLA Document and I hereby sign the CLA |
1 similar comment
|
I have read the CLA Document and I hereby sign the CLA |
|
Hi all, We are running into test failures because of timezone differences. For example, Alexandra is in the UK and I am in CET, so times like 01:00 versus 00:00 can cause issues when pushing changes. Do you have a preferred way to handle this? Should we force UTC in the tests, like: format(Sys.time(), tz = "UTC") Thank you for the help. |
That is interesting! I think @shajoezhu must have a solution. He is based in a different timezone from central Europe. I would say to align to the current tests values on your systems. Maybe @cicdguy knows how this is set in the PR workflow? |
|
I think you have to use something like or in the test, you could try cheers |
|
Hi all, Would that be an okay solution? |
In that case, you could just place |
|
You can also have a package-level setting (as opposed to script-level setting) if you create |
|
do not worry about CLA, we can merge it anyway ;) |
|
@Melkiades I think there is a bigger issue going on here as I added the time zone fix and it works locally for both me and Andras, yet the tests are still failing in the check. but the file row_values.md has the following values, specifically the time is 00:00:00 So the test shouldn't expect the time to be 01:00:00 in the snapshot, and therefore the tests should pass. |
Thanks for reporting this. hi @Alexandra01 , could you test something for me, if you change the timezone to "CET" timezone, would that resolve the snapshot issue? |
Yes exactly. Do not worry about the CLA. It is not mandatory for merging. |
|
@Alexandra01 @kasaandras I think you have an old version here (I checked the fork). It would need to be rebased and updated with the upstream main/origin (this repo). I am adding a way that allows the update of data cache also from forks. Still needs some tuning. #329 As there are not so many modifications, I can make another PR with your mods later. Let me know if this PR contains everything you want to add now ;) |
#328 --------- Signed-off-by: Davide Garolini <dgarolini@gmail.com>
|
hi @kasaandras @pharma-dev-hub @Alexandra01 can you try update your branch? I think Davide had fixed the issue for you. thanks |
|
@shajoezhu @Melkiades @Alexandra01 Please help me understand. It would be great to finalize this pull request eventually. |
|
hi @kasaandras , Davide @Melkiades is change was passing (I believe there were the changes that you would like to include into the package) , and with additional changes to allow checks to run. so I merged it in. but it seems at the moment, the main is failing, leave this with us. @Melkiades @edelarua , can you guys help fix the main please. once the main is fixed. I suggest that we set a call together and discuss what else is needed, and how to collaborate. @pawelru @Polkas fyi for now, let @Melkiades and @edelarua fix the main. thanks! |
|
hi @kasaandras @Alexandra01 , fyi the main is now fixed. |
94aec48 to
52ce749
Compare
|
I think we can close this PR now? |
shajoezhu
left a comment
There was a problem hiding this comment.
approve and close the PR
Pull Request is not mergeable
|
There is nothing to merge in. I think we can consider the above PR as completed 👍 |
In this update, we made a single change: we enabled the option to modify the gender ratio. By default, it is set to 0.52, which matches the value from the original branch.
We also addressed the other requirements that were previously mentioned.
Please review the changes and let us know your feedback.
Best regards,
Andras