@budibase/server 1.3.13 → 1.3.15-alpha.1

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 (283) hide show
  1. package/__mocks__/mongodb.ts +1 -1
  2. package/builder/assets/{index.e50bda9f.css → index.ecdac070.css} +2 -2
  3. package/builder/assets/index.ed9ae6a1.js +995 -0
  4. package/builder/index.html +2 -4
  5. package/coverage/clover.xml +377 -313
  6. package/coverage/coverage-final.json +22 -22
  7. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/backup.js.html +8 -5
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +82 -13
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +20 -20
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/index.html +32 -32
  16. package/coverage/lcov-report/api/controllers/integration.js.html +6 -6
  17. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/screen.js.html +204 -12
  32. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  45. package/coverage/lcov-report/api/index.html +1 -1
  46. package/coverage/lcov-report/api/index.js.html +12 -12
  47. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/index.html +1 -1
  58. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  72. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  75. package/coverage/lcov-report/automations/actions.js.html +1 -1
  76. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  77. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  78. package/coverage/lcov-report/automations/index.html +24 -24
  79. package/coverage/lcov-report/automations/index.js.html +18 -9
  80. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/index.html +1 -1
  87. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggers.js.html +126 -24
  106. package/coverage/lcov-report/constants/index.html +1 -1
  107. package/coverage/lcov-report/constants/index.js.html +1 -1
  108. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  109. package/coverage/lcov-report/constants/screens.js.html +1 -1
  110. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  111. package/coverage/lcov-report/db/index.html +18 -18
  112. package/coverage/lcov-report/db/index.js.html +1 -1
  113. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  115. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  116. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  117. package/coverage/lcov-report/db/newid.js.html +2 -2
  118. package/coverage/lcov-report/db/utils.js.html +56 -20
  119. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  120. package/coverage/lcov-report/events/index.html +1 -1
  121. package/coverage/lcov-report/events/index.js.html +1 -1
  122. package/coverage/lcov-report/events/utils.js.html +1 -1
  123. package/coverage/lcov-report/index.html +48 -48
  124. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  125. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  126. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  127. package/coverage/lcov-report/middleware/builder.js.html +12 -12
  128. package/coverage/lcov-report/middleware/currentapp.js.html +33 -33
  129. package/coverage/lcov-report/middleware/index.html +1 -1
  130. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  131. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  132. package/coverage/lcov-report/middleware/resourceId.js.html +7 -7
  133. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  134. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  135. package/coverage/lcov-report/utilities/budibaseDir.js.html +3 -3
  136. package/coverage/lcov-report/utilities/centralPath.js.html +4 -4
  137. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  138. package/coverage/lcov-report/utilities/global.js.html +16 -16
  139. package/coverage/lcov-report/utilities/index.html +19 -19
  140. package/coverage/lcov-report/utilities/index.js.html +66 -42
  141. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  142. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  143. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  144. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  145. package/coverage/lcov-report/utilities/rowProcessor/index.html +5 -5
  146. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  147. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +4 -4
  148. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  149. package/coverage/lcov-report/utilities/security.js.html +2 -2
  150. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  151. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  152. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +6 -3
  153. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  154. package/coverage/lcov-report/utilities/users.js.html +1 -1
  155. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  156. package/coverage/lcov.info +692 -564
  157. package/dist/api/controllers/application.js +6 -9
  158. package/dist/api/controllers/backup.js +2 -1
  159. package/dist/api/controllers/component.js +18 -1
  160. package/dist/api/controllers/datasource.js +4 -4
  161. package/dist/api/controllers/deploy/index.js +17 -2
  162. package/dist/api/controllers/integration.js +4 -4
  163. package/dist/api/controllers/plugin/file.js +24 -0
  164. package/dist/api/controllers/plugin/github.js +69 -0
  165. package/dist/api/controllers/plugin/index.js +189 -0
  166. package/dist/api/controllers/plugin/npm.js +58 -0
  167. package/dist/api/controllers/plugin/uploaders.js +11 -0
  168. package/dist/api/controllers/plugin/url.js +24 -0
  169. package/dist/api/controllers/plugin/utils.js +26 -0
  170. package/dist/api/controllers/row/ExternalRequest.js +1 -1
  171. package/dist/api/controllers/screen.js +51 -2
  172. package/dist/api/controllers/static/index.js +1 -0
  173. package/dist/api/controllers/static/templates/BudibaseApp.svelte +10 -0
  174. package/dist/api/controllers/static/templates/preview.hbs +3 -1
  175. package/dist/api/routes/index.js +2 -0
  176. package/dist/api/routes/plugin.js +39 -0
  177. package/dist/app.js +9 -0
  178. package/dist/automations/index.js +10 -5
  179. package/dist/automations/triggers.js +39 -5
  180. package/dist/automations/utils.js +16 -7
  181. package/dist/db/utils.js +10 -1
  182. package/dist/environment.js +1 -0
  183. package/dist/integrations/airtable.js +126 -129
  184. package/dist/integrations/arangodb.js +86 -89
  185. package/dist/integrations/base/query.js +2 -2
  186. package/dist/integrations/couchdb.js +80 -83
  187. package/dist/integrations/dynamodb.js +161 -164
  188. package/dist/integrations/elasticsearch.js +135 -138
  189. package/dist/integrations/firebase.js +154 -157
  190. package/dist/integrations/googlesheets.js +323 -327
  191. package/dist/integrations/index.js +93 -51
  192. package/dist/integrations/microsoftSqlServer.js +240 -243
  193. package/dist/integrations/mongodb.js +239 -242
  194. package/dist/integrations/mysql.js +215 -219
  195. package/dist/integrations/oracle.js +318 -322
  196. package/dist/integrations/postgres.js +262 -265
  197. package/dist/integrations/redis.js +134 -139
  198. package/dist/integrations/rest.js +293 -281
  199. package/dist/integrations/s3.js +61 -64
  200. package/dist/integrations/snowflake.js +83 -86
  201. package/dist/package.json +8 -6
  202. package/dist/threads/automation.js +6 -0
  203. package/dist/threads/query.js +2 -2
  204. package/dist/tsconfig.build.tsbuildinfo +1 -1
  205. package/dist/utilities/fileSystem/index.js +116 -7
  206. package/dist/utilities/index.js +8 -0
  207. package/dist/utilities/rowProcessor/utils.js +1 -1
  208. package/dist/utilities/usageQuota/rows.js +2 -1
  209. package/dist/watch.js +77 -0
  210. package/package.json +9 -7
  211. package/scripts/dev/manage.js +1 -0
  212. package/src/api/controllers/application.ts +2 -6
  213. package/src/api/controllers/backup.js +2 -1
  214. package/src/api/controllers/component.js +25 -2
  215. package/src/api/controllers/datasource.js +4 -4
  216. package/src/api/controllers/deploy/index.ts +17 -4
  217. package/src/api/controllers/integration.js +4 -4
  218. package/src/api/controllers/plugin/file.ts +15 -0
  219. package/src/api/controllers/plugin/github.ts +75 -0
  220. package/src/api/controllers/plugin/index.ts +202 -0
  221. package/src/api/controllers/plugin/npm.ts +56 -0
  222. package/src/api/controllers/plugin/uploaders.ts +4 -0
  223. package/src/api/controllers/plugin/url.ts +12 -0
  224. package/src/api/controllers/plugin/utils.ts +19 -0
  225. package/src/api/controllers/row/ExternalRequest.ts +1 -1
  226. package/src/api/controllers/screen.js +65 -1
  227. package/src/api/controllers/static/index.ts +1 -0
  228. package/src/api/controllers/static/templates/BudibaseApp.svelte +10 -0
  229. package/src/api/controllers/static/templates/preview.hbs +3 -1
  230. package/src/api/routes/index.ts +2 -0
  231. package/src/api/routes/plugin.ts +14 -0
  232. package/src/api/routes/tests/query.spec.js +11 -28
  233. package/src/app.ts +12 -0
  234. package/src/automations/index.js +6 -3
  235. package/src/automations/triggers.js +44 -10
  236. package/src/automations/utils.ts +21 -9
  237. package/src/db/utils.js +12 -0
  238. package/src/definitions/datasource.ts +1 -0
  239. package/src/environment.js +1 -0
  240. package/src/integrations/airtable.ts +116 -118
  241. package/src/integrations/arangodb.ts +87 -89
  242. package/src/integrations/base/query.ts +2 -2
  243. package/src/integrations/couchdb.ts +83 -89
  244. package/src/integrations/dynamodb.ts +173 -175
  245. package/src/integrations/elasticsearch.ts +120 -122
  246. package/src/integrations/firebase.ts +157 -159
  247. package/src/integrations/googlesheets.ts +328 -338
  248. package/src/integrations/index.ts +59 -21
  249. package/src/integrations/microsoftSqlServer.ts +249 -251
  250. package/src/integrations/mongodb.ts +261 -258
  251. package/src/integrations/mysql.ts +229 -234
  252. package/src/integrations/oracle.ts +373 -380
  253. package/src/integrations/postgres.ts +264 -268
  254. package/src/integrations/redis.ts +128 -132
  255. package/src/integrations/rest.ts +325 -317
  256. package/src/integrations/s3.ts +68 -71
  257. package/src/integrations/snowflake.ts +80 -82
  258. package/src/integrations/tests/{airtable.spec.js → airtable.spec.ts} +21 -18
  259. package/src/integrations/tests/{arangodb.spec.js → arangodb.spec.ts} +12 -9
  260. package/src/integrations/tests/{couchdb.spec.js → couchdb.spec.ts} +33 -27
  261. package/src/integrations/tests/{dynamodb.spec.js → dynamodb.spec.ts} +45 -41
  262. package/src/integrations/tests/{elasticsearch.spec.js → elasticsearch.spec.ts} +22 -21
  263. package/src/integrations/tests/{firebase.spec.js → firebase.spec.ts} +33 -28
  264. package/src/integrations/tests/{microsoftSqlServer.spec.js → microsoftSqlServer.spec.ts} +12 -11
  265. package/src/integrations/tests/{mongo.spec.js → mongo.spec.ts} +46 -35
  266. package/src/integrations/tests/{mysql.spec.js → mysql.spec.ts} +17 -15
  267. package/src/integrations/tests/{oracle.spec.js → oracle.spec.ts} +19 -17
  268. package/src/integrations/tests/{postgres.spec.js → postgres.spec.ts} +19 -17
  269. package/src/integrations/tests/{redis.spec.js → redis.spec.ts} +27 -18
  270. package/src/integrations/tests/{rest.spec.js → rest.spec.ts} +57 -14
  271. package/src/integrations/tests/{s3.spec.js → s3.spec.ts} +10 -8
  272. package/src/integrations/tests/{sql.spec.js → sql.spec.ts} +228 -177
  273. package/src/module.d.ts +2 -0
  274. package/src/threads/automation.ts +6 -0
  275. package/src/threads/query.ts +2 -2
  276. package/src/utilities/fileSystem/index.js +135 -6
  277. package/src/utilities/index.js +8 -0
  278. package/src/utilities/rowProcessor/utils.js +1 -1
  279. package/src/utilities/usageQuota/rows.js +2 -1
  280. package/src/watch.ts +38 -0
  281. package/builder/assets/index.fb22f106.js +0 -875
  282. package/builder/assets/vendor.5e1fe644.css +0 -1
  283. package/builder/assets/vendor.67dbd8fa.js +0 -248
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1662971467929" clover="3.2.0">
3
- <project timestamp="1662971467929" name="All files">
4
- <metrics statements="4140" coveredstatements="3035" conditionals="1744" coveredconditionals="963" methods="611" coveredmethods="432" elements="6495" coveredelements="4430" complexity="0" loc="4140" ncloc="4140" packages="22" files="126" classes="126"/>
2
+ <coverage generated="1663009724680" clover="3.2.0">
3
+ <project timestamp="1663009724680" name="All files">
4
+ <metrics statements="4204" coveredstatements="3073" conditionals="1778" coveredconditionals="975" methods="626" coveredmethods="439" elements="6608" coveredelements="4487" complexity="0" loc="4204" ncloc="4204" packages="22" files="126" classes="126"/>
5
5
  <package name="api">
