-
Notifications
You must be signed in to change notification settings - Fork 31
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
Fix assess_downloads_1yr() error #283
base: master
Are you sure you want to change the base?
Fix assess_downloads_1yr() error #283
Conversation
Codecov Report
@@ Coverage Diff @@
## master #283 +/- ##
==========================================
+ Coverage 59.23% 59.41% +0.18%
==========================================
Files 64 64
Lines 991 993 +2
==========================================
+ Hits 587 590 +3
+ Misses 404 403 -1
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
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.
Lets add a warning as well. to let users know there was a problem and that we automatically set the look back
Good idea. I'll add that. However, I'm having problems changing the lookback argument. Doesn't look like that is working. |
Based on our discussion, I've updated |
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.
Let's add a filter if the "archive_release_dates" field is populated/available. we do not need to display/store download information for dates before a package's first release. This slot is only populated for pkg_cran_remote
class pkg_refs.
Sorry for the delay. Just added default and pkg_cran_remote classes to pkg_ref_cache_downloads. Is this what you were thinking? @emilliman5 |
Almost there. I think and can we implement a downloads ref cache for bioconductor and github???? (can be a later PR) |
Yeah, I'll create an issue to implement a downloads ref cache for bioconductor and github. I've tried setting Example after updating the code and installing package:
Code snippet I've updated based on your suggestions is below:
|
I see what you mean. Maybe there should be no My goal is to be intentional/explicit about what info we cache based on the ref source. Maybe we need a similar system like for metrics where we specify the reason for the NA???? I like the error handling. I need to think more on the method dispatching |
I'll create a new PR with a temp fix based on @elimillera's suggestion. That will at least get the metric working again. Keeping this PR active for us to discuss further, since we're still evaluating the general approach for the metric. |
I will resolve these conflicts and merge |
No description provided.