Files
twenty/packages/twenty-front
Baptiste Devessier 17bf2b6173 Move the workflow draft version overriding to the backend (#9328)
- In the `formatFieldMetadataValue` function, allow people to call
TypeORM's `save()` method with unserialized JSON data.
- Create an `overrideWorkflowDraftVersion` mutation that takes a
workflow id and the id of the workflow version to use as the new draft
  - If no draft exists yet, create one
  - If a draft already exists, deactivate its serverless functions
- Duplicate every step. For serverless function steps, it includes
duplicating the functions
  - Save the data of the step in DB
- Call the `overrideWorkflowDraftVersion` mutation in the old workflow
header and in the new Cmd+K actions
- I chose to not update the Apollo cache manually as the information of
the new draft are going to be automatically fetched once the user lands
on the workflow's show page. Note that we redirect the user to this page
after overriding the draft version.
2025-01-06 14:56:09 +01:00
..
2024-03-31 10:53:37 +02:00
2024-10-24 15:38:52 +02:00
2025-01-03 15:18:02 +01:00
2025-01-03 15:18:02 +01:00
2023-12-10 18:10:54 +01:00
2025-01-03 15:18:02 +01:00
2024-10-24 16:59:59 +02:00
2025-01-02 13:28:02 +01:00
2024-08-09 08:38:01 +02:00
2024-12-11 15:42:53 +01:00

Run yarn dev while server running on port 3000