6
6
  <metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -21,20 +21,20 @@
21
21
  <line num="19" count="28" type="stmt"/>
22
22
  <line num="20" count="28" type="stmt"/>
23
23
  <line num="22" count="28" type="stmt"/>
24
- <line num="36" count="239" type="stmt"/>
25
- <line num="40" count="239" type="stmt"/>
24
+ <line num="36" count="237" type="stmt"/>
25
+ <line num="40" count="237" type="stmt"/>
26
26
  <line num="62" count="28" type="stmt"/>
27
- <line num="63" count="237" type="stmt"/>
28
- <line num="64" count="237" type="stmt"/>
29
- <line num="66" count="39" type="cond" truecount="1" falsecount="2"/>
30
- <line num="67" count="39" type="stmt"/>
31
- <line num="68" count="39" type="stmt"/>
32
- <line num="74" count="39" type="stmt"/>
33
- <line num="76" count="39" type="cond" truecount="1" falsecount="1"/>
27
+ <line num="63" count="235" type="stmt"/>
28
+ <line num="64" count="235" type="stmt"/>
29
+ <line num="66" count="37" type="cond" truecount="1" falsecount="2"/>
30
+ <line num="67" count="37" type="stmt"/>
31
+ <line num="68" count="37" type="stmt"/>
32
+ <line num="74" count="37" type="stmt"/>
33
+ <line num="76" count="37" type="cond" truecount="1" falsecount="1"/>
34
34
  <line num="77" count="0" type="stmt"/>
35
35
  <line num="83" count="28" type="stmt"/>
36
- <line num="84" count="728" type="stmt"/>
37
- <line num="85" count="728" type="stmt"/>
36
+ <line num="84" count="756" type="stmt"/>
37
+ <line num="85" count="756" type="stmt"/>
38
38
  <line num="88" count="28" type="stmt"/>
39
39
  <line num="89" count="28" type="stmt"/>
40
40
  <line num="92" count="28" type="stmt"/>
@@ -44,7 +44,7 @@
44
44
  </file>
45
45
  </package>
46
46
  <package name="api.controllers">
47
- <metrics statements="966" coveredstatements="698" conditionals="286" coveredconditionals="135" methods="139" coveredmethods="94"/>
47
+ <metrics statements="1005" coveredstatements="717" conditionals="308" coveredconditionals="143" methods="148" coveredmethods="96"/>
48
48
  <file name="apikeys.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/apikeys.js">
49
49
  <metrics statements="24" coveredstatements="24" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="4"/>
50
50
  <line num="1" count="28" type="stmt"/>
@@ -238,21 +238,22 @@
238
238
  <line num="284" count="2" type="stmt"/>
239
239
  </file>
240
240
  <file name="backup.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/backup.js">
241
- <metrics statements="14" coveredstatements="14" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
241
+ <metrics statements="15" coveredstatements="15" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
242
242
  <line num="1" count="28" type="stmt"/>
243
243
  <line num="2" count="28" type="stmt"/>
244
244
  <line num="3" count="28" type="stmt"/>
245
- <line num="5" count="28" type="stmt"/>
246
- <line num="6" count="1" type="stmt"/>
245
+ <line num="4" count="28" type="stmt"/>
246
+ <line num="6" count="28" type="stmt"/>
247
247
  <line num="7" count="1" type="stmt"/>
248
248
  <line num="8" count="1" type="stmt"/>
249
249
  <line num="9" count="1" type="stmt"/>
250
250
  <line num="10" count="1" type="stmt"/>
251
251
  <line num="11" count="1" type="stmt"/>
252
- <line num="13" count="1" type="stmt"/>
252
+ <line num="12" count="1" type="stmt"/>
253
253
  <line num="14" count="1" type="stmt"/>
254
254
  <line num="15" count="1" type="stmt"/>
255
255
  <line num="16" count="1" type="stmt"/>
256
+ <line num="17" count="1" type="stmt"/>
256
257
  </file>
257
258
  <file name="cloud.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/cloud.js">
258
259
  <metrics statements="54" coveredstatements="10" conditionals="23" coveredconditionals="0" methods="8" coveredmethods="0"/>
@@ -312,26 +313,36 @@
312
313
  <line num="110" count="0" type="stmt"/>
313
314
  </file>
314
315
  <file name="component.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/component.js">
315
- <metrics statements="19" coveredstatements="18" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
316
+ <metrics statements="29" coveredstatements="24" conditionals="4" coveredconditionals="3" methods="5" coveredmethods="2"/>
316
317
  <line num="1" count="28" type="stmt"/>
317
318
  <line num="2" count="28" type="stmt"/>
318
319
  <line num="3" count="28" type="stmt"/>
320
+ <line num="4" count="28" type="stmt"/>
319
321
  <line num="5" count="28" type="stmt"/>
320
- <line num="6" count="1" type="stmt"/>
321
- <line num="7" count="1" type="stmt"/>
322
+ <line num="7" count="28" type="stmt"/>
322
323
  <line num="8" count="1" type="stmt"/>
324
+ <line num="9" count="1" type="stmt"/>
323
325
  <line num="10" count="1" type="stmt"/>
324
326
  <line num="12" count="1" type="stmt"/>
325
327
  <line num="14" count="1" type="stmt"/>
326
- <line num="20" count="1" type="stmt"/>
328
+ <line num="15" count="1" type="stmt"/>
327
329
  <line num="21" count="1" type="stmt"/>
328
330
  <line num="22" count="1" type="stmt"/>
329
- <line num="23" count="52" type="cond" truecount="2" falsecount="0"/>
330
- <line num="24" count="1" type="stmt"/>
331
- <line num="26" count="51" type="stmt"/>
331
+ <line num="23" count="1" type="stmt"/>
332
+ <line num="24" count="52" type="cond" truecount="2" falsecount="0"/>
333
+ <line num="25" count="1" type="stmt"/>
332
334
  <line num="27" count="51" type="stmt"/>
333
- <line num="34" count="1" type="stmt"/>
334
- <line num="36" count="0" type="stmt"/>
335
+ <line num="28" count="51" type="stmt"/>
336
+ <line num="37" count="1" type="cond" truecount="1" falsecount="1"/>
337
+ <line num="39" count="1" type="stmt"/>
338
+ <line num="40" count="1" type="stmt"/>
339
+ <line num="45" count="1" type="stmt"/>
340
+ <line num="46" count="0" type="stmt"/>
341
+ <line num="47" count="0" type="stmt"/>
342
+ <line num="49" count="0" type="stmt"/>
343
+ <line num="50" count="0" type="stmt"/>
344
+ <line num="57" count="1" type="stmt"/>
345
+ <line num="59" count="0" type="stmt"/>
335
346
  </file>
336
347
  <file name="datasource.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/datasource.js">
337
348
  <metrics statements="134" coveredstatements="82" conditionals="53" coveredconditionals="20" methods="19" coveredmethods="11"/>
@@ -398,26 +409,26 @@
398
409
  <line num="124" count="6" type="stmt"/>
