fix: update hardcoded osy-version from 5.0 to 5.5 in AddCase.js#454
fix: update hardcoded osy-version from 5.0 to 5.5 in AddCase.js#454lil-aditya wants to merge 1 commit intoEAPD-DRB:mainfrom
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the osy-version value stamped into newly created model genData.json payloads so the stored metadata matches the app’s reported version.
Changes:
- Update hardcoded
"osy-version"inAddCase.jsfrom"5.0"to"5.5"for new model saves.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| let POSTDATA = { | ||
| "osy-version": "5.0", | ||
| "osy-version": "5.5", |
There was a problem hiding this comment.
Changing the stamped osy-version to 5.5 will cause exported models to be rejected on re-import: API/Routes/Upload/UploadRoute.py only recognizes versions up to '5.0' (handle_full_zip checks name == '5.0' and otherwise returns an error). Either keep osy-version aligned to the data-format version that the backend accepts, or update the upload validation/migration logic to accept '5.5' (and treat it equivalently to '5.0' if the format is unchanged).
| "osy-version": "5.5", | |
| "osy-version": "5.0", |
|
@SeaCelo I’d appreciate it if you could review this. |
Closes #453
Summary
"osy-version": "5.0"→"osy-version": "5.5"on line 232 of AddCase.jsImpact
Proof
And UI header shows "MUIO ver.5.5"
Existing related work reviewed
Scope check