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

[code2fn] Adds debug messages when ingesting unsupported files #542

Merged
merged 8 commits into from
Oct 4, 2023

Conversation

vincentraymond-ua
Copy link
Contributor

Debug messages when trying to ingest unsupported files

Adds debug messages when the user tries to ingest an unsupported file type through the code2fn endpoints. The messages are passed through the Gromet as a Debug Metadata type in the top level GrometFNModuleCollection.metadata_collection field.

Debug message types

  • WARNING: In the case there are mixed supported/unsupported files in a system.
  • ERROR: In the case there are are only unsupported files in a system.

Testing

  • Adds two additional tests, test_no_supported_files and test_mixed_supported_files
  • Re-enables skema_py endpoint tests

Updates to Gromet FN schema

Adds a metadata_collection field to GrometFNModuleCollection. This change is still considered part of Gromet FN 0.1.8, so the version number will not be bumped.

Resolves #401

@vincentraymond-ua vincentraymond-ua added enhancement New feature or request Code2FN labels Oct 3, 2023
@github-actions github-actions bot removed the Code2FN label Oct 3, 2023
@vincentraymond-ua vincentraymond-ua changed the title [code2fn] [code2fn] Adds debug messages when ingesting unsupported files Oct 3, 2023
@vincentraymond-ua vincentraymond-ua marked this pull request as ready for review October 3, 2023 18:21
Copy link
Contributor

@titomeister titomeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@vincentraymond-ua vincentraymond-ua merged commit 282f19a into main Oct 4, 2023
8 checks passed
@vincentraymond-ua vincentraymond-ua deleted the vraymond/skema_py_updates branch October 4, 2023 02:37
github-actions bot added a commit that referenced this pull request Oct 4, 2023
## Debug messages when trying to ingest unsupported files
Adds debug messages when the user tries to ingest an unsupported file
type through the code2fn endpoints. The messages are passed through the
Gromet as a Debug Metadata type in the top level
`GrometFNModuleCollection.metadata_collection` field.

### Debug message types
- WARNING: In the case there are mixed supported/unsupported files in a
system.
- ERROR: In the case there are are only unsupported files in a system.
### Testing
- Adds two additional tests, `test_no_supported_files` and
`test_mixed_supported_files`
- Re-enables skema_py endpoint tests

## Updates to Gromet FN schema
Adds a metadata_collection field to GrometFNModuleCollection. This
change is still considered part of Gromet FN 0.1.8, so the version
number will not be bumped.

Resolves #401 282f19a
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[code2fn] - What happens when passing an unsupported file to the code2fn endpoints?
2 participants