399
410
  <line num="125" count="6" type="stmt"/>
400
411
  <line num="128" count="45" type="stmt"/>
401
- <line num="129" count="66" type="stmt"/>
402
- <line num="130" count="66" type="stmt"/>
403
- <line num="131" count="66" type="stmt"/>
404
- <line num="133" count="66" type="stmt"/>
405
- <line num="139" count="66" type="stmt"/>
406
- <line num="140" count="66" type="cond" truecount="1" falsecount="1"/>
412
+ <line num="129" count="64" type="stmt"/>
413
+ <line num="130" count="64" type="stmt"/>
414
+ <line num="131" count="64" type="stmt"/>
415
+ <line num="133" count="64" type="stmt"/>
416
+ <line num="139" count="64" type="stmt"/>
417
+ <line num="140" count="64" type="cond" truecount="1" falsecount="1"/>
407
418
  <line num="141" count="0" type="stmt"/>
408
419
  <line num="142" count="0" type="stmt"/>
409
420
  <line num="143" count="0" type="stmt"/>
410
- <line num="146" count="66" type="stmt"/>
411
- <line num="147" count="66" type="stmt"/>
412
- <line num="148" count="66" type="stmt"/>
413
- <line num="151" count="66" type="cond" truecount="1" falsecount="1"/>
414
- <line num="152" count="66" type="stmt"/>
415
- <line num="153" count="66" type="cond" truecount="3" falsecount="1"/>
421
+ <line num="146" count="64" type="stmt"/>
422
+ <line num="147" count="64" type="stmt"/>
423
+ <line num="148" count="64" type="stmt"/>
424
+ <line num="151" count="64" type="cond" truecount="1" falsecount="1"/>
425
+ <line num="152" count="64" type="stmt"/>
426
+ <line num="153" count="63" type="cond" truecount="3" falsecount="1"/>
416
427
  <line num="154" count="0" type="stmt"/>
417
- <line num="158" count="66" type="stmt"/>
418
- <line num="159" count="66" type="cond" truecount="1" falsecount="1"/>
428
+ <line num="158" count="63" type="stmt"/>
429
+ <line num="159" count="63" type="cond" truecount="1" falsecount="1"/>
419
430
  <line num="160" count="0" type="stmt"/>
420
- <line num="162" count="66" type="stmt"/>
431
+ <line num="162" count="63" type="stmt"/>
421
432
  <line num="165" count="45" type="stmt"/>
422
433
  <line num="166" count="1" type="stmt"/>
423
434
  <line num="167" count="1" type="stmt"/>
@@ -549,14 +560,14 @@
549
560
  <line num="2" count="28" type="stmt"/>
550
561
  <line num="3" count="28" type="stmt"/>
551
562
  <line num="4" count="28" type="stmt"/>
552
- <line num="5" count="28" type="stmt"/>
553
- <line num="7" count="28" type="stmt"/>
563
+ <line num="6" count="28" type="stmt"/>
564
+ <line num="7" count="1" type="stmt"/>
554
565
  <line num="8" count="1" type="stmt"/>
555
- <line num="9" count="1" type="stmt"/>
556
- <line num="12" count="1" type="cond" truecount="1" falsecount="1"/>
557
- <line num="13" count="0" type="stmt"/>
558
- <line num="16" count="1" type="stmt"/>
559
- <line num="19" count="28" type="stmt"/>
566
+ <line num="11" count="1" type="cond" truecount="1" falsecount="1"/>
567
+ <line num="12" count="0" type="stmt"/>
568
+ <line num="15" count="1" type="stmt"/>
569
+ <line num="18" count="28" type="stmt"/>
570
+ <line num="19" count="1" type="stmt"/>
560
571
  <line num="20" count="1" type="stmt"/>
561
572
  <line num="21" count="1" type="stmt"/>
562
573
  </file>
@@ -827,35 +838,63 @@
827
838
  <line num="91" count="2" type="stmt"/>
828
839
  </file>
829
840
  <file name="screen.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/screen.js">
830
- <metrics statements="28" coveredstatements="28" conditionals="4" coveredconditionals="4" methods="4" coveredmethods="4"/>
831
- <line num="1" count="44" type="stmt"/>
832
- <line num="2" count="44" type="stmt"/>
833
- <line num="3" count="44" type="stmt"/>
834
- <line num="4" count="44" type="stmt"/>
841
+ <metrics statements="56" coveredstatements="40" conditionals="24" coveredconditionals="11" methods="10" coveredmethods="6"/>
835
842
  <line num="6" count="44" type="stmt"/>
836
- <line num="7" count="1" type="stmt"/>
837
- <line num="9" count="1" type="stmt"/>
838
- <line num="15" count="1" type="stmt"/>
839
- <line num="17" count="1" type="stmt"/>
840
- <line num="23" count="44" type="stmt"/>
841
- <line num="24" count="24" type="stmt"/>
842
- <line num="25" count="24" type="stmt"/>
843
- <line num="28" count="24" type="cond" truecount="2" falsecount="0"/>
844
- <line num="29" count="23" type="stmt"/>
845
- <line num="30" count="23" type="stmt"/>
846
- <line num="33" count="24" type="stmt"/>
843
+ <line num="7" count="44" type="stmt"/>
844
+ <line num="8" count="44" type="stmt"/>
845
+ <line num="9" count="44" type="stmt"/>
846
+ <line num="10" count="44" type="stmt"/>
847
+ <line num="11" count="44" type="stmt"/>
848
+ <line num="13" count="44" type="stmt"/>
849
+ <line num="14" count="1" type="stmt"/>
850
+ <line num="16" count="1" type="stmt"/>
851
+ <line num="22" count="1" type="stmt"/>
852
+ <line num="24" count="1" type="stmt"/>
853
+ <line num="30" count="44" type="stmt"/>
854
+ <line num="31" count="24" type="stmt"/>
855
+ <line num="32" count="24" type="stmt"/>
847
856
  <line num="35" count="24" type="cond" truecount="2" falsecount="0"/>
848
857
  <line num="36" count="23" type="stmt"/>
849
- <line num="38" count="24" type="stmt"/>
850
- <line num="39" count="24" type="stmt"/>
851
- <line num="46" count="44" type="stmt"/>
852
- <line num="47" count="1" type="stmt"/>
853
- <line num="48" count="1" type="stmt"/>
854
- <line num="49" count="1" type="stmt"/>
855
- <line num="51" count="1" type="stmt"/>
856
- <line num="53" count="1" type="stmt"/>
857
- <line num="54" count="1" type="stmt"/>
858
- <line num="57" count="1" type="stmt"/>
858
+ <line num="37" count="23" type="stmt"/>
859
+ <line num="40" count="24" type="stmt"/>
860
+ <line num="43" count="24" type="stmt"/>
861
+ <line num="44" count="24" type="stmt"/>
862
+ <line num="45" count="24" type="stmt"/>
863
+ <line num="46" count="24" type="cond" truecount="1" falsecount="1"/>
864
+ <line num="47" count="0" type="stmt"/>
865
+ <line num="48" count="0" type="stmt"/>
866
+ <line num="53" count="0" type="stmt"/>
867
+ <line num="54" count="0" type="stmt"/>
868
+ <line num="56" count="0" type="stmt"/>
869
+ <line num="63" count="0" type="stmt"/>
870
+ <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
871
+ <line num="66" count="0" type="stmt"/>
872
+ <line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
873
+ <line num="68" count="0" type="stmt"/>
874
+ <line num="69" count="0" type="stmt"/>
875
+ <line num="78" count="0" type="cond" truecount="0" falsecount="2"/>
876
+ <line num="79" count="0" type="stmt"/>
877
+ <line num="83" count="24" type="cond" truecount="2" falsecount="0"/>
878
+ <line num="84" count="23" type="stmt"/>
879
+ <line num="86" count="24" type="stmt"/>
880
+ <line num="87" count="24" type="stmt"/>
881
+ <line num="95" count="44" type="stmt"/>
882
+ <line num="96" count="1" type="stmt"/>
883
+ <line num="97" count="1" type="stmt"/>
884
+ <line num="98" count="1" type="stmt"/>
885
+ <line num="100" count="1" type="stmt"/>
886
+ <line num="102" count="1" type="stmt"/>
887
+ <line num="103" count="1" type="stmt"/>
888
+ <line num="106" count="1" type="stmt"/>
889
+ <line num="109" count="44" type="stmt"/>
890
+ <line num="110" count="48" type="cond" truecount="1" falsecount="1"/>
891
+ <line num="111" count="0" type="stmt"/>
892
+ <line num="113" count="48" type="cond" truecount="1" falsecount="1"/>
893
+ <line num="114" count="0" type="cond" truecount="0" falsecount="2"/>
894
+ <line num="115" count="0" type="stmt"/>
895
+ <line num="118" count="48" type="cond" truecount="4" falsecount="0"/>
896
+ <line num="119" count="24" type="stmt"/>
897
+ <line num="121" count="24" type="stmt"/>
859
898
  </file>
860
899
  <file name="script.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/script.js">
861
900
  <metrics statements="7" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
@@ -2628,7 +2667,7 @@
2628
2667
  </file>
2629
2668
  </package>
2630
2669
  <package name="automations">
2631
- <metrics statements="172" coveredstatements="130" conditionals="70" coveredconditionals="47" methods="21" coveredmethods="13"/>
2670
+ <metrics statements="189" coveredstatements="143" conditionals="76" coveredconditionals="50" methods="24" coveredmethods="16"/>
2632
2671
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2633
2672
  <metrics statements="24" coveredstatements="24" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2634
2673
  <line num="1" count="45" type="stmt"/>
