@budibase/server 0.9.185-alpha.1 → 0.9.185-alpha.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (234) hide show
  1. package/Dockerfile +1 -1
  2. package/builder/assets/bb-space-man.5be51a45.svg +290 -0
  3. package/builder/assets/index.4a7c5636.css +1 -0
  4. package/builder/assets/index.dc495306.js +1317 -0
  5. package/builder/assets/vendor.470042a4.js +152 -0
  6. package/builder/assets/vendor.5e1fe644.css +1 -0
  7. package/builder/index.html +4 -4
  8. package/coverage/clover.xml +689 -598
  9. package/coverage/coverage-final.json +89 -87
  10. package/coverage/lcov-report/api/controllers/analytics.js.html +2 -2
  11. package/coverage/lcov-report/api/controllers/apikeys.js.html +2 -2
  12. package/coverage/lcov-report/api/controllers/application.js.html +43 -13
  13. package/coverage/lcov-report/api/controllers/auth.js.html +7 -7
  14. package/coverage/lcov-report/api/controllers/automation.js.html +3 -3
  15. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/component.js.html +4 -4
  18. package/coverage/lcov-report/api/controllers/datasource.js.html +129 -21
  19. package/coverage/lcov-report/api/controllers/dev.js.html +16 -7
  20. package/coverage/lcov-report/api/controllers/hosting.js.html +10 -10
  21. package/coverage/lcov-report/api/controllers/index.html +83 -83
  22. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/layout.js.html +3 -3
  24. package/coverage/lcov-report/api/controllers/metadata.js.html +3 -3
  25. package/coverage/lcov-report/api/controllers/permission.js.html +3 -3
  26. package/coverage/lcov-report/api/controllers/query.js.html +48 -210
  27. package/coverage/lcov-report/api/controllers/role.js.html +9 -9
  28. package/coverage/lcov-report/api/controllers/routing.js.html +3 -3
  29. package/coverage/lcov-report/api/controllers/row/external.js.html +2 -2
  30. package/coverage/lcov-report/api/controllers/row/index.html +10 -10
  31. package/coverage/lcov-report/api/controllers/row/index.js.html +2 -2
  32. package/coverage/lcov-report/api/controllers/row/internal.js.html +9 -9
  33. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +2 -2
  34. package/coverage/lcov-report/api/controllers/row/utils.js.html +2 -2
  35. package/coverage/lcov-report/api/controllers/screen.js.html +2 -2
  36. package/coverage/lcov-report/api/controllers/script.js.html +3 -3
  37. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/index.html +11 -11
  39. package/coverage/lcov-report/api/controllers/table/index.js.html +3 -3
  40. package/coverage/lcov-report/api/controllers/table/internal.js.html +2 -2
  41. package/coverage/lcov-report/api/controllers/table/utils.js.html +8 -8
  42. package/coverage/lcov-report/api/controllers/templates.js.html +4 -4
  43. package/coverage/lcov-report/api/controllers/user.js.html +33 -18
  44. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/index.html +9 -9
  46. package/coverage/lcov-report/api/controllers/view/index.js.html +5 -5
  47. package/coverage/lcov-report/api/controllers/view/utils.js.html +11 -11
  48. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +3 -3
  49. package/coverage/lcov-report/api/controllers/webhook.js.html +4 -4
  50. package/coverage/lcov-report/api/index.html +1 -1
  51. package/coverage/lcov-report/api/index.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/dev.js.html +2 -2
  63. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/index.html +4 -4
  65. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/query.js.html +5 -2
  71. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/static.js.html +2 -2
  77. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  80. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  81. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  82. package/coverage/lcov-report/automations/actions.js.html +2 -2
  83. package/coverage/lcov-report/automations/automationUtils.js.html +3 -3
  84. package/coverage/lcov-report/automations/bullboard.js.html +71 -20
  85. package/coverage/lcov-report/automations/index.html +33 -48
  86. package/coverage/lcov-report/automations/index.js.html +2 -2
  87. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/discord.js.html +3 -3
  92. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/executeScript.js.html +3 -3
  94. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/index.html +14 -14
  96. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +3 -3
  98. package/coverage/lcov-report/automations/steps/queryRows.js.html +3 -3
  99. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  103. package/coverage/lcov-report/automations/steps/utils.js.html +7 -7
  104. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/app.js.html +2 -2
  106. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +2 -2
  107. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/index.js.html +8 -8
  109. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +2 -2
  110. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +2 -2
  111. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +2 -2
  112. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +2 -2
  113. package/coverage/lcov-report/automations/triggers.js.html +22 -10
  114. package/coverage/lcov-report/automations/utils.js.html +42 -12
  115. package/coverage/lcov-report/constants/index.html +5 -5
  116. package/coverage/lcov-report/constants/index.js.html +25 -4
  117. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  118. package/coverage/lcov-report/constants/screens.js.html +1 -1
  119. package/coverage/lcov-report/db/client.js.html +2 -2
  120. package/coverage/lcov-report/db/inMemoryView.js.html +2 -2
  121. package/coverage/lcov-report/db/index.html +2 -2
  122. package/coverage/lcov-report/db/index.js.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +6 -6
  124. package/coverage/lcov-report/db/linkedRows/index.html +10 -10
  125. package/coverage/lcov-report/db/linkedRows/index.js.html +5 -5
  126. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +6 -6
  127. package/coverage/lcov-report/db/newid.js.html +1 -1
  128. package/coverage/lcov-report/db/utils.js.html +1 -1
  129. package/coverage/lcov-report/events/AutomationEmitter.js.html +6 -6
  130. package/coverage/lcov-report/events/index.html +6 -6
  131. package/coverage/lcov-report/events/index.js.html +1 -1
  132. package/coverage/lcov-report/events/utils.js.html +5 -5
  133. package/coverage/lcov-report/index.html +83 -68
  134. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  135. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  136. package/coverage/lcov-report/middleware/appInfo.js.html +2 -2
  137. package/coverage/lcov-report/middleware/authorized.js.html +4 -4
  138. package/coverage/lcov-report/middleware/builder.js.html +16 -7
  139. package/coverage/lcov-report/middleware/currentapp.js.html +6 -6
  140. package/coverage/lcov-report/middleware/index.html +21 -21
  141. package/coverage/lcov-report/middleware/joi-validator.js.html +2 -2
  142. package/coverage/lcov-report/middleware/resourceId.js.html +18 -18
  143. package/coverage/lcov-report/middleware/selfhost.js.html +2 -2
  144. package/coverage/lcov-report/middleware/usageQuota.js.html +4 -4
  145. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  146. package/coverage/lcov-report/{automations/thread.js.html → threads/automation.js.html} +83 -32
  147. package/coverage/lcov-report/threads/index.html +141 -0
  148. package/coverage/lcov-report/threads/index.js.html +260 -0
  149. package/coverage/lcov-report/threads/query.js.html +269 -0
  150. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  151. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  152. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  153. package/coverage/lcov-report/utilities/csvParser.js.html +2 -2
  154. package/coverage/lcov-report/utilities/global.js.html +2 -2
  155. package/coverage/lcov-report/utilities/index.html +21 -21
  156. package/coverage/lcov-report/utilities/index.js.html +12 -9
  157. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +30 -9
  158. package/coverage/lcov-report/utilities/queue/index.html +14 -14
  159. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  160. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  161. package/coverage/lcov-report/utilities/rowProcessor/index.html +4 -4
  162. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +2 -2
  163. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +3 -3
  164. package/coverage/lcov-report/utilities/scriptRunner.js.html +16 -7
  165. package/coverage/lcov-report/utilities/security.js.html +3 -3
  166. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  167. package/coverage/lcov-report/utilities/users.js.html +1 -1
  168. package/coverage/lcov-report/utilities/workerRequests.js.html +5 -5
  169. package/coverage/lcov.info +1136 -972
  170. package/dist/api/controllers/application.js +11 -1
  171. package/dist/api/controllers/datasource.js +31 -7
  172. package/dist/api/controllers/deploy/index.js +2 -0
  173. package/dist/api/controllers/dev.js +4 -1
  174. package/dist/api/controllers/query.js +27 -57
  175. package/dist/api/controllers/user.js +10 -6
  176. package/dist/api/routes/query.js +1 -1
  177. package/dist/app.js +2 -11
  178. package/dist/automations/bullboard.js +37 -10
  179. package/dist/automations/triggers.js +7 -3
  180. package/dist/automations/utils.js +11 -2
  181. package/dist/constants/index.js +6 -0
  182. package/dist/integrations/base/IntegrationBase.js +2 -0
  183. package/dist/integrations/base/sql.js +36 -8
  184. package/dist/integrations/mysql.js +3 -1
  185. package/dist/integrations/utils.js +7 -1
  186. package/dist/middleware/builder.js +4 -1
  187. package/dist/package.json +7 -6
  188. package/dist/{automations/thread.js → threads/automation.js} +23 -7
  189. package/dist/threads/index.js +58 -0
  190. package/dist/threads/query.js +61 -0
  191. package/dist/tsconfig.tsbuildinfo +1 -1
  192. package/dist/utilities/index.js +1 -0
  193. package/dist/utilities/queue/inMemoryQueue.js +8 -0
  194. package/dist/utilities/scriptRunner.js +4 -1
  195. package/package.json +8 -7
  196. package/scripts/likeCypress.ts +33 -0
  197. package/src/api/controllers/application.js +11 -1
  198. package/src/api/controllers/datasource.js +45 -9
  199. package/src/api/controllers/deploy/index.js +2 -0
  200. package/src/api/controllers/dev.js +4 -1
  201. package/src/api/controllers/query.js +26 -80
  202. package/src/api/controllers/user.js +15 -10
  203. package/src/api/routes/query.js +1 -0
  204. package/src/app.ts +2 -10
  205. package/src/automations/bullboard.js +28 -11
  206. package/src/automations/tests/automation.spec.js +3 -4
  207. package/src/automations/triggers.js +7 -3
  208. package/src/automations/utils.js +12 -2
  209. package/src/constants/index.js +7 -0
  210. package/src/integrations/airtable.ts +2 -1
  211. package/src/integrations/arangodb.ts +2 -1
  212. package/src/integrations/base/IntegrationBase.ts +6 -0
  213. package/src/integrations/base/datasourcePlus.ts +2 -1
  214. package/src/integrations/base/sql.ts +38 -9
  215. package/src/integrations/couchdb.ts +2 -1
  216. package/src/integrations/dynamodb.ts +2 -1
  217. package/src/integrations/elasticsearch.ts +2 -1
  218. package/src/integrations/mongodb.ts +2 -1
  219. package/src/integrations/mysql.ts +1 -1
  220. package/src/integrations/rest.ts +2 -1
  221. package/src/integrations/s3.ts +2 -1
  222. package/src/integrations/utils.ts +6 -1
  223. package/src/middleware/builder.js +4 -1
  224. package/src/{automations/thread.js → threads/automation.js} +24 -7
  225. package/src/threads/index.js +60 -0
  226. package/src/threads/query.js +63 -0
  227. package/src/utilities/index.js +1 -0
  228. package/src/utilities/queue/inMemoryQueue.js +7 -0
  229. package/src/utilities/scriptRunner.js +4 -1
  230. package/tsconfig.json +1 -1
  231. package/builder/assets/index.4feb6e69.js +0 -201
  232. package/builder/assets/index.a79ec0ef.css +0 -29
  233. package/builder/assets/vendor.278a305c.js +0 -9
  234. package/builder/assets/vendor.d75d5eb7.css +0 -1
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1636987217051" clover="3.2.0">
3
- <project timestamp="1636987217051" name="All files">
4
- <metrics statements="4274" coveredstatements="3168" conditionals="1689" coveredconditionals="929" methods="601" coveredmethods="430" elements="6564" coveredelements="4527" complexity="0" loc="4274" ncloc="4274" packages="19" files="136" classes="136"/>
2
+ <coverage generated="1637579462987" clover="3.2.0">
3
+ <project timestamp="1637579462987" name="All files">
4
+ <metrics statements="4356" coveredstatements="3220" conditionals="1719" coveredconditionals="937" methods="618" coveredmethods="440" elements="6693" coveredelements="4597" complexity="0" loc="4356" ncloc="4356" packages="20" files="138" classes="138"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1113" coveredstatements="808" conditionals="367" coveredconditionals="178" methods="155" coveredmethods="113"/>
41
+ <metrics statements="1116" coveredstatements="804" conditionals="367" coveredconditionals="171" methods="153" coveredmethods="110"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -83,7 +83,7 @@
83
83
  <line num="46" count="1" type="stmt"/>
84
84
  </file>
85
85
  <file name="application.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/application.js">
86
- <metrics statements="176" coveredstatements="139" conditionals="68" coveredconditionals="39" methods="20" coveredmethods="17"/>
86
+ <metrics statements="184" coveredstatements="146" conditionals="72" coveredconditionals="41" methods="20" coveredmethods="17"/>
87
87
  <line num="1" count="33" type="stmt"/>
88
88
  <line num="2" count="33" type="stmt"/>
89
89
  <line num="3" count="33" type="stmt"/>
@@ -103,163 +103,171 @@
103
103
  <line num="45" count="33" type="stmt"/>
104
104
  <line num="46" count="33" type="stmt"/>
105
105
  <line num="47" count="33" type="stmt"/>
106
+ <line num="48" count="33" type="stmt"/>
106
107
  <line num="49" count="33" type="stmt"/>
