Closed clarisse-lau closed 2 years ago
Thanks for the reminder on this @clarisse-lau! Prioritizing now.
Confirming that I can replicate this behaviour in the HTAN DCA (staging). App disconnects during the generating link
step for the Google Spreadsheet of the Duke Clinical Diagnosis template.
The error is not unique to Duke as it occurs also for DFCI's Diagnosis template. However it does seem to be specific for the Diagnosis component - I can't replicate with, for example Demographics.
Shiny logs as follows
2022-09-09T14:33:38.734650+00:00 shinyapps[5750996]: Welcome, Adam Taylor!
2022-09-09T14:33:38.734737+00:00 shinyapps[5750996]: https://python-docs.synapse.org/build/html/news.html
2022-09-09T14:33:38.734821+00:00 shinyapps[5750996]: INFO: [2022-09-09 14:33:38] synapseclient_default - Welcome, Adam Taylor!
2022-09-09T14:33:38.734565+00:00 shinyapps[5750996]: Python Synapse Client version 2.6.0 release notes
2022-09-09T14:33:38.734860+00:00 shinyapps[5750996]:
2022-09-09T14:33:38.734698+00:00 shinyapps[5750996]:
2022-09-09T14:44:19.736847+00:00 shinyapps[5750996]: Warning: Error in py_call_impl: KeyError: 'displayName'
2022-09-09T14:44:19.736892+00:00 shinyapps[5750996]:
2022-09-09T14:44:19.736926+00:00 shinyapps[5750996]: Detailed traceback:
2022-09-09T14:44:19.736965+00:00 shinyapps[5750996]: File "/srv/connect/apps/HTAN-data-curator-staging/.venv/lib/python3.8/site-packages/schematic/models/metadata.py", line 150, in getModelManifest
2022-09-09T14:44:19.737065+00:00 shinyapps[5750996]: empty_manifest_url = self.get_empty_manifest()
2022-09-09T14:44:19.737038+00:00 shinyapps[5750996]: File "/srv/connect/apps/HTAN-data-curator-staging/.venv/lib/python3.8/site-packages/schematic/manifest/generator.py", line 1469, in get_manifest
2022-09-09T14:44:19.736999+00:00 shinyapps[5750996]: return mg.get_manifest(
2022-09-09T14:44:19.737116+00:00 shinyapps[5750996]: File "/srv/connect/apps/HTAN-data-curator-staging/.venv/lib/python3.8/site-packages/schematic/manifest/generator.py", line 1250, in get_empty_manifest
2022-09-09T14:44:19.737156+00:00 shinyapps[5750996]: json_schema = self._get_json_schema(json_schema_filepath)
2022-09-09T14:44:19.737202+00:00 shinyapps[5750996]: File "/srv/connect/apps/HTAN-data-curator-staging/.venv/lib/python3.8/site-packages/schematic/manifest/generator.py", line 348, in _get_json_schema
2022-09-09T14:44:19.737243+00:00 shinyapps[5750996]: json_schema = self.sg.get_json_schema_requirements(self.root, self.title)
2022-09-09T14:44:19.737285+00:00 shinyapps[5750996]: File "/srv/connect/apps/HTAN-data-curator-staging/.venv/lib/python3.8/site-packages/schematic/schemas/generator.py [... truncated]
2022-09-09T14:44:19.737317+00:00 shinyapps[5750996]: 15: <Anonymous>
2022-09-09T14:44:19.737347+00:00 shinyapps[5750996]: 13: fn
2022-09-09T14:44:19.737382+00:00 shinyapps[5750996]: 8: retry
2022-09-09T14:44:19.737442+00:00 shinyapps[5750996]: 7: connect$retryingStartServer
2022-09-09T14:44:19.737483+00:00 shinyapps[5750996]: 6: eval
2022-09-09T14:44:19.737524+00:00 shinyapps[5750996]: 5: eval
2022-09-09T14:44:19.737561+00:00 shinyapps[5750996]: 4: eval
2022-09-09T14:44:19.737598+00:00 shinyapps[5750996]: 3: eval
2022-09-09T14:44:19.737673+00:00 shinyapps[5750996]: 1: local
Partially addressed in #903, work will continue to determine cause of error and relation to base schema used @clarisse-lau @adamjtaylor
@elv-sb to update the HTAN data model's method of diagnosis field; it contains 'Imaging' as valid value, which collides with schema.org or biothings; schematic doesn't set attributes like "displayName" in this case, which causes the error above.
@milen-sage @elv-sb Just following up on this ticket- I'm still encountering the disconnect error when generating Duke's diagnosis sheet. Do you have an update on when the above will be implemented? Thanks!
@clarisse-lau the schema has been updated, but I am not sure if the production and staging apps have been updated to use the schema. Perhaps @elv-sb and @adamjtaylor can chime in.
@clarisse-lau Can confirm that this is fixed in current staging.
Previous mention from other issue (#/999) was erroneous, and the two are not related
Describe the bug The HTAN Duke center is unable to generate templates for their diagnosis dataset through the DCA (see ticket). Attempting to generate the google sheet using schematic's CLI yielded the error below.
To Reproduce Steps to reproduce the behavior: Run
schematic manifest -v INFO --config config.yml get --data_type Diagnosis -d syn24615229 -oa --sheet_url
using HTAN data model: https://github.com/ncihtan/data-models/blob/main/HTAN.model.jsonldExpected behavior Obtain template csv and Google sheet URL for Duke Diagnosis dataset
Priority (select one)
Additional context Python 3.10.6 schematicpy 22.8.1