@@ -2751,7 +2790,7 @@
2751
2790
  <line num="59" count="45" type="stmt"/>
2752
2791
  </file>
2753
2792
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/index.js">
2754
- <metrics statements="14" coveredstatements="12" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="2"/>
2793
+ <metrics statements="16" coveredstatements="14" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="2"/>
2755
2794
  <line num="1" count="44" type="stmt"/>
2756
2795
  <line num="2" count="44" type="stmt"/>
2757
2796
  <line num="3" count="44" type="stmt"/>
@@ -2759,16 +2798,18 @@
2759
2798
  <line num="9" count="44" type="stmt"/>
2760
2799
  <line num="11" count="32" type="stmt"/>
2761
2800
  <line num="12" count="8" type="stmt"/>
2762
- <line num="16" count="44" type="stmt"/>
2763
- <line num="17" count="0" type="stmt"/>
2764
- <line num="20" count="44" type="stmt"/>
2765
- <line num="21" count="0" type="stmt"/>
2766
- <line num="24" count="44" type="stmt"/>
2767
- <line num="25" count="44" type="stmt"/>
2768
- <line num="26" count="44" type="stmt"/>
2801
+ <line num="15" count="32" type="stmt"/>
2802
+ <line num="16" count="32" type="stmt"/>
2803
+ <line num="19" count="44" type="stmt"/>
2804
+ <line num="20" count="0" type="stmt"/>
2805
+ <line num="23" count="44" type="stmt"/>
2806
+ <line num="24" count="0" type="stmt"/>
2807
+ <line num="27" count="44" type="stmt"/>
2808
+ <line num="28" count="44" type="stmt"/>
2809
+ <line num="29" count="44" type="stmt"/>
2769
2810
  </file>
2770
2811
  <file name="triggers.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggers.js">
2771
- <metrics statements="46" coveredstatements="44" conditionals="27" coveredconditionals="22" methods="8" coveredmethods="8"/>
2812
+ <metrics statements="61" coveredstatements="55" conditionals="33" coveredconditionals="25" methods="11" coveredmethods="11"/>
2772
2813
  <line num="1" count="45" type="stmt"/>
2773
2814
  <line num="2" count="45" type="stmt"/>
2774
2815
  <line num="3" count="45" type="stmt"/>
@@ -2779,42 +2820,57 @@
2779
2820
  <line num="9" count="45" type="stmt"/>
2780
2821
  <line num="10" count="45" type="stmt"/>
2781
2822
  <line num="11" count="45" type="stmt"/>
2782
- <line num="13" count="45" type="stmt"/>
2823
+ <line num="12" count="45" type="stmt"/>
2783
2824
  <line num="14" count="45" type="stmt"/>
2784
- <line num="20" count="17" type="cond" truecount="1" falsecount="1"/>
2785
- <line num="21" count="0" type="stmt"/>
2786
- <line num="24" count="17" type="stmt"/>
2787
- <line num="25" count="17" type="stmt"/>
2788
- <line num="26" count="17" type="stmt"/>
2789
- <line num="31" count="17" type="stmt"/>
2790
- <line num="32" count="4" type="stmt"/>
2791
- <line num="34" count="4" type="stmt"/>
2792
- <line num="35" count="4" type="cond" truecount="2" falsecount="0"/>
2793
- <line num="38" count="17" type="stmt"/>
2794
- <line num="39" count="4" type="stmt"/>
2795
- <line num="40" count="4" type="cond" truecount="1" falsecount="1"/>
2825
+ <line num="15" count="45" type="stmt"/>
2826
+ <line num="21" count="23" type="stmt"/>
2827
+ <line num="22" count="23" type="stmt"/>
2828
+ <line num="25" count="23" type="stmt"/>
2829
+ <line num="29" count="17" type="cond" truecount="1" falsecount="1"/>
2830
+ <line num="30" count="0" type="stmt"/>
2831
+ <line num="33" count="17" type="stmt"/>
2832
+ <line num="34" count="17" type="stmt"/>
2833
+ <line num="37" count="17" type="stmt"/>
2834
+ <line num="38" count="4" type="stmt"/>
2835
+ <line num="39" count="4" type="cond" truecount="2" falsecount="0"/>
2836
+ <line num="42" count="17" type="stmt"/>
2837
+ <line num="43" count="4" type="stmt"/>
2796
2838
  <line num="44" count="4" type="cond" truecount="1" falsecount="1"/>
2797
- <line num="49" count="0" type="stmt"/>
2798
- <line num="51" count="4" type="cond" truecount="1" falsecount="1"/>
2799
- <line num="55" count="4" type="stmt"/>
2800
- <line num="61" count="45" type="stmt"/>
2801
- <line num="66" count="7" type="stmt"/>
2802
- <line num="69" count="45" type="stmt"/>
2803
- <line num="74" count="4" type="stmt"/>
2804
- <line num="77" count="45" type="stmt"/>
2805
- <line num="82" count="6" type="stmt"/>
2806
- <line num="85" count="45" type="stmt"/>
2807
- <line num="90" count="6" type="cond" truecount="2" falsecount="0"/>
2808
- <line num="98" count="1" type="stmt"/>
2809
- <line num="99" count="1" type="stmt"/>
2810
- <line num="100" count="1" type="cond" truecount="1" falsecount="1"/>
2811
- <line num="101" count="1" type="stmt"/>
2839
+ <line num="48" count="4" type="cond" truecount="1" falsecount="1"/>
2840
+ <line num="53" count="0" type="stmt"/>
2841
+ <line num="55" count="4" type="cond" truecount="1" falsecount="1"/>
2842
+ <line num="59" count="4" type="stmt"/>
2843
+ <line num="65" count="45" type="stmt"/>
2844
+ <line num="70" count="7" type="stmt"/>
2845
+ <line num="73" count="45" type="stmt"/>
2846
+ <line num="78" count="4" type="stmt"/>
2847
+ <line num="81" count="45" type="stmt"/>
2848
+ <line num="86" count="6" type="stmt"/>
2849
+ <line num="89" count="45" type="stmt"/>
2850
+ <line num="94" count="6" type="cond" truecount="2" falsecount="0"/>
2851
+ <line num="102" count="1" type="stmt"/>
2812
2852
  <line num="103" count="1" type="stmt"/>
2813
- <line num="105" count="6" type="stmt"/>
2814
- <line num="106" count="6" type="cond" truecount="2" falsecount="0"/>
2815
- <line num="107" count="2" type="stmt"/>
2816
- <line num="109" count="4" type="stmt"/>
2817
- <line num="113" count="45" type="stmt"/>
2853
+ <line num="104" count="1" type="cond" truecount="1" falsecount="1"/>
2854
+ <line num="105" count="1" type="stmt"/>
2855
+ <line num="107" count="1" type="stmt"/>
2856
+ <line num="109" count="6" type="stmt"/>
2857
+ <line num="110" count="6" type="cond" truecount="2" falsecount="0"/>
2858
+ <line num="111" count="2" type="stmt"/>
2859
+ <line num="113" count="4" type="stmt"/>
2860
+ <line num="117" count="45" type="stmt"/>
2861
+ <line num="120" count="32" type="cond" truecount="3" falsecount="1"/>
2862
+ <line num="121" count="0" type="stmt"/>
2863
+ <line num="125" count="32" type="stmt"/>
2864
+ <line num="126" count="32" type="stmt"/>
2865
+ <line num="127" count="6" type="stmt"/>
2866
+ <line num="128" count="6" type="stmt"/>
2867
+ <line num="129" count="6" type="stmt"/>
2868
+ <line num="130" count="6" type="stmt"/>
2869
+ <line num="131" count="0" type="cond" truecount="0" falsecount="2"/>
2870
+ <line num="132" count="0" type="stmt"/>
2871
+ <line num="139" count="0" type="stmt"/>
2872
+ <line num="142" count="6" type="stmt"/>
2873
+ <line num="147" count="45" type="stmt"/>
2818
2874
  </file>
2819
2875
  </package>
2820
2876
  <package name="automations.steps">
@@ -3192,7 +3248,7 @@
3192
3248
  </file>
3193
3249
  </package>
3194
3250
  <package name="db">
3195
- <metrics statements="143" coveredstatements="114" conditionals="59" coveredconditionals="19" methods="37" coveredmethods="27"/>
3251
+ <metrics statements="147" coveredstatements="117" conditionals="61" coveredconditionals="19" methods="39" coveredmethods="28"/>
3196
3252
  <file name="inMemoryView.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/inMemoryView.js">
3197
3253
  <metrics statements="23" coveredstatements="4" conditionals="8" coveredconditionals="0" methods="4" coveredmethods="0"/>
3198
3254
  <line num="1" count="45" type="stmt"/>
@@ -3234,20 +3290,19 @@
3234
3290
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3235
3291
  <line num="1" count="59" type="stmt"/>
3236
3292
  <line num="3" count="59" type="stmt"/>
3237
- <line num="4" count="975" type="stmt"/>
3293
+ <line num="4" count="968" type="stmt"/>
3238
3294
  </file>
3239
3295
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3240
- <metrics statements="109" coveredstatements="99" conditionals="49" coveredconditionals="18" methods="31" coveredmethods="25"/>
3296
+ <metrics statements="113" coveredstatements="102" conditionals="51" coveredconditionals="18" methods="33" coveredmethods="26"/>
3241
3297
  <line num="1" count="59" type="stmt"/>
3242
3298
  <line num="16" count="59" type="stmt"/>
3243
3299
  <line num="18" count="59" type="stmt"/>
3244
3300
  <line num="20" count="59" type="stmt"/>
