Repository navigation
Fix community invites and extend error handling - #88
Merged
jkalayan merged 2 commits intoOct 23, 2026
Merged
Conversation
…sers to BioSimDB, include status of user invite and tests
Coverage Report for CI Build 39985938156Coverage decreased (-0.2%) to 89.51%Details
Uncovered Changes
Coverage Regressions1 previously-covered line in 1 file lost coverage.
Coverage Stats
💛 - Coveralls |
jkalayan
marked this pull request as ready for review
October 23, 2026 17:31
jkalayan
deleted the
86-bug-biosimdb-invenio-community-invitation-fails
branch
October 23, 2026 17:31
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This pull request introduces significant improvements to error handling, configuration management, and code organization in the
biosimdb_interface.formmodule.BioSimDB community invitiation:
INVITE_ALREADY_MEMBER,INVITE_SENT,INVITE_FAILED,INVITE_PENDING), provide user with status where applicable.Error handling improvements:
errors.pymodule that defines custom exceptions (WebformError,ExternalAPIError,FormConversionError) and blueprint-level error handlers for more robust and user-friendly error reporting. This centralizes and standardizes error handling across the form blueprint.webform.pyand updated references to use the new error classes.Configuration management:
APPLICATION_BASE,BIOSIM_SCHEMA_PATH, andENGINE_MAPPING_SCHEMA_PATH) fromapp.configinstead of directly from environment variables, improving clarity and testability.Submission workflow refactoring:
webform.pyinto a newsubmission.pymodule, including routes for resuming, executing, canceling, and confirming submissions. This separation of concerns simplifies the webform logic and improves maintainability.Form extraction and validation:
extract.py, now raisingWebformErrorfor missing files and returning a cleaner JSON response on success.Code cleanup and imports:
webform.py, further clarifying the module's responsibilities.Impact