diff --git a/python/apps/taiga/src/taiga/workflows/serializers/nested.py b/python/apps/taiga/src/taiga/workflows/serializers/nested.py index e4dd812e8..25f5d83c6 100644 --- a/python/apps/taiga/src/taiga/workflows/serializers/nested.py +++ b/python/apps/taiga/src/taiga/workflows/serializers/nested.py @@ -9,6 +9,7 @@ class WorkflowNestedSerializer(BaseModel): + id: UUIDB64 name: str slug: str diff --git a/python/docs/postman/taiga.postman_collection_e2e.json b/python/docs/postman/taiga.postman_collection_e2e.json index 4418588d3..8133b176a 100644 --- a/python/docs/postman/taiga.postman_collection_e2e.json +++ b/python/docs/postman/taiga.postman_collection_e2e.json @@ -1,6 +1,6 @@ { "info": { - "_postman_id": "5511fda1-e0cf-4e71-9c44-ae40b83d9fa7", + "_postman_id": "cf393355-0c41-4532-8f51-592b8ef092ab", "name": "taiga-next e2e", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "_exporter_id": "9835734" @@ -2517,6 +2517,7 @@ " pm.expect(workspace).to.have.property(\"userRole\");", "", " var workflows = jsonRes.workflows;", + " pm.expect(workflows[0]).to.have.property(\"id\");", " pm.expect(workflows[0]).to.have.property(\"name\");", " pm.expect(workflows[0]).to.have.property(\"slug\");", "", @@ -4035,7 +4036,8 @@ " pm.expect(jsonRes).to.have.property(\"order\");", " pm.expect(jsonRes).to.have.property(\"workflow\");", " ", - " pm.expect(Object.keys(jsonRes.workflow).length).to.equal(2); ", + " pm.expect(Object.keys(jsonRes.workflow).length).to.equal(3);", + " pm.expect(jsonRes.workflow).to.have.property(\"id\"); ", " pm.expect(jsonRes.workflow).to.have.property(\"name\");", " pm.expect(jsonRes.workflow).to.have.property(\"slug\");", "});" @@ -5019,10 +5021,11 @@ " var numOfReturnedFields = Object.keys(jsonRes.status).length;", " pm.expect(numOfReturnedFields).to.equal(4);", "", + " pm.expect(jsonRes.workflow).to.have.property(\"id\");", " pm.expect(jsonRes.workflow).to.have.property(\"name\");", " pm.expect(jsonRes.workflow).to.have.property(\"slug\");", " numOfReturnedFields = Object.keys(jsonRes.workflow).length;", - " pm.expect(numOfReturnedFields).to.equal(2);", + " pm.expect(numOfReturnedFields).to.equal(3);", "});", "", "pm.test(\"Environment variable settings\", function () {", @@ -5107,10 +5110,11 @@ " var numOfReturnedFields = Object.keys(jsonRes.status).length;", " pm.expect(numOfReturnedFields).to.equal(4);", "", + " pm.expect(jsonRes.workflow).to.have.property(\"id\");", " pm.expect(jsonRes.workflow).to.have.property(\"name\");", " pm.expect(jsonRes.workflow).to.have.property(\"slug\");", " numOfReturnedFields = Object.keys(jsonRes.workflow).length;", - " pm.expect(numOfReturnedFields).to.equal(2);", + " pm.expect(numOfReturnedFields).to.equal(3);", "", " // Validate updates", " pm.expect(jsonRes.title).to.contain(\"New title\");",