3245
3301
  <line num="26" count="59" type="stmt"/>
3246
- <line num="47" count="59" type="stmt"/>
3247
- <line num="51" count="59" type="stmt"/>
3248
- <line num="55" count="59" type="stmt"/>
3249
- <line num="57" count="59" type="stmt"/>
3250
- <line num="65" count="59" type="stmt"/>
3302
+ <line num="48" count="59" type="stmt"/>
3303
+ <line num="52" count="59" type="stmt"/>
3304
+ <line num="56" count="59" type="stmt"/>
3305
+ <line num="58" count="59" type="stmt"/>
3251
3306
  <line num="66" count="59" type="stmt"/>
3252
3307
  <line num="67" count="59" type="stmt"/>
3253
3308
  <line num="68" count="59" type="stmt"/>
@@ -3264,89 +3319,94 @@
3264
3319
  <line num="79" count="59" type="stmt"/>
3265
3320
  <line num="80" count="59" type="stmt"/>
3266
3321
  <line num="81" count="59" type="stmt"/>
3267
- <line num="83" count="59" type="stmt"/>
3322
+ <line num="82" count="59" type="stmt"/>
3268
3323
  <line num="84" count="59" type="stmt"/>
3269
- <line num="86" count="59" type="stmt"/>
3270
- <line num="101" count="875" type="cond" truecount="2" falsecount="0"/>
3271
- <line num="102" count="858" type="stmt"/>
3272
- <line num="104" count="875" type="stmt"/>
3273
- <line num="111" count="59" type="stmt"/>
3274
- <line num="116" count="59" type="cond" truecount="0" falsecount="2"/>
3275
- <line num="117" count="271" type="stmt"/>
3276
- <line num="124" count="59" type="stmt"/>
3277
- <line num="125" count="130" type="stmt"/>
3278
- <line num="136" count="59" type="cond" truecount="0" falsecount="3"/>
3279
- <line num="137" count="44" type="cond" truecount="2" falsecount="0"/>
3280
- <line num="138" count="30" type="stmt"/>
3281
- <line num="141" count="14" type="cond" truecount="1" falsecount="1"/>
3282
- <line num="143" count="14" type="stmt"/>
3283
- <line num="151" count="59" type="stmt"/>
3284
- <line num="152" count="0" type="stmt"/>
3285
- <line num="155" count="0" type="stmt"/>
3286
- <line num="164" count="59" type="cond" truecount="1" falsecount="0"/>
3287
- <line num="165" count="323" type="cond" truecount="2" falsecount="0"/>
3288
- <line num="166" count="323" type="stmt"/>
3289
- <line num="172" count="59" type="cond" truecount="0" falsecount="2"/>
3290
- <line num="173" count="3" type="stmt"/>
3291
- <line num="181" count="59" type="stmt"/>
3292
- <line num="182" count="244" type="stmt"/>
3293
- <line num="188" count="59" type="stmt"/>
3294
- <line num="189" count="3" type="stmt"/>
3295
- <line num="190" count="3" type="cond" truecount="4" falsecount="0"/>
3296
- <line num="191" count="1" type="stmt"/>
3297
- <line num="193" count="2" type="stmt"/>
3298
- <line num="199" count="59" type="cond" truecount="0" falsecount="2"/>
3299
- <line num="200" count="274" type="stmt"/>
3300
- <line num="207" count="59" type="stmt"/>
3301
- <line num="208" count="27" type="stmt"/>
3302
- <line num="222" count="59" type="stmt"/>
3303
- <line num="230" count="9" type="stmt"/>
3324
+ <line num="85" count="59" type="stmt"/>
3325
+ <line num="87" count="59" type="stmt"/>
3326
+ <line num="102" count="882" type="cond" truecount="2" falsecount="0"/>
3327
+ <line num="103" count="865" type="stmt"/>
3328
+ <line num="105" count="882" type="stmt"/>
3329
+ <line num="112" count="59" type="stmt"/>
3330
+ <line num="117" count="59" type="cond" truecount="0" falsecount="2"/>
3331
+ <line num="118" count="271" type="stmt"/>
3332
+ <line num="125" count="59" type="stmt"/>
3333
+ <line num="126" count="130" type="stmt"/>
3334
+ <line num="137" count="59" type="cond" truecount="0" falsecount="3"/>
3335
+ <line num="138" count="44" type="cond" truecount="2" falsecount="0"/>
3336
+ <line num="139" count="30" type="stmt"/>
3337
+ <line num="142" count="14" type="cond" truecount="1" falsecount="1"/>
3338
+ <line num="144" count="14" type="stmt"/>
3339
+ <line num="152" count="59" type="stmt"/>
3340
+ <line num="153" count="0" type="stmt"/>
3341
+ <line num="156" count="0" type="stmt"/>
3342
+ <line num="165" count="59" type="cond" truecount="1" falsecount="0"/>
3343
+ <line num="166" count="321" type="cond" truecount="2" falsecount="0"/>
3344
+ <line num="167" count="321" type="stmt"/>
3345
+ <line num="173" count="59" type="cond" truecount="0" falsecount="2"/>
3346
+ <line num="174" count="3" type="stmt"/>
3347
+ <line num="182" count="59" type="stmt"/>
3348
+ <line num="183" count="242" type="stmt"/>
3349
+ <line num="189" count="59" type="stmt"/>
3350
+ <line num="190" count="3" type="stmt"/>
3351
+ <line num="191" count="3" type="cond" truecount="4" falsecount="0"/>
3352
+ <line num="192" count="1" type="stmt"/>
3353
+ <line num="194" count="2" type="stmt"/>
3354
+ <line num="200" count="59" type="cond" truecount="0" falsecount="2"/>
3355
+ <line num="201" count="279" type="stmt"/>
3356
+ <line num="208" count="59" type="stmt"/>
3357
+ <line num="209" count="27" type="stmt"/>
3358
+ <line num="223" count="59" type="stmt"/>
3304
3359
  <line num="231" count="9" type="stmt"/>
3305
3360
  <line num="232" count="9" type="stmt"/>
3306
3361
  <line num="233" count="9" type="stmt"/>
3307
- <line num="239" count="59" type="cond" truecount="0" falsecount="1"/>
3308
- <line num="240" count="0" type="stmt"/>
3309
- <line num="247" count="59" type="stmt"/>
3310
- <line num="248" count="6" type="cond" truecount="2" falsecount="0"/>
3311
- <line num="254" count="59" type="cond" truecount="0" falsecount="2"/>
3312
- <line num="255" count="9" type="stmt"/>
3313
- <line num="262" count="59" type="stmt"/>
3314
- <line num="263" count="23" type="stmt"/>
3315
- <line num="269" count="59" type="cond" truecount="0" falsecount="2"/>
3316
- <line num="270" count="11" type="stmt"/>
3317
- <line num="277" count="59" type="stmt"/>
3318
- <line num="278" count="10" type="stmt"/>
3319
- <line num="284" count="59" type="cond" truecount="0" falsecount="2"/>
3320
- <line num="285" count="2" type="stmt"/>
3321
- <line num="292" count="59" type="cond" truecount="1" falsecount="1"/>
3322
- <line num="293" count="66" type="stmt"/>
3323
- <line num="301" count="59" type="cond" truecount="0" falsecount="2"/>
3324
- <line num="302" count="5" type="stmt"/>
3325
- <line num="309" count="59" type="stmt"/>
3326
- <line num="310" count="142" type="stmt"/>
3327
- <line num="319" count="59" type="stmt"/>
3328
- <line num="320" count="0" type="stmt"/>
3329
- <line num="326" count="59" type="cond" truecount="0" falsecount="1"/>
3330
- <line num="327" count="254" type="stmt"/>
3331
- <line num="333" count="59" type="cond" truecount="0" falsecount="2"/>
3332
- <line num="334" count="5" type="cond" truecount="2" falsecount="0"/>
3333
- <line num="335" count="4" type="stmt"/>
3334
- <line num="338" count="1" type="stmt"/>
3335
- <line num="349" count="59" type="stmt"/>
3336
- <line num="350" count="0" type="stmt"/>
3337
- <line num="353" count="59" type="stmt"/>
3338
- <line num="354" count="10" type="stmt"/>
3339
- <line num="357" count="59" type="cond" truecount="0" falsecount="2"/>
3340
- <line num="358" count="0" type="stmt"/>
3341
- <line num="359" count="0" type="cond" truecount="0" falsecount="2"/>
3342
- <line num="360" count="0" type="stmt"/>
3343
- <line num="362" count="0" type="stmt"/>
3344
- <line num="365" count="59" type="stmt"/>
3345
- <line num="366" count="1" type="stmt"/>
3346
- <line num="369" count="59" type="cond" truecount="0" falsecount="1"/>
3347
- <line num="370" count="0" type="stmt"/>
3348
- <line num="376" count="59" type="stmt"/>
3349
- <line num="377" count="60" type="stmt"/>
3362
+ <line num="234" count="9" type="stmt"/>
3363
+ <line num="240" count="59" type="cond" truecount="0" falsecount="1"/>
3364
+ <line num="241" count="0" type="stmt"/>
3365
+ <line num="248" count="59" type="stmt"/>
3366
+ <line num="249" count="6" type="cond" truecount="2" falsecount="0"/>
3367
+ <line num="255" count="59" type="cond" truecount="0" falsecount="2"/>
3368
+ <line num="256" count="9" type="stmt"/>
3369
+ <line num="263" count="59" type="stmt"/>
3370
+ <line num="264" count="23" type="stmt"/>
3371
+ <line num="270" count="59" type="cond" truecount="0" falsecount="2"/>
3372
+ <line num="271" count="11" type="stmt"/>
3373
+ <line num="278" count="59" type="stmt"/>
3374
+ <line num="279" count="10" type="stmt"/>
3375
+ <line num="285" count="59" type="cond" truecount="0" falsecount="2"/>
3376
+ <line num="286" count="2" type="stmt"/>
3377
+ <line num="293" count="59" type="cond" truecount="1" falsecount="1"/>
3378
+ <line num="294" count="64" type="stmt"/>
3379
+ <line num="302" count="59" type="cond" truecount="0" falsecount="2"/>
3380
+ <line num="303" count="5" type="stmt"/>
3381
+ <line num="310" count="59" type="stmt"/>
3382
+ <line num="311" count="139" type="stmt"/>
3383
+ <line num="320" count="59" type="stmt"/>
3384
+ <line num="321" count="0" type="stmt"/>
3385
+ <line num="327" count="59" type="cond" truecount="0" falsecount="1"/>
3386
+ <line num="328" count="253" type="stmt"/>
3387
+ <line num="334" count="59" type="cond" truecount="0" falsecount="2"/>
3388
+ <line num="335" count="5" type="cond" truecount="2" falsecount="0"/>
3389
+ <line num="336" count="4" type="stmt"/>
3390
+ <line num="339" count="1" type="stmt"/>
3391
+ <line num="350" count="59" type="stmt"/>
3392
+ <line num="351" count="0" type="stmt"/>
3393
+ <line num="354" count="59" type="stmt"/>
3394
+ <line num="355" count="10" type="stmt"/>
3395
+ <line num="358" count="59" type="cond" truecount="0" falsecount="2"/>
3396
+ <line num="359" count="0" type="stmt"/>
3397
+ <line num="360" count="0" type="cond" truecount="0" falsecount="2"/>
3398
+ <line num="361" count="0" type="stmt"/>
3399
+ <line num="363" count="0" type="stmt"/>
3400
+ <line num="366" count="59" type="stmt"/>
3401
+ <line num="367" count="1" type="stmt"/>
3402
+ <line num="370" count="59" type="cond" truecount="0" falsecount="1"/>
3403
+ <line num="371" count="0" type="stmt"/>
3404
+ <line num="374" count="59" type="stmt"/>
3405
+ <line num="375" count="0" type="stmt"/>
3406
+ <line num="381" count="59" type="stmt"/>
3407
+ <line num="382" count="60" type="stmt"/>
3408
+ <line num="391" count="59" type="cond" truecount="0" falsecount="2"/>
3409
+ <line num="392" count="3" type="stmt"/>
3350
3410
  </file>
