Skip to content

Commit

Permalink
Testing schema changes work (#205)
Browse files Browse the repository at this point in the history
Necessary changes to app that arose during testing deployment.
  • Loading branch information
lakikowolfe authored Jun 8, 2023
1 parent 0f321bc commit 2350f7e
Show file tree
Hide file tree
Showing 11 changed files with 2,347 additions and 144 deletions.
2 changes: 1 addition & 1 deletion .Rprofile
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
)
}

source("renv/activate.R")
source("renv/activate.R")
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ LazyData: true
RoxygenNote: 7.2.3
Suggests:
spelling,
testthat,
testthat (>= 3.0.0),
devtools,
usethis,
renv
Expand Down
30 changes: 15 additions & 15 deletions R/app_server.R
Original file line number Diff line number Diff line change
Expand Up @@ -42,22 +42,22 @@ app_server <- function( input, output, session ) {

# generate dashboard configuration from dataFlow schema
dash_config <- dfamodules::generate_dashboard_config(schema_url = global_config$schema_url,
display_names = list(contributor = "Contributor",
entityId = "Synapse ID",
dataset = "Data Type",
dataset_name = "Dataset Folder Name",
num_items = "Number of Items in Manifest",
release_scheduled = "Release Date",
embargo = "Embargo",
standard_compliance = "QC Checks",
released = "Released",
data_portal = "Data Portal",
Component = NA),
# display_names = list(contributor = "Contributor",
# entityId = "Synapse ID",
# dataset = "Data Type",
# dataset_name = "Dataset Folder Name",
# num_items = "Number of Items in Manifest",
# release_scheduled = "Release Date",
# embargo = "Embargo",
# standard_compliance = "QC Checks",
# released = "Released",
# data_portal = "Data Portal",
# Component = NA),
icon = TRUE,
na_replace = list(num_items = "No Manifest",
release_scheduled = "Not Scheduled",
embargo = "No Embargo",
dataset = "No Manifest"),
# na_replace = list(num_items = "No Manifest",
# release_scheduled = "Not Scheduled",
# embargo = "No Embargo",
# dataset = "No Manifest"),
base_url = global_config$api_base_url)

# download data flow status manifest
Expand Down
14 changes: 14 additions & 0 deletions inst/data_model/dataflow_component.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
Attribute,Description,Valid Values,DependsOn,Properties,Required,Parent,DependsOn Component,Source,Validation Rules
dataFlow,Describes data flow status,,"Component, contributor, entityId, dataset_name, dataset, num_items, release_scheduled, embargo, standard_compliance, data_portal, released",,TRUE,DataType,,,
contributor,Storage project that dataset is contained in,,,,TRUE,DataProperty,,,str
entityId,Synapse unique ID,,,,TRUE,DataProperty,,,str
dataset_name,Unique dataset name,,,,TRUE,DataProperty,,,str
dataset,Type of dataset,,,,TRUE,DataProperty,,,str
num_items,Number of files contained in a manifest,,,,TRUE,DataProperty,,,int
release_scheduled,Date that a dataset is scheduled for release,,,,TRUE,DataProperty,,,date
embargo,Date that indicates when a dataset is released from embargo,,,,TRUE,DataProperty,,,date
standard_compliance,Has dataset passed standard validation checks,"TRUE, FALSE",,,TRUE,DataProperty,,,str
data_portal,"Has dataset been published to data portal
","TRUE, FALSE",,,TRUE,DataProperty,,,str
released,"Has this dataset been released
","TRUE, FALSE",,,TRUE,DataProperty,,,str
File renamed without changes.
52 changes: 0 additions & 52 deletions inst/datatable_dashboard_config.json

This file was deleted.

6 changes: 3 additions & 3 deletions inst/global.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"asset_view": "syn50896957",
"manifest_dataset_id": "syn50900267",
"schema_url": "https://raw.githubusercontent.com/Sage-Bionetworks/data_flow/dev-schema-changes/inst/data_flow_component.jsonld",
"api_base_url": "https://schematic-staging.api.sagebionetworks.org"
"manifest_dataset_id": "syn51673148",
"schema_url": "https://raw.githubusercontent.com/Sage-Bionetworks/data_flow/dev-schema-changes-testing/inst/data_model/dataflow_component_testing.jsonld",
"api_base_url": "https://schematic-dev.api.sagebionetworks.org"
}
52 changes: 0 additions & 52 deletions inst/testing/datatable_dashboard_config.json

This file was deleted.

20 changes: 0 additions & 20 deletions inst/testing/synapse_storage_manifest_dataflow.csv

This file was deleted.

13 changes: 13 additions & 0 deletions tests/testing_data/dataflow_component_testing.csv
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Attribute,Description,Valid Values,DependsOn,Properties,Required,Parent,DependsOn Component,Source,Validation Rules
dataFlow,Describes data flow status,,"Component, contributor, entityId, dataset_name, dataset, num_items, embargo, release_scheduled, testing_str, testing_log, testing_num, testing_date",,TRUE,DataType,,,
contributor,Storage project that dataset is contained in,,,,TRUE,DataProperty,,,str
entityId,Synapse unique ID,,,,TRUE,DataProperty,,,str
dataset_name,Unique dataset name,,,,TRUE,DataProperty,,,str
dataset,Type of dataset,,,,TRUE,DataProperty,,,str
num_items,Number of files contained in a manifest,,,,TRUE,DataProperty,,,int
embargo,Date of embargo,,,,TRUE,DataProperty,,,date
release_scheduled,Date of scheduled release,,,,TRUE,DataProperty,,,date
testing_str,TEST STRING,,,,TRUE,DataProperty,,,str
testing_log,TEST LOGICAL,"TRUE, FALSE",,,TRUE,DataProperty,,,str
testing_num,TEST NUMBER,,,,TRUE,DataProperty,,,num
testing_date,TEST DATE,,,,TRUE,DataProperty,,,date
Loading

0 comments on commit 2350f7e

Please sign in to comment.