107
- <line num="53" count="188" type="stmt"/>
108
- <line num="59" count="376" type="stmt"/>
109
- <line num="63" count="188" type="stmt"/>
110
- <line num="69" count="200" type="stmt"/>
111
- <line num="73" count="186" type="cond" truecount="4" falsecount="0"/>
112
- <line num="80" count="183" type="cond" truecount="1" falsecount="1"/>
113
- <line num="81" count="0" type="stmt"/>
114
- <line num="82" count="183" type="cond" truecount="2" falsecount="0"/>
115
- <line num="83" count="180" type="stmt"/>
116
- <line num="85" count="183" type="cond" truecount="2" falsecount="0"/>
117
- <line num="86" count="180" type="stmt"/>
118
- <line num="88" count="183" type="cond" truecount="2" falsecount="0"/>
119
- <line num="89" count="10" type="stmt"/>
120
- <line num="91" count="173" type="stmt"/>
121
- <line num="92" count="173" type="cond" truecount="1" falsecount="1"/>
122
- <line num="98" count="0" type="stmt"/>
123
- <line num="100" count="173" type="stmt"/>
124
- <line num="104" count="178" type="cond" truecount="1" falsecount="1"/>
125
- <line num="105" count="178" type="stmt"/>
126
- <line num="106" count="178" type="stmt"/>
108
+ <line num="51" count="33" type="stmt"/>
109
+ <line num="55" count="188" type="stmt"/>
110
+ <line num="61" count="376" type="stmt"/>
111
+ <line num="65" count="188" type="stmt"/>
112
+ <line num="71" count="200" type="stmt"/>
113
+ <line num="75" count="186" type="cond" truecount="4" falsecount="0"/>
114
+ <line num="82" count="183" type="cond" truecount="1" falsecount="1"/>
115
+ <line num="83" count="0" type="stmt"/>
116
+ <line num="84" count="183" type="cond" truecount="2" falsecount="0"/>
117
+ <line num="85" count="180" type="stmt"/>
118
+ <line num="87" count="183" type="cond" truecount="2" falsecount="0"/>
119
+ <line num="88" count="180" type="stmt"/>
120
+ <line num="90" count="183" type="cond" truecount="2" falsecount="0"/>
121
+ <line num="91" count="10" type="stmt"/>
122
+ <line num="93" count="173" type="stmt"/>
123
+ <line num="94" count="173" type="cond" truecount="1" falsecount="1"/>
124
+ <line num="100" count="0" type="stmt"/>
125
+ <line num="102" count="173" type="stmt"/>
126
+ <line num="106" count="178" type="cond" truecount="1" falsecount="1"/>
127
+ <line num="107" count="178" type="stmt"/>
127
128
  <line num="108" count="178" type="stmt"/>
128
- <line num="109" count="178" type="stmt"/>
129
- <line num="118" count="178" type="stmt"/>
130
- <line num="119" count="178" type="stmt"/>
129
+ <line num="110" count="178" type="stmt"/>
130
+ <line num="111" count="178" type="stmt"/>
131
131
  <line num="120" count="178" type="stmt"/>
132
- <line num="124" count="178" type="cond" truecount="3" falsecount="1"/>
133
- <line num="125" count="0" type="stmt"/>
134
- <line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
132
+ <line num="121" count="178" type="stmt"/>
133
+ <line num="122" count="178" type="stmt"/>
134
+ <line num="126" count="178" type="cond" truecount="3" falsecount="1"/>
135
135
  <line num="127" count="0" type="stmt"/>
136
- <line num="129" count="178" type="cond" truecount="3" falsecount="1"/>
137
- <line num="132" count="0" type="cond" truecount="0" falsecount="2"/>
138
- <line num="133" count="0" type="stmt"/>
139
- <line num="137" count="178" type="stmt"/>
140
- <line num="140" count="178" type="stmt"/>
141
- <line num="143" count="33" type="stmt"/>
142
- <line num="144" count="10" type="cond" truecount="2" falsecount="0"/>
143
- <line num="145" count="10" type="cond" truecount="2" falsecount="0"/>
144
- <line num="146" count="10" type="stmt"/>
145
- <line num="149" count="10" type="cond" truecount="2" falsecount="2"/>
146
- <line num="150" count="10" type="stmt"/>
147
- <line num="151" count="10" type="stmt"/>
148
- <line num="152" count="14" type="cond" truecount="1" falsecount="1"/>
149
- <line num="153" count="14" type="stmt"/>
150
- <line num="155" count="0" type="stmt"/>
151
- <line num="156" count="0" type="cond" truecount="0" falsecount="2"/>
136
+ <line num="128" count="0" type="cond" truecount="0" falsecount="2"/>
137
+ <line num="129" count="0" type="stmt"/>
138
+ <line num="131" count="178" type="cond" truecount="3" falsecount="1"/>
139
+ <line num="134" count="0" type="cond" truecount="0" falsecount="2"/>
140
+ <line num="135" count="0" type="stmt"/>
141
+ <line num="139" count="178" type="stmt"/>
142
+ <line num="142" count="178" type="stmt"/>
143
+ <line num="145" count="33" type="stmt"/>
144
+ <line num="146" count="10" type="cond" truecount="2" falsecount="0"/>
145
+ <line num="147" count="10" type="cond" truecount="2" falsecount="0"/>
146
+ <line num="148" count="10" type="stmt"/>
147
+ <line num="151" count="10" type="cond" truecount="2" falsecount="2"/>
148
+ <line num="152" count="10" type="stmt"/>
149
+ <line num="153" count="10" type="stmt"/>
150
+ <line num="154" count="14" type="cond" truecount="1" falsecount="1"/>
151
+ <line num="155" count="14" type="stmt"/>
152
152
  <line num="157" count="0" type="stmt"/>
153
- <line num="160" count="0" type="stmt"/>
154
- <line num="165" count="10" type="stmt"/>
155
- <line num="168" count="33" type="stmt"/>
156
- <line num="169" count="1" type="stmt"/>
157
- <line num="170" count="1" type="stmt"/>
153
+ <line num="158" count="0" type="cond" truecount="0" falsecount="2"/>
154
+ <line num="159" count="0" type="stmt"/>
155
+ <line num="162" count="0" type="stmt"/>
156
+ <line num="167" count="10" type="stmt"/>
157
+ <line num="170" count="33" type="stmt"/>
158
158
  <line num="171" count="1" type="stmt"/>
159
159
  <line num="172" count="1" type="stmt"/>
160
160
  <line num="173" count="1" type="stmt"/>
161
- <line num="177" count="1" type="stmt"/>
162
- <line num="184" count="33" type="stmt"/>
163
- <line num="185" count="187" type="stmt"/>
164
- <line num="186" count="187" type="stmt"/>
161
+ <line num="174" count="1" type="stmt"/>
162
+ <line num="175" count="1" type="stmt"/>
163
+ <line num="179" count="1" type="stmt"/>
164
+ <line num="186" count="33" type="stmt"/>
165
165
  <line num="187" count="187" type="stmt"/>
166
166
  <line num="188" count="187" type="stmt"/>
167
- <line num="191" count="187" type="cond" truecount="4" falsecount="0"/>
168
- <line num="192" count="185" type="stmt"/>
169
- <line num="193" count="185" type="stmt"/>
167
+ <line num="189" count="187" type="stmt"/>
168
+ <line num="190" count="187" type="stmt"/>
169
+ <line num="193" count="187" type="cond" truecount="4" falsecount="0"/>
170
170
  <line num="194" count="185" type="stmt"/>
171
- <line num="197" count="187" type="stmt"/>
172
- <line num="205" count="33" type="stmt"/>
173
- <line num="206" count="178" type="stmt"/>
174
- <line num="207" count="178" type="stmt"/>
175
- <line num="212" count="178" type="cond" truecount="2" falsecount="2"/>
176
- <line num="213" count="0" type="stmt"/>
177
- <line num="215" count="178" type="stmt"/>
178
- <line num="216" count="178" type="stmt"/>
171
+ <line num="195" count="185" type="stmt"/>
172
+ <line num="196" count="185" type="stmt"/>
173
+ <line num="199" count="187" type="stmt"/>
174
+ <line num="207" count="33" type="stmt"/>
175
+ <line num="208" count="178" type="stmt"/>
176
+ <line num="209" count="178" type="stmt"/>
177
+ <line num="214" count="178" type="cond" truecount="2" falsecount="2"/>
178
+ <line num="215" count="0" type="stmt"/>
179
+ <line num="217" count="178" type="stmt"/>
179
180
  <line num="218" count="178" type="stmt"/>
180
- <line num="219" count="178" type="stmt"/>
181
+ <line num="220" count="178" type="stmt"/>
181
182
  <line num="221" count="178" type="stmt"/>
182
183
  <line num="223" count="178" type="stmt"/>
183
- <line num="224" count="0" type="stmt"/>
184
- <line num="228" count="178" type="stmt"/>
185
- <line num="243" count="178" type="stmt"/>
186
- <line num="244" count="178" type="stmt"/>
187
- <line num="248" count="178" type="cond" truecount="1" falsecount="1"/>
188
- <line num="249" count="178" type="stmt"/>
189
- <line num="257" count="178" type="stmt"/>
190
- <line num="258" count="178" type="stmt"/>
191
- <line num="261" count="33" type="stmt"/>
192
- <line num="262" count="2" type="stmt"/>
193
- <line num="263" count="2" type="stmt"/>
194
- <line num="264" count="2" type="stmt"/>
195
- <line num="267" count="33" type="stmt"/>
196
- <line num="269" count="2" type="stmt"/>
197
- <line num="270" count="2" type="stmt"/>
198
- <line num="271" count="2" type="stmt"/>
199
- <line num="274" count="2" type="cond" truecount="1" falsecount="1"/>
200
- <line num="275" count="0" type="stmt"/>
201
- <line num="276" count="0" type="stmt"/>
202
- <line num="280" count="2" type="stmt"/>
203
- <line num="284" count="2" type="stmt"/>
204
- <line num="285" count="2" type="stmt"/>
205
- <line num="286" count="2" type="stmt"/>
206
- <line num="289" count="33" type="stmt"/>
207
- <line num="291" count="1" type="stmt"/>
208
- <line num="292" count="1" type="stmt"/>
209
- <line num="293" count="1" type="cond" truecount="1" falsecount="1"/>
210
- <line num="294" count="0" type="stmt"/>
211
- <line num="298" count="1" type="cond" truecount="1" falsecount="1"/>
212
- <line num="299" count="0" type="stmt"/>
213
- <line num="303" count="1" type="stmt"/>
214
- <line num="307" count="1" type="stmt"/>
215
- <line num="308" count="1" type="stmt"/>
216
- <line num="309" count="1" type="stmt"/>
217
- <line num="312" count="33" type="stmt"/>
218
- <line num="313" count="11" type="stmt"/>
219
- <line num="315" count="11" type="stmt"/>
220
- <line num="321" count="11" type="stmt"/>
221
- <line num="323" count="11" type="stmt"/>
222
- <line num="324" count="11" type="stmt"/>
223
- <line num="327" count="33" type="stmt"/>
224
- <line num="328" count="0" type="stmt"/>
225
- <line num="329" count="0" type="cond" truecount="0" falsecount="2"/>
226
- <line num="330" count="0" type="stmt"/>
227
- <line num="334" count="0" type="stmt"/>
228
- <line num="336" count="0" type="stmt"/>
184
+ <line num="225" count="178" type="stmt"/>
185
+ <line num="226" count="0" type="stmt"/>
186
+ <line num="230" count="178" type="stmt"/>
187
+ <line num="245" count="178" type="stmt"/>
188
+ <line num="246" count="178" type="stmt"/>
189
+ <line num="250" count="178" type="cond" truecount="1" falsecount="1"/>
190
+ <line num="251" count="178" type="stmt"/>
191
+ <line num="259" count="178" type="stmt"/>
192
+ <line num="260" count="178" type="stmt"/>
193
+ <line num="261" count="178" type="stmt"/>
194
+ <line num="264" count="33" type="stmt"/>
195
+ <line num="265" count="2" type="stmt"/>
196
+ <line num="266" count="2" type="stmt"/>
197
+ <line num="267" count="2" type="stmt"/>
198
+ <line num="270" count="33" type="stmt"/>
199
+ <line num="272" count="2" type="stmt"/>
200
+ <line num="273" count="2" type="stmt"/>
201
+ <line num="274" count="2" type="stmt"/>
202
+ <line num="277" count="2" type="cond" truecount="1" falsecount="1"/>
203
+ <line num="278" count="0" type="stmt"/>
204
+ <line num="279" count="0" type="stmt"/>
205
+ <line num="283" count="2" type="stmt"/>
206
+ <line num="287" count="2" type="stmt"/>
207
+ <line num="288" count="2" type="stmt"/>
208
+ <line num="289" count="2" type="stmt"/>
209
+ <line num="292" count="33" type="stmt"/>
210
+ <line num="294" count="1" type="stmt"/>
211
+ <line num="295" count="1" type="stmt"/>
212
+ <line num="296" count="1" type="cond" truecount="1" falsecount="1"/>
213
+ <line num="297" count="0" type="stmt"/>
214
+ <line num="301" count="1" type="cond" truecount="1" falsecount="1"/>
215
+ <line num="302" count="0" type="stmt"/>
216
+ <line num="306" count="1" type="stmt"/>
217
+ <line num="310" count="1" type="stmt"/>
218
+ <line num="311" count="1" type="stmt"/>
219
+ <line num="312" count="1" type="stmt"/>
220
+ <line num="315" count="33" type="stmt"/>
221
+ <line num="316" count="11" type="stmt"/>
222
+ <line num="318" count="11" type="stmt"/>
223
+ <line num="323" count="11" type="cond" truecount="2" falsecount="2"/>
224
+ <line num="324" count="0" type="stmt"/>
225
+ <line num="327" count="11" type="stmt"/>
226
+ <line num="328" count="11" type="stmt"/>
227
+ <line num="330" count="11" type="stmt"/>
228
+ <line num="331" count="11" type="stmt"/>
229
+ <line num="334" count="33" type="stmt"/>
230
+ <line num="335" count="0" type="stmt"/>
231
+ <line num="336" count="0" type="cond" truecount="0" falsecount="2"/>
229
232
  <line num="337" count="0" type="stmt"/>
230
- <line num="338" count="0" type="stmt"/>
231
- <line num="339" count="0" type="cond" truecount="0" falsecount="2"/>
232
- <line num="342" count="0" type="stmt"/>
233
+ <line num="341" count="0" type="stmt"/>
233
234
  <line num="343" count="0" type="stmt"/>