3351
3411
  </package>
3352
3412
  <package name="db.linkedRows">
@@ -3759,19 +3819,19 @@
3759
3819
  <line num="59" count="1" type="stmt"/>
3760
3820
  <line num="61" count="1" type="stmt"/>
3761
3821
  <line num="65" count="29" type="stmt"/>
3762
- <line num="66" count="225" type="stmt"/>
3763
- <line num="68" count="225" type="cond" truecount="2" falsecount="0"/>
3822
+ <line num="66" count="223" type="stmt"/>
3823
+ <line num="68" count="223" type="cond" truecount="2" falsecount="0"/>
3764
3824
  <line num="69" count="5" type="stmt"/>
3765
- <line num="71" count="220" type="stmt"/>
3766
- <line num="72" count="220" type="stmt"/>
3767
- <line num="74" count="220" type="stmt"/>
3768
- <line num="75" count="220" type="cond" truecount="2" falsecount="0"/>
3769
- <line num="76" count="220" type="cond" truecount="1" falsecount="1"/>
3825
+ <line num="71" count="218" type="stmt"/>
3826
+ <line num="72" count="218" type="stmt"/>
3827
+ <line num="74" count="218" type="stmt"/>
3828
+ <line num="75" count="218" type="cond" truecount="2" falsecount="0"/>
3829
+ <line num="76" count="218" type="cond" truecount="1" falsecount="1"/>
3770
3830
  <line num="77" count="0" type="stmt"/>
3771
- <line num="80" count="220" type="cond" truecount="2" falsecount="0"/>
3772
- <line num="81" count="220" type="cond" truecount="2" falsecount="0"/>
3773
- <line num="83" count="220" type="cond" truecount="4" falsecount="0"/>
3774
- <line num="84" count="219" type="stmt"/>
3831
+ <line num="80" count="218" type="cond" truecount="2" falsecount="0"/>
3832
+ <line num="81" count="218" type="cond" truecount="2" falsecount="0"/>
3833
+ <line num="83" count="218" type="cond" truecount="4" falsecount="0"/>
3834
+ <line num="84" count="217" type="stmt"/>
3775
3835
  <line num="87" count="1" type="stmt"/>
3776
3836
  <line num="89" count="1" type="stmt"/>
3777
3837
  </file>
@@ -3789,59 +3849,59 @@
3789
3849
  <line num="15" count="33" type="stmt"/>
3790
3850
  <line num="16" count="33" type="stmt"/>
3791
3851
  <line num="18" count="33" type="stmt"/>
3792
- <line num="20" count="244" type="stmt"/>
3793
- <line num="22" count="244" type="stmt"/>
3794
- <line num="23" count="244" type="stmt"/>
3795
- <line num="24" count="244" type="stmt"/>
3852
+ <line num="20" count="242" type="stmt"/>
3853
+ <line num="22" count="242" type="stmt"/>
3854
+ <line num="23" count="242" type="stmt"/>
3855
+ <line num="24" count="242" type="stmt"/>
3796
3856
  <line num="26" count="0" type="stmt"/>
3797
- <line num="28" count="244" type="cond" truecount="4" falsecount="0"/>
3857
+ <line num="28" count="242" type="cond" truecount="4" falsecount="0"/>
3798
3858
  <line num="29" count="1" type="stmt"/>
3799
- <line num="32" count="243" type="cond" truecount="2" falsecount="0"/>
3800
- <line num="33" count="237" type="stmt"/>
3801
- <line num="34" count="237" type="stmt"/>
3802
- <line num="35" count="237" type="cond" truecount="1" falsecount="1"/>
3859
+ <line num="32" count="241" type="cond" truecount="2" falsecount="0"/>
3860
+ <line num="33" count="235" type="stmt"/>
3861
+ <line num="34" count="235" type="stmt"/>
3862
+ <line num="35" count="235" type="cond" truecount="1" falsecount="1"/>
3803
3863
  <line num="36" count="0" type="stmt"/>
3804
3864
  <line num="37" count="0" type="stmt"/>
3805
- <line num="40" count="237" type="cond" truecount="1" falsecount="1"/>
3806
- <line num="44" count="243" type="cond" truecount="2" falsecount="0"/>
3865
+ <line num="40" count="235" type="cond" truecount="1" falsecount="1"/>
3866
+ <line num="44" count="241" type="cond" truecount="2" falsecount="0"/>
3807
3867
  <line num="45" count="2" type="cond" truecount="1" falsecount="1"/>
3808
3868
  <line num="50" count="2" type="stmt"/>
3809
3869
  <line num="51" count="2" type="stmt"/>
3810
- <line num="56" count="241" type="stmt"/>
3811
- <line num="57" count="241" type="cond" truecount="2" falsecount="0"/>
3870
+ <line num="56" count="239" type="stmt"/>
3871
+ <line num="57" count="239" type="cond" truecount="2" falsecount="0"/>
3812
3872
  <line num="59" count="5" type="stmt"/>
3813
- <line num="60" count="236" type="cond" truecount="1" falsecount="1"/>
3814
- <line num="62" count="236" type="stmt"/>
3815
- <line num="63" count="236" type="stmt"/>
3816
- <line num="65" count="236" type="cond" truecount="2" falsecount="0"/>
3817
- <line num="69" count="236" type="cond" truecount="3" falsecount="0"/>
3818
- <line num="70" count="236" type="cond" truecount="2" falsecount="0"/>
3819
- <line num="71" count="236" type="cond" truecount="2" falsecount="0"/>
3820
- <line num="72" count="236" type="cond" truecount="4" falsecount="1"/>
3873
+ <line num="60" count="234" type="cond" truecount="1" falsecount="1"/>
3874
+ <line num="62" count="234" type="stmt"/>
3875
+ <line num="63" count="234" type="stmt"/>
3876
+ <line num="65" count="234" type="cond" truecount="2" falsecount="0"/>
3877
+ <line num="69" count="234" type="cond" truecount="3" falsecount="0"/>
3878
+ <line num="70" count="234" type="cond" truecount="2" falsecount="0"/>
3879
+ <line num="71" count="234" type="cond" truecount="2" falsecount="0"/>
3880
+ <line num="72" count="234" type="cond" truecount="4" falsecount="1"/>
3821
3881
  <line num="74" count="0" type="stmt"/>
3822
3882
  <line num="75" count="0" type="stmt"/>
3823
3883
  <line num="76" count="0" type="stmt"/>
3824
3884
  <line num="79" count="0" type="stmt"/>
3825
3885
  <line num="80" count="0" type="stmt"/>
3826
- <line num="88" count="241" type="cond" truecount="1" falsecount="1"/>
3886
+ <line num="88" count="239" type="cond" truecount="1" falsecount="1"/>
3827
3887
  <line num="89" count="0" type="stmt"/>
3828
- <line num="92" count="241" type="stmt"/>
3829
- <line num="93" count="241" type="stmt"/>
3830
- <line num="96" count="241" type="cond" truecount="1" falsecount="1"/>
3888
+ <line num="92" count="239" type="stmt"/>
3889
+ <line num="93" count="239" type="stmt"/>
3890
+ <line num="96" count="239" type="cond" truecount="1" falsecount="1"/>
3831
3891
  <line num="103" count="0" type="stmt"/>
