Skip to content

Commit

Permalink
Hard code schematic endpoint in dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
afwillia committed Feb 19, 2024
1 parent f0446dd commit 8cde135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions modules/dashboard/dashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ dashboard <- function(id, syn.store, project.scope, schema, schema.display.name,

# get all datasets from selected project
folder_list <- switch(schematic_api,
"rest" = storage_project_datasets(url=file.path(api_uri, "v1/storage/project/datasets"),
"rest" = storage_project_datasets(url=file.path("https://schematic-dev.api.sagebionetworks.org/v1/storage/project/datasets"),
asset_view = fileview,
project_id=folder,
access_token=access_token),
Expand Down Expand Up @@ -123,7 +123,7 @@ dashboard <- function(id, syn.store, project.scope, schema, schema.display.name,
selected_datatype_requirement <- eventReactive(c(schema(), input$box$visible), {
req(input$box$visible)
get_schema_nodes(schema(), schematic_api = schematic_api,
url=file.path(api_uri, "v1/model/component-requirements"),
url=file.path("https://schematic-dev.api.sagebionetworks.org/v1/model/component-requirements"),
schema_url = schema_url)
})

Expand All @@ -134,7 +134,7 @@ dashboard <- function(id, syn.store, project.scope, schema, schema.display.name,
# remove rows with invalid component name
metadata <- uploaded_manifests() %>% filter(!is.na(Component), Component != "Unknown")
get_metadata_nodes(metadata, ncores = ncores, schematic_api=schematic_api,
schema_url = schema_url, url = file.path(api_uri, "v1/model/component-requirements"))
schema_url = schema_url, url = file.path("https://schematic-dev.api.sagebionetworks.org/v1/model/component-requirements"))
})

# render info/plots for selected datatype
Expand Down

0 comments on commit 8cde135

Please sign in to comment.