234
- <line num="346" count="0" type="stmt"/>
235
+ <line num="344" count="0" type="stmt"/>
236
+ <line num="345" count="0" type="stmt"/>
237
+ <line num="346" count="0" type="cond" truecount="0" falsecount="2"/>
235
238
  <line num="349" count="0" type="stmt"/>
236
- <line num="354" count="0" type="stmt"/>
237
- <line num="355" count="0" type="stmt"/>
238
- <line num="357" count="0" type="stmt"/>
239
+ <line num="350" count="0" type="stmt"/>
240
+ <line num="353" count="0" type="stmt"/>
241
+ <line num="356" count="0" type="stmt"/>
239
242
  <line num="361" count="0" type="stmt"/>
240
- <line num="365" count="0" type="stmt"/>
241
- <line num="367" count="0" type="cond" truecount="0" falsecount="2"/>
243
+ <line num="362" count="0" type="stmt"/>
244
+ <line num="364" count="0" type="stmt"/>
242
245
  <line num="368" count="0" type="stmt"/>
243
- <line num="370" count="0" type="stmt"/>
244
- <line num="376" count="33" type="stmt"/>
245
- <line num="377" count="5" type="stmt"/>
246
- <line num="378" count="5" type="stmt"/>
247
- <line num="379" count="5" type="stmt"/>
248
- <line num="381" count="5" type="stmt"/>
249
- <line num="382" count="5" type="cond" truecount="1" falsecount="1"/>
250
- <line num="383" count="5" type="stmt"/>
246
+ <line num="372" count="0" type="stmt"/>
247
+ <line num="374" count="0" type="cond" truecount="0" falsecount="2"/>
248
+ <line num="375" count="0" type="stmt"/>
249
+ <line num="377" count="0" type="stmt"/>
250
+ <line num="383" count="33" type="stmt"/>
251
+ <line num="384" count="5" type="stmt"/>
252
+ <line num="385" count="5" type="stmt"/>
253
+ <line num="386" count="5" type="stmt"/>
251
254
  <line num="388" count="5" type="stmt"/>
255
+ <line num="389" count="5" type="cond" truecount="1" falsecount="1"/>
252
256
  <line num="390" count="5" type="stmt"/>
253
- <line num="393" count="33" type="stmt"/>
254
- <line num="394" count="178" type="stmt"/>
255
- <line num="396" count="178" type="stmt"/>
256
- <line num="397" count="178" type="stmt"/>
257
- <line num="398" count="356" type="stmt"/>
258
- <line num="399" count="356" type="stmt"/>
259
- <line num="402" count="178" type="stmt"/>
260
- <line num="403" count="178" type="stmt"/>
257
+ <line num="395" count="5" type="stmt"/>
258
+ <line num="397" count="5" type="stmt"/>
259
+ <line num="399" count="5" type="stmt"/>
260
+ <line num="400" count="5" type="stmt"/>
261
+ <line num="403" count="33" type="stmt"/>
261
262
  <line num="404" count="178" type="stmt"/>
262
263
  <line num="406" count="178" type="stmt"/>
264
+ <line num="407" count="178" type="stmt"/>
265
+ <line num="408" count="356" type="stmt"/>
266
+ <line num="409" count="356" type="stmt"/>
267
+ <line num="412" count="178" type="stmt"/>
268
+ <line num="413" count="178" type="stmt"/>
269
+ <line num="414" count="178" type="stmt"/>
270
+ <line num="416" count="178" type="stmt"/>
263
271
  </file>
264
272
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
265
273
  <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
@@ -471,14 +479,14 @@
471
479
  <line num="20" count="1" type="stmt"/>
472
480
  <line num="21" count="1" type="stmt"/>
473
481
  <line num="22" count="1" type="stmt"/>
474
- <line num="23" count="45" type="cond" truecount="2" falsecount="0"/>
482
+ <line num="23" count="46" type="cond" truecount="2" falsecount="0"/>
475
483
  <line num="24" count="1" type="stmt"/>
476
- <line num="26" count="44" type="stmt"/>
477
- <line num="27" count="44" type="stmt"/>
484
+ <line num="26" count="45" type="stmt"/>
485
+ <line num="27" count="45" type="stmt"/>
478
486
  <line num="34" count="1" type="stmt"/>
479
487
  </file>
480
488
  <file name="datasource.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/datasource.js">
481
- <metrics statements="94" coveredstatements="46" conditionals="28" coveredconditionals="7" methods="14" coveredmethods="8"/>
489
+ <metrics statements="107" coveredstatements="47" conditionals="36" coveredconditionals="7" methods="16" coveredmethods="8"/>
482
490
  <line num="1" count="33" type="stmt"/>
483
491
  <line num="9" count="33" type="stmt"/>
484
492
  <line num="10" count="33" type="stmt"/>
@@ -541,41 +549,54 @@
541
549
  <line num="118" count="33" type="stmt"/>
542
550
  <line num="119" count="1" type="stmt"/>
543
551
  <line num="122" count="1" type="stmt"/>
544
- <line num="123" count="1" type="stmt"/>
552
+ <line num="125" count="1" type="stmt"/>
545
553
  <line num="126" count="1" type="stmt"/>
546
- <line num="128" count="1" type="stmt"/>
547
- <line num="129" count="1" type="stmt"/>
548
- <line num="132" count="33" type="stmt"/>
549
- <line num="133" count="1" type="stmt"/>
550
554
  <line num="134" count="1" type="stmt"/>
551
- <line num="138" count="33" type="stmt"/>
552
- <line num="139" count="1" type="stmt"/>
553
- <line num="140" count="1" type="stmt"/>
555
+ <line num="136" count="1" type="stmt"/>
556
+ <line num="137" count="1" type="stmt"/>
557
+ <line num="140" count="33" type="stmt"/>
554
558
  <line num="141" count="1" type="stmt"/>
555
- <line num="143" count="0" type="stmt"/>
556
- <line num="147" count="33" type="stmt"/>
557
- <line num="148" count="0" type="stmt"/>
559
+ <line num="142" count="1" type="stmt"/>
560
+ <line num="146" count="33" type="stmt"/>
561
+ <line num="147" count="1" type="stmt"/>
562
+ <line num="148" count="1" type="stmt"/>
563
+ <line num="149" count="1" type="stmt"/>
558
564
  <line num="151" count="0" type="stmt"/>
559
- <line num="152" count="0" type="stmt"/>
560
- <line num="153" count="0" type="stmt"/>
561
565
  <line num="156" count="0" type="stmt"/>
562
- <line num="157" count="0" type="cond" truecount="0" falsecount="2"/>
566
+ <line num="157" count="0" type="stmt"/>
563
567
  <line num="158" count="0" type="stmt"/>
564
- <line num="160" count="0" type="stmt"/>
565
- <line num="161" count="0" type="stmt"/>
566
- <line num="163" count="0" type="cond" truecount="0" falsecount="2"/>
567
- <line num="164" count="0" type="stmt"/>
568
+ <line num="162" count="0" type="cond" truecount="0" falsecount="2"/>
569
+ <line num="163" count="0" type="stmt"/>
570
+ <line num="165" count="0" type="cond" truecount="0" falsecount="2"/>
571
+ <line num="166" count="0" type="stmt"/>
568
572
  <line num="168" count="0" type="stmt"/>
569
573
  <line num="169" count="0" type="stmt"/>
570
- <line num="170" count="0" type="cond" truecount="0" falsecount="4"/>
571
- <line num="171" count="0" type="stmt"/>
572
- <line num="172" count="0" type="stmt"/>
574
+ <line num="172" count="33" type="stmt"/>
573
575
  <line num="173" count="0" type="stmt"/>
574
- <line num="174" count="0" type="stmt"/>
576
+ <line num="176" count="0" type="stmt"/>
577
+ <line num="177" count="0" type="stmt"/>
575
578
  <line num="178" count="0" type="stmt"/>
579
+ <line num="181" count="0" type="stmt"/>
580
+ <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
581
+ <line num="183" count="0" type="stmt"/>
582
+ <line num="185" count="0" type="stmt"/>
583
+ <line num="186" count="0" type="stmt"/>
584
+ <line num="188" count="0" type="cond" truecount="0" falsecount="2"/>
585
+ <line num="189" count="0" type="stmt"/>
586
+ <line num="193" count="0" type="stmt"/>
587
+ <line num="194" count="0" type="stmt"/>
588
+ <line num="195" count="0" type="cond" truecount="0" falsecount="4"/>
589
+ <line num="196" count="0" type="stmt"/>
590
+ <line num="197" count="0" type="stmt"/>
591
+ <line num="198" count="0" type="cond" truecount="0" falsecount="2"/>
592
+ <line num="199" count="0" type="stmt"/>
593
+ <line num="205" count="0" type="cond" truecount="0" falsecount="2"/>
594
+ <line num="206" count="0" type="stmt"/>
595
+ <line num="207" count="0" type="stmt"/>
596
+ <line num="214" count="0" type="stmt"/>
576
597
  </file>
577
598
  <file name="dev.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/dev.js">
578
- <metrics statements="60" coveredstatements="17" conditionals="15" coveredconditionals="0" methods="10" coveredmethods="3"/>
599
+ <metrics statements="63" coveredstatements="18" conditionals="15" coveredconditionals="0" methods="10" coveredmethods="3"/>
579
600
  <line num="1" count="23" type="stmt"/>
580
601
  <line num="2" count="23" type="stmt"/>
581
602
  <line num="3" count="23" type="stmt"/>
@@ -584,61 +605,64 @@
584
605
  <line num="6" count="23" type="stmt"/>
585
606
  <line num="7" count="23" type="stmt"/>
586
607
  <line num="8" count="23" type="stmt"/>
587
- <line num="11" count="0" type="stmt"/>
588
- <line num="12" count="0" type="cond" truecount="0" falsecount="2"/>
589
- <line num="13" count="0" type="stmt"/>
590
- <line num="26" count="0" type="cond" truecount="0" falsecount="2"/>
591
- <line num="27" count="0" type="stmt"/>
608
+ <line num="9" count="23" type="stmt"/>
609
+ <line num="12" count="0" type="stmt"/>
610
+ <line num="13" count="0" type="cond" truecount="0" falsecount="2"/>
611
+ <line num="14" count="0" type="stmt"/>
612
+ <line num="27" count="0" type="cond" truecount="0" falsecount="2"/>
613
+ <line num="28" count="0" type="stmt"/>
592
614
  <line num="29" count="0" type="stmt"/>
593
- <line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
594
615
  <line num="31" count="0" type="stmt"/>
595
- <line num="34" count="0" type="stmt"/>
596
- <line num="35" count="0" type="stmt"/>
597
- <line num="39" count="0" type="stmt"/>
598
- <line num="40" count="0" type="cond" truecount="0" falsecount="2"/>
616
+ <line num="32" count="0" type="cond" truecount="0" falsecount="2"/>
617
+ <line num="33" count="0" type="stmt"/>
618
+ <line num="36" count="0" type="stmt"/>
619
+ <line num="37" count="0" type="stmt"/>
599
620
  <line num="41" count="0" type="stmt"/>
621
+ <line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
600
622
  <line num="43" count="0" type="stmt"/>
601
- <line num="46" count="23" type="stmt"/>
602
- <line num="47" count="46" type="stmt"/>
603
- <line num="48" count="0" type="stmt"/>
604
- <line num="52" count="23" type="stmt"/>
605
- <line num="53" count="46" type="stmt"/>
606
- <line num="54" count="0" type="stmt"/>
607
- <line num="58" count="23" type="stmt"/>
608
- <line num="59" count="46" type="stmt"/>
609
- <line num="60" count="0" type="stmt"/>
610
- <line num="64" count="23" type="stmt"/>
611
- <line num="65" count="0" type="stmt"/>
612
- <line num="66" count="0" type="stmt"/>
623
+ <line num="45" count="0" type="stmt"/>
624
+ <line num="48" count="23" type="stmt"/>
625
+ <line num="49" count="46" type="stmt"/>
626
+ <line num="50" count="0" type="stmt"/>
627
+ <line num="54" count="23" type="stmt"/>
628
+ <line num="55" count="46" type="stmt"/>
629
+ <line num="56" count="0" type="stmt"/>
630
+ <line num="60" count="23" type="stmt"/>
631
+ <line num="61" count="46" type="stmt"/>
632
+ <line num="62" count="0" type="stmt"/>
633
+ <line num="66" count="23" type="stmt"/>
613
634
  <line num="67" count="0" type="stmt"/>
635
+ <line num="68" count="0" type="stmt"/>
614
636
  <line num="69" count="0" type="stmt"/>
615
637
  <line num="71" count="0" type="stmt"/>
616
- <line num="76" count="23" type="stmt"/>
617
- <line num="77" count="0" type="stmt"/>
618
- <line num="78" count="0" type="stmt"/>
619
- <line num="81" count="0" type="stmt"/>
620
- <line num="82" count="0" type="stmt"/>
638
+ <line num="73" count="0" type="stmt"/>
639
+ <line num="78" count="23" type="stmt"/>
640
+ <line num="79" count="0" type="stmt"/>
641
+ <line num="80" count="0" type="stmt"/>
621
642
  <line num="83" count="0" type="stmt"/>
622
- <line num="84" count="0" type="cond" truecount="0" falsecount="2"/>
643
+ <line num="84" count="0" type="stmt"/>
623
644
  <line num="85" count="0" type="stmt"/>
624
645
  <line num="86" count="0" type="cond" truecount="0" falsecount="2"/>
625
- <line num="90" count="0" type="stmt"/>
626
- <line num="93" count="0" type="stmt"/>
627
- <line num="96" count="0" type="stmt"/>
628
- <line num="97" count="0" type="stmt"/>
629
- <line num="102" count="0" type="stmt"/>
646
+ <line num="87" count="0" type="stmt"/>
647
+ <line num="88" count="0" type="cond" truecount="0" falsecount="2"/>
648
+ <line num="92" count="0" type="stmt"/>
649
+ <line num="95" count="0" type="stmt"/>
650
+ <line num="98" count="0" type="stmt"/>
651
+ <line num="99" count="0" type="stmt"/>
630
652
  <line num="104" count="0" type="stmt"/>