3832
3892
  <line num="104" count="0" type="stmt"/>
3833
3893
  <line num="105" count="0" type="stmt"/>
3834
3894
  <line num="106" count="0" type="stmt"/>
3835
3895
  <line num="107" count="0" type="stmt"/>
3836
3896
  <line num="108" count="0" type="stmt"/>
3837
- <line num="111" count="241" type="stmt"/>
3838
- <line num="112" count="241" type="cond" truecount="1" falsecount="1"/>
3839
- <line num="113" count="241" type="stmt"/>
3840
- <line num="114" count="241" type="cond" truecount="2" falsecount="0"/>
3841
- <line num="115" count="241" type="stmt"/>
3842
- <line num="124" count="241" type="cond" truecount="2" falsecount="0"/>
3897
+ <line num="111" count="239" type="stmt"/>
3898
+ <line num="112" count="239" type="cond" truecount="1" falsecount="1"/>
3899
+ <line num="113" count="239" type="stmt"/>
3900
+ <line num="114" count="239" type="cond" truecount="2" falsecount="0"/>
3901
+ <line num="115" count="239" type="stmt"/>
3902
+ <line num="124" count="239" type="cond" truecount="2" falsecount="0"/>
3843
3903
  <line num="130" count="10" type="stmt"/>
3844
- <line num="133" count="241" type="stmt"/>
3904
+ <line num="133" count="239" type="stmt"/>
3845
3905
  </file>
3846
3906
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
3847
3907
  <metrics statements="20" coveredstatements="0" conditionals="10" coveredconditionals="0" methods="4" coveredmethods="0"/>
@@ -3893,14 +3953,14 @@
3893
3953
  <line num="21" count="958" type="stmt"/>
3894
3954
  <line num="22" count="958" type="stmt"/>
3895
3955
  <line num="23" count="958" type="stmt"/>
3896
- <line num="24" count="103" type="cond" truecount="2" falsecount="0"/>
3897
- <line num="25" count="103" type="cond" truecount="2" falsecount="0"/>
3956
+ <line num="24" count="101" type="cond" truecount="2" falsecount="0"/>
3957
+ <line num="25" count="101" type="cond" truecount="2" falsecount="0"/>
3898
3958
  <line num="26" count="1" type="stmt"/>
3899
- <line num="28" count="102" type="cond" truecount="4" falsecount="0"/>
3900
- <line num="29" count="90" type="stmt"/>
3901
- <line num="31" count="102" type="cond" truecount="4" falsecount="0"/>
3959
+ <line num="28" count="100" type="cond" truecount="4" falsecount="0"/>
3960
+ <line num="29" count="88" type="stmt"/>
3961
+ <line num="31" count="100" type="cond" truecount="4" falsecount="0"/>
3902
3962
  <line num="32" count="15" type="stmt"/>
3903
- <line num="34" count="102" type="stmt"/>
3963
+ <line num="34" count="100" type="stmt"/>
3904
3964
  <line num="39" count="29" type="stmt"/>
3905
3965
  <line num="41" count="29" type="stmt"/>
3906
3966
  <line num="42" count="758" type="stmt"/>
@@ -3924,22 +3984,22 @@
3924
3984
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3925
3985
  <line num="1" count="34" type="stmt"/>
3926
3986
  <line num="5" count="34" type="stmt"/>
3927
- <line num="6" count="229" type="stmt"/>
3987
+ <line num="6" count="227" type="stmt"/>
3928
3988
  </file>
3929
3989
  </package>
3930
3990
  <package name="utilities">
3931
- <metrics statements="351" coveredstatements="255" conditionals="150" coveredconditionals="91" methods="68" coveredmethods="48"/>
3991
+ <metrics statements="355" coveredstatements="258" conditionals="152" coveredconditionals="92" methods="69" coveredmethods="49"/>
3932
3992
  <file name="budibaseDir.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/budibaseDir.js">
3933
3993
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3934
- <line num="1" count="46" type="stmt"/>
3935
- <line num="3" count="46" type="stmt"/>
3994
+ <line num="1" count="47" type="stmt"/>
3995
+ <line num="3" count="47" type="stmt"/>
3936
3996
  </file>
3937
3997
  <file name="centralPath.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/centralPath.js">
3938
3998
  <metrics statements="5" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="1"/>
3939
- <line num="1" count="46" type="stmt"/>
3940
- <line num="11" count="46" type="stmt"/>
3999
+ <line num="1" count="47" type="stmt"/>
4000
+ <line num="11" count="47" type="stmt"/>
3941
4001
  <line num="12" count="0" type="stmt"/>
3942
- <line num="20" count="46" type="stmt"/>
4002
+ <line num="20" count="47" type="stmt"/>
3943
4003
  <line num="21" count="1" type="stmt"/>
3944
4004
  </file>
3945
4005
  <file name="csvParser.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/csvParser.js">
@@ -4029,35 +4089,35 @@
4029
4089
  <line num="14" count="51" type="stmt"/>
4030
4090
  <line num="15" count="51" type="stmt"/>
4031
4091
  <line num="17" count="51" type="cond" truecount="1" falsecount="0"/>
4032
- <line num="18" count="245" type="cond" truecount="2" falsecount="0"/>
4033
- <line num="20" count="245" type="cond" truecount="4" falsecount="0"/>
4092
+ <line num="18" count="243" type="cond" truecount="2" falsecount="0"/>
4093
+ <line num="20" count="243" type="cond" truecount="4" falsecount="0"/>
4034
4094
  <line num="21" count="3" type="stmt"/>
4035
- <line num="24" count="242" type="cond" truecount="2" falsecount="2"/>
4095
+ <line num="24" count="240" type="cond" truecount="2" falsecount="2"/>
4036
4096
  <line num="25" count="0" type="stmt"/>
4037
4097
  <line num="26" count="0" type="stmt"/>
4038
4098
  <line num="27" count="0" type="stmt"/>
4039
4099
  <line num="28" count="0" type="stmt"/>
4040
- <line num="31" count="242" type="stmt"/>
4041
- <line num="33" count="242" type="cond" truecount="5" falsecount="0"/>
4042
- <line num="34" count="210" type="stmt"/>
4100
+ <line num="31" count="240" type="stmt"/>
4101
+ <line num="33" count="240" type="cond" truecount="5" falsecount="0"/>
4102
+ <line num="34" count="208" type="stmt"/>
4043
4103
  <line num="35" count="32" type="cond" truecount="4" falsecount="0"/>
4044
4104
  <line num="36" count="27" type="stmt"/>
4045
4105
  <line num="37" count="5" type="cond" truecount="1" falsecount="1"/>
4046
4106
  <line num="38" count="0" type="stmt"/>
4047
- <line num="41" count="242" type="stmt"/>
4048
- <line num="42" count="242" type="stmt"/>
4107
+ <line num="41" count="240" type="stmt"/>
4108
+ <line num="42" count="240" type="stmt"/>
4049
4109
  <line num="46" count="0" type="stmt"/>
4050
4110
  <line num="47" count="0" type="stmt"/>
4051
4111
  <line num="49" count="0" type="stmt"/>
4052
- <line num="53" count="238" type="cond" truecount="1" falsecount="1"/>
4053
- <line num="54" count="238" type="stmt"/>
4054
- <line num="56" count="238" type="stmt"/>
4055
- <line num="57" count="238" type="cond" truecount="3" falsecount="1"/>
4112
+ <line num="53" count="236" type="cond" truecount="1" falsecount="1"/>
4113
+ <line num="54" count="236" type="stmt"/>
4114
+ <line num="56" count="236" type="stmt"/>
4115
+ <line num="57" count="236" type="cond" truecount="3" falsecount="1"/>
4056
4116
  <line num="58" count="0" type="stmt"/>
4057
- <line num="61" count="238" type="stmt"/>
4117
+ <line num="61" count="236" type="stmt"/>
4058
4118
  <line num="64" count="51" type="stmt"/>
4059
- <line num="67" count="236" type="stmt"/>
4060
- <line num="68" count="236" type="stmt"/>
4119
+ <line num="67" count="234" type="stmt"/>
4120
+ <line num="68" count="234" type="stmt"/>
4061
4121
  <line num="71" count="51" type="stmt"/>
4062
4122
  <line num="72" count="2" type="stmt"/>
4063
4123
  <line num="73" count="2" type="stmt"/>
@@ -4089,38 +4149,38 @@
4089
4149
  <line num="119" count="0" type="stmt"/>
4090
4150
  </file>
4091
4151
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/index.js">
4092
- <metrics statements="76" coveredstatements="62" conditionals="30" coveredconditionals="16" methods="16" coveredmethods="15"/>
4093
- <line num="1" count="49" type="stmt"/>
4094
- <line num="2" count="49" type="stmt"/>
4095
- <line num="3" count="49" type="stmt"/>
4096
- <line num="4" count="49" type="stmt"/>
4097
- <line num="5" count="49" type="stmt"/>
4098
- <line num="6" count="49" type="stmt"/>
4099
- <line num="8" count="49" type="stmt"/>
4100
- <line num="10" count="49" type="stmt"/>
4101
- <line num="12" count="49" type="stmt"/>
4102
- <line num="14" count="49" type="stmt"/>
4103
- <line num="16" count="49" type="stmt"/>
4152
+ <metrics statements="80" coveredstatements="65" conditionals="32" coveredconditionals="17" methods="17" coveredmethods="16"/>
4153
+ <line num="1" count="50" type="stmt"/>
4154
+ <line num="2" count="50" type="stmt"/>
4155
+ <line num="3" count="50" type="stmt"/>
4156
+ <line num="4" count="50" type="stmt"/>
4157
+ <line num="5" count="50" type="stmt"/>
4158
+ <line num="6" count="50" type="stmt"/>
4159
+ <line num="8" count="50" type="stmt"/>
4160
+ <line num="10" count="50" type="stmt"/>
4161
+ <line num="12" count="50" type="stmt"/>
4162
+ <line num="14" count="50" type="stmt"/>
4163
+ <line num="16" count="50" type="stmt"/>
4104
4164
  <line num="17" count="1" type="stmt"/>
