|
| 1 | +const standupProgressDay1 = { |
| 2 | + type: "user", |
| 3 | + completed: "Working on a backend Go project", |
| 4 | + planned: "Implement error handling for API endpoints", |
| 5 | + blockers: "Waiting for database access credentials", |
| 6 | +}; |
| 7 | + |
| 8 | +const incompleteProgress = [ |
| 9 | + { |
| 10 | + missingField: "type", |
| 11 | + payload: { |
| 12 | + completed: "Implemented caching mechanism for frequent API requests", |
| 13 | + planned: "Refactor code to follow coding best practices", |
| 14 | + blockers: "Waiting for feedback from the code review", |
| 15 | + }, |
| 16 | + }, |
| 17 | + { |
| 18 | + missingField: "completed", |
| 19 | + payload: { |
| 20 | + type: "user", |
| 21 | + planned: "Refactor code to follow coding best practices", |
| 22 | + blockers: "Waiting for feedback from the code review", |
| 23 | + }, |
| 24 | + }, |
| 25 | + { |
| 26 | + missingField: "planned", |
| 27 | + payload: { |
| 28 | + type: "user", |
| 29 | + completed: "Implemented caching mechanism for frequent API requests", |
| 30 | + blockers: "Waiting for feedback from the code review", |
| 31 | + }, |
| 32 | + }, |
| 33 | + { |
| 34 | + missingField: "blockers", |
| 35 | + payload: { |
| 36 | + type: "user", |
| 37 | + completed: "Implemented caching mechanism for frequent API requests", |
| 38 | + planned: "Refactor code to follow coding best practices", |
| 39 | + }, |
| 40 | + }, |
| 41 | +]; |
| 42 | + |
| 43 | +const stubbedModelProgressData = (userId, createdAt, date) => { |
| 44 | + return { |
| 45 | + userId, |
| 46 | + createdAt, |
| 47 | + date, |
| 48 | + type: "user", |
| 49 | + completed: "Implemented caching mechanism for frequent API requests", |
| 50 | + planned: "Refactor code to follow coding best practices", |
| 51 | + blockers: "Waiting for feedback from the code review", |
| 52 | + }; |
| 53 | +}; |
| 54 | + |
| 55 | +const taskProgressDay1 = (taskId) => { |
| 56 | + return { |
| 57 | + taskId, |
| 58 | + type: "task", |
| 59 | + completed: "Working on a backend Go Task", |
| 60 | + planned: "Implement error handling for API endpoints", |
| 61 | + blockers: "Waiting for database access credentials", |
| 62 | + }; |
| 63 | +}; |
| 64 | + |
| 65 | +const incompleteTaskProgress = (taskId) => [ |
| 66 | + { |
| 67 | + missingField: "type", |
| 68 | + payload: { |
| 69 | + taskId, |
| 70 | + completed: "Implemented caching mechanism for frequent API requests", |
| 71 | + planned: "Refactor code to follow coding best practices", |
| 72 | + blockers: "Waiting for feedback from the code review", |
| 73 | + }, |
| 74 | + }, |
| 75 | + { |
| 76 | + missingField: "completed", |
| 77 | + payload: { |
| 78 | + taskId, |
| 79 | + type: "task", |
| 80 | + planned: "Refactor code to follow coding best practices", |
| 81 | + blockers: "Waiting for feedback from the code review", |
| 82 | + }, |
| 83 | + }, |
| 84 | + { |
| 85 | + missingField: "planned", |
| 86 | + payload: { |
| 87 | + taskId, |
| 88 | + type: "task", |
| 89 | + completed: "Implemented caching mechanism for frequent API requests", |
| 90 | + blockers: "Waiting for feedback from the code review", |
| 91 | + }, |
| 92 | + }, |
| 93 | + { |
| 94 | + missingField: "blockers", |
| 95 | + payload: { |
| 96 | + taskId, |
| 97 | + type: "task", |
| 98 | + completed: "Implemented caching mechanism for frequent API requests", |
| 99 | + planned: "Refactor code to follow coding best practices", |
| 100 | + }, |
| 101 | + }, |
| 102 | + { |
| 103 | + missingField: "taskId", |
| 104 | + payload: { |
| 105 | + type: "task", |
| 106 | + completed: "Implemented caching mechanism for frequent API requests", |
| 107 | + planned: "Refactor code to follow coding best practices", |
| 108 | + blockers: "Waiting for feedback from the code review", |
| 109 | + }, |
| 110 | + }, |
| 111 | +]; |
| 112 | + |
| 113 | +const stubbedModelTaskProgressData = (userId, taskId, createdAt, date) => { |
| 114 | + return { |
| 115 | + userId, |
| 116 | + taskId, |
| 117 | + createdAt, |
| 118 | + date, |
| 119 | + type: "task", |
| 120 | + completed: "Implemented caching mechanism for frequent API requests", |
| 121 | + planned: "Refactor code to follow coding best practices", |
| 122 | + blockers: "Waiting for feedback from the code review", |
| 123 | + }; |
| 124 | +}; |
| 125 | + |
| 126 | +module.exports = { |
| 127 | + standupProgressDay1, |
| 128 | + incompleteProgress, |
| 129 | + stubbedModelProgressData, |
| 130 | + taskProgressDay1, |
| 131 | + incompleteTaskProgress, |
| 132 | + stubbedModelTaskProgressData, |
| 133 | +}; |
0 commit comments