631
- <line num="105" count="0" type="stmt"/>
632
653
  <line num="106" count="0" type="stmt"/>
633
654
  <line num="107" count="0" type="stmt"/>
634
655
  <line num="108" count="0" type="stmt"/>
635
656
  <line num="109" count="0" type="stmt"/>
636
- <line num="113" count="0" type="stmt"/>
637
- <line num="117" count="23" type="stmt"/>
638
- <line num="118" count="0" type="stmt"/>
657
+ <line num="110" count="0" type="stmt"/>
658
+ <line num="111" count="0" type="stmt"/>
659
+ <line num="112" count="0" type="stmt"/>
660
+ <line num="116" count="0" type="stmt"/>
661
+ <line num="120" count="23" type="stmt"/>
662
+ <line num="121" count="0" type="stmt"/>
639
663
  </file>
640
664
  <file name="hosting.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/hosting.js">
641
- <metrics statements="15" coveredstatements="13" conditionals="4" coveredconditionals="2" methods="2" coveredmethods="1"/>
665
+ <metrics statements="15" coveredstatements="14" conditionals="4" coveredconditionals="3" methods="2" coveredmethods="1"/>
642
666
  <line num="1" count="23" type="stmt"/>
643
667
  <line num="2" count="23" type="stmt"/>
644
668
  <line num="3" count="23" type="stmt"/>
@@ -649,8 +673,8 @@
649
673
  <line num="9" count="1" type="stmt"/>
650
674
  <line num="10" count="1" type="stmt"/>
651
675
  <line num="11" count="1" type="stmt"/>
652
- <line num="12" count="1" type="cond" truecount="2" falsecount="2"/>
653
- <line num="13" count="0" type="stmt"/>
676
+ <line num="12" count="1" type="cond" truecount="3" falsecount="1"/>
677
+ <line num="13" count="1" type="stmt"/>
654
678
  <line num="15" count="1" type="stmt"/>
655
679
  <line num="20" count="23" type="stmt"/>
656
680
  <line num="21" count="0" type="stmt"/>
@@ -804,102 +828,79 @@
804
828
  <line num="170" count="1" type="stmt"/>
805
829
  </file>
806
830
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query.js">
807
- <metrics statements="95" coveredstatements="75" conditionals="41" coveredconditionals="22" methods="13" coveredmethods="12"/>
831
+ <metrics statements="72" coveredstatements="61" conditionals="25" coveredconditionals="12" methods="9" coveredmethods="9"/>
808
832
  <line num="1" count="34" type="stmt"/>
809
833
  <line num="2" count="34" type="stmt"/>
810
834
  <line num="3" count="34" type="stmt"/>
811
835
  <line num="4" count="34" type="stmt"/>
812
836
  <line num="5" count="34" type="stmt"/>
813
837
  <line num="6" count="34" type="stmt"/>
814
- <line num="7" count="34" type="stmt"/>
815
- <line num="11" count="4" type="stmt"/>
816
- <line num="12" count="4" type="cond" truecount="2" falsecount="0"/>
817
- <line num="13" count="4" type="stmt"/>
818
- <line num="14" count="3" type="cond" truecount="1" falsecount="1"/>
819
- <line num="15" count="3" type="stmt"/>
820
- <line num="18" count="4" type="cond" truecount="2" falsecount="0"/>
821
- <line num="22" count="2" type="cond" truecount="1" falsecount="1"/>
822
- <line num="23" count="0" type="stmt"/>
823
- <line num="24" count="0" type="stmt"/>
824
- <line num="26" count="0" type="stmt"/>
825
- <line num="29" count="2" type="stmt"/>
826
- <line num="38" count="2" type="stmt"/>
827
- <line num="41" count="2" type="cond" truecount="1" falsecount="1"/>
828
- <line num="42" count="0" type="stmt"/>
829
- <line num="43" count="0" type="stmt"/>
830
- <line num="47" count="2" type="cond" truecount="1" falsecount="1"/>
831
- <line num="48" count="0" type="stmt"/>
832
- <line num="52" count="2" type="cond" truecount="1" falsecount="1"/>
833
- <line num="53" count="0" type="stmt"/>
834
- <line num="57" count="2" type="stmt"/>
835
- <line num="59" count="2" type="stmt"/>
836
- <line num="62" count="34" type="stmt"/>
837
- <line num="63" count="2" type="stmt"/>
838
- <line num="65" count="2" type="stmt"/>
839
- <line num="70" count="2" type="stmt"/>
840
- <line num="73" count="34" type="stmt"/>
841
- <line num="74" count="18" type="stmt"/>
842
- <line num="75" count="18" type="stmt"/>
843
- <line num="77" count="18" type="cond" truecount="1" falsecount="1"/>
844
- <line num="78" count="18" type="stmt"/>
845
- <line num="81" count="18" type="stmt"/>
846
- <line num="82" count="18" type="stmt"/>
847
- <line num="84" count="18" type="stmt"/>
848
- <line num="85" count="18" type="stmt"/>
849
- <line num="89" count="2" type="stmt"/>
850
- <line num="92" count="2" type="stmt"/>
851
- <line num="93" count="0" type="cond" truecount="0" falsecount="2"/>
852
- <line num="94" count="0" type="stmt"/>
853
- <line num="96" count="0" type="cond" truecount="0" falsecount="2"/>
854
- <line num="98" count="0" type="stmt"/>
855
- <line num="99" count="0" type="cond" truecount="0" falsecount="2"/>
856
- <line num="101" count="0" type="stmt"/>
857
- <line num="105" count="0" type="stmt"/>
858
- <line num="109" count="2" type="cond" truecount="1" falsecount="1"/>
859
- <line num="114" count="0" type="stmt"/>
860
- <line num="115" count="0" type="stmt"/>
861
- <line num="121" count="0" type="stmt"/>
862
- <line num="123" count="0" type="stmt"/>
863
- <line num="126" count="2" type="stmt"/>
864
- <line num="129" count="34" type="stmt"/>
838
+ <line num="8" count="34" type="stmt"/>
839
+ <line num="12" count="4" type="stmt"/>
840
+ <line num="13" count="4" type="cond" truecount="2" falsecount="0"/>
841
+ <line num="14" count="4" type="stmt"/>
842
+ <line num="15" count="3" type="cond" truecount="1" falsecount="1"/>
843
+ <line num="16" count="3" type="stmt"/>
844
+ <line num="19" count="4" type="cond" truecount="2" falsecount="0"/>
845
+ <line num="22" count="34" type="stmt"/>
846
+ <line num="23" count="2" type="stmt"/>
847
+ <line num="25" count="2" type="stmt"/>
848
+ <line num="30" count="2" type="stmt"/>
849
+ <line num="33" count="34" type="stmt"/>
850
+ <line num="34" count="18" type="stmt"/>
851
+ <line num="35" count="18" type="stmt"/>
852
+ <line num="37" count="18" type="cond" truecount="1" falsecount="1"/>
853
+ <line num="38" count="18" type="stmt"/>
854
+ <line num="41" count="18" type="stmt"/>
855
+ <line num="42" count="18" type="stmt"/>
856
+ <line num="44" count="18" type="stmt"/>
857
+ <line num="45" count="18" type="stmt"/>
858
+ <line num="49" count="4" type="stmt"/>
859
+ <line num="52" count="4" type="stmt"/>
860
+ <line num="53" count="0" type="cond" truecount="0" falsecount="2"/>
861
+ <line num="54" count="0" type="stmt"/>
862
+ <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
863
+ <line num="58" count="0" type="stmt"/>
864
+ <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
865
+ <line num="61" count="0" type="stmt"/>
866
+ <line num="65" count="0" type="stmt"/>
867
+ <line num="69" count="4" type="cond" truecount="1" falsecount="1"/>
868
+ <line num="74" count="0" type="stmt"/>
869
+ <line num="75" count="0" type="stmt"/>
870
+ <line num="81" count="0" type="stmt"/>
871
+ <line num="83" count="0" type="stmt"/>
872
+ <line num="86" count="4" type="stmt"/>
873
+ <line num="89" count="34" type="stmt"/>
874
+ <line num="90" count="2" type="stmt"/>
875
+ <line num="91" count="2" type="stmt"/>
876
+ <line num="93" count="2" type="cond" truecount="2" falsecount="0"/>
877
+ <line num="94" count="1" type="stmt"/>
878
+ <line num="95" count="1" type="stmt"/>
879
+ <line num="96" count="1" type="stmt"/>
880
+ <line num="98" count="2" type="stmt"/>
881
+ <line num="101" count="34" type="stmt"/>
882
+ <line num="102" count="2" type="stmt"/>
883
+ <line num="104" count="2" type="stmt"/>
884
+ <line num="106" count="2" type="stmt"/>
885
+ <line num="107" count="2" type="stmt"/>
886
+ <line num="109" count="2" type="stmt"/>
887
+ <line num="110" count="2" type="stmt"/>
888
+ <line num="117" count="1" type="stmt"/>
889
+ <line num="122" count="1" type="stmt"/>
890
+ <line num="126" count="34" type="stmt"/>
891
+ <line num="127" count="2" type="stmt"/>
892
+ <line num="129" count="2" type="stmt"/>
865
893
  <line num="130" count="2" type="stmt"/>
866
- <line num="131" count="2" type="stmt"/>
867
- <line num="133" count="2" type="cond" truecount="2" falsecount="0"/>
868
- <line num="134" count="1" type="stmt"/>
869
- <line num="135" count="1" type="stmt"/>
870
- <line num="136" count="1" type="stmt"/>
894
+ <line num="132" count="2" type="stmt"/>
871
895
  <line num="138" count="2" type="stmt"/>
872
- <line num="141" count="34" type="stmt"/>
873
- <line num="142" count="2" type="stmt"/>
874
- <line num="144" count="2" type="stmt"/>
875
- <line num="146" count="2" type="stmt"/>
876
- <line num="148" count="2" type="cond" truecount="2" falsecount="0"/>
877
- <line num="149" count="1" type="stmt"/>
896
+ <line num="139" count="2" type="stmt"/>
897
+ <line num="145" count="1" type="stmt"/>
898
+ <line num="147" count="1" type="stmt"/>
899
+ <line num="151" count="34" type="stmt"/>
878
900
  <line num="152" count="1" type="stmt"/>
879
901
  <line num="153" count="1" type="stmt"/>
880
902
  <line num="154" count="1" type="stmt"/>
881
- <line num="156" count="1" type="stmt"/>
882
- <line num="163" count="1" type="stmt"/>
883
- <line num="168" count="1" type="cond" truecount="1" falsecount="1"/>
884
- <line num="169" count="0" type="stmt"/>
885
- <line num="173" count="34" type="stmt"/>
886
- <line num="174" count="2" type="stmt"/>
887
- <line num="176" count="2" type="stmt"/>
888
- <line num="177" count="2" type="stmt"/>
889
- <line num="179" count="2" type="stmt"/>
890
- <line num="181" count="2" type="cond" truecount="2" falsecount="0"/>
891
- <line num="182" count="1" type="stmt"/>
892
- <line num="185" count="1" type="stmt"/>
893
- <line num="189" count="1" type="stmt"/>
894
- <line num="192" count="1" type="stmt"/>
895
- <line num="198" count="1" type="stmt"/>
896
- <line num="200" count="1" type="cond" truecount="1" falsecount="1"/>
897
- <line num="201" count="0" type="stmt"/>
898
- <line num="205" count="34" type="stmt"/>
899
- <line num="206" count="1" type="stmt"/>
900
- <line num="207" count="1" type="stmt"/>
901
- <line num="208" count="1" type="stmt"/>
902
- <line num="209" count="1" type="stmt"/>
903
+ <line num="155" count="1" type="stmt"/>
903
904
  </file>
904
905
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/role.js">
905
906
  <metrics statements="53" coveredstatements="47" conditionals="22" coveredconditionals="14" methods="7" coveredmethods="5"/>
@@ -1064,7 +1065,7 @@
1064
1065
  <line num="25" count="0" type="stmt"/>
1065
1066
  </file>
1066
1067
  <file name="user.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/user.js">
1067
- <metrics statements="96" coveredstatements="37" conditionals="27" coveredconditionals="0" methods="14" coveredmethods="5"/>
1068
+ <metrics statements="98" coveredstatements="37" conditionals="31" coveredconditionals="0" methods="14" coveredmethods="5"/>
1068
1069
  <line num="1" count="34" type="stmt"/>
1069
1070
  <line num="5" count="34" type="stmt"/>
1070
1071
  <line num="6" count="34" type="stmt"/>
@@ -1119,48 +1120,50 @@
1119
1120
  <line num="99" count="0" type="stmt"/>
1120
1121
  <line num="100" count="0" type="stmt"/>
1121
1122
  <line num="101" count="0" type="stmt"/>
1122
- <line num="102" count="0" type="cond" truecount="0" falsecount="2"/>
1123
- <line num="103" count="0" type="stmt"/>
1124
- <line num="105" count="0" type="stmt"/>
1123
+ <line num="102" count="0" type="stmt"/>
1124
+ <line num="103" count="0" type="cond" truecount="0" falsecount="2"/>
1125
+ <line num="104" count="0" type="stmt"/>
1125
1126
  <line num="106" count="0" type="stmt"/>
1126
- <line num="108" count="0" type="stmt"/>
1127
+ <line num="107" count="0" type="stmt"/>
1127
1128
  <line num="109" count="0" type="stmt"/>
