Closed sverhoeven closed 1 month ago
@VGPReys could you test this branch to see if it fixes https://github.com/i-VRESSE/workflow-builder/issues/154 for you?
When run_dir is optional and default is unset then zip without run_dir is valid, but download misses run_dir When run_dir is optional and default is set then zip without run_dir is valid, but download misses run_dir When run_dir is required and default is set then zip without run_dir is invalid, but download has run_dir.. When run_dir is required and default is unset then zip without run_dir is invalid, but download misses run_dir..
So there is no configuration where uploaded zip without run_dir is valid and download has run_dir.
Could try https://recoiljs.org/docs/api-reference/utils/waitForAllSettled ,but would need new @i-vresse/wb-core release if it works. See https://github.com/i-VRESSE/workflow-builder/pull/161
I tried to inject run_dir on download but look likes recoil does not settle state before save() is executed. A second download has correct run_dir, but that is not very useful. Could try https://recoiljs.org/docs/api-reference/utils/waitForAllSettled ,but would need new @i-vresse/wb-core release if it works. See i-VRESSE/workflow-builder#161
With useSaveWithGlobalRewrite hook in https://www.npmjs.com/package/@i-vresse/wb-core/v/3.1.0 the run_dir is overwritten when you download. So now uploaded zip without run_dir is valid and download always has run_dir=output.
Please delete the images belonging to this Pull Request as they are no longer useful.
Goto versions page of each image, find version called pr-112, filter on tagged versions by clicking "N tagged" button in table header, click on ... button and select Delete version.
The default value for run_dir did not work during validation. As ajv has useDefaults:false, see https://github.com/i-VRESSE/workflow-builder/pull/159 why that was not used.
Fixes https://github.com/i-VRESSE/workflow-builder/issues/154
To test
Case 1
Case 2
Case 3
Case 4
Case 5
Case 6
Same as case 5 but submit on upload page