-
Notifications
You must be signed in to change notification settings - Fork 29
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
Dependency "Upload All" follow up#626 #628
Conversation
Codecov Report
@@ Coverage Diff @@
## dev #628 +/- ##
==========================================
+ Coverage 76.44% 76.64% +0.19%
==========================================
Files 29 29
Lines 3919 3917 -2
==========================================
+ Hits 2996 3002 +6
+ Misses 923 915 -8
📣 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.
Hi @Eduardodudu, I know I didn't specify this request in the #626, but I think it'd also be valuable to have the "Upload All" button be hidden when there are no packages to upload too (see use case below). To me, it makes sense to tackle this change in this PR since it's highly related to checking for rows in the table and you already wrote the logic in #616. Specifically, your authored this logic which is very handy:
riskassessment/R/mod_packageDependencies.R
Lines 338 to 343 in 744be35
pkgs_update <- pkg_df() %>% | |
dplyr::filter(is.na(score) | score == "") %>% | |
dplyr::filter(!name %in% c(rownames(installed.packages(priority = "base")))) | |
n_packages <- nrow(pkgs_update) | |
if (n_packages > 0) { |
Here is a use case. I already have the zoo
package uploaded, so I don't need the option to "Upload All":
Hi @AARON-CLARK! I actually enjoyed a lot this idea! Right now the app will only show "Upload All" Icon when there is actually a package to be uploaded. |
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.
Looks good to me!
Task
Feature task on the option to hide upload all packages when there is no package to be shown in table #626
This PR adds