1128
- <line num="111" count="0" type="cond" truecount="0" falsecount="2"/>
1129
- <line num="112" count="0" type="stmt"/>
1130
- <line num="114" count="0" type="stmt"/>
1131
- <line num="119" count="0" type="cond" truecount="0" falsecount="2"/>
1132
- <line num="120" count="0" type="stmt"/>
1133
- <line num="126" count="0" type="stmt"/>
1134
- <line num="128" count="0" type="stmt"/>
1135
- <line num="131" count="0" type="stmt"/>
1136
- <line num="136" count="34" type="stmt"/>
1137
- <line num="137" count="2" type="stmt"/>
1138
- <line num="138" count="2" type="stmt"/>
1139
- <line num="139" count="2" type="stmt"/>
1140
- <line num="140" count="2" type="stmt"/>
1141
- <line num="141" count="2" type="stmt"/>
1142
- <line num="143" count="7" type="stmt"/>
1143
- <line num="145" count="7" type="stmt"/>
1144
- <line num="153" count="2" type="stmt"/>
1145
- <line num="156" count="34" type="stmt"/>
1146
- <line num="158" count="0" type="stmt"/>
1147
- <line num="160" count="0" type="stmt"/>
1148
- <line num="161" count="0" type="stmt"/>
1149
- <line num="164" count="34" type="stmt"/>
1150
- <line num="165" count="1" type="stmt"/>
1151
- <line num="166" count="1" type="stmt"/>
1152
- <line num="167" count="1" type="stmt"/>
1153
- <line num="169" count="1" type="stmt"/>
1129
+ <line num="110" count="0" type="stmt"/>
1130
+ <line num="112" count="0" type="cond" truecount="0" falsecount="2"/>
1131
+ <line num="113" count="0" type="stmt"/>
1132
+ <line num="115" count="0" type="stmt"/>
1133
+ <line num="120" count="0" type="cond" truecount="0" falsecount="2"/>
1134
+ <line num="121" count="0" type="stmt"/>
1135
+ <line num="123" count="0" type="cond" truecount="0" falsecount="2"/>
1136
+ <line num="131" count="0" type="cond" truecount="0" falsecount="2"/>
1137
+ <line num="132" count="0" type="stmt"/>
1138
+ <line num="136" count="0" type="stmt"/>
1139
+ <line num="141" count="34" type="stmt"/>
1140
+ <line num="142" count="2" type="stmt"/>
1141
+ <line num="143" count="2" type="stmt"/>
1142
+ <line num="144" count="2" type="stmt"/>
1143
+ <line num="145" count="2" type="stmt"/>
1144
+ <line num="146" count="2" type="stmt"/>
1145
+ <line num="148" count="7" type="stmt"/>
1146
+ <line num="150" count="7" type="stmt"/>
1147
+ <line num="158" count="2" type="stmt"/>
1148
+ <line num="161" count="34" type="stmt"/>
1149
+ <line num="163" count="0" type="stmt"/>
1150
+ <line num="165" count="0" type="stmt"/>
1151
+ <line num="166" count="0" type="stmt"/>
1152
+ <line num="169" count="34" type="stmt"/>
1154
1153
  <line num="170" count="1" type="stmt"/>
1154
+ <line num="171" count="1" type="stmt"/>
1155
+ <line num="172" count="1" type="stmt"/>
1155
1156
  <line num="174" count="1" type="stmt"/>
1156
- <line num="177" count="34" type="stmt"/>
1157
- <line num="178" count="1" type="stmt"/>
1157
+ <line num="175" count="1" type="stmt"/>
1158
1158
  <line num="179" count="1" type="stmt"/>
1159
- <line num="180" count="1" type="stmt"/>
1160
- <line num="181" count="0" type="stmt"/>
1159
+ <line num="182" count="34" type="stmt"/>
1160
+ <line num="183" count="1" type="stmt"/>
1161
+ <line num="184" count="1" type="stmt"/>
1161
1162
  <line num="185" count="1" type="stmt"/>
1162
- <line num="190" count="34" type="stmt"/>
1163
- <line num="191" count="1" type="stmt"/>
1163
+ <line num="186" count="0" type="stmt"/>
1164
+ <line num="190" count="1" type="stmt"/>
1165
+ <line num="195" count="34" type="stmt"/>
1166
+ <line num="196" count="1" type="stmt"/>
1164
1167
  </file>
1165
1168
  <file name="webhook.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/webhook.js">
1166
1169
  <metrics statements="56" coveredstatements="51" conditionals="10" coveredconditionals="4" methods="7" coveredmethods="7"/>
@@ -2671,7 +2674,7 @@
2671
2674
  <line num="21" count="23" type="stmt"/>
2672
2675
  <line num="41" count="23" type="stmt"/>
2673
2676
  <line num="51" count="23" type="stmt"/>
2674
- <line num="85" count="23" type="stmt"/>
2677
+ <line num="86" count="23" type="stmt"/>
2675
2678
  </file>
2676
2679
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/role.js">
2677
2680
  <metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -2808,7 +2811,7 @@
2808
2811
  </file>
2809
2812
  </package>
2810
2813
  <package name="automations">
2811
- <metrics statements="254" coveredstatements="220" conditionals="106" coveredconditionals="82" methods="29" coveredmethods="27"/>
2814
+ <metrics statements="198" coveredstatements="168" conditionals="87" coveredconditionals="70" methods="25" coveredmethods="20"/>
2812
2815
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2813
2816
  <metrics statements="23" coveredstatements="23" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2814
2817
  <line num="1" count="34" type="stmt"/>
@@ -2866,7 +2869,7 @@
2866
2869
  <line num="67" count="3" type="cond" truecount="1" falsecount="1"/>
2867
2870
  </file>
2868
2871
  <file name="bullboard.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/bullboard.js">
2869
- <metrics statements="21" coveredstatements="13" conditionals="4" coveredconditionals="3" methods="1" coveredmethods="0"/>
2872
+ <metrics statements="28" coveredstatements="15" conditionals="6" coveredconditionals="3" methods="3" coveredmethods="0"/>
2870
2873
  <line num="1" count="33" type="stmt"/>
2871
2874
  <line num="2" count="33" type="stmt"/>
2872
2875
  <line num="3" count="33" type="stmt"/>
@@ -2875,21 +2878,28 @@
2875
2878
  <line num="8" count="33" type="stmt"/>
2876
2879
  <line num="9" count="33" type="stmt"/>
2877
2880
  <line num="10" count="33" type="stmt"/>
2878
- <line num="12" count="33" type="cond" truecount="2" falsecount="0"/>
2879
- <line num="13" count="33" type="stmt"/>
2880
- <line num="15" count="33" type="stmt"/>
2881
- <line num="17" count="33" type="stmt"/>
2882
- <line num="18" count="0" type="stmt"/>
2883
- <line num="20" count="0" type="stmt"/>
2884
- <line num="21" count="0" type="stmt"/>
2885
- <line num="22" count="0" type="stmt"/>
2886
- <line num="23" count="0" type="stmt"/>
2887
- <line num="25" count="0" type="stmt"/>
2888
- <line num="27" count="0" type="stmt"/>
2889
- <line num="28" count="0" type="stmt"/>
2890
- <line num="31" count="33" type="stmt"/>
2891
- </file>
2892
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/index.js">
2881
+ <line num="12" count="33" type="stmt"/>
2882
+ <line num="13" count="33" type="cond" truecount="2" falsecount="0"/>
2883
+ <line num="14" count="33" type="stmt"/>
2884
+ <line num="16" count="33" type="stmt"/>
2885
+ <line num="19" count="0" type="stmt"/>
2886
+ <line num="22" count="33" type="stmt"/>
2887
+ <line num="24" count="33" type="stmt"/>
2888
+ <line num="26" count="0" type="cond" truecount="0" falsecount="2"/>
2889
+ <line num="27" count="0" type="stmt"/>
2890
+ <line num="29" count="0" type="stmt"/>
2891
+ <line num="30" count="0" type="stmt"/>
2892
+ <line num="34" count="0" type="stmt"/>
2893
+ <line num="35" count="0" type="stmt"/>
2894
+ <line num="36" count="0" type="stmt"/>
2895
+ <line num="37" count="0" type="stmt"/>
2896
+ <line num="38" count="0" type="stmt"/>
2897
+ <line num="40" count="0" type="stmt"/>
2898
+ <line num="44" count="0" type="stmt"/>
2899
+ <line num="45" count="0" type="stmt"/>
2900
+ <line num="48" count="33" type="stmt"/>
2901
+ </file>
2902
+ <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/index.js">
2893
2903
  <metrics statements="8" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="2"/>
2894
2904
  <line num="1" count="24" type="stmt"/>
2895
2905
  <line num="2" count="24" type="stmt"/>
@@ -2900,78 +2910,8 @@
2900
2910
  <line num="15" count="0" type="stmt"/>
2901
2911
  <line num="17" count="24" type="stmt"/>
2902
2912
  </file>
2903
- <file name="thread.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/thread.js">
2904
- <metrics statements="67" coveredstatements="57" conditionals="21" coveredconditionals="12" methods="7" coveredmethods="7"/>
2905
- <line num="1" count="33" type="stmt"/>
2906
- <line num="2" count="33" type="stmt"/>
2907
- <line num="3" count="33" type="stmt"/>
2908
- <line num="4" count="33" type="stmt"/>
2909
- <line num="5" count="33" type="stmt"/>
2910
- <line num="6" count="33" type="stmt"/>
2911
- <line num="7" count="33" type="stmt"/>
2912
- <line num="8" count="33" type="stmt"/>
2913
- <line num="9" count="33" type="stmt"/>
2914
- <line num="10" count="33" type="stmt"/>
2915
- <line num="12" count="33" type="stmt"/>
2916
- <line num="13" count="33" type="stmt"/>
2917
- <line num="22" count="7" type="stmt"/>
2918
- <line num="23" count="7" type="cond" truecount="2" falsecount="0"/>
2919
- <line num="24" count="7" type="stmt"/>
2920
- <line num="25" count="7" type="stmt"/>
2921
- <line num="27" count="7" type="stmt"/>
2922
- <line num="28" count="7" type="stmt"/>
2923
- <line num="30" count="7" type="stmt"/>
2924
- <line num="31" count="7" type="stmt"/>
2925
- <line num="34" count="7" type="stmt"/>
2926
- <line num="35" count="7" type="stmt"/>
2927
- <line num="37" count="7" type="stmt"/>
2928
- <line num="38" count="7" type="stmt"/>
2929
- <line num="39" count="7" type="stmt"/>
2930
- <line num="43" count="5" type="stmt"/>
2931
- <line num="44" count="5" type="cond" truecount="1" falsecount="1"/>
2932
- <line num="45" count="0" type="stmt"/>
2933
- <line num="47" count="5" type="stmt"/>
2934
- <line num="51" count="7" type="stmt"/>
2935
- <line num="52" count="7" type="cond" truecount="1" falsecount="1"/>
2936
- <line num="53" count="0" type="stmt"/>
2937
- <line num="55" count="7" type="stmt"/>
2938
- <line num="56" count="7" type="stmt"/>
2939
- <line num="57" count="6" type="stmt"/>
2940
- <line num="61" count="12" type="stmt"/>
2941
- <line num="63" count="12" type="cond" truecount="2" falsecount="0"/>
2942
- <line num="64" count="7" type="stmt"/>
2943
- <line num="66" count="12" type="stmt"/>
2944
- <line num="70" count="7" type="stmt"/>
2945
- <line num="71" count="7" type="stmt"/>
2946
- <line num="72" count="6" type="stmt"/>
2947
- <line num="73" count="6" type="stmt"/>
2948
- <line num="75" count="5" type="cond" truecount="1" falsecount="1"/>
2949
- <line num="76" count="0" type="stmt"/>
2950
- <line num="77" count="0" type="stmt"/>
2951
- <line num="79" count="5" type="stmt"/>
2952
- <line num="80" count="5" type="stmt"/>
2953
- <line num="81" count="5" type="stmt"/>
2954
- <line num="86" count="5" type="stmt"/>
2955
- <line num="87" count="5" type="cond" truecount="1" falsecount="1"/>
2956
- <line num="88" count="5" type="stmt"/>
2957
- <line num="89" count="5" type="stmt"/>
2958
- <line num="96" count="5" type="stmt"/>
2959
- <line num="99" count="5" type="cond" truecount="2" falsecount="2"/>
2960
- <line num="100" count="0" type="stmt"/>
2961
- <line num="101" count="0" type="stmt"/>
2962
- <line num="105" count="0" type="stmt"/>
2963
- <line num="107" count="5" type="stmt"/>
2964
- <line num="109" count="0" type="stmt"/>
2965
- <line num="110" count="0" type="stmt"/>
2966
- <line num="115" count="6" type="cond" truecount="2" falsecount="2"/>
2967
- <line num="116" count="0" type="stmt"/>
2968
- <line num="118" count="6" type="stmt"/>
2969
- <line num="122" count="33" type="stmt"/>
2970
- <line num="123" count="7" type="stmt"/>
2971
- <line num="127" count="7" type="stmt"/>
2972
- </file>
2973
2913
  <file name="triggers.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggers.js">
2974
- <metrics statements="44" coveredstatements="42" conditionals="25" coveredconditionals="21" methods="7" coveredmethods="7"/>
2914
+ <metrics statements="45" coveredstatements="43" conditionals="25" coveredconditionals="21" methods="7" coveredmethods="7"/>
2975
2915
  <line num="1" count="33" type="stmt"/>
2976
2916
  <line num="2" count="33" type="stmt"/>
2977
2917
  <line num="3" count="33" type="stmt"/>
@@ -2983,42 +2923,43 @@
2983
2923
  <line num="10" count="33" type="stmt"/>
2984
2924
  <line num="11" count="33" type="stmt"/>
2985
2925
  <line num="13" count="33" type="stmt"/>
