Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise a helpful error when a datatype cannot be found in a schema #1286

Merged
merged 10 commits into from
Sep 21, 2023

Conversation

GiaJordan
Copy link
Contributor

@GiaJordan GiaJordan commented Sep 1, 2023

For the linked issue, the error arose because the data type was not spelled according to the conventions of the class label in the schema. The error raised by networkx: return self._nodes[n] \ KeyError: 'AssayRNASeqMetadataTemplate' was not very good at communicating what was going wrong. I've wrapped another error around this message for the case of generating a manifest that should be more explanatory and offers suggestions for remedying.

Depends on: #1287

schematic/manifest/generator.py Outdated Show resolved Hide resolved
@GiaJordan GiaJordan changed the base branch from develop to develop-bugfix-class-in-schema-FDS-1005 September 7, 2023 17:14
@dpulls
Copy link

dpulls bot commented Sep 8, 2023

🎉 All dependencies have been resolved !

Base automatically changed from develop-bugfix-class-in-schema-FDS-1005 to develop September 8, 2023 16:25
@andrewelamb
Copy link
Contributor

@GiaJordan Lets add a test to check that this results in the intended error.

@GiaJordan
Copy link
Contributor Author

@andrewelamb thanks sounds good

@GiaJordan
Copy link
Contributor Author

@andrewelamb I've added a test to ensure the exception gets raised in the correct circumstances. Could you please review when you have the time? Thanks!

schematic/manifest/generator.py Outdated Show resolved Hide resolved
@GiaJordan GiaJordan merged commit a0424cb into develop Sep 21, 2023
3 checks passed
@GiaJordan GiaJordan deleted the develop-node-error-FDS-955 branch September 21, 2023 20:28
@GiaJordan GiaJordan restored the develop-node-error-FDS-955 branch September 21, 2023 21:12
@GiaJordan GiaJordan mentioned this pull request Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants