-
-
Notifications
You must be signed in to change notification settings - Fork 44
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
Change name of the raw (unfiltered object) #1342
Conversation
`<dataname>._raw_` to `.<dataname>_raw`
Code Coverage Summary
Diff against main
Results for commit: 89285ce Minimum allowed coverage is ♻️ This comment has been updated with latest results |
Unit Tests Summary 1 files 25 suites 8m 33s ⏱️ Results for commit 89285ce. ♻️ This comment has been updated with latest results. |
Unit Test Performance Difference
Additional test case details
Results for commit 556f044 ♻️ This comment has been updated with latest results. |
Hey @gogonzo this looks really good. The behavior is the same as on main. I left one comment about the usage of |
I haven't looked into the implementation but I like the change based on the description. I have one idea though. Have you considered having |
Co-authored-by: Marcin <[email protected]> Signed-off-by: Dawid Kałędkowski <[email protected]>
We haven't consider but it is an interesting idea. I have nothing against and not super hyped about this. Would you like to halt this PR and continue discussion?
Why would it be better? |
I'm not insisting on this particular but it would be good to make a call which way to go so we can close this for good and not leave leftovers.
I'm all for this idea but these are not game changers. If it's easy to implement I would encourage to go for it but I won't push on this by any means.
I consider environments as an unordered list accessible only by keys (and not index). Conceptually, our collection of raw datasets do not have order so this seems to be more suitable. |
@pawelru makes sense, I like this suggestion. Environment needs to be locked as it is shared by all .raw_data <- list2env(list(ADSL = ADSL, ADTTE = ADTTE, iris = iris))
lockEnvironment(.raw_data) instead of .ADSL_raw <- ADSL
.ADTTE_raw <- ADSL
.iris_raw <- iris |
Oh I haven't thought about. That makes it even better! |
@pawelru I'll change |
Just played around with it and it looks solid. IMHO cleaner than what we had before in Show R Code (I didn't like the previous behavior where this Tested below cases ADSL and ADTTE as input, ADTTE not in datanames - Show R Code returned only for ADSL ![]() ADSL and ADTTE as input, ADTTE not in datanames - Show R Code returned for both ![]() |
Yes, was just trying to prove that what is expected is actually displayed :) |
Thanks 👍 Conceptually it is looking good. It's an soft approve as a comment from my side as I haven't check the details of the implementation |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please find my comments.
Overall it's good and I very much like the change. This introduces much simpler and nicer convention which is much easier to extend in the future. Very nicely done.
I submitted a few small comments about implementation. I'm aware that some of them are to be addressed outside of this PR but still I decided to add them not to loose my thought on this. Please open a new issue or PR if you agree and want to do this separately.
linking to the discussion insightsengineering/teal#1342 (comment) - removed verification-warning message from get_code - ~~added is_verified method to possibly handle `@verified == FALSE` by external process. I'm fine to use `@verified` directly in `teal` - I'm happy also to remove `is_verified` if suggested in review.~~
From
<dataname>._raw_
to.<dataname>_raw
. This means thatteal.data::datanames()
is not really needed.ls(data@env)
returns all object names from environment except prefixed by.
(all.names = FALSE
is a default).This adds clarity to the handling of a datanames in teal application:
.
con -> .con
andADSL_temp -> .ADSL_temp