2986
- <line num="16" count="16" type="cond" truecount="1" falsecount="1"/>
2987
- <line num="17" count="0" type="stmt"/>
2988
- <line num="20" count="16" type="stmt"/>
2989
- <line num="21" count="16" type="stmt"/>
2990
- <line num="26" count="16" type="stmt"/>
2991
- <line num="27" count="4" type="stmt"/>
2992
- <line num="29" count="4" type="stmt"/>
2993
- <line num="30" count="4" type="cond" truecount="2" falsecount="0"/>
2994
- <line num="33" count="16" type="stmt"/>
2995
- <line num="34" count="4" type="stmt"/>
2996
- <line num="35" count="4" type="cond" truecount="1" falsecount="1"/>
2926
+ <line num="14" count="33" type="stmt"/>
2927
+ <line num="20" count="16" type="cond" truecount="1" falsecount="1"/>
2928
+ <line num="21" count="0" type="stmt"/>
2929
+ <line num="24" count="16" type="stmt"/>
2930
+ <line num="25" count="16" type="stmt"/>
2931
+ <line num="30" count="16" type="stmt"/>
2932
+ <line num="31" count="4" type="stmt"/>
2933
+ <line num="33" count="4" type="stmt"/>
2934
+ <line num="34" count="4" type="cond" truecount="2" falsecount="0"/>
2935
+ <line num="37" count="16" type="stmt"/>
2936
+ <line num="38" count="4" type="stmt"/>
2997
2937
  <line num="39" count="4" type="cond" truecount="1" falsecount="1"/>
2998
- <line num="44" count="0" type="stmt"/>
2999
- <line num="46" count="4" type="cond" truecount="1" falsecount="1"/>
3000
- <line num="50" count="4" type="stmt"/>
3001
- <line num="55" count="33" type="stmt"/>
3002
- <line num="60" count="8" type="stmt"/>
3003
- <line num="63" count="33" type="stmt"/>
3004
- <line num="68" count="3" type="stmt"/>
3005
- <line num="71" count="33" type="stmt"/>
3006
- <line num="76" count="5" type="stmt"/>
3007
- <line num="79" count="33" type="stmt"/>
3008
- <line num="84" count="6" type="cond" truecount="2" falsecount="0"/>
3009
- <line num="92" count="1" type="stmt"/>
3010
- <line num="93" count="1" type="stmt"/>
3011
- <line num="94" count="1" type="stmt"/>
3012
- <line num="95" count="1" type="stmt"/>
2938
+ <line num="43" count="4" type="cond" truecount="1" falsecount="1"/>
2939
+ <line num="48" count="0" type="stmt"/>
2940
+ <line num="50" count="4" type="cond" truecount="1" falsecount="1"/>
2941
+ <line num="54" count="4" type="stmt"/>
2942
+ <line num="59" count="33" type="stmt"/>
2943
+ <line num="64" count="8" type="stmt"/>
2944
+ <line num="67" count="33" type="stmt"/>
2945
+ <line num="72" count="3" type="stmt"/>
2946
+ <line num="75" count="33" type="stmt"/>
2947
+ <line num="80" count="5" type="stmt"/>
2948
+ <line num="83" count="33" type="stmt"/>
2949
+ <line num="88" count="6" type="cond" truecount="2" falsecount="0"/>
2950
+ <line num="96" count="1" type="stmt"/>
3013
2951
  <line num="97" count="1" type="stmt"/>
3014
- <line num="99" count="6" type="stmt"/>
3015
- <line num="100" count="6" type="cond" truecount="2" falsecount="0"/>
3016
- <line num="101" count="2" type="stmt"/>
3017
- <line num="103" count="4" type="stmt"/>
3018
- <line num="107" count="33" type="stmt"/>
2952
+ <line num="98" count="1" type="stmt"/>
2953
+ <line num="99" count="1" type="stmt"/>
2954
+ <line num="101" count="1" type="stmt"/>
2955
+ <line num="103" count="6" type="stmt"/>
2956
+ <line num="104" count="6" type="cond" truecount="2" falsecount="0"/>
2957
+ <line num="105" count="2" type="stmt"/>
2958
+ <line num="107" count="4" type="stmt"/>
2959
+ <line num="111" count="33" type="stmt"/>
3019
2960
  </file>
3020
2961
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/utils.js">
3021
- <metrics statements="64" coveredstatements="51" conditionals="36" coveredconditionals="29" methods="8" coveredmethods="8"/>
2962
+ <metrics statements="67" coveredstatements="53" conditionals="36" coveredconditionals="29" methods="9" coveredmethods="8"/>
3022
2963
  <line num="1" count="33" type="stmt"/>
3023
2964
  <line num="2" count="33" type="stmt"/>
3024
2965
  <line num="3" count="33" type="stmt"/>
@@ -3030,59 +2971,62 @@
3030
2971
  <line num="9" count="33" type="stmt"/>
3031
2972
  <line num="11" count="33" type="stmt"/>
3032
2973
  <line num="12" count="33" type="stmt"/>
3033
- <line num="14" count="33" type="stmt"/>
3034
- <line num="15" count="10" type="stmt"/>
3035
- <line num="17" count="10" type="stmt"/>
3036
- <line num="19" count="0" type="stmt"/>
3037
- <line num="22" count="0" type="stmt"/>
3038
- <line num="26" count="33" type="stmt"/>
3039
- <line num="27" count="2" type="stmt"/>
3040
- <line num="32" count="2" type="cond" truecount="3" falsecount="1"/>
3041
- <line num="33" count="0" type="stmt"/>
3042
- <line num="35" count="2" type="stmt"/>
3043
- <line num="39" count="2" type="stmt"/>
3044
- <line num="45" count="33" type="stmt"/>
3045
- <line num="46" count="185" type="stmt"/>
2974
+ <line num="13" count="33" type="stmt"/>
2975
+ <line num="15" count="33" type="stmt"/>
2976
+ <line num="16" count="10" type="stmt"/>
2977
+ <line num="18" count="10" type="stmt"/>
2978
+ <line num="20" count="0" type="stmt"/>
2979
+ <line num="23" count="0" type="stmt"/>
2980
+ <line num="27" count="33" type="stmt"/>
2981
+ <line num="28" count="2" type="stmt"/>
2982
+ <line num="33" count="2" type="cond" truecount="3" falsecount="1"/>
2983
+ <line num="34" count="0" type="stmt"/>
2984
+ <line num="36" count="2" type="stmt"/>
2985
+ <line num="40" count="2" type="stmt"/>
2986
+ <line num="46" count="33" type="stmt"/>
3046
2987
  <line num="47" count="185" type="stmt"/>
3047
2988
  <line num="48" count="185" type="stmt"/>
3048
- <line num="49" count="0" type="cond" truecount="0" falsecount="2"/>
3049
- <line num="50" count="0" type="stmt"/>
2989
+ <line num="49" count="185" type="stmt"/>
2990
+ <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
3050
2991
  <line num="51" count="0" type="stmt"/>
3051
- <line num="54" count="185" type="stmt"/>
3052
- <line num="62" count="33" type="stmt"/>
3053
- <line num="63" count="1" type="cond" truecount="1" falsecount="1"/>
3054
- <line num="65" count="1" type="stmt"/>
3055
- <line num="72" count="1" type="cond" truecount="1" falsecount="1"/>
3056
- <line num="74" count="0" type="stmt"/>
2992
+ <line num="52" count="0" type="stmt"/>
2993
+ <line num="55" count="185" type="stmt"/>
2994
+ <line num="63" count="33" type="stmt"/>
2995
+ <line num="64" count="1" type="cond" truecount="1" falsecount="1"/>
2996
+ <line num="66" count="1" type="stmt"/>
2997
+ <line num="73" count="1" type="cond" truecount="1" falsecount="1"/>
3057
2998
  <line num="75" count="0" type="stmt"/>
3058
- <line num="83" count="0" type="stmt"/>
2999
+ <line num="76" count="0" type="stmt"/>
3059
3000
  <line num="84" count="0" type="stmt"/>
3060
3001
  <line num="85" count="0" type="stmt"/>
3061
3002
  <line num="86" count="0" type="stmt"/>
3062
3003
  <line num="87" count="0" type="stmt"/>
3063
- <line num="89" count="1" type="stmt"/>
3064
- <line num="100" count="33" type="stmt"/>
3065
- <line num="101" count="23" type="cond" truecount="2" falsecount="0"/>
3004
+ <line num="88" count="0" type="stmt"/>
3005
+ <line num="90" count="1" type="stmt"/>
3006
+ <line num="101" count="33" type="stmt"/>
3066
3007
  <line num="102" count="23" type="cond" truecount="2" falsecount="0"/>
3067
- <line num="104" count="23" type="cond" truecount="3" falsecount="0"/>
3068
- <line num="106" count="70" type="stmt"/>
3069
- <line num="113" count="23" type="cond" truecount="2" falsecount="0"/>
3070
- <line num="118" count="1" type="stmt"/>
3008
+ <line num="103" count="23" type="cond" truecount="2" falsecount="0"/>
3009
+ <line num="105" count="23" type="cond" truecount="3" falsecount="0"/>
3010
+ <line num="107" count="70" type="stmt"/>
3011
+ <line num="114" count="23" type="cond" truecount="2" falsecount="0"/>
3071
3012
  <line num="119" count="1" type="stmt"/>
3072
- <line num="121" count="1" type="stmt"/>
3013
+ <line num="120" count="1" type="stmt"/>
3073
3014
  <line num="122" count="1" type="stmt"/>
3074
- <line num="127" count="1" type="cond" truecount="1" falsecount="1"/>
3075
- <line num="128" count="1" type="stmt"/>
3015
+ <line num="123" count="1" type="stmt"/>
3016
+ <line num="128" count="1" type="cond" truecount="1" falsecount="1"/>
3076
3017
  <line num="129" count="1" type="stmt"/>
3077
- <line num="131" count="1" type="stmt"/>
3078
- <line num="137" count="23" type="cond" truecount="2" falsecount="0"/>
3079
- <line num="141" count="1" type="stmt"/>
3080
- <line num="151" count="1" type="stmt"/>
3018
+ <line num="130" count="1" type="stmt"/>
3019
+ <line num="132" count="1" type="stmt"/>
3020
+ <line num="138" count="23" type="cond" truecount="2" falsecount="0"/>
3021
+ <line num="142" count="1" type="stmt"/>
3081
3022
  <line num="152" count="1" type="stmt"/>
3082
3023
  <line num="153" count="1" type="stmt"/>
3083
- <line num="157" count="1" type="stmt"/>
3024
+ <line num="154" count="1" type="stmt"/>
3084
3025
  <line num="158" count="1" type="stmt"/>
3085
- <line num="163" count="23" type="stmt"/>
3026
+ <line num="159" count="1" type="stmt"/>
3027
+ <line num="164" count="23" type="stmt"/>
3028
+ <line num="172" count="33" type="stmt"/>
3029
+ <line num="173" count="0" type="stmt"/>
3086
3030
  </file>
3087
3031
  </package>
3088
3032
  <package name="automations.steps">
@@ -3384,43 +3328,43 @@
3384
3328
  <metrics statements="13" coveredstatements="13" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3385
3329
  <file name="app.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggerInfo/app.js">
3386
3330
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3387
- <line num="1" count="33" type="stmt"/>
3331
+ <line num="1" count="34" type="stmt"/>
3388
3332
  </file>
3389
3333
  <file name="cron.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggerInfo/cron.js">
3390
3334
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3391
- <line num="1" count="33" type="stmt"/>
3335
+ <line num="1" count="34" type="stmt"/>
3392
3336
  </file>
3393
3337
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggerInfo/index.js">
3394
3338
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3395
- <line num="1" count="33" type="stmt"/>
3396
- <line num="2" count="33" type="stmt"/>
3397
- <line num="3" count="33" type="stmt"/>
3398
- <line num="4" count="33" type="stmt"/>
3399
- <line num="5" count="33" type="stmt"/>
3400
- <line num="6" count="33" type="stmt"/>
3401
- <line num="8" count="33" type="stmt"/>
3339
+ <line num="1" count="34" type="stmt"/>
3340
+ <line num="2" count="34" type="stmt"/>
3341
+ <line num="3" count="34" type="stmt"/>
3342
+ <line num="4" count="34" type="stmt"/>
3343
+ <line num="5" count="34" type="stmt"/>
3344
+ <line num="6" count="34" type="stmt"/>
3345
+ <line num="8" count="34" type="stmt"/>
3402
3346
  </file>
3403
3347
  <file name="rowDeleted.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggerInfo/rowDeleted.js">
3404
3348
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3405
- <line num="1" count="33" type="stmt"/>
3349
+ <line num="1" count="34" type="stmt"/>
3406
3350
  </file>
3407
3351
  <file name="rowSaved.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggerInfo/rowSaved.js">
3408
3352
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3409
- <line num="1" count="33" type="stmt"/>
3353
+ <line num="1" count="34" type="stmt"/>
3410
3354
  </file>
3411
3355
  <file name="rowUpdated.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggerInfo/rowUpdated.js">
3412
3356
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3413
- <line num="1" count="33" type="stmt"/>
3357
+ <line num="1" count="34" type="stmt"/>
3414
3358
  </file>
3415
3359
  <file name="webhook.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggerInfo/webhook.js">
3416
3360
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3417
- <line num="1" count="33" type="stmt"/>
3361
+ <line num="1" count="34" type="stmt"/>
3418
3362
  </file>
3419
3363
  </package>
3420
3364
  <package name="constants">
3421
- <metrics statements="27" coveredstatements="27" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3365
+ <metrics statements="28" coveredstatements="28" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3422
3366
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3423
- <metrics statements="20" coveredstatements="20" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3367
+ <metrics statements="21" coveredstatements="21" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3424
3368
  <line num="1" count="40" type="stmt"/>
3425
3369
  <line num="2" count="40" type="stmt"/>
3426
3370
  <line num="3" count="40" type="stmt"/>
@@ -3440,7 +3384,8 @@
3440
3384
  <line num="154" count="40" type="stmt"/>
3441
3385
  <line num="161" count="40" type="stmt"/>
3442
3386
  <line num="166" count="40" type="stmt"/>
