n8n/packages
Iván Ovejero c5e6ba8cdd
fix(core): Restore workflow ID during execution creation (#8031)
## Summary
Restore workflow ID during execution creation removed by [this
PR](https://github.com/n8n-io/n8n/pull/8002/files#diff-c8cbb62ca9ab2ae45e5f565cd8c63fff6475809a6241ea0b90acc575615224af).
The missing workflow ID, and more generally the fact that `workflow.id`
is optional when it should not be, causes `PermissionChecker.check` to
misreport a credential as inaccessible when it should be accessible.

More generally, start reporting ID-less workflows so we can root them
out and prevent this at type level.

## Related tickets and issues

https://n8nio.slack.com/archives/C035KBDA917/p1702539465555529
2023-12-14 18:13:12 +01:00
..
@n8n 🚀 Release 1.21.0 (#8019) 2023-12-13 16:34:00 +01:00
@n8n_io/eslint-config ci: Introduce no-plain-errors lint rule for BE packages (no-changelog) (#7961) 2023-12-08 12:51:49 +01:00
cli fix(core): Restore workflow ID during execution creation (#8031) 2023-12-14 18:13:12 +01:00
core 🚀 Release 1.21.0 (#8019) 2023-12-13 16:34:00 +01:00
design-system 🚀 Release 1.21.0 (#8019) 2023-12-13 16:34:00 +01:00
editor-ui fix(editor): Add back credential use permission (#8023) 2023-12-14 13:36:36 +01:00
node-dev 🚀 Release 1.21.0 (#8019) 2023-12-13 16:34:00 +01:00
nodes-base Merge tag 'n8n@1.21.0' 2023-12-13 16:48:58 +01:00
workflow fix(core): Restore workflow ID during execution creation (#8031) 2023-12-14 18:13:12 +01:00