-
Type: Bug
-
Status: Resolved
-
Priority: Minor
-
Resolution: Fixed
-
Affects Version/s: 3.3.1
-
Fix Version/s: 3.5.0
-
Component/s: Studio Designer
-
Tags:
-
Sprint:NOS 10.10.5 - mid jan
After resolving NXS-4912, we now resolve global variable fields for workflows properly, scaffolding them only if they are available in the workflow schema and if the workflow node is using them. This introduced a silent test failure (testing the model for the workflow task layout) on all target platforms. It can be seen when the tests are run:
Model Generator ✓ model for document view ✓ model for workflow task (node:2460) UnhandledPromiseRejectionWarning: AssertionError: TypeError: Cannot read property 'type' of undefined at /Users/mnixo/Repositories/nos/studio/nuxeo-view-designer/test/test-engine.js:80:30 at process._tickCallback (internal/process/next_tick.js:68:7) (node:2460) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:2460) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
Instead of failing the tests, the execution proceeds normally.
The goal is to prevent silent failures to happen again and to fix the issue with the workflow task layout scaffold.
- is related to
-
NXS-4912 Fix Designer generating graphic element for all the variables in the workflow without considering if variable is editable in this node/view
- Resolved