3443
- <line num="171" count="40" type="stmt"/>
3387
+ <line num="172" count="40" type="stmt"/>
3388
+ <line num="178" count="40" type="stmt"/>
3444
3389
  </file>
3445
3390
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3446
3391
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3943,9 +3888,9 @@
3943
3888
  <metrics statements="38" coveredstatements="34" conditionals="18" coveredconditionals="10" methods="8" coveredmethods="7"/>
3944
3889
  <file name="AutomationEmitter.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/AutomationEmitter.js">
3945
3890
  <metrics statements="12" coveredstatements="9" conditionals="6" coveredconditionals="2" methods="3" coveredmethods="2"/>
3946
- <line num="1" count="33" type="stmt"/>
3947
- <line num="2" count="33" type="stmt"/>
3948
- <line num="5" count="33" type="stmt"/>
3891
+ <line num="1" count="4" type="stmt"/>
3892
+ <line num="2" count="4" type="stmt"/>
3893
+ <line num="5" count="4" type="stmt"/>
3949
3894
  <line num="15" count="7" type="stmt"/>
3950
3895
  <line num="16" count="7" type="stmt"/>
3951
3896
  <line num="23" count="5" type="cond" truecount="2" falsecount="0"/>
@@ -3954,7 +3899,7 @@
3954
3899
  <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
3955
3900
  <line num="39" count="0" type="stmt"/>
3956
3901
  <line num="41" count="0" type="stmt"/>
3957
- <line num="51" count="33" type="stmt"/>
3902
+ <line num="51" count="4" type="stmt"/>
3958
3903
  </file>
3959
3904
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/index.js">
3960
3905
  <metrics statements="7" coveredstatements="7" conditionals="2" coveredconditionals="1" methods="3" coveredmethods="3"/>
@@ -3996,7 +3941,7 @@
3996
3941
  </file>
3997
3942
  </package>
3998
3943
  <package name="middleware">
3999
- <metrics statements="214" coveredstatements="192" conditionals="148" coveredconditionals="118" methods="28" coveredmethods="28"/>
3944
+ <metrics statements="217" coveredstatements="195" conditionals="148" coveredconditionals="118" methods="28" coveredmethods="28"/>
4000
3945
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
4001
3946
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
4002
3947
  <line num="1" count="23" type="stmt"/>
@@ -4041,40 +3986,43 @@
4041
3986
  <line num="62" count="4" type="stmt"/>
4042
3987
  </file>
4043
3988
  <file name="builder.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/builder.js">
4044
- <metrics statements="33" coveredstatements="29" conditionals="22" coveredconditionals="17" methods="3" coveredmethods="3"/>
3989
+ <metrics statements="36" coveredstatements="32" conditionals="22" coveredconditionals="17" methods="3" coveredmethods="3"/>
4045
3990
  <line num="1" count="24" type="stmt"/>
4046
3991
  <line num="7" count="24" type="stmt"/>
4047
3992
  <line num="8" count="24" type="stmt"/>
4048
3993
  <line num="9" count="24" type="stmt"/>
4049
3994
  <line num="10" count="24" type="stmt"/>
4050
- <line num="12" count="24" type="stmt"/>
4051
- <line num="24" count="1" type="stmt"/>
4052
- <line num="27" count="1" type="cond" truecount="2" falsecount="2"/>
4053
- <line num="28" count="0" type="stmt"/>
4054
- <line num="32" count="1" type="cond" truecount="3" falsecount="1"/>
4055
- <line num="33" count="0" type="stmt"/>
4056
- <line num="35" count="1" type="cond" truecount="1" falsecount="1"/>
4057
- <line num="36" count="0" type="stmt"/>
4058
- <line num="40" count="1" type="stmt"/>
4059
- <line num="44" count="1" type="stmt"/>
4060
- <line num="47" count="1" type="cond" truecount="3" falsecount="1"/>
4061
- <line num="48" count="0" type="stmt"/>
4062
- <line num="50" count="1" type="stmt"/>
3995
+ <line num="11" count="24" type="stmt"/>
3996
+ <line num="13" count="24" type="stmt"/>
3997
+ <line num="25" count="1" type="stmt"/>
3998
+ <line num="28" count="1" type="cond" truecount="2" falsecount="2"/>
3999
+ <line num="29" count="0" type="stmt"/>
4000
+ <line num="33" count="1" type="cond" truecount="3" falsecount="1"/>
4001
+ <line num="34" count="0" type="stmt"/>
4002
+ <line num="36" count="1" type="cond" truecount="1" falsecount="1"/>
4003
+ <line num="37" count="0" type="stmt"/>
4004
+ <line num="41" count="1" type="stmt"/>
4005
+ <line num="45" count="1" type="stmt"/>
4006
+ <line num="48" count="1" type="cond" truecount="3" falsecount="1"/>
4007
+ <line num="49" count="0" type="stmt"/>
4063
4008
  <line num="51" count="1" type="stmt"/>
4064
4009
  <line num="52" count="1" type="stmt"/>
4065
4010
  <line num="53" count="1" type="stmt"/>
4011
+ <line num="54" count="1" type="stmt"/>
4066
4012
  <line num="55" count="1" type="stmt"/>
4067
- <line num="58" count="24" type="stmt"/>
4068
- <line num="59" count="148" type="stmt"/>
4069
- <line num="61" count="148" type="cond" truecount="2" falsecount="0"/>
4070
- <line num="62" count="5" type="stmt"/>
4071
- <line num="64" count="143" type="stmt"/>
4072
- <line num="65" count="143" type="stmt"/>
4073
- <line num="66" count="143" type="cond" truecount="2" falsecount="0"/>
4074
- <line num="68" count="143" type="cond" truecount="4" falsecount="0"/>
4075
- <line num="69" count="142" type="stmt"/>
4076
- <line num="72" count="1" type="stmt"/>
4077
- <line num="74" count="1" type="stmt"/>
4013
+ <line num="56" count="1" type="stmt"/>
4014
+ <line num="58" count="1" type="stmt"/>
4015
+ <line num="61" count="24" type="stmt"/>
4016
+ <line num="62" count="148" type="stmt"/>
4017
+ <line num="64" count="148" type="cond" truecount="2" falsecount="0"/>
4018
+ <line num="65" count="5" type="stmt"/>
4019
+ <line num="67" count="143" type="stmt"/>
4020
+ <line num="68" count="143" type="stmt"/>
4021
+ <line num="69" count="143" type="cond" truecount="2" falsecount="0"/>
4022
+ <line num="71" count="143" type="cond" truecount="4" falsecount="0"/>
4023
+ <line num="72" count="142" type="stmt"/>
4024
+ <line num="75" count="1" type="stmt"/>
4025
+ <line num="77" count="1" type="stmt"/>
4078
4026
  </file>
4079
4027
  <file name="currentapp.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/currentapp.js">
4080
4028
  <metrics statements="53" coveredstatements="44" conditionals="41" coveredconditionals="32" methods="1" coveredmethods="1"/>
@@ -4154,29 +4102,29 @@
4154
4102
  </file>
4155
4103
  <file name="resourceId.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/resourceId.js">
4156
4104
  <metrics statements="29" coveredstatements="29" conditionals="12" coveredconditionals="12" methods="9" coveredmethods="9"/>
4157
- <line num="3" count="581" type="stmt"/>
4158
- <line num="4" count="581" type="stmt"/>
4159
- <line num="5" count="581" type="stmt"/>
4160
- <line num="6" count="581" type="stmt"/>
4161
- <line num="10" count="581" type="stmt"/>
4162
- <line num="11" count="581" type="stmt"/>
4105
+ <line num="3" count="604" type="stmt"/>
4106
+ <line num="4" count="604" type="stmt"/>
4107
+ <line num="5" count="604" type="stmt"/>
4108
+ <line num="6" count="604" type="stmt"/>
4109
+ <line num="10" count="604" type="stmt"/>
4110
+ <line num="11" count="604" type="stmt"/>
4163
4111
  <line num="15" count="72" type="stmt"/>
4164
4112
  <line num="16" count="72" type="stmt"/>
4165
- <line num="20" count="581" type="stmt"/>
4166
- <line num="21" count="581" type="stmt"/>
4167
- <line num="22" count="581" type="stmt"/>
4168
- <line num="23" count="581" type="stmt"/>
4169
- <line num="24" count="55" type="cond" truecount="2" falsecount="0"/>
4170
- <line num="25" count="55" type="cond" truecount="2" falsecount="0"/>
4113
+ <line num="20" count="604" type="stmt"/>
4114
+ <line num="21" count="604" type="stmt"/>
4115
+ <line num="22" count="604" type="stmt"/>
4116
+ <line num="23" count="604" type="stmt"/>
4117
+ <line num="24" count="57" type="cond" truecount="2" falsecount="0"/>
4118
+ <line num="25" count="57" type="cond" truecount="2" falsecount="0"/>
4171
4119
  <line num="26" count="1" type="stmt"/>
4172
- <line num="28" count="54" type="cond" truecount="4" falsecount="0"/>
4173
- <line num="29" count="50" type="stmt"/>
4174
- <line num="31" count="54" type="cond" truecount="4" falsecount="0"/>
4120
+ <line num="28" count="56" type="cond" truecount="4" falsecount="0"/>
4121
+ <line num="29" count="52" type="stmt"/>
4122
+ <line num="31" count="56" type="cond" truecount="4" falsecount="0"/>
4175
4123
  <line num="32" count="11" type="stmt"/>
4176
- <line num="34" count="54" type="stmt"/>
4124
+ <line num="34" count="56" type="stmt"/>
4177
4125
  <line num="39" count="24" type="stmt"/>
4178
4126
  <line num="41" count="24" type="stmt"/>
4179
- <line num="42" count="439" type="stmt"/>
4127
+ <line num="42" count="462" type="stmt"/>
4180
4128
  <line num="45" count="24" type="stmt"/>
4181
4129
  <line num="46" count="47" type="stmt"/>
4182
4130
  <line num="52" count="24" type="stmt"/>
@@ -4239,8 +4187,149 @@
4239
4187
  <line num="6" count="269" type="stmt"/>
4240
4188
  </file>
4241
4189
  </package>
