You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
res <- do.call(aliases_list, list(object_type='template_script'))
str(res)
List of 23
$ :List of 6
..$ id : int 11
..$ objectId : int 12367
..$ objectType : chr "template_script"
..$ alias : chr "civis-ShapefileExport"
..$ userId : int 3001
..$ displayName: chr "Export Shapefile"
.until = function(x) x == FALSE
sapply(res, .until)
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8] [,9] [,10] [,11]
id FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
objectId FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
objectType NA NA NA NA NA NA NA NA NA NA NA
alias NA NA NA NA NA NA NA NA NA NA NA
userId FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
displayName NA NA NA NA NA NA NA NA NA NA NA
any(sapply(res, .until))
[1] NA
The text was updated successfully, but these errors were encountered:
For the fix, it's likely that option 1 is fine. Option 2 would be great to have. We'd want to surface .until as an argument with the current default as the default value.
Thank you! For this PR #221 I used the fetch_until(aliases_list, limit=1000, object_type='template_script', function(x) length(x) == 0)) per your suggestion.
To address this bug do you recommend creating a new Jira ticket and opening a PR? It's not immediately obvious to me how to do Option 2. Would using Option 1 suffice? If not, I'm happy to dig into how to do Option 2.
template_alias_objects <- fetch_all(aliases_list,object_type='template_script')
Produces:
Error in if (any(sapply(res, .until))) { : missing value where TRUE/FALSE needed
Stepping through the relevant code in pagination_helpers.R:
The text was updated successfully, but these errors were encountered: