Skip to content

Commit

Permalink
limit the file view query in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Feb 26, 2024
1 parent bfbabec commit fcfd7a7
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions functions/dashboardFuns.R
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ get_dataset_metadata <- function(syn.store, datasets, ncores = 1, schematic_api=
# get data for all manifests within the specified datasets
file_view <- switch(schematic_api,
reticulate = syn.store$storageFileviewTable,
rest = get_asset_view_table(url = file.path("https://schematic-dev.api.sagebionetworks.org/v1/storage/assets/tables"),
access_token = access_token,
asset_view=fileview)
rest = synapse_get_manifests_in_asset_view(
id = fileview,
auth = access_token
)
)
file_view <- filter(file_view, grepl("synapse_storage_manifest_", name) & parentId %in% datasets)
file_view$contentType <- NA
file_view <- as_tibble(lapply(file_view, unlist))
# datasets don't have a manifest
ds_no_manifest <- datasets[which(!datasets %in% file_view$parentId)]

Expand Down

0 comments on commit fcfd7a7

Please sign in to comment.