4190
+ <package name="threads">
4191
+ <metrics statements="129" coveredstatements="103" conditionals="49" coveredconditionals="27" methods="22" coveredmethods="20"/>
4192
+ <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4193
+ <metrics statements="75" coveredstatements="63" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4194
+ <line num="1" count="4" type="stmt"/>
4195
+ <line num="2" count="4" type="stmt"/>
4196
+ <line num="3" count="4" type="stmt"/>
4197
+ <line num="4" count="4" type="stmt"/>
4198
+ <line num="5" count="4" type="stmt"/>
4199
+ <line num="6" count="4" type="stmt"/>
4200
+ <line num="7" count="4" type="stmt"/>
4201
+ <line num="8" count="4" type="stmt"/>
4202
+ <line num="9" count="4" type="stmt"/>
4203
+ <line num="10" count="4" type="stmt"/>
4204
+ <line num="11" count="4" type="stmt"/>
4205
+ <line num="13" count="4" type="stmt"/>
4206
+ <line num="14" count="4" type="stmt"/>
4207
+ <line num="15" count="4" type="stmt"/>
4208
+ <line num="24" count="7" type="stmt"/>
4209
+ <line num="25" count="7" type="cond" truecount="2" falsecount="0"/>
4210
+ <line num="26" count="7" type="stmt"/>
4211
+ <line num="27" count="7" type="stmt"/>
4212
+ <line num="28" count="7" type="stmt"/>
4213
+ <line num="29" count="7" type="stmt"/>
4214
+ <line num="31" count="7" type="stmt"/>
4215
+ <line num="32" count="7" type="stmt"/>
4216
+ <line num="34" count="7" type="stmt"/>
4217
+ <line num="35" count="7" type="stmt"/>
4218
+ <line num="38" count="7" type="stmt"/>
4219
+ <line num="39" count="7" type="stmt"/>
4220
+ <line num="41" count="7" type="stmt"/>
4221
+ <line num="42" count="7" type="stmt"/>
4222
+ <line num="46" count="7" type="cond" truecount="1" falsecount="1"/>
4223
+ <line num="47" count="0" type="stmt"/>
4224
+ <line num="49" count="7" type="stmt"/>
4225
+ <line num="53" count="5" type="stmt"/>
4226
+ <line num="54" count="5" type="cond" truecount="1" falsecount="1"/>
4227
+ <line num="55" count="0" type="stmt"/>
4228
+ <line num="57" count="5" type="stmt"/>
4229
+ <line num="61" count="7" type="stmt"/>
4230
+ <line num="62" count="7" type="cond" truecount="1" falsecount="1"/>
4231
+ <line num="63" count="0" type="stmt"/>
4232
+ <line num="65" count="7" type="stmt"/>
4233
+ <line num="66" count="7" type="stmt"/>
4234
+ <line num="67" count="6" type="stmt"/>
4235
+ <line num="71" count="12" type="stmt"/>
4236
+ <line num="73" count="12" type="cond" truecount="2" falsecount="0"/>
4237
+ <line num="74" count="7" type="stmt"/>
4238
+ <line num="76" count="12" type="stmt"/>
4239
+ <line num="80" count="7" type="stmt"/>
4240
+ <line num="81" count="7" type="stmt"/>
4241
+ <line num="82" count="6" type="stmt"/>
4242
+ <line num="83" count="6" type="stmt"/>
4243
+ <line num="85" count="5" type="cond" truecount="1" falsecount="1"/>
4244
+ <line num="86" count="0" type="stmt"/>
4245
+ <line num="87" count="0" type="stmt"/>
4246
+ <line num="89" count="5" type="stmt"/>
4247
+ <line num="90" count="5" type="stmt"/>
4248
+ <line num="91" count="5" type="stmt"/>
4249
+ <line num="96" count="5" type="stmt"/>
4250
+ <line num="97" count="5" type="cond" truecount="1" falsecount="1"/>
4251
+ <line num="98" count="5" type="stmt"/>
4252
+ <line num="99" count="5" type="stmt"/>
4253
+ <line num="106" count="5" type="stmt"/>
4254
+ <line num="109" count="5" type="cond" truecount="2" falsecount="2"/>
4255
+ <line num="110" count="0" type="stmt"/>
4256
+ <line num="111" count="0" type="stmt"/>
4257
+ <line num="115" count="0" type="stmt"/>
4258
+ <line num="117" count="5" type="stmt"/>
4259
+ <line num="119" count="0" type="stmt"/>
4260
+ <line num="120" count="0" type="stmt"/>
4261
+ <line num="125" count="6" type="cond" truecount="2" falsecount="2"/>
4262
+ <line num="126" count="0" type="stmt"/>
4263
+ <line num="128" count="6" type="stmt"/>
4264
+ <line num="132" count="4" type="stmt"/>
4265
+ <line num="133" count="7" type="stmt"/>
4266
+ <line num="137" count="7" type="stmt"/>
4267
+ <line num="140" count="6" type="stmt"/>
4268
+ <line num="143" count="0" type="stmt"/>
4269
+ </file>
4270
+ <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/index.js">
4271
+ <metrics statements="27" coveredstatements="21" conditionals="14" coveredconditionals="7" methods="5" coveredmethods="5"/>
4272
+ <line num="1" count="34" type="stmt"/>
4273
+ <line num="2" count="34" type="stmt"/>
4274
+ <line num="4" count="34" type="stmt"/>
4275
+ <line num="10" count="14" type="stmt"/>
4276
+ <line num="11" count="14" type="cond" truecount="2" falsecount="1"/>
4277
+ <line num="13" count="4" type="stmt"/>
4278
+ <line num="14" count="4" type="stmt"/>
4279
+ <line num="16" count="10" type="stmt"/>
4280
+ <line num="17" count="10" type="stmt"/>
4281
+ <line num="19" count="0" type="stmt"/>
4282
+ <line num="21" count="14" type="stmt"/>
4283
+ <line num="26" count="67" type="stmt"/>
4284
+ <line num="27" count="67" type="cond" truecount="1" falsecount="1"/>
4285
+ <line num="28" count="0" type="stmt"/>
4286
+ <line num="32" count="0" type="cond" truecount="0" falsecount="2"/>
4287
+ <line num="33" count="0" type="stmt"/>
4288
+ <line num="35" count="0" type="stmt"/>
4289
+ <line num="40" count="14" type="stmt"/>
4290
+ <line num="43" count="14" type="cond" truecount="1" falsecount="1"/>
4291
+ <line num="44" count="14" type="stmt"/>
4292
+ <line num="46" count="0" type="stmt"/>
4293
+ <line num="48" count="14" type="stmt"/>
4294
+ <line num="49" count="10" type="cond" truecount="2" falsecount="0"/>
4295
+ <line num="50" count="2" type="stmt"/>
4296
+ <line num="52" count="8" type="stmt"/>
4297
+ <line num="59" count="34" type="stmt"/>
4298
+ <line num="60" count="34" type="stmt"/>
4299
+ </file>
4300
+ <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4301
+ <metrics statements="27" coveredstatements="19" conditionals="12" coveredconditionals="7" methods="7" coveredmethods="6"/>
4302
+ <line num="1" count="1" type="stmt"/>
4303
+ <line num="2" count="1" type="stmt"/>
4304
+ <line num="5" count="2" type="cond" truecount="1" falsecount="1"/>
4305
+ <line num="6" count="0" type="stmt"/>
4306
+ <line num="7" count="0" type="stmt"/>
4307
+ <line num="9" count="0" type="stmt"/>
4308
+ <line num="12" count="2" type="stmt"/>
4309
+ <line num="16" count="4" type="stmt"/>
4310
+ <line num="17" count="4" type="cond" truecount="2" falsecount="0"/>
4311
+ <line num="18" count="2" type="stmt"/>
4312
+ <line num="20" count="2" type="stmt"/>
4313
+ <line num="22" count="2" type="stmt"/>
4314
+ <line num="25" count="2" type="cond" truecount="1" falsecount="1"/>
4315
+ <line num="26" count="0" type="stmt"/>
4316
+ <line num="27" count="0" type="stmt"/>
4317
+ <line num="31" count="2" type="cond" truecount="1" falsecount="1"/>
4318
+ <line num="32" count="0" type="stmt"/>
4319
+ <line num="36" count="2" type="cond" truecount="1" falsecount="1"/>
4320
+ <line num="37" count="0" type="stmt"/>
4321
+ <line num="41" count="2" type="stmt"/>
4322
+ <line num="43" count="2" type="cond" truecount="1" falsecount="1"/>
4323
+ <line num="44" count="0" type="stmt"/>
4324
+ <line num="47" count="2" type="stmt"/>
4325
+ <line num="50" count="1" type="stmt"/>
4326
+ <line num="51" count="4" type="stmt"/>
4327
+ <line num="58" count="2" type="stmt"/>
4328
+ <line num="61" count="2" type="stmt"/>
4329
+ </file>
4330
+ </package>
4242
4331
  <package name="utilities">
4243
- <metrics statements="321" coveredstatements="231" conditionals="121" coveredconditionals="66" methods="62" coveredmethods="42"/>
4332
+ <metrics statements="322" coveredstatements="232" conditionals="121" coveredconditionals="66" methods="62" coveredmethods="42"/>
4244
4333
  <file name="bcrypt.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/bcrypt.js">
4245
4334
  <metrics statements="9" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>
4246
4335
  <line num="3" count="0" type="stmt"/>
@@ -4421,74 +4510,75 @@
4421
4510
  <line num="17" count="1" type="stmt"/>
4422
4511
  <line num="19" count="1" type="stmt"/>
4423
4512
  <line num="28" count="36" type="stmt"/>
4424
- <line num="29" count="186" type="stmt"/>
4513
+ <line num="29" count="187" type="stmt"/>
4425
4514
  <line num="36" count="36" type="stmt"/>
4426
4515
  <line num="37" count="2" type="cond" truecount="1" falsecount="1"/>
4427
4516
  <line num="39" count="2" type="stmt"/>
4428
4517
  <line num="41" count="0" type="stmt"/>
4429
- <line num="54" count="36" type="stmt"/>
4430
- <line num="55" count="187" type="cond" truecount="1" falsecount="1"/>
4431
- <line num="56" count="0" type="stmt"/>
4432
- <line num="60" count="0" type="cond" truecount="0" falsecount="2"/>
4433
- <line num="61" count="0" type="stmt"/>
4434
- <line num="63" count="0" type="stmt"/>
4435
- <line num="65" count="187" type="stmt"/>
4436
- <line num="69" count="36" type="stmt"/>
4437
- <line num="70" count="2" type="stmt"/>
4438
- <line num="75" count="36" type="stmt"/>
4439
- <line num="76" count="3" type="stmt"/>
4518
+ <line num="55" count="36" type="stmt"/>
4519
+ <line num="56" count="187" type="cond" truecount="1" falsecount="1"/>
4520
+ <line num="57" count="0" type="stmt"/>
4521
+ <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
4522
+ <line num="62" count="0" type="stmt"/>
4523
+ <line num="64" count="0" type="stmt"/>
4524
+ <line num="66" count="187" type="stmt"/>
4525
+ <line num="70" count="36" type="stmt"/>
4526
+ <line num="71" count="2" type="stmt"/>
4527
+ <line num="76" count="36" type="stmt"/>
4440
4528
  <line num="77" count="3" type="stmt"/>
4441
- <line num="80" count="3" type="stmt"/>
4529
+ <line num="78" count="3" type="stmt"/>
4442
4530
  <line num="81" count="3" type="stmt"/>
4443
4531
  <line num="82" count="3" type="stmt"/>
4444
- <line num="83" count="0" type="stmt"/>
4532
+ <line num="83" count="3" type="stmt"/>
4445
4533
  <line num="84" count="0" type="stmt"/>
4446
- <line num="86" count="3" type="stmt"/>
4534
+ <line num="85" count="0" type="stmt"/>
4447
4535
  <line num="87" count="3" type="stmt"/>
4448
- <line num="89" count="3" type="stmt"/>
4449
- <line num="90" count="3" type="cond" truecount="1" falsecount="1"/>
4450
- <line num="91" count="0" type="stmt"/>
4451
- <line num="93" count="3" type="stmt"/>
4536
+ <line num="88" count="3" type="stmt"/>
4537
+ <line num="90" count="3" type="stmt"/>
4538
+ <line num="91" count="3" type="cond" truecount="1" falsecount="1"/>
4539
+ <line num="92" count="0" type="stmt"/>
4452
4540
  <line num="94" count="3" type="stmt"/>
4453
- <line num="101" count="36" type="stmt"/>
4454
- <line num="102" count="1" type="stmt"/>
4541
+ <line num="95" count="3" type="stmt"/>
4542
+ <line num="102" count="36" type="stmt"/>
4455
4543
  <line num="103" count="1" type="stmt"/>
4456
- <line num="107" count="36" type="stmt"/>
4457
- <line num="108" count="4" type="stmt"/>
4544
+ <line num="104" count="1" type="stmt"/>
4545
+ <line num="108" count="36" type="stmt"/>
4458
4546
  <line num="109" count="4" type="stmt"/>
4459
- <line num="111" count="4" type="stmt"/>
4547
+ <line num="110" count="4" type="stmt"/>
4460
4548
  <line num="112" count="4" type="stmt"/>
4461
- <line num="113" count="0" type="cond" truecount="0" falsecount="2"/>
4462
- <line num="114" count="0" type="stmt"/>
4463
- <line num="119" count="4" type="cond" truecount="3" falsecount="1"/>
4464
- <line num="120" count="0" type="stmt"/>
4465
- <line num="124" count="36" type="stmt"/>
4466
- <line num="125" count="0" type="stmt"/>
4467
- <line num="134" count="36" type="stmt"/>
4468
- <line num="135" count="0" type="stmt"/>
4469
- <line num="137" count="0" type="stmt"/>
4549
+ <line num="113" count="4" type="stmt"/>
4550
+ <line num="114" count="0" type="cond" truecount="0" falsecount="2"/>
4551
+ <line num="115" count="0" type="stmt"/>
4552
+ <line num="120" count="4" type="cond" truecount="3" falsecount="1"/>
4553
+ <line num="121" count="0" type="stmt"/>
4554
+ <line num="125" count="36" type="stmt"/>
4555
+ <line num="126" count="0" type="stmt"/>
4556
+ <line num="135" count="36" type="stmt"/>
4557
+ <line num="136" count="0" type="stmt"/>
4470
4558
  <line num="138" count="0" type="stmt"/>
4471
- <line num="143" count="36" type="stmt"/>
4472
- <line num="144" count="0" type="stmt"/>
4559
+ <line num="139" count="0" type="stmt"/>
4560
+ <line num="144" count="36" type="stmt"/>
4473
4561
  <line num="145" count="0" type="stmt"/>
4474
4562
  <line num="146" count="0" type="stmt"/>
4475
- <line num="147" count="0" type="cond" truecount="0" falsecount="2"/>
4476
- <line num="149" count="0" type="stmt"/>
4563
+ <line num="147" count="0" type="stmt"/>
4564
+ <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
4565
+ <line num="150" count="0" type="stmt"/>
4477
4566
  </file>
4478
4567
  <file name="scriptRunner.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/scriptRunner.js">
4479
- <metrics statements="12" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
4568
+ <metrics statements="13" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
4480
4569
  <line num="1" count="34" type="stmt"/>
4481
4570
  <line num="2" count="34" type="stmt"/>
4482
- <line num="6" count="0" type="stmt"/>
4571
+ <line num="3" count="34" type="stmt"/>
4483
4572
  <line num="7" count="0" type="stmt"/>
4484
4573
  <line num="8" count="0" type="stmt"/>
4485
- <line num="9" count="0" type="stmt"/>
4486
- <line num="10" count="0" type="stmt"/>
4487
4574
  <line num="11" count="0" type="stmt"/>
4488
4575
  <line num="12" count="0" type="stmt"/>
4489
- <line num="16" count="0" type="stmt"/>
4490
- <line num="17" count="0" type="stmt"/>
4491
- <line num="21" count="34" type="stmt"/>
4576
+ <line num="13" count="0" type="stmt"/>
4577
+ <line num="14" count="0" type="stmt"/>
4578
+ <line num="15" count="0" type="stmt"/>
4579
+ <line num="19" count="0" type="stmt"/>
4580
+ <line num="20" count="0" type="stmt"/>
4581
+ <line num="24" count="34" type="stmt"/>
4492
4582
  </file>
4493
4583
  <file name="security.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/security.js">
4494
4584
  <metrics statements="28" coveredstatements="23" conditionals="15" coveredconditionals="8" methods="4" coveredmethods="4"/>
@@ -4597,9 +4687,9 @@
4597
4687
  </file>
4598
4688
  </package>
4599
4689
  <package name="utilities.queue">
4600
- <metrics statements="20" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="7" coveredmethods="6"/>
4690
+ <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="8" coveredmethods="6"/>
4601
4691
  <file name="inMemoryQueue.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/queue/inMemoryQueue.js">
4602
- <metrics statements="20" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="7" coveredmethods="6"/>
4692
+ <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="8" coveredmethods="6"/>
4603
4693
  <line num="1" count="33" type="stmt"/>
4604
4694
  <line num="13" count="8" type="stmt"/>
4605
4695
  <line num="33" count="33" type="stmt"/>
@@ -4619,7 +4709,8 @@
4619
4709
  <line num="74" count="8" type="stmt"/>
4620
4710
  <line num="83" count="0" type="stmt"/>
4621
4711
  <line num="90" count="185" type="stmt"/>
4622
- <line num="94" count="33" type="stmt"/>
4712
+ <line num="97" count="0" type="stmt"/>
4713
+ <line num="101" count="33" type="stmt"/>
4623
4714
  </file>
4624
4715
  </package>
4625
4716
  <package name="utilities.routing">