USAID-OHA-SI / grabr

OHA/SI APIs package
https://usaid-oha-si.github.io/grabr/
Other
1 stars 2 forks source link

Updating prefix default #63

Closed achafetz closed 4 months ago

achafetz commented 4 months ago

In s3_objects, the prefix param takes on a default value of "ddc/uat". This made sense at the time, but as we start using PEPFAR's s3 buckets (prefix is usaid/ only when we are in the S3_WRITE folder and NULL in S3_READ) and possibly use s3 for DDC, I think the default should be changed back to NULL

https://github.com/USAID-OHA-SI/grabr/blob/76726e9fcdfc6acdecc34d5f1b596bf5c950b2ac/R/import_s3objects.R#L50-L56

Note that the prefix is by default "" in s3_upload. I would argue these should all the same https://github.com/USAID-OHA-SI/grabr/blob/76726e9fcdfc6acdecc34d5f1b596bf5c950b2ac/R/import_s3objects.R#L451-L456