4105
4165
  <line num="18" count="1" type="cond" truecount="1" falsecount="1"/>
4106
4166
  <line num="19" count="1" type="stmt"/>
4107
4167
  <line num="21" count="1" type="stmt"/>
4108
- <line num="30" count="49" type="stmt"/>
4168
+ <line num="30" count="50" type="stmt"/>
4109
4169
  <line num="31" count="45" type="stmt"/>
4110
- <line num="38" count="49" type="stmt"/>
4170
+ <line num="38" count="50" type="stmt"/>
4111
4171
  <line num="39" count="2" type="cond" truecount="2" falsecount="2"/>
4112
4172
  <line num="41" count="2" type="stmt"/>
4113
4173
  <line num="43" count="0" type="stmt"/>
4114
- <line num="57" count="49" type="stmt"/>
4174
+ <line num="57" count="50" type="stmt"/>
4115
4175
  <line num="58" count="6" type="cond" truecount="1" falsecount="1"/>
4116
4176
  <line num="59" count="0" type="stmt"/>
4117
4177
  <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
4118
4178
  <line num="65" count="0" type="stmt"/>
4119
4179
  <line num="67" count="0" type="stmt"/>
4120
4180
  <line num="69" count="6" type="stmt"/>
4121
- <line num="73" count="49" type="stmt"/>
4181
+ <line num="73" count="50" type="stmt"/>
4122
4182
  <line num="74" count="2" type="stmt"/>
4123
- <line num="79" count="49" type="stmt"/>
4183
+ <line num="79" count="50" type="stmt"/>
4124
4184
  <line num="80" count="3" type="stmt"/>
4125
4185
  <line num="81" count="3" type="stmt"/>
4126
4186
  <line num="84" count="3" type="stmt"/>
@@ -4135,10 +4195,10 @@
4135
4195
  <line num="95" count="0" type="stmt"/>
4136
4196
  <line num="97" count="3" type="stmt"/>
4137
4197
  <line num="98" count="3" type="stmt"/>
4138
- <line num="105" count="49" type="stmt"/>
4198
+ <line num="105" count="50" type="stmt"/>
4139
4199
  <line num="106" count="1" type="stmt"/>
4140
4200
  <line num="107" count="1" type="stmt"/>
4141
- <line num="111" count="49" type="stmt"/>
4201
+ <line num="111" count="50" type="stmt"/>
4142
4202
  <line num="112" count="4" type="stmt"/>
4143
4203
  <line num="113" count="4" type="stmt"/>
4144
4204
  <line num="115" count="4" type="stmt"/>
@@ -4147,25 +4207,29 @@
4147
4207
  <line num="118" count="0" type="stmt"/>
4148
4208
  <line num="123" count="4" type="cond" truecount="3" falsecount="1"/>
4149
4209
  <line num="124" count="0" type="stmt"/>
4150
- <line num="128" count="49" type="stmt"/>
4210
+ <line num="128" count="50" type="stmt"/>
4151
4211
  <line num="129" count="0" type="stmt"/>
4152
- <line num="138" count="49" type="stmt"/>
4212
+ <line num="138" count="50" type="stmt"/>
4153
4213
  <line num="139" count="1" type="stmt"/>
4154
4214
  <line num="141" count="1" type="stmt"/>
4155
4215
  <line num="142" count="1" type="stmt"/>
4156
- <line num="147" count="49" type="stmt"/>
4157
- <line num="148" count="36" type="stmt"/>
4158
- <line num="149" count="36" type="stmt"/>
4159
- <line num="150" count="36" type="stmt"/>
4160
- <line num="151" count="36" type="cond" truecount="2" falsecount="0"/>
4161
- <line num="152" count="36" type="cond" truecount="1" falsecount="1"/>
4216
+ <line num="147" count="50" type="stmt"/>
4217
+ <line num="148" count="38" type="stmt"/>
4218
+ <line num="149" count="38" type="stmt"/>
4219
+ <line num="150" count="38" type="stmt"/>
4220
+ <line num="151" count="38" type="cond" truecount="2" falsecount="0"/>
4221
+ <line num="152" count="38" type="cond" truecount="1" falsecount="1"/>
4162
4222
  <line num="153" count="0" type="stmt"/>
4163
- <line num="155" count="36" type="cond" truecount="3" falsecount="1"/>
4164
- <line num="158" count="49" type="stmt"/>
4223
+ <line num="155" count="38" type="cond" truecount="3" falsecount="1"/>
4224
+ <line num="158" count="50" type="stmt"/>
4165
4225
  <line num="159" count="1" type="stmt"/>
4166
4226
  <line num="160" count="1" type="cond" truecount="2" falsecount="2"/>
4167
4227
  <line num="161" count="0" type="stmt"/>
4168
4228
  <line num="163" count="1" type="stmt"/>
4229
+ <line num="166" count="50" type="stmt"/>
4230
+ <line num="167" count="1" type="cond" truecount="1" falsecount="1"/>
4231
+ <line num="168" count="0" type="stmt"/>
4232
+ <line num="170" count="1" type="stmt"/>
4169
4233
  </file>
4170
4234
  <file name="scriptRunner.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/scriptRunner.js">
4171
4235
  <metrics statements="13" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
@@ -4191,7 +4255,7 @@
4191
4255
  <line num="13" count="44" type="stmt"/>
4192
4256
  <line num="19" count="44" type="stmt"/>
4193
4257
  <line num="20" count="4" type="stmt"/>
4194
- <line num="21" count="120" type="stmt"/>
4258
+ <line num="21" count="124" type="stmt"/>
4195
4259
  <line num="23" count="4" type="cond" truecount="2" falsecount="5"/>
4196
4260
  <line num="26" count="4" type="stmt"/>
4197
4261
  <line num="28" count="0" type="stmt"/>
@@ -4334,7 +4398,7 @@
4334
4398
  <line num="75" count="8" type="stmt"/>
4335
4399
  <line num="82" count="0" type="stmt"/>
4336
4400
  <line num="91" count="0" type="stmt"/>
4337
- <line num="98" count="255" type="stmt"/>
4401
+ <line num="98" count="254" type="stmt"/>
4338
4402
  <line num="110" count="0" type="stmt"/>
4339
4403
  <line num="114" count="0" type="stmt"/>
4340
4404
  <line num="122" count="45" type="stmt"/>
@@ -4356,7 +4420,7 @@
4356
4420
  </file>
4357
4421
  </package>
4358
4422
  <package name="utilities.rowProcessor">
4359
- <metrics statements="173" coveredstatements="100" conditionals="143" coveredconditionals="65" methods="23" coveredmethods="12"/>
4423
+ <metrics statements="173" coveredstatements="100" conditionals="145" coveredconditionals="65" methods="23" coveredmethods="12"/>
4360
4424
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/rowProcessor/index.js">
4361
4425
  <metrics statements="130" coveredstatements="79" conditionals="101" coveredconditionals="47" methods="20" coveredmethods="10"/>
4362
4426
  <line num="1" count="45" type="stmt"/>
@@ -4491,7 +4555,7 @@
4491
4555
  <line num="340" count="0" type="stmt"/>
4492
4556
  </file>
4493
4557
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/rowProcessor/utils.js">
4494
- <metrics statements="43" coveredstatements="21" conditionals="42" coveredconditionals="18" methods="3" coveredmethods="2"/>
4558
+ <metrics statements="43" coveredstatements="21" conditionals="44" coveredconditionals="18" methods="3" coveredmethods="2"/>
4495
4559
  <line num="6" count="45" type="stmt"/>
4496
4560
  <line num="7" count="45" type="stmt"/>
4497
4561
  <line num="13" count="45" type="stmt"/>
@@ -4528,7 +4592,7 @@
4528
4592
  <line num="75" count="0" type="stmt"/>
4529
4593
  <line num="76" count="0" type="cond" truecount="0" falsecount="2"/>
4530
4594
  <line num="77" count="0" type="stmt"/>
4531
- <line num="79" count="0" type="cond" truecount="0" falsecount="2"/>
4595
+ <line num="79" count="0" type="cond" truecount="0" falsecount="4"/>
4532
4596
  <line num="80" count="0" type="stmt"/>
4533
4597
  <line num="84" count="0" type="stmt"/>
4534
4598
  <line num="85" count="0" type="stmt"/>
@@ -4574,8 +4638,8 @@
4574
4638
  <line num="64" count="30" type="stmt"/>
4575
4639
  <line num="65" count="30" type="stmt"/>
4576
4640
  <line num="67" count="0" type="stmt"/>
4577
- <line num="75" count="28" type="stmt"/>
4578
- <line num="78" count="27" type="stmt"/>
4641
+ <line num="76" count="28" type="stmt"/>
4642
+ <line num="79" count="27" type="stmt"/>
4579
4643
  </file>
4580
4644
  <file name="usageQuoteReset.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/usageQuoteReset.js">
4581
4645
  <metrics statements="5" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>