-
Notifications
You must be signed in to change notification settings - Fork 7
Fix: SBML export and Model tab frontend-backend connection #403
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
Conversation
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-flower-0c36fd81e-403.westus2.5.azurestaticapps.net |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Improves resilience of SBML export and the Model tab’s frontend-backend integration by adding safer error handling and sanitization.
Changes:
- Frontend: show an in-UI error when simulation config fails to load; avoid throwing when defaults are missing.
- Backend: return 400 for unknown
/data/*paths; make SBML event IDs safe; ensure conversion failures always return a non-null message.
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| SBOLCanvasFrontend/src/app/model-editor/model-editor.component.ts | Handles simulation config load errors and provides fallback defaults instead of throwing. |
| SBOLCanvasFrontend/src/app/model-editor/model-editor.component.html | Displays a Model tab error banner when config load fails. |
| SBOLCanvasFrontend/src/app/model-editor/model-editor.component.css | Styles the config-load error banner. |
| SBOLCanvasBackend/src/utils/MxToSBML.java | Sanitizes SBML event IDs to prevent invalid/empty identifiers. |
| SBOLCanvasBackend/src/servlets/Data.java | Returns 400 when /data/* path doesn’t match a supported endpoint. |
| SBOLCanvasBackend/src/servlets/Convert.java | Avoids null error messages in conversion error responses. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
SBOLCanvasFrontend/src/app/model-editor/model-editor.component.html
Outdated
Show resolved
Hide resolved
|
Azure Static Web Apps: Your stage site is ready! Visit it here: https://blue-flower-0c36fd81e-403.westus2.5.azurestaticapps.net |
Error handling for SBML export and Model tab frontend-backend connection.