@budibase/server 1.0.122 → 1.0.123-alpha.0

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 (323) hide show
  1. package/builder/assets/index.89795487.css +6 -0
  2. package/builder/assets/index.be9a1b80.js +1299 -0
  3. package/builder/assets/{vendor.8e34a169.js → vendor.5240f480.js} +1 -1
  4. package/builder/index.html +3 -3
  5. package/coverage/clover.xml +654 -1626
  6. package/coverage/coverage-final.json +28 -43
  7. package/coverage/lcov-report/api/controllers/analytics.js.html +8 -3
  8. package/coverage/lcov-report/api/controllers/apikeys.js.html +9 -4
  9. package/coverage/lcov-report/api/controllers/auth.js.html +8 -3
  10. package/coverage/lcov-report/api/controllers/automation.js.html +8 -3
  11. package/coverage/lcov-report/api/controllers/backup.js.html +8 -3
  12. package/coverage/lcov-report/api/controllers/cloud.js.html +8 -3
  13. package/coverage/lcov-report/api/controllers/component.js.html +8 -3
  14. package/coverage/lcov-report/api/controllers/datasource.js.html +11 -6
  15. package/coverage/lcov-report/api/controllers/dev.js.html +8 -3
  16. package/coverage/lcov-report/api/controllers/index.html +16 -26
  17. package/coverage/lcov-report/api/controllers/integration.js.html +8 -3
  18. package/coverage/lcov-report/api/controllers/layout.js.html +8 -3
  19. package/coverage/lcov-report/api/controllers/metadata.js.html +8 -3
  20. package/coverage/lcov-report/api/controllers/migrations.js.html +8 -3
  21. package/coverage/lcov-report/api/controllers/permission.js.html +8 -3
  22. package/coverage/lcov-report/api/controllers/query/index.html +16 -26
  23. package/coverage/lcov-report/api/controllers/query/validation.js.html +8 -3
  24. package/coverage/lcov-report/api/controllers/role.js.html +10 -5
  25. package/coverage/lcov-report/api/controllers/routing.js.html +9 -4
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +8 -3
  27. package/coverage/lcov-report/api/controllers/row/index.html +25 -35
  28. package/coverage/lcov-report/api/controllers/row/internal.js.html +32 -24
  29. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +21 -16
  30. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +24 -19
  31. package/coverage/lcov-report/api/controllers/row/utils.js.html +33 -19
  32. package/coverage/lcov-report/api/controllers/screen.js.html +9 -4
  33. package/coverage/lcov-report/api/controllers/script.js.html +8 -3
  34. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +55 -50
  35. package/coverage/lcov-report/api/controllers/table/external.js.html +8 -3
  36. package/coverage/lcov-report/api/controllers/table/index.html +19 -44
  37. package/coverage/lcov-report/api/controllers/table/index.js.html +20 -15
  38. package/coverage/lcov-report/api/controllers/templates.js.html +8 -3
  39. package/coverage/lcov-report/api/controllers/user.js.html +8 -3
  40. package/coverage/lcov-report/api/controllers/view/exporters.js.html +8 -3
  41. package/coverage/lcov-report/api/controllers/view/index.html +8 -3
  42. package/coverage/lcov-report/api/controllers/view/index.js.html +10 -5
  43. package/coverage/lcov-report/api/controllers/view/utils.js.html +8 -3
  44. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +8 -3
  45. package/coverage/lcov-report/api/controllers/webhook.js.html +10 -5
  46. package/coverage/lcov-report/api/index.html +18 -13
  47. package/coverage/lcov-report/api/index.js.html +28 -8
  48. package/coverage/lcov-report/api/routes/analytics.js.html +8 -3
  49. package/coverage/lcov-report/api/routes/apikeys.js.html +8 -3
  50. package/coverage/lcov-report/api/routes/auth.js.html +8 -3
  51. package/coverage/lcov-report/api/routes/automation.js.html +8 -3
  52. package/coverage/lcov-report/api/routes/backup.js.html +8 -3
  53. package/coverage/lcov-report/api/routes/cloud.js.html +8 -3
  54. package/coverage/lcov-report/api/routes/component.js.html +8 -3
  55. package/coverage/lcov-report/api/routes/datasource.js.html +8 -3
  56. package/coverage/lcov-report/api/routes/deploy.js.html +8 -3
  57. package/coverage/lcov-report/api/routes/dev.js.html +9 -4
  58. package/coverage/lcov-report/api/routes/index.html +13 -68
  59. package/coverage/lcov-report/api/routes/integration.js.html +8 -3
  60. package/coverage/lcov-report/api/routes/layout.js.html +8 -3
  61. package/coverage/lcov-report/api/routes/metadata.js.html +8 -3
  62. package/coverage/lcov-report/api/routes/migrations.js.html +8 -3
  63. package/coverage/lcov-report/api/routes/permission.js.html +8 -3
  64. package/coverage/lcov-report/api/routes/query.js.html +8 -3
  65. package/coverage/lcov-report/api/routes/role.js.html +8 -3
  66. package/coverage/lcov-report/api/routes/routing.js.html +8 -3
  67. package/coverage/lcov-report/api/routes/screen.js.html +8 -3
  68. package/coverage/lcov-report/api/routes/script.js.html +8 -3
  69. package/coverage/lcov-report/api/routes/table.js.html +8 -3
  70. package/coverage/lcov-report/api/routes/templates.js.html +8 -3
  71. package/coverage/lcov-report/api/routes/user.js.html +8 -3
  72. package/coverage/lcov-report/api/routes/utils/index.html +8 -3
  73. package/coverage/lcov-report/api/routes/utils/validators.js.html +8 -3
  74. package/coverage/lcov-report/api/routes/view.js.html +8 -3
  75. package/coverage/lcov-report/api/routes/webhook.js.html +8 -3
  76. package/coverage/lcov-report/automations/actions.js.html +21 -7
  77. package/coverage/lcov-report/automations/automationUtils.js.html +64 -23
  78. package/coverage/lcov-report/automations/bullboard.js.html +8 -3
  79. package/coverage/lcov-report/automations/index.html +27 -37
  80. package/coverage/lcov-report/automations/index.js.html +8 -3
  81. package/coverage/lcov-report/automations/steps/bash.js.html +8 -3
  82. package/coverage/lcov-report/automations/steps/delay.js.html +8 -3
  83. package/coverage/lcov-report/automations/steps/discord.js.html +8 -3
  84. package/coverage/lcov-report/automations/steps/executeQuery.js.html +8 -3
  85. package/coverage/lcov-report/automations/steps/executeScript.js.html +8 -3
  86. package/coverage/lcov-report/automations/steps/filter.js.html +8 -3
  87. package/coverage/lcov-report/automations/steps/index.html +31 -41
  88. package/coverage/lcov-report/automations/steps/integromat.js.html +8 -3
  89. package/coverage/lcov-report/{api/routes/static.js.html → automations/steps/loop.js.html} +70 -80
  90. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +9 -4
  91. package/coverage/lcov-report/automations/steps/queryRows.js.html +9 -4
  92. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +8 -3
  93. package/coverage/lcov-report/automations/steps/serverLog.js.html +8 -3
  94. package/coverage/lcov-report/automations/steps/slack.js.html +8 -3
  95. package/coverage/lcov-report/automations/steps/updateRow.js.html +8 -3
  96. package/coverage/lcov-report/automations/steps/utils.js.html +14 -9
  97. package/coverage/lcov-report/automations/steps/zapier.js.html +8 -3
  98. package/coverage/lcov-report/automations/triggerInfo/app.js.html +8 -3
  99. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +8 -3
  100. package/coverage/lcov-report/automations/triggerInfo/index.html +8 -3
  101. package/coverage/lcov-report/automations/triggerInfo/index.js.html +8 -3
  102. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +8 -3
  103. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +8 -3
  104. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +8 -3
  105. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +8 -3
  106. package/coverage/lcov-report/automations/triggers.js.html +16 -11
  107. package/coverage/lcov-report/block-navigation.js +8 -0
  108. package/coverage/lcov-report/constants/index.html +12 -7
  109. package/coverage/lcov-report/constants/index.js.html +54 -31
  110. package/coverage/lcov-report/constants/layouts.js.html +8 -3
  111. package/coverage/lcov-report/constants/screens.js.html +8 -3
  112. package/coverage/lcov-report/db/inMemoryView.js.html +8 -3
  113. package/coverage/lcov-report/db/index.html +8 -3
  114. package/coverage/lcov-report/db/index.js.html +9 -4
  115. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +20 -15
  116. package/coverage/lcov-report/db/linkedRows/index.html +8 -3
  117. package/coverage/lcov-report/db/linkedRows/index.js.html +22 -17
  118. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +12 -7
  119. package/coverage/lcov-report/db/newid.js.html +11 -6
  120. package/coverage/lcov-report/db/utils.js.html +84 -79
  121. package/coverage/lcov-report/events/AutomationEmitter.js.html +14 -9
  122. package/coverage/lcov-report/events/index.html +8 -3
  123. package/coverage/lcov-report/events/index.js.html +9 -4
  124. package/coverage/lcov-report/events/utils.js.html +18 -13
  125. package/coverage/lcov-report/index.html +125 -120
  126. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +8 -3
  127. package/coverage/lcov-report/integrations/tests/index.html +8 -3
  128. package/coverage/lcov-report/middleware/appInfo.js.html +8 -3
  129. package/coverage/lcov-report/middleware/builder.js.html +8 -3
  130. package/coverage/lcov-report/middleware/currentapp.js.html +65 -15
  131. package/coverage/lcov-report/middleware/index.html +25 -50
  132. package/coverage/lcov-report/middleware/joi-validator.js.html +9 -4
  133. package/coverage/lcov-report/middleware/publicApi.js.html +8 -3
  134. package/coverage/lcov-report/middleware/resourceId.js.html +8 -3
  135. package/coverage/lcov-report/middleware/selfhost.js.html +9 -4
  136. package/coverage/lcov-report/middleware/utils.js.html +8 -3
  137. package/coverage/lcov-report/sorter.js +26 -0
  138. package/coverage/lcov-report/threads/automation.js.html +581 -90
  139. package/coverage/lcov-report/threads/index.html +30 -40
  140. package/coverage/lcov-report/threads/query.js.html +9 -4
  141. package/coverage/lcov-report/threads/utils.js.html +17 -9
  142. package/coverage/lcov-report/utilities/bcrypt.js.html +8 -3
  143. package/coverage/lcov-report/utilities/budibaseDir.js.html +8 -3
  144. package/coverage/lcov-report/utilities/centralPath.js.html +8 -3
  145. package/coverage/lcov-report/utilities/csvParser.js.html +10 -5
  146. package/coverage/lcov-report/utilities/global.js.html +9 -4
  147. package/coverage/lcov-report/utilities/index.html +8 -3
  148. package/coverage/lcov-report/utilities/index.js.html +11 -6
  149. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +32 -9
  150. package/coverage/lcov-report/utilities/queue/index.html +12 -7
  151. package/coverage/lcov-report/utilities/routing/index.html +8 -3
  152. package/coverage/lcov-report/utilities/routing/index.js.html +8 -3
  153. package/coverage/lcov-report/utilities/rowProcessor/index.html +8 -3
  154. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +46 -41
  155. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +18 -13
  156. package/coverage/lcov-report/utilities/scriptRunner.js.html +8 -3
  157. package/coverage/lcov-report/utilities/security.js.html +9 -4
  158. package/coverage/lcov-report/utilities/statusCodes.js.html +8 -3
  159. package/coverage/lcov-report/utilities/usageQuota/index.html +24 -34
  160. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +44 -39
  161. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +8 -3
  162. package/coverage/lcov-report/utilities/users.js.html +8 -3
  163. package/coverage/lcov-report/utilities/workerRequests.js.html +9 -4
  164. package/coverage/lcov.info +1137 -2843
  165. package/dist/api/controllers/application.js +145 -73
  166. package/dist/api/controllers/deploy/index.js +68 -36
  167. package/dist/api/controllers/public/applications.js +29 -9
  168. package/dist/api/controllers/public/queries.js +27 -7
  169. package/dist/api/controllers/public/rows.js +32 -12
  170. package/dist/api/controllers/public/tables.js +2 -2
  171. package/dist/api/controllers/public/users.js +8 -8
  172. package/dist/api/controllers/public/utils.js +1 -1
  173. package/dist/api/controllers/query/import/index.js +3 -3
  174. package/dist/api/controllers/query/index.js +57 -44
  175. package/dist/api/controllers/row/ExternalRequest.js +27 -27
  176. package/dist/api/controllers/row/index.js +83 -60
  177. package/dist/api/controllers/row/internal.js +2 -1
  178. package/dist/api/controllers/row/utils.js +2 -1
  179. package/dist/api/controllers/static/templates/BudibaseApp.svelte +3 -0
  180. package/dist/api/controllers/table/bulkFormula.js +2 -1
  181. package/dist/api/controllers/table/internal.js +40 -34
  182. package/dist/api/controllers/table/utils.js +271 -229
  183. package/dist/api/index.js +5 -0
  184. package/dist/api/routes/application.js +39 -13
  185. package/dist/api/routes/index.js +61 -56
  186. package/dist/api/routes/public/index.js +6 -9
  187. package/dist/api/routes/public/queries.js +1 -1
  188. package/dist/api/routes/public/rows.js +1 -1
  189. package/dist/api/routes/public/tables.js +3 -3
  190. package/dist/api/routes/public/users.js +1 -1
  191. package/dist/api/routes/row.js +43 -17
  192. package/dist/api/routes/static.js +40 -13
  193. package/dist/api/routes/tests/utilities/TestFunctions.js +75 -33
  194. package/dist/app.js +8 -4
  195. package/dist/automations/actions.js +3 -0
  196. package/dist/automations/automationUtils.js +10 -0
  197. package/dist/automations/steps/createRow.js +12 -12
  198. package/dist/automations/steps/deleteRow.js +13 -16
  199. package/dist/automations/steps/loop.js +51 -0
  200. package/dist/automations/tests/utilities/index.js +13 -11
  201. package/dist/automations/utils.js +187 -133
  202. package/dist/constants/index.js +5 -0
  203. package/dist/definitions/datasource.js +1 -0
  204. package/dist/environment.js +2 -3
  205. package/dist/index.js +4 -0
  206. package/dist/integrations/base/sql.js +2 -2
  207. package/dist/integrations/base/sqlTable.js +2 -2
  208. package/dist/integrations/googlesheets.js +1 -1
  209. package/dist/integrations/index.js +4 -0
  210. package/dist/integrations/microsoftSqlServer.js +8 -8
  211. package/dist/integrations/mysql.js +9 -9
  212. package/dist/integrations/oracle.js +7 -7
  213. package/dist/integrations/postgres.js +7 -7
  214. package/dist/integrations/queries/sql.js +2 -2
  215. package/dist/integrations/redis.js +158 -0
  216. package/dist/integrations/rest.js +1 -1
  217. package/dist/middleware/authorized.js +51 -51
  218. package/dist/middleware/currentapp.js +15 -1
  219. package/dist/migrations/functions/appUrls.js +1 -1
  220. package/dist/migrations/functions/developerQuota.js +49 -0
  221. package/dist/migrations/functions/publishedAppsQuota.js +47 -0
  222. package/dist/migrations/functions/quotas1.js +6 -2
  223. package/dist/migrations/functions/usageQuotas/index.js +0 -4
  224. package/dist/migrations/functions/usageQuotas/syncApps.js +4 -7
  225. package/dist/migrations/functions/usageQuotas/syncDevelopers.js +24 -0
  226. package/dist/migrations/functions/usageQuotas/syncPublishedApps.js +26 -0
  227. package/dist/migrations/functions/usageQuotas/syncRows.js +5 -8
  228. package/dist/migrations/index.js +17 -1
  229. package/dist/package.json +14 -8
  230. package/dist/threads/automation.js +149 -27
  231. package/dist/threads/index.js +36 -10
  232. package/dist/threads/utils.js +1 -0
  233. package/dist/tsconfig.build.tsbuildinfo +1 -0
  234. package/dist/utilities/queue/inMemoryQueue.js +6 -1
  235. package/nodemon.json +1 -1
  236. package/package.json +15 -9
  237. package/scripts/dev/manage.js +2 -0
  238. package/src/api/controllers/{application.js → application.ts} +118 -51
  239. package/src/api/controllers/deploy/{index.js → index.ts} +53 -29
  240. package/src/api/controllers/public/applications.ts +2 -2
  241. package/src/api/controllers/public/queries.ts +1 -1
  242. package/src/api/controllers/public/rows.ts +1 -1
  243. package/src/api/controllers/query/{index.js → index.ts} +51 -48
  244. package/src/api/controllers/row/ExternalRequest.ts +1 -1
  245. package/src/api/controllers/row/{index.js → index.ts} +24 -17
  246. package/src/api/controllers/row/internal.js +2 -1
  247. package/src/api/controllers/row/utils.js +4 -1
  248. package/src/api/controllers/static/templates/BudibaseApp.svelte +3 -0
  249. package/src/api/controllers/table/bulkFormula.js +1 -1
  250. package/src/api/controllers/table/{internal.js → internal.ts} +27 -24
  251. package/src/api/controllers/table/{utils.js → utils.ts} +86 -69
  252. package/src/api/index.js +5 -0
  253. package/src/api/routes/{application.js → application.ts} +8 -14
  254. package/src/api/routes/index.ts +60 -0
  255. package/src/api/routes/public/index.ts +1 -4
  256. package/src/api/routes/{row.js → row.ts} +7 -15
  257. package/src/api/routes/{static.js → static.ts} +11 -11
  258. package/src/api/routes/tests/misc.spec.js +39 -37
  259. package/src/api/routes/tests/utilities/{TestFunctions.js → TestFunctions.ts} +57 -33
  260. package/src/app.ts +1 -2
  261. package/src/automations/actions.js +3 -0
  262. package/src/automations/automationUtils.js +12 -0
  263. package/src/automations/steps/{createRow.js → createRow.ts} +9 -15
  264. package/src/automations/steps/{deleteRow.js → deleteRow.ts} +10 -16
  265. package/src/automations/steps/loop.js +50 -0
  266. package/src/automations/tests/automation.spec.js +0 -1
  267. package/src/automations/tests/{createRow.spec.js → createRow.spec.ts} +4 -15
  268. package/src/automations/tests/{deleteRow.spec.js → deleteRow.spec.ts} +3 -5
  269. package/src/automations/tests/utilities/index.js +12 -10
  270. package/src/automations/{utils.js → utils.ts} +39 -28
  271. package/src/constants/index.js +6 -0
  272. package/src/definitions/datasource.ts +1 -0
  273. package/src/environment.js +2 -3
  274. package/src/index.ts +3 -0
  275. package/src/integrations/index.ts +4 -0
  276. package/src/integrations/redis.ts +152 -0
  277. package/src/integrations/tests/redis.spec.js +60 -0
  278. package/src/middleware/{authorized.js → authorized.ts} +20 -14
  279. package/src/middleware/currentapp.js +16 -1
  280. package/src/migrations/functions/developerQuota.ts +15 -0
  281. package/src/migrations/functions/publishedAppsQuota.ts +13 -0
  282. package/src/migrations/functions/tests/quotas1.spec.js +0 -2
  283. package/src/migrations/functions/usageQuotas/index.ts +0 -5
  284. package/src/migrations/functions/usageQuotas/syncApps.ts +3 -6
  285. package/src/migrations/functions/usageQuotas/syncDevelopers.ts +19 -0
  286. package/src/migrations/functions/usageQuotas/syncPublishedApps.ts +21 -0
  287. package/src/migrations/functions/usageQuotas/syncRows.ts +3 -6
  288. package/src/migrations/functions/usageQuotas/tests/syncApps.spec.ts +34 -0
  289. package/src/migrations/functions/usageQuotas/tests/syncRows.spec.ts +40 -0
  290. package/src/migrations/index.ts +13 -1
  291. package/src/threads/automation.js +196 -34
  292. package/src/threads/{index.js → index.ts} +18 -14
  293. package/src/threads/utils.js +1 -0
  294. package/src/utilities/queue/inMemoryQueue.js +7 -1
  295. package/tsconfig.build.json +10 -0
  296. package/tsconfig.json +2 -2
  297. package/builder/assets/index.25f248d6.js +0 -1291
  298. package/builder/assets/index.68a7f4e3.css +0 -6
  299. package/coverage/lcov-report/api/controllers/application.js.html +0 -1436
  300. package/coverage/lcov-report/api/controllers/query/index.js.html +0 -713
  301. package/coverage/lcov-report/api/controllers/row/index.js.html +0 -524
  302. package/coverage/lcov-report/api/controllers/table/internal.js.html +0 -548
  303. package/coverage/lcov-report/api/controllers/table/utils.js.html +0 -1331
  304. package/coverage/lcov-report/api/routes/application.js.html +0 -179
  305. package/coverage/lcov-report/api/routes/index.js.html +0 -266
  306. package/coverage/lcov-report/api/routes/row.js.html +0 -908
  307. package/coverage/lcov-report/automations/steps/createRow.js.html +0 -380
  308. package/coverage/lcov-report/automations/steps/deleteRow.js.html +0 -347
  309. package/coverage/lcov-report/automations/utils.js.html +0 -665
  310. package/coverage/lcov-report/middleware/authorized.js.html +0 -458
  311. package/coverage/lcov-report/middleware/usageQuota.js.html +0 -572
  312. package/coverage/lcov-report/threads/index.js.html +0 -296
  313. package/coverage/lcov-report/utilities/usageQuota/index.js.html +0 -359
  314. package/dist/middleware/usageQuota.js +0 -154
  315. package/dist/tsconfig.tsbuildinfo +0 -1
  316. package/dist/utilities/usageQuota/index.js +0 -86
  317. package/src/api/routes/index.js +0 -62
  318. package/src/middleware/tests/usageQuota.spec.js +0 -120
  319. package/src/middleware/usageQuota.js +0 -164
  320. package/src/migrations/functions/usageQuotas/tests/syncApps.spec.js +0 -41
  321. package/src/migrations/functions/usageQuotas/tests/syncRows.spec.js +0 -45
  322. package/src/utilities/tests/usageQuota/usageQuota.spec.js +0 -72
  323. package/src/utilities/usageQuota/index.js +0 -93
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1650959681605" clover="3.2.0">
3
- <project timestamp="1650959681605" name="All files">
4
- <metrics statements="5026" coveredstatements="3725" conditionals="2069" coveredconditionals="1127" methods="735" coveredmethods="527" elements="7830" coveredelements="5379" complexity="0" loc="5026" ncloc="5026" packages="23" files="146" classes="146"/>
2
+ <coverage generated="1650989518794" clover="3.2.0">
3
+ <project timestamp="1650989518794" name="All files">
4
+ <metrics statements="4099" coveredstatements="2959" conditionals="1671" coveredconditionals="861" methods="612" coveredmethods="431" elements="6382" coveredelements="4251" complexity="0" loc="4099" ncloc="4099" packages="23" files="131" classes="131"/>
5
5
  <package name="api">
6
- <metrics statements="30" coveredstatements="28" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
6
+ <metrics statements="33" coveredstatements="31" 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">
8
- <metrics statements="30" coveredstatements="28" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
8
+ <metrics statements="33" coveredstatements="31" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
9
9
  <line num="1" count="24" type="stmt"/>
10
10
  <line num="6" count="24" type="stmt"/>
11
11
  <line num="7" count="24" type="stmt"/>
@@ -14,32 +14,35 @@
14
14
  <line num="10" count="24" type="stmt"/>
15
15
  <line num="11" count="24" type="stmt"/>
16
16
  <line num="12" count="24" type="stmt"/>
17
+ <line num="13" count="24" type="stmt"/>
17
18
  <line num="14" count="24" type="stmt"/>
18
19
  <line num="16" count="24" type="stmt"/>
19
- <line num="17" count="24" type="stmt"/>
20
+ <line num="18" count="24" type="stmt"/>
20
21
  <line num="19" count="24" type="stmt"/>
21
- <line num="33" count="188" type="stmt"/>
22
- <line num="37" count="188" type="stmt"/>
23
- <line num="58" count="24" type="stmt"/>
24
- <line num="59" count="186" type="stmt"/>
25
- <line num="60" count="186" type="stmt"/>
26
- <line num="62" count="39" type="cond" truecount="1" falsecount="2"/>
27
- <line num="63" count="39" type="stmt"/>
28
- <line num="68" count="39" type="cond" truecount="1" falsecount="1"/>
29
- <line num="69" count="0" type="stmt"/>
30
- <line num="70" count="0" type="stmt"/>
31
- <line num="76" count="24" type="stmt"/>
32
- <line num="77" count="624" type="stmt"/>
33
- <line num="78" count="624" type="stmt"/>
22
+ <line num="21" count="24" type="stmt"/>
23
+ <line num="35" count="188" type="stmt"/>
24
+ <line num="39" count="188" type="stmt"/>
25
+ <line num="61" count="24" type="stmt"/>
26
+ <line num="62" count="186" type="stmt"/>
27
+ <line num="63" count="186" type="stmt"/>
28
+ <line num="65" count="39" type="cond" truecount="1" falsecount="2"/>
29
+ <line num="66" count="39" type="stmt"/>
30
+ <line num="67" count="39" type="stmt"/>
31
+ <line num="73" count="39" type="cond" truecount="1" falsecount="1"/>
32
+ <line num="74" count="0" type="stmt"/>
33
+ <line num="75" count="0" type="stmt"/>
34
34
  <line num="81" count="24" type="stmt"/>
35
- <line num="82" count="24" type="stmt"/>
36
- <line num="85" count="24" type="stmt"/>
35
+ <line num="82" count="624" type="stmt"/>
36
+ <line num="83" count="624" type="stmt"/>
37
37
  <line num="86" count="24" type="stmt"/>
38
- <line num="88" count="24" type="stmt"/>
38
+ <line num="87" count="24" type="stmt"/>
39
+ <line num="90" count="24" type="stmt"/>
40
+ <line num="91" count="24" type="stmt"/>
41
+ <line num="93" count="24" type="stmt"/>
39
42
  </file>
40
43
  </package>
41
44
  <package name="api.controllers">
42
- <metrics statements="1111" coveredstatements="786" conditionals="368" coveredconditionals="172" methods="156" coveredmethods="108"/>
45
+ <metrics statements="909" coveredstatements="622" conditionals="290" coveredconditionals="125" methods="130" coveredmethods="85"/>
43
46
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
44
47
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
45
48
  <line num="1" count="24" type="stmt"/>
@@ -83,211 +86,6 @@
83
86
  <line num="45" count="1" type="stmt"/>
84
87
  <line num="46" count="1" type="stmt"/>
85
88
  </file>
86
- <file name="application.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/application.js">
87
- <metrics statements="202" coveredstatements="164" conditionals="78" coveredconditionals="47" methods="26" coveredmethods="23"/>
88
- <line num="1" count="40" type="stmt"/>
89
- <line num="2" count="40" type="stmt"/>
90
- <line num="7" count="40" type="stmt"/>
91
- <line num="12" count="40" type="stmt"/>
92
- <line num="20" count="40" type="stmt"/>
93
- <line num="24" count="40" type="stmt"/>
94
- <line num="25" count="40" type="stmt"/>
95
- <line num="26" count="40" type="stmt"/>
96
- <line num="27" count="40" type="stmt"/>
97
- <line num="33" count="40" type="stmt"/>
98
- <line num="34" count="40" type="stmt"/>
99
- <line num="35" count="40" type="stmt"/>
100
- <line num="36" count="40" type="stmt"/>
101
- <line num="37" count="40" type="stmt"/>
102
- <line num="42" count="40" type="stmt"/>
103
- <line num="43" count="40" type="stmt"/>
104
- <line num="44" count="40" type="stmt"/>
105
- <line num="45" count="40" type="stmt"/>
106
- <line num="46" count="40" type="stmt"/>
107
- <line num="51" count="40" type="stmt"/>
108
- <line num="53" count="40" type="stmt"/>
109
- <line num="57" count="213" type="stmt"/>
110
- <line num="58" count="213" type="stmt"/>
111
- <line num="64" count="426" type="stmt"/>
112
- <line num="68" count="213" type="stmt"/>
113
- <line num="69" count="213" type="stmt"/>
114
- <line num="75" count="12" type="stmt"/>
115
- <line num="79" count="207" type="cond" truecount="4" falsecount="0"/>
116
- <line num="84" count="40" type="stmt"/>
117
- <line num="87" count="204" type="cond" truecount="2" falsecount="0"/>
118
- <line num="89" count="1" type="stmt"/>
119
- <line num="90" count="203" type="cond" truecount="1" falsecount="1"/>
120
- <line num="92" count="203" type="stmt"/>
121
- <line num="94" count="204" type="cond" truecount="1" falsecount="1"/>
122
- <line num="95" count="204" type="stmt"/>
123
- <line num="97" count="204" type="stmt"/>
124
- <line num="100" count="40" type="stmt"/>
125
- <line num="101" count="203" type="cond" truecount="2" falsecount="0"/>
126
- <line num="102" count="3" type="stmt"/>
127
- <line num="104" count="735" type="cond" truecount="1" falsecount="1"/>
128
- <line num="105" count="0" type="stmt"/>
129
- <line num="109" count="40" type="stmt"/>
130
- <line num="111" count="203" type="cond" truecount="1" falsecount="1"/>
131
- <line num="112" count="0" type="stmt"/>
132
- <line num="114" count="203" type="cond" truecount="2" falsecount="0"/>
133
- <line num="115" count="3" type="stmt"/>
134
- <line num="117" count="735" type="cond" truecount="1" falsecount="1"/>
135
- <line num="118" count="0" type="stmt"/>
136
- <line num="123" count="200" type="cond" truecount="1" falsecount="1"/>
137
- <line num="124" count="200" type="stmt"/>
138
- <line num="125" count="200" type="stmt"/>
139
- <line num="126" count="200" type="stmt"/>
140
- <line num="128" count="200" type="stmt"/>
141
- <line num="129" count="200" type="stmt"/>
142
- <line num="138" count="200" type="stmt"/>
143
- <line num="139" count="200" type="stmt"/>
144
- <line num="140" count="200" type="stmt"/>
145
- <line num="144" count="200" type="cond" truecount="3" falsecount="1"/>
146
- <line num="145" count="0" type="stmt"/>
147
- <line num="146" count="0" type="cond" truecount="0" falsecount="2"/>
148
- <line num="147" count="0" type="stmt"/>
149
- <line num="149" count="200" type="cond" truecount="3" falsecount="1"/>
150
- <line num="152" count="0" type="cond" truecount="0" falsecount="2"/>
151
- <line num="153" count="0" type="stmt"/>
152
- <line num="157" count="200" type="stmt"/>
153
- <line num="160" count="200" type="stmt"/>
154
- <line num="163" count="40" type="stmt"/>
155
- <line num="164" count="10" type="cond" truecount="2" falsecount="0"/>
156
- <line num="165" count="10" type="cond" truecount="2" falsecount="0"/>
157
- <line num="166" count="10" type="stmt"/>
158
- <line num="169" count="10" type="cond" truecount="2" falsecount="2"/>
159
- <line num="170" count="10" type="stmt"/>
160
- <line num="171" count="10" type="stmt"/>
161
- <line num="172" count="13" type="cond" truecount="1" falsecount="1"/>
162
- <line num="173" count="0" type="stmt"/>
163
- <line num="175" count="13" type="stmt"/>
164
- <line num="176" count="13" type="cond" truecount="1" falsecount="1"/>
165
- <line num="177" count="0" type="stmt"/>
166
- <line num="180" count="13" type="stmt"/>
167
- <line num="185" count="10" type="stmt"/>
168
- <line num="188" count="40" type="stmt"/>
169
- <line num="189" count="1" type="stmt"/>
170
- <line num="190" count="1" type="stmt"/>
171
- <line num="191" count="1" type="stmt"/>
172
- <line num="192" count="1" type="stmt"/>
173
- <line num="196" count="1" type="stmt"/>
174
- <line num="203" count="40" type="stmt"/>
175
- <line num="204" count="212" type="stmt"/>
176
- <line num="205" count="212" type="stmt"/>
177
- <line num="206" count="212" type="stmt"/>
178
- <line num="207" count="212" type="stmt"/>
179
- <line num="210" count="212" type="cond" truecount="4" falsecount="0"/>
180
- <line num="211" count="206" type="stmt"/>
181
- <line num="212" count="206" type="stmt"/>
182
- <line num="213" count="206" type="stmt"/>
183
- <line num="216" count="212" type="stmt"/>
184
- <line num="224" count="40" type="stmt"/>
185
- <line num="225" count="200" type="stmt"/>
186
- <line num="226" count="200" type="stmt"/>
187
- <line num="227" count="200" type="stmt"/>
188
- <line num="228" count="200" type="stmt"/>
189
- <line num="229" count="200" type="stmt"/>
190
- <line num="231" count="200" type="stmt"/>
191
- <line num="232" count="200" type="stmt"/>
192
- <line num="237" count="200" type="cond" truecount="2" falsecount="2"/>
193
- <line num="238" count="0" type="stmt"/>
194
- <line num="240" count="200" type="stmt"/>
195
- <line num="241" count="200" type="stmt"/>
196
- <line num="243" count="200" type="stmt"/>
197
- <line num="245" count="200" type="stmt"/>
198
- <line num="247" count="200" type="stmt"/>
199
- <line num="248" count="0" type="stmt"/>
200
- <line num="252" count="200" type="stmt"/>
201
- <line num="268" count="200" type="stmt"/>
202
- <line num="269" count="200" type="stmt"/>
203
- <line num="273" count="200" type="cond" truecount="1" falsecount="1"/>
204
- <line num="274" count="200" type="stmt"/>
205
- <line num="282" count="200" type="stmt"/>
206
- <line num="283" count="200" type="stmt"/>
207
- <line num="284" count="200" type="stmt"/>
208
- <line num="289" count="40" type="stmt"/>
209
- <line num="290" count="3" type="stmt"/>
210
- <line num="292" count="3" type="stmt"/>
211
- <line num="293" count="3" type="cond" truecount="1" falsecount="1"/>
212
- <line num="294" count="3" type="stmt"/>
213
- <line num="296" count="3" type="stmt"/>
214
- <line num="297" count="3" type="cond" truecount="1" falsecount="1"/>
215
- <line num="298" count="3" type="stmt"/>
216
- <line num="299" count="3" type="stmt"/>
217
- <line num="302" count="3" type="stmt"/>
218
- <line num="303" count="3" type="stmt"/>
219
- <line num="304" count="3" type="stmt"/>
220
- <line num="307" count="40" type="stmt"/>
221
- <line num="309" count="2" type="stmt"/>
222
- <line num="310" count="2" type="stmt"/>
223
- <line num="311" count="2" type="stmt"/>
224
- <line num="314" count="2" type="cond" truecount="1" falsecount="1"/>
225
- <line num="315" count="0" type="stmt"/>
226
- <line num="316" count="0" type="stmt"/>
227
- <line num="320" count="2" type="stmt"/>
228
- <line num="324" count="2" type="stmt"/>
229
- <line num="325" count="2" type="stmt"/>
230
- <line num="326" count="2" type="stmt"/>
231
- <line num="329" count="40" type="stmt"/>
232
- <line num="331" count="1" type="stmt"/>
233
- <line num="332" count="1" type="stmt"/>
234
- <line num="333" count="1" type="cond" truecount="1" falsecount="1"/>
235
- <line num="334" count="0" type="stmt"/>
236
- <line num="338" count="1" type="cond" truecount="1" falsecount="1"/>
237
- <line num="339" count="0" type="stmt"/>
238
- <line num="343" count="1" type="stmt"/>
239
- <line num="347" count="1" type="stmt"/>
240
- <line num="348" count="1" type="stmt"/>
241
- <line num="349" count="1" type="stmt"/>
242
- <line num="352" count="40" type="stmt"/>
243
- <line num="353" count="11" type="stmt"/>
244
- <line num="355" count="11" type="stmt"/>
245
- <line num="360" count="11" type="cond" truecount="3" falsecount="1"/>
246
- <line num="361" count="0" type="stmt"/>
247
- <line num="364" count="11" type="stmt"/>
248
- <line num="365" count="11" type="stmt"/>
249
- <line num="367" count="11" type="stmt"/>
250
- <line num="368" count="11" type="stmt"/>
251
- <line num="371" count="40" type="stmt"/>
252
- <line num="372" count="0" type="stmt"/>
253
- <line num="373" count="0" type="cond" truecount="0" falsecount="2"/>
254
- <line num="374" count="0" type="stmt"/>
255
- <line num="378" count="0" type="stmt"/>
256
- <line num="380" count="0" type="stmt"/>
257
- <line num="382" count="0" type="stmt"/>
258
- <line num="383" count="0" type="stmt"/>
259
- <line num="384" count="0" type="cond" truecount="0" falsecount="2"/>
260
- <line num="387" count="0" type="stmt"/>
261
- <line num="388" count="0" type="stmt"/>
262
- <line num="391" count="0" type="stmt"/>
263
- <line num="394" count="0" type="stmt"/>
264
- <line num="399" count="0" type="stmt"/>
265
- <line num="400" count="0" type="stmt"/>
266
- <line num="402" count="0" type="stmt"/>
267
- <line num="406" count="0" type="stmt"/>
268
- <line num="408" count="0" type="stmt"/>
269
- <line num="412" count="0" type="stmt"/>
270
- <line num="414" count="0" type="cond" truecount="0" falsecount="2"/>
271
- <line num="415" count="0" type="stmt"/>
272
- <line num="417" count="0" type="stmt"/>
273
- <line num="423" count="40" type="stmt"/>
274
- <line num="424" count="6" type="stmt"/>
275
- <line num="425" count="6" type="stmt"/>
276
- <line num="427" count="6" type="stmt"/>
277
- <line num="428" count="6" type="cond" truecount="2" falsecount="0"/>
278
- <line num="429" count="5" type="stmt"/>
279
- <line num="434" count="6" type="stmt"/>
280
- <line num="436" count="6" type="stmt"/>
281
- <line num="438" count="6" type="stmt"/>
282
- <line num="439" count="6" type="stmt"/>
283
- <line num="442" count="40" type="stmt"/>
284
- <line num="443" count="200" type="stmt"/>
285
- <line num="445" count="200" type="stmt"/>
286
- <line num="446" count="200" type="stmt"/>
287
- <line num="447" count="400" type="stmt"/>
288
- <line num="448" count="400" type="stmt"/>
289
- <line num="451" count="200" type="stmt"/>
290
- </file>
291
89
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
292
90
  <metrics statements="28" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
293
91
  <line num="1" count="24" type="stmt"/>
@@ -1219,105 +1017,7 @@
1219
1017
  </file>
1220
1018
  </package>
1221
1019
  <package name="api.controllers.query">
1222
- <metrics statements="104" coveredstatements="85" conditionals="29" coveredconditionals="19" methods="17" coveredmethods="15"/>
1223
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
1224
- <metrics statements="95" coveredstatements="76" conditionals="29" coveredconditionals="19" methods="14" coveredmethods="12"/>
1225
- <line num="5" count="41" type="stmt"/>
1226
- <line num="6" count="41" type="stmt"/>
1227
- <line num="7" count="41" type="stmt"/>
1228
- <line num="8" count="41" type="stmt"/>
1229
- <line num="9" count="41" type="stmt"/>
1230
- <line num="10" count="41" type="stmt"/>
1231
- <line num="11" count="41" type="stmt"/>
1232
- <line num="12" count="41" type="stmt"/>
1233
- <line num="14" count="41" type="stmt"/>
1234
- <line num="20" count="6" type="stmt"/>
1235
- <line num="21" count="6" type="cond" truecount="2" falsecount="0"/>
1236
- <line num="22" count="6" type="stmt"/>
1237
- <line num="23" count="4" type="cond" truecount="1" falsecount="1"/>
1238
- <line num="24" count="4" type="stmt"/>
1239
- <line num="27" count="6" type="cond" truecount="2" falsecount="0"/>
1240
- <line num="30" count="41" type="stmt"/>
1241
- <line num="31" count="3" type="stmt"/>
1242
- <line num="33" count="3" type="stmt"/>
1243
- <line num="39" count="3" type="stmt"/>
1244
- <line num="42" count="41" type="stmt"/>
1245
- <line num="43" count="0" type="stmt"/>
1246
- <line num="44" count="0" type="stmt"/>
1247
- <line num="46" count="0" type="stmt"/>
1248
- <line num="47" count="0" type="stmt"/>
1249
- <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
1250
- <line num="52" count="0" type="stmt"/>
1251
- <line num="53" count="0" type="stmt"/>
1252
- <line num="63" count="0" type="stmt"/>
1253
- <line num="64" count="0" type="stmt"/>
1254
- <line num="65" count="0" type="stmt"/>
1255
- <line num="66" count="0" type="stmt"/>
1256
- <line num="69" count="0" type="stmt"/>
1257
- <line num="72" count="0" type="stmt"/>
1258
- <line num="74" count="0" type="stmt"/>
1259
- <line num="78" count="0" type="stmt"/>
1260
- <line num="81" count="41" type="stmt"/>
1261
- <line num="82" count="28" type="stmt"/>
1262
- <line num="83" count="28" type="stmt"/>
1263
- <line num="85" count="28" type="cond" truecount="1" falsecount="1"/>
1264
- <line num="86" count="28" type="stmt"/>
1265
- <line num="89" count="28" type="stmt"/>
1266
- <line num="90" count="28" type="stmt"/>
1267
- <line num="92" count="28" type="stmt"/>
1268
- <line num="93" count="28" type="stmt"/>
1269
- <line num="96" count="41" type="stmt"/>
1270
- <line num="97" count="3" type="stmt"/>
1271
- <line num="98" count="3" type="stmt"/>
1272
- <line num="100" count="3" type="cond" truecount="2" falsecount="0"/>
1273
- <line num="101" count="1" type="stmt"/>
1274
- <line num="102" count="1" type="stmt"/>
1275
- <line num="104" count="3" type="stmt"/>
1276
- <line num="107" count="41" type="stmt"/>
1277
- <line num="108" count="8" type="stmt"/>
1278
- <line num="110" count="8" type="stmt"/>
1279
- <line num="114" count="8" type="stmt"/>
1280
- <line num="116" count="8" type="stmt"/>
1281
- <line num="117" count="8" type="stmt"/>
1282
- <line num="127" count="7" type="stmt"/>
1283
- <line num="134" count="1" type="stmt"/>
1284
- <line num="139" count="2" type="stmt"/>
1285
- <line num="141" count="2" type="stmt"/>
1286
- <line num="142" count="2" type="stmt"/>
1287
- <line num="144" count="2" type="cond" truecount="1" falsecount="1"/>
1288
- <line num="146" count="2" type="cond" truecount="3" falsecount="1"/>
1289
- <line num="147" count="2" type="stmt"/>
1290
- <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
1291
- <line num="149" count="0" type="stmt"/>
1292
- <line num="155" count="2" type="stmt"/>
1293
- <line num="156" count="2" type="stmt"/>
1294
- <line num="166" count="1" type="cond" truecount="3" falsecount="1"/>
1295
- <line num="167" count="1" type="stmt"/>
1296
- <line num="169" count="0" type="stmt"/>
1297
- <line num="172" count="1" type="stmt"/>
1298
- <line num="176" count="41" type="stmt"/>
1299
- <line num="177" count="2" type="stmt"/>
1300
- <line num="180" count="41" type="stmt"/>
1301
- <line num="181" count="0" type="stmt"/>
1302
- <line num="184" count="41" type="stmt"/>
1303
- <line num="185" count="2" type="stmt"/>
1304
- <line num="186" count="2" type="stmt"/>
1305
- <line num="187" count="2" type="stmt"/>
1306
- <line num="188" count="2" type="stmt"/>
1307
- <line num="190" count="2" type="cond" truecount="2" falsecount="0"/>
1308
- <line num="192" count="1" type="stmt"/>
1309
- <line num="193" count="1" type="stmt"/>
1310
- <line num="195" count="1" type="stmt"/>
1311
- <line num="198" count="1" type="stmt"/>
1312
- <line num="199" count="1" type="stmt"/>
1313
- <line num="201" count="1" type="stmt"/>
1314
- <line num="205" count="41" type="stmt"/>
1315
- <line num="206" count="2" type="stmt"/>
1316
- <line num="207" count="2" type="stmt"/>
1317
- <line num="208" count="2" type="stmt"/>
1318
- <line num="209" count="2" type="stmt"/>
1319
- <line num="210" count="2" type="stmt"/>
1320
- </file>
1020
+ <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1321
1021
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1322
1022
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1323
1023
  <line num="1" count="41" type="stmt"/>
@@ -1332,7 +1032,7 @@
1332
1032
  </file>
1333
1033
  </package>
1334
1034
  <package name="api.controllers.row">
1335
- <metrics statements="678" coveredstatements="420" conditionals="298" coveredconditionals="127" methods="98" coveredmethods="57"/>
1035
+ <metrics statements="589" coveredstatements="341" conditionals="268" coveredconditionals="96" methods="86" coveredmethods="46"/>
1336
1036
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1337
1037
  <metrics statements="110" coveredstatements="18" conditionals="46" coveredconditionals="0" methods="15" coveredmethods="0"/>
1338
1038
  <line num="6" count="41" type="stmt"/>
@@ -1446,101 +1146,8 @@
1446
1146
  <line num="219" count="0" type="stmt"/>
1447
1147
  <line num="232" count="0" type="stmt"/>
1448
1148
  </file>
1449
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/index.js">
1450
- <metrics statements="90" coveredstatements="80" conditionals="34" coveredconditionals="32" methods="12" coveredmethods="11"/>
1451
- <line num="1" count="41" type="stmt"/>
1452
- <line num="2" count="41" type="stmt"/>
1453
- <line num="3" count="41" type="stmt"/>
1454
- <line num="6" count="119" type="cond" truecount="1" falsecount="1"/>
1455
- <line num="7" count="0" type="stmt"/>
1456
- <line num="9" count="118" type="stmt"/>
1457
- <line num="13" count="122" type="cond" truecount="4" falsecount="0"/>
1458
- <line num="14" count="80" type="stmt"/>
1459
- <line num="16" count="42" type="cond" truecount="4" falsecount="0"/>
1460
- <line num="17" count="34" type="stmt"/>
1461
- <line num="19" count="8" type="cond" truecount="4" falsecount="0"/>
1462
- <line num="20" count="7" type="stmt"/>
1463
- <line num="24" count="41" type="stmt"/>
1464
- <line num="25" count="7" type="stmt"/>
1465
- <line num="26" count="7" type="stmt"/>
1466
- <line num="27" count="7" type="stmt"/>
1467
- <line num="29" count="7" type="cond" truecount="3" falsecount="1"/>
1468
- <line num="30" count="0" type="stmt"/>
1469
- <line num="32" count="7" type="stmt"/>
1470
- <line num="33" count="7" type="stmt"/>
1471
- <line num="34" count="5" type="stmt"/>
1472
- <line num="35" count="5" type="cond" truecount="2" falsecount="0"/>
1473
- <line num="37" count="5" type="stmt"/>
1474
- <line num="38" count="5" type="stmt"/>
1475
- <line num="40" count="2" type="stmt"/>
1476
- <line num="44" count="41" type="stmt"/>
1477
- <line num="45" count="74" type="stmt"/>
1478
- <line num="46" count="74" type="stmt"/>
1479
- <line num="47" count="74" type="stmt"/>
1480
- <line num="49" count="74" type="cond" truecount="4" falsecount="0"/>
1481
- <line num="50" count="3" type="stmt"/>
1482
- <line num="52" count="71" type="stmt"/>
1483
- <line num="53" count="71" type="stmt"/>
1484
- <line num="54" count="70" type="stmt"/>
1485
- <line num="55" count="70" type="cond" truecount="2" falsecount="0"/>
1486
- <line num="56" count="70" type="stmt"/>
1487
- <line num="57" count="70" type="stmt"/>
1488
- <line num="59" count="1" type="stmt"/>
1489
- <line num="63" count="41" type="stmt"/>
1490
- <line num="64" count="7" type="stmt"/>
1491
- <line num="65" count="7" type="stmt"/>
1492
- <line num="66" count="7" type="stmt"/>
1493
- <line num="68" count="1" type="stmt"/>
1494
- <line num="72" count="41" type="stmt"/>
1495
- <line num="73" count="4" type="stmt"/>
1496
- <line num="74" count="4" type="stmt"/>
1497
- <line num="75" count="4" type="stmt"/>
1498
- <line num="77" count="0" type="stmt"/>
1499
- <line num="81" count="41" type="stmt"/>
1500
- <line num="82" count="18" type="stmt"/>
1501
- <line num="83" count="18" type="stmt"/>
1502
- <line num="84" count="18" type="stmt"/>
1503
- <line num="86" count="3" type="stmt"/>
1504
- <line num="90" count="41" type="stmt"/>
1505
- <line num="91" count="6" type="stmt"/>
1506
- <line num="92" count="6" type="stmt"/>
1507
- <line num="93" count="6" type="stmt"/>
1508
- <line num="95" count="6" type="cond" truecount="2" falsecount="0"/>
1509
- <line num="96" count="2" type="stmt"/>
1510
- <line num="97" count="2" type="stmt"/>
1511
- <line num="98" count="2" type="stmt"/>
1512
- <line num="99" count="3" type="cond" truecount="2" falsecount="0"/>
1513
- <line num="102" count="4" type="stmt"/>
1514
- <line num="103" count="3" type="stmt"/>
1515
- <line num="104" count="3" type="stmt"/>
1516
- <line num="105" count="3" type="cond" truecount="2" falsecount="0"/>
1517
- <line num="107" count="5" type="stmt"/>
1518
- <line num="109" count="5" type="cond" truecount="2" falsecount="0"/>
1519
- <line num="110" count="5" type="stmt"/>
1520
- <line num="113" count="41" type="stmt"/>
1521
- <line num="114" count="2" type="stmt"/>
1522
- <line num="115" count="2" type="stmt"/>
1523
- <line num="116" count="2" type="stmt"/>
1524
- <line num="117" count="2" type="stmt"/>
1525
- <line num="119" count="0" type="stmt"/>
1526
- <line num="123" count="41" type="stmt"/>
1527
- <line num="124" count="2" type="stmt"/>
1528
- <line num="125" count="2" type="stmt"/>
1529
- <line num="126" count="2" type="stmt"/>
1530
- <line num="128" count="0" type="stmt"/>
1531
- <line num="132" count="41" type="stmt"/>
1532
- <line num="133" count="2" type="stmt"/>
1533
- <line num="134" count="2" type="stmt"/>
1534
- <line num="135" count="2" type="stmt"/>
1535
- <line num="137" count="0" type="stmt"/>
1536
- <line num="141" count="41" type="stmt"/>
1537
- <line num="142" count="0" type="stmt"/>
1538
- <line num="143" count="0" type="stmt"/>
1539
- <line num="144" count="0" type="stmt"/>
1540
- <line num="146" count="0" type="stmt"/>
1541
- </file>
1542
1149
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internal.js">
1543
- <metrics statements="212" coveredstatements="171" conditionals="62" coveredconditionals="39" methods="26" coveredmethods="22"/>
1150
+ <metrics statements="213" coveredstatements="172" conditionals="64" coveredconditionals="40" methods="26" coveredmethods="22"/>
1544
1151
  <line num="1" count="41" type="stmt"/>
1545
1152
  <line num="8" count="41" type="stmt"/>
1546
1153
  <line num="9" count="41" type="stmt"/>
@@ -1608,18 +1215,18 @@
1608
1215
  <line num="138" count="0" type="stmt"/>
1609
1216
  <line num="141" count="5" type="stmt"/>
1610
1217
  <line num="147" count="41" type="stmt"/>
1611
- <line num="148" count="71" type="stmt"/>
1612
- <line num="149" count="71" type="stmt"/>
1613
- <line num="150" count="71" type="stmt"/>
1614
- <line num="152" count="71" type="cond" truecount="3" falsecount="1"/>
1615
- <line num="153" count="71" type="stmt"/>
1616
- <line num="157" count="71" type="stmt"/>
1617
- <line num="158" count="71" type="stmt"/>
1618
- <line num="159" count="71" type="stmt"/>
1619
- <line num="164" count="71" type="cond" truecount="1" falsecount="1"/>
1218
+ <line num="148" count="70" type="stmt"/>
1219
+ <line num="149" count="70" type="stmt"/>
1220
+ <line num="150" count="70" type="stmt"/>
1221
+ <line num="152" count="70" type="cond" truecount="3" falsecount="1"/>
1222
+ <line num="153" count="70" type="stmt"/>
1223
+ <line num="157" count="70" type="stmt"/>
1224
+ <line num="158" count="70" type="stmt"/>
1225
+ <line num="159" count="70" type="stmt"/>
1226
+ <line num="164" count="70" type="cond" truecount="1" falsecount="1"/>
1620
1227
  <line num="165" count="0" type="stmt"/>
1621
- <line num="169" count="71" type="stmt"/>
1622
- <line num="176" count="70" type="stmt"/>
1228
+ <line num="169" count="70" type="stmt"/>
1229
+ <line num="176" count="69" type="stmt"/>
1623
1230
  <line num="182" count="41" type="stmt"/>
1624
1231
  <line num="183" count="7" type="stmt"/>
1625
1232
  <line num="186" count="7" type="cond" truecount="2" falsecount="0"/>
@@ -1660,99 +1267,100 @@
1660
1267
  <line num="262" count="4" type="stmt"/>
1661
1268
  <line num="263" count="4" type="stmt"/>
1662
1269
  <line num="264" count="4" type="stmt"/>
1663
- <line num="266" count="3" type="cond" truecount="1" falsecount="1"/>
1664
- <line num="267" count="0" type="stmt"/>
1665
- <line num="269" count="3" type="stmt"/>
1666
- <line num="271" count="3" type="stmt"/>
1667
- <line num="273" count="3" type="stmt"/>
1668
- <line num="279" count="3" type="stmt"/>
1669
- <line num="281" count="3" type="stmt"/>
1670
- <line num="284" count="3" type="cond" truecount="1" falsecount="1"/>
1671
- <line num="285" count="0" type="stmt"/>
1672
- <line num="288" count="0" type="stmt"/>
1270
+ <line num="265" count="3" type="cond" truecount="1" falsecount="1"/>
1271
+ <line num="267" count="3" type="cond" truecount="1" falsecount="1"/>
1272
+ <line num="268" count="0" type="stmt"/>
1273
+ <line num="270" count="3" type="stmt"/>
1274
+ <line num="272" count="3" type="stmt"/>
1275
+ <line num="274" count="3" type="stmt"/>
1276
+ <line num="280" count="3" type="stmt"/>
1277
+ <line num="282" count="3" type="stmt"/>
1278
+ <line num="285" count="3" type="cond" truecount="1" falsecount="1"/>
1279
+ <line num="286" count="0" type="stmt"/>
1673
1280
  <line num="289" count="0" type="stmt"/>
1674
- <line num="291" count="3" type="stmt"/>
1675
- <line num="293" count="3" type="stmt"/>
1676
- <line num="296" count="41" type="stmt"/>
1677
- <line num="297" count="2" type="stmt"/>
1281
+ <line num="290" count="0" type="stmt"/>
1282
+ <line num="292" count="3" type="stmt"/>
1283
+ <line num="294" count="3" type="stmt"/>
1284
+ <line num="297" count="41" type="stmt"/>
1678
1285
  <line num="298" count="2" type="stmt"/>
1679
1286
  <line num="299" count="2" type="stmt"/>
1680
1287
  <line num="300" count="2" type="stmt"/>
1681
- <line num="304" count="2" type="stmt"/>
1682
- <line num="307" count="2" type="stmt"/>
1683
- <line num="308" count="3" type="stmt"/>
1684
- <line num="314" count="2" type="cond" truecount="1" falsecount="1"/>
1685
- <line num="315" count="0" type="stmt"/>
1686
- <line num="317" count="0" type="stmt"/>
1687
- <line num="320" count="0" type="stmt"/>
1688
- <line num="324" count="3" type="stmt"/>
1689
- <line num="327" count="2" type="stmt"/>
1288
+ <line num="301" count="2" type="stmt"/>
1289
+ <line num="305" count="2" type="stmt"/>
1290
+ <line num="308" count="2" type="stmt"/>
1291
+ <line num="309" count="3" type="stmt"/>
1292
+ <line num="315" count="2" type="cond" truecount="1" falsecount="1"/>
1293
+ <line num="316" count="0" type="stmt"/>
1294
+ <line num="318" count="0" type="stmt"/>
1295
+ <line num="321" count="0" type="stmt"/>
1296
+ <line num="325" count="3" type="stmt"/>
1690
1297
  <line num="328" count="2" type="stmt"/>
1691
1298
  <line num="329" count="2" type="stmt"/>
1692
1299
  <line num="330" count="2" type="stmt"/>
1693
- <line num="333" count="41" type="stmt"/>
1694
- <line num="335" count="2" type="cond" truecount="1" falsecount="1"/>
1695
- <line num="336" count="0" type="stmt"/>
1696
- <line num="339" count="2" type="stmt"/>
1300
+ <line num="331" count="2" type="stmt"/>
1301
+ <line num="334" count="41" type="stmt"/>
1302
+ <line num="336" count="2" type="cond" truecount="1" falsecount="1"/>
1303
+ <line num="337" count="0" type="stmt"/>
1697
1304
  <line num="340" count="2" type="stmt"/>
1698
1305
  <line num="341" count="2" type="stmt"/>
1699
1306
  <line num="342" count="2" type="stmt"/>
1700
1307
  <line num="343" count="2" type="stmt"/>
1701
- <line num="346" count="2" type="cond" truecount="1" falsecount="1"/>
1702
- <line num="347" count="0" type="stmt"/>
1703
- <line num="349" count="2" type="stmt"/>
1704
- <line num="353" count="2" type="cond" truecount="3" falsecount="1"/>
1705
- <line num="355" count="2" type="cond" truecount="1" falsecount="1"/>
1706
- <line num="356" count="0" type="stmt"/>
1707
- <line num="358" count="2" type="stmt"/>
1308
+ <line num="344" count="2" type="stmt"/>
1309
+ <line num="347" count="2" type="cond" truecount="1" falsecount="1"/>
1310
+ <line num="348" count="0" type="stmt"/>
1311
+ <line num="350" count="2" type="stmt"/>
1312
+ <line num="354" count="2" type="cond" truecount="3" falsecount="1"/>
1313
+ <line num="356" count="2" type="cond" truecount="1" falsecount="1"/>
1314
+ <line num="357" count="0" type="stmt"/>
1708
1315
  <line num="359" count="2" type="stmt"/>
1709
- <line num="362" count="2" type="stmt"/>
1710
- <line num="365" count="41" type="stmt"/>
1711
- <line num="366" count="2" type="stmt"/>
1712
- <line num="372" count="41" type="stmt"/>
1713
- <line num="373" count="0" type="stmt"/>
1316
+ <line num="360" count="2" type="stmt"/>
1317
+ <line num="363" count="2" type="stmt"/>
1318
+ <line num="366" count="41" type="stmt"/>
1319
+ <line num="367" count="2" type="stmt"/>
1320
+ <line num="373" count="41" type="stmt"/>
1714
1321
  <line num="374" count="0" type="stmt"/>
1715
1322
  <line num="375" count="0" type="stmt"/>
1716
1323
  <line num="376" count="0" type="stmt"/>
1717
1324
  <line num="377" count="0" type="stmt"/>
1718
- <line num="382" count="0" type="stmt"/>
1719
- <line num="384" count="0" type="stmt"/>
1720
- <line num="386" count="0" type="stmt"/>
1325
+ <line num="378" count="0" type="stmt"/>
1326
+ <line num="383" count="0" type="stmt"/>
1327
+ <line num="385" count="0" type="stmt"/>
1721
1328
  <line num="387" count="0" type="stmt"/>
1722
1329
  <line num="388" count="0" type="stmt"/>
1723
- <line num="391" count="0" type="stmt"/>
1330
+ <line num="389" count="0" type="stmt"/>
1724
1331
  <line num="392" count="0" type="stmt"/>
1725
- <line num="395" count="41" type="stmt"/>
1726
- <line num="396" count="2" type="stmt"/>
1332
+ <line num="393" count="0" type="stmt"/>
1333
+ <line num="396" count="41" type="stmt"/>
1727
1334
  <line num="397" count="2" type="stmt"/>
1728
1335
  <line num="398" count="2" type="stmt"/>
1729
- <line num="400" count="2" type="stmt"/>
1730
- <line num="405" count="2" type="stmt"/>
1731
- <line num="410" count="2" type="stmt"/>
1732
- <line num="413" count="1" type="stmt"/>
1733
- <line num="415" count="1" type="stmt"/>
1734
- <line num="417" count="2" type="stmt"/>
1336
+ <line num="399" count="2" type="stmt"/>
1337
+ <line num="401" count="2" type="stmt"/>
1338
+ <line num="406" count="2" type="stmt"/>
1339
+ <line num="411" count="2" type="stmt"/>
1340
+ <line num="414" count="1" type="stmt"/>
1341
+ <line num="416" count="1" type="stmt"/>
1735
1342
  <line num="418" count="2" type="stmt"/>
1736
1343
  <line num="419" count="2" type="stmt"/>
1737
- <line num="420" count="1" type="cond" truecount="1" falsecount="1"/>
1738
- <line num="421" count="0" type="stmt"/>
1739
- <line num="423" count="1" type="stmt"/>
1740
- <line num="424" count="1" type="cond" truecount="1" falsecount="1"/>
1741
- <line num="425" count="1" type="stmt"/>
1344
+ <line num="420" count="2" type="stmt"/>
1345
+ <line num="421" count="1" type="cond" truecount="1" falsecount="1"/>
1346
+ <line num="422" count="0" type="stmt"/>
1347
+ <line num="424" count="1" type="stmt"/>
1348
+ <line num="425" count="1" type="cond" truecount="1" falsecount="1"/>
1742
1349
  <line num="426" count="1" type="stmt"/>
1743
- <line num="428" count="0" type="stmt"/>
1744
- <line num="431" count="2" type="stmt"/>
1350
+ <line num="427" count="1" type="stmt"/>
1351
+ <line num="429" count="0" type="stmt"/>
1745
1352
  <line num="432" count="2" type="stmt"/>
1746
- <line num="434" count="1" type="stmt"/>
1747
- <line num="440" count="2" type="stmt"/>
1748
- <line num="441" count="5" type="stmt"/>
1749
- <line num="442" count="5" type="cond" truecount="2" falsecount="0"/>
1750
- <line num="444" count="1" type="stmt"/>
1353
+ <line num="433" count="2" type="stmt"/>
1354
+ <line num="435" count="1" type="stmt"/>
1355
+ <line num="441" count="2" type="stmt"/>
1356
+ <line num="442" count="5" type="stmt"/>
1357
+ <line num="443" count="5" type="cond" truecount="2" falsecount="0"/>
1751
1358
  <line num="445" count="1" type="stmt"/>
1752
1359
  <line num="446" count="1" type="stmt"/>
1753
- <line num="448" count="1" type="stmt"/>
1360
+ <line num="447" count="1" type="stmt"/>
1754
1361
  <line num="449" count="1" type="stmt"/>
1755
- <line num="453" count="2" type="stmt"/>
1362
+ <line num="450" count="1" type="stmt"/>
1363
+ <line num="454" count="2" type="stmt"/>
1756
1364
  </file>
1757
1365
  <file name="internalSearch.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internalSearch.js">
1758
1366
  <metrics statements="152" coveredstatements="93" conditionals="95" coveredconditionals="38" methods="33" coveredmethods="18"/>
@@ -1918,9 +1526,9 @@
1918
1526
  <line num="9" count="41" type="stmt"/>
1919
1527
  <line num="10" count="41" type="stmt"/>
1920
1528
  <line num="18" count="41" type="stmt"/>
1921
- <line num="19" count="80" type="stmt"/>
1922
- <line num="21" count="80" type="cond" truecount="1" falsecount="1"/>
1923
- <line num="22" count="80" type="stmt"/>
1529
+ <line num="19" count="79" type="stmt"/>
1530
+ <line num="21" count="79" type="cond" truecount="1" falsecount="1"/>
1531
+ <line num="22" count="79" type="stmt"/>
1924
1532
  <line num="24" count="0" type="stmt"/>
1925
1533
  <line num="25" count="0" type="cond" truecount="0" falsecount="2"/>
1926
1534
  <line num="29" count="0" type="stmt"/>
@@ -1955,11 +1563,11 @@
1955
1563
  <line num="98" count="0" type="stmt"/>
1956
1564
  <line num="102" count="0" type="stmt"/>
1957
1565
  <line num="111" count="41" type="stmt"/>
1958
- <line num="116" count="75" type="stmt"/>
1959
- <line num="117" count="75" type="stmt"/>
1960
- <line num="119" count="75" type="stmt"/>
1961
- <line num="123" count="75" type="stmt"/>
1962
- <line num="131" count="75" type="cond" truecount="3" falsecount="1"/>
1566
+ <line num="116" count="74" type="stmt"/>
1567
+ <line num="117" count="74" type="stmt"/>
1568
+ <line num="119" count="74" type="stmt"/>
1569
+ <line num="123" count="74" type="stmt"/>
1570
+ <line num="131" count="74" type="cond" truecount="3" falsecount="1"/>
1963
1571
  <line num="132" count="0" type="stmt"/>
1964
1572
  <line num="133" count="0" type="stmt"/>
1965
1573
  <line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
@@ -1968,15 +1576,15 @@
1968
1576
  <line num="140" count="0" type="stmt"/>
1969
1577
  <line num="141" count="0" type="stmt"/>
1970
1578
  <line num="143" count="0" type="stmt"/>
1971
- <line num="147" count="75" type="stmt"/>
1972
- <line num="149" count="75" type="stmt"/>
1973
- <line num="150" count="75" type="stmt"/>
1974
- <line num="152" count="75" type="cond" truecount="1" falsecount="1"/>
1975
- <line num="153" count="75" type="stmt"/>
1976
- <line num="155" count="75" type="stmt"/>
1579
+ <line num="147" count="74" type="stmt"/>
1580
+ <line num="149" count="74" type="stmt"/>
1581
+ <line num="150" count="74" type="stmt"/>
1582
+ <line num="152" count="74" type="cond" truecount="1" falsecount="1"/>
1583
+ <line num="153" count="74" type="stmt"/>
1584
+ <line num="155" count="74" type="stmt"/>
1977
1585
  </file>
1978
1586
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1979
- <metrics statements="51" coveredstatements="35" conditionals="30" coveredconditionals="13" methods="6" coveredmethods="4"/>
1587
+ <metrics statements="51" coveredstatements="35" conditionals="32" coveredconditionals="13" methods="6" coveredmethods="4"/>
1980
1588
  <line num="1" count="41" type="stmt"/>
1981
1589
  <line num="2" count="41" type="stmt"/>
1982
1590
  <line num="3" count="41" type="stmt"/>
@@ -2003,37 +1611,37 @@
2003
1611
  <line num="40" count="0" type="stmt"/>
2004
1612
  <line num="42" count="23" type="stmt"/>
2005
1613
  <line num="45" count="41" type="stmt"/>
2006
- <line num="46" count="79" type="cond" truecount="2" falsecount="0"/>
1614
+ <line num="46" count="78" type="cond" truecount="2" falsecount="0"/>
2007
1615
  <line num="47" count="2" type="stmt"/>
2008
1616
  <line num="48" count="2" type="stmt"/>
2009
- <line num="50" count="79" type="stmt"/>
2010
- <line num="51" count="79" type="stmt"/>
2011
- <line num="52" count="216" type="stmt"/>
2012
- <line num="53" count="216" type="stmt"/>
2013
- <line num="55" count="216" type="cond" truecount="1" falsecount="1"/>
1617
+ <line num="50" count="78" type="stmt"/>
1618
+ <line num="51" count="78" type="stmt"/>
1619
+ <line num="52" count="214" type="stmt"/>
1620
+ <line num="53" count="214" type="stmt"/>
1621
+ <line num="55" count="214" type="cond" truecount="1" falsecount="1"/>
2014
1622
  <line num="56" count="0" type="stmt"/>
2015
- <line num="59" count="216" type="cond" truecount="2" falsecount="2"/>
1623
+ <line num="59" count="214" type="cond" truecount="2" falsecount="2"/>
2016
1624
  <line num="60" count="0" type="stmt"/>
2017
- <line num="65" count="216" type="cond" truecount="2" falsecount="2"/>
1625
+ <line num="65" count="214" type="cond" truecount="2" falsecount="2"/>
2018
1626
  <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
2019
1627
  <line num="67" count="0" type="stmt"/>
2020
1628
  <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
2021
- <line num="69" count="0" type="stmt"/>
2022
- <line num="72" count="0" type="cond" truecount="0" falsecount="4"/>
2023
- <line num="74" count="0" type="stmt"/>
2024
- <line num="76" count="216" type="cond" truecount="2" falsecount="2"/>
2025
- <line num="78" count="0" type="stmt"/>
2026
- <line num="79" count="0" type="stmt"/>
1629
+ <line num="72" count="0" type="stmt"/>
1630
+ <line num="75" count="0" type="cond" truecount="0" falsecount="4"/>
1631
+ <line num="77" count="0" type="stmt"/>
1632
+ <line num="79" count="214" type="cond" truecount="2" falsecount="2"/>
2027
1633
  <line num="81" count="0" type="stmt"/>
2028
- <line num="84" count="216" type="stmt"/>
2029
- <line num="86" count="216" type="cond" truecount="2" falsecount="0"/>
2030
- <line num="88" count="79" type="stmt"/>
1634
+ <line num="82" count="0" type="stmt"/>
1635
+ <line num="84" count="0" type="stmt"/>
1636
+ <line num="87" count="214" type="stmt"/>
1637
+ <line num="89" count="214" type="cond" truecount="2" falsecount="0"/>
1638
+ <line num="91" count="78" type="stmt"/>
2031
1639
  </file>
2032
1640
  </package>
2033
1641
  <package name="api.controllers.table">
2034
- <metrics statements="534" coveredstatements="285" conditionals="286" coveredconditionals="102" methods="78" coveredmethods="41"/>
1642
+ <metrics statements="269" coveredstatements="107" conditionals="159" coveredconditionals="41" methods="39" coveredmethods="19"/>
2035
1643
  <file name="bulkFormula.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/bulkFormula.js">
2036
- <metrics statements="75" coveredstatements="52" conditionals="55" coveredconditionals="24" methods="16" coveredmethods="13"/>
1644
+ <metrics statements="75" coveredstatements="52" conditionals="57" coveredconditionals="24" methods="16" coveredmethods="13"/>
2037
1645
  <line num="1" count="41" type="stmt"/>
2038
1646
  <line num="2" count="41" type="stmt"/>
2039
1647
  <line num="3" count="41" type="stmt"/>
@@ -2041,30 +1649,30 @@
2041
1649
  <line num="5" count="41" type="stmt"/>
2042
1650
  <line num="6" count="41" type="stmt"/>
2043
1651
  <line num="7" count="41" type="stmt"/>
2044
- <line num="10" count="1384" type="stmt"/>
2045
- <line num="21" count="271" type="stmt"/>
2046
- <line num="22" count="271" type="cond" truecount="1" falsecount="1"/>
2047
- <line num="23" count="271" type="stmt"/>
2048
- <line num="25" count="1115" type="cond" truecount="1" falsecount="1"/>
2049
- <line num="26" count="1115" type="stmt"/>
2050
- <line num="28" count="0" type="cond" truecount="0" falsecount="2"/>
1652
+ <line num="10" count="1378" type="stmt"/>
1653
+ <line num="21" count="269" type="stmt"/>
1654
+ <line num="22" count="269" type="cond" truecount="1" falsecount="1"/>
1655
+ <line num="23" count="269" type="stmt"/>
1656
+ <line num="25" count="1111" type="cond" truecount="1" falsecount="1"/>
1657
+ <line num="26" count="1111" type="stmt"/>
1658
+ <line num="28" count="0" type="cond" truecount="0" falsecount="4"/>
2051
1659
  <line num="29" count="0" type="stmt"/>
2052
1660
  <line num="31" count="0" type="stmt"/>
2053
- <line num="33" count="271" type="stmt"/>
2054
- <line num="42" count="109" type="stmt"/>
2055
- <line num="43" count="251" type="stmt"/>
2056
- <line num="45" count="109" type="cond" truecount="2" falsecount="0"/>
2057
- <line num="46" count="109" type="stmt"/>
2058
- <line num="47" count="274" type="cond" truecount="2" falsecount="0"/>
2059
- <line num="50" count="109" type="stmt"/>
2060
- <line num="51" count="238" type="stmt"/>
2061
- <line num="53" count="238" type="cond" truecount="2" falsecount="0"/>
1661
+ <line num="33" count="269" type="stmt"/>
1662
+ <line num="42" count="108" type="stmt"/>
1663
+ <line num="43" count="249" type="stmt"/>
1664
+ <line num="45" count="108" type="cond" truecount="2" falsecount="0"/>
1665
+ <line num="46" count="108" type="stmt"/>
1666
+ <line num="47" count="272" type="cond" truecount="2" falsecount="0"/>
1667
+ <line num="50" count="108" type="stmt"/>
1668
+ <line num="51" count="236" type="stmt"/>
1669
+ <line num="53" count="236" type="cond" truecount="2" falsecount="0"/>
2062
1670
  <line num="54" count="2" type="stmt"/>
2063
- <line num="56" count="238" type="stmt"/>
2064
- <line num="57" count="238" type="cond" truecount="1" falsecount="1"/>
1671
+ <line num="56" count="236" type="stmt"/>
1672
+ <line num="57" count="236" type="cond" truecount="1" falsecount="1"/>
2065
1673
  <line num="58" count="0" type="stmt"/>
2066
- <line num="62" count="238" type="cond" truecount="1" falsecount="1"/>
2067
- <line num="63" count="238" type="stmt"/>
1674
+ <line num="62" count="236" type="cond" truecount="1" falsecount="1"/>
1675
+ <line num="63" count="236" type="stmt"/>
2068
1676
  <line num="65" count="0" type="stmt"/>
2069
1677
  <line num="66" count="0" type="stmt"/>
2070
1678
  <line num="67" count="0" type="stmt"/>
@@ -2075,20 +1683,20 @@
2075
1683
  <line num="75" count="0" type="stmt"/>
2076
1684
  <line num="82" count="0" type="cond" truecount="0" falsecount="2"/>
2077
1685
  <line num="83" count="0" type="stmt"/>
2078
- <line num="100" count="109" type="stmt"/>
2079
- <line num="102" count="109" type="stmt"/>
2080
- <line num="103" count="251" type="stmt"/>
2081
- <line num="106" count="109" type="stmt"/>
2082
- <line num="108" count="109" type="stmt"/>
2083
- <line num="109" count="276" type="stmt"/>
2084
- <line num="112" count="109" type="stmt"/>
2085
- <line num="113" count="145" type="cond" truecount="1" falsecount="1"/>
2086
- <line num="114" count="145" type="stmt"/>
1686
+ <line num="100" count="108" type="stmt"/>
1687
+ <line num="102" count="108" type="stmt"/>
1688
+ <line num="103" count="249" type="stmt"/>
1689
+ <line num="106" count="108" type="stmt"/>
1690
+ <line num="108" count="108" type="stmt"/>
1691
+ <line num="109" count="274" type="stmt"/>
1692
+ <line num="112" count="108" type="stmt"/>
1693
+ <line num="113" count="144" type="cond" truecount="1" falsecount="1"/>
1694
+ <line num="114" count="144" type="stmt"/>
2087
1695
  <line num="116" count="0" type="stmt"/>
2088
1696
  <line num="117" count="0" type="cond" truecount="0" falsecount="2"/>
2089
1697
  <line num="118" count="0" type="stmt"/>
2090
- <line num="122" count="109" type="cond" truecount="2" falsecount="0"/>
2091
- <line num="123" count="106" type="stmt"/>
1698
+ <line num="122" count="108" type="cond" truecount="2" falsecount="0"/>
1699
+ <line num="123" count="105" type="stmt"/>
2092
1700
  <line num="124" count="33" type="stmt"/>
2093
1701
  <line num="125" count="33" type="cond" truecount="3" falsecount="1"/>
2094
1702
  <line num="126" count="33" type="stmt"/>
@@ -2096,19 +1704,19 @@
2096
1704
  <line num="129" count="0" type="stmt"/>
2097
1705
  <line num="132" count="0" type="cond" truecount="0" falsecount="2"/>
2098
1706
  <line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
2099
- <line num="144" count="109" type="stmt"/>
2100
- <line num="145" count="192" type="stmt"/>
2101
- <line num="146" count="145" type="cond" truecount="3" falsecount="1"/>
1707
+ <line num="144" count="108" type="stmt"/>
1708
+ <line num="145" count="191" type="stmt"/>
1709
+ <line num="146" count="144" type="cond" truecount="3" falsecount="1"/>
2102
1710
  <line num="147" count="0" type="stmt"/>
2103
- <line num="154" count="106" type="stmt"/>
2104
- <line num="156" count="269" type="cond" truecount="1" falsecount="3"/>
2105
- <line num="162" count="106" type="cond" truecount="1" falsecount="1"/>
1711
+ <line num="154" count="105" type="stmt"/>
1712
+ <line num="156" count="267" type="cond" truecount="1" falsecount="3"/>
1713
+ <line num="162" count="105" type="cond" truecount="1" falsecount="1"/>
2106
1714
  <line num="163" count="0" type="stmt"/>
2107
1715
  <line num="167" count="41" type="stmt"/>
2108
- <line num="168" count="109" type="stmt"/>
2109
- <line num="169" count="109" type="stmt"/>
2110
- <line num="170" count="109" type="cond" truecount="2" falsecount="0"/>
2111
- <line num="171" count="106" type="stmt"/>
1716
+ <line num="168" count="108" type="stmt"/>
1717
+ <line num="169" count="108" type="stmt"/>
1718
+ <line num="170" count="108" type="cond" truecount="2" falsecount="0"/>
1719
+ <line num="171" count="105" type="stmt"/>
2112
1720
  </file>
2113
1721
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/external.js">
2114
1722
  <metrics statements="138" coveredstatements="11" conditionals="79" coveredconditionals="0" methods="14" coveredmethods="0"/>
@@ -2260,13 +1868,13 @@
2260
1868
  <line num="5" count="41" type="stmt"/>
2261
1869
  <line num="6" count="41" type="stmt"/>
2262
1870
  <line num="7" count="41" type="stmt"/>
2263
- <line num="10" count="109" type="cond" truecount="4" falsecount="0"/>
2264
- <line num="11" count="106" type="stmt"/>
2265
- <line num="13" count="109" type="cond" truecount="3" falsecount="1"/>
1871
+ <line num="10" count="108" type="cond" truecount="4" falsecount="0"/>
1872
+ <line num="11" count="105" type="stmt"/>
1873
+ <line num="13" count="108" type="cond" truecount="3" falsecount="1"/>
2266
1874
  <line num="14" count="0" type="stmt"/>
2267
- <line num="15" count="109" type="cond" truecount="3" falsecount="1"/>
1875
+ <line num="15" count="108" type="cond" truecount="3" falsecount="1"/>
2268
1876
  <line num="16" count="0" type="stmt"/>
2269
- <line num="18" count="109" type="stmt"/>
1877
+ <line num="18" count="108" type="stmt"/>
2270
1878
  <line num="22" count="41" type="stmt"/>
2271
1879
  <line num="23" count="2" type="stmt"/>
2272
1880
  <line num="25" count="2" type="stmt"/>
@@ -2281,13 +1889,13 @@
2281
1889
  <line num="51" count="20" type="stmt"/>
2282
1890
  <line num="52" count="20" type="stmt"/>
2283
1891
  <line num="55" count="41" type="stmt"/>
2284
- <line num="56" count="106" type="stmt"/>
2285
- <line num="57" count="106" type="stmt"/>
2286
- <line num="58" count="106" type="stmt"/>
2287
- <line num="59" count="106" type="stmt"/>
2288
- <line num="60" count="106" type="stmt"/>
2289
- <line num="61" count="106" type="cond" truecount="2" falsecount="0"/>
2290
- <line num="63" count="106" type="stmt"/>
1892
+ <line num="56" count="105" type="stmt"/>
1893
+ <line num="57" count="105" type="stmt"/>
1894
+ <line num="58" count="105" type="stmt"/>
1895
+ <line num="59" count="105" type="stmt"/>
1896
+ <line num="60" count="105" type="stmt"/>
1897
+ <line num="61" count="105" type="cond" truecount="2" falsecount="0"/>
1898
+ <line num="63" count="105" type="stmt"/>
2291
1899
  <line num="66" count="41" type="stmt"/>
2292
1900
  <line num="67" count="3" type="stmt"/>
2293
1901
  <line num="68" count="3" type="stmt"/>
@@ -2310,277 +1918,6 @@
2310
1918
  <line num="96" count="0" type="stmt"/>
2311
1919
  <line num="98" count="1" type="stmt"/>
2312
1920
  </file>
2313
- <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/internal.js">
2314
- <metrics statements="66" coveredstatements="50" conditionals="34" coveredconditionals="23" methods="5" coveredmethods="2"/>
2315
- <line num="1" count="41" type="stmt"/>
2316
- <line num="2" count="41" type="stmt"/>
2317
- <line num="3" count="41" type="stmt"/>
2318
- <line num="9" count="41" type="stmt"/>
2319
- <line num="10" count="41" type="stmt"/>
2320
- <line num="11" count="41" type="stmt"/>
2321
- <line num="12" count="41" type="stmt"/>
2322
- <line num="13" count="41" type="stmt"/>
2323
- <line num="14" count="41" type="stmt"/>
2324
- <line num="16" count="41" type="stmt"/>
2325
- <line num="17" count="106" type="stmt"/>
2326
- <line num="18" count="106" type="stmt"/>
2327
- <line num="19" count="106" type="stmt"/>
2328
- <line num="28" count="106" type="cond" truecount="4" falsecount="0"/>
2329
- <line num="29" count="5" type="stmt"/>
2330
- <line num="32" count="106" type="cond" truecount="1" falsecount="1"/>
2331
- <line num="33" count="0" type="stmt"/>
2332
- <line num="38" count="106" type="stmt"/>
2333
- <line num="43" count="106" type="stmt"/>
2334
- <line num="47" count="106" type="cond" truecount="4" falsecount="0"/>
2335
- <line num="48" count="5" type="stmt"/>
2336
- <line num="49" count="15" type="stmt"/>
2337
- <line num="50" count="15" type="cond" truecount="3" falsecount="1"/>
2338
- <line num="51" count="0" type="stmt"/>
2339
- <line num="57" count="106" type="stmt"/>
2340
- <line num="70" count="106" type="stmt"/>
2341
- <line num="73" count="106" type="stmt"/>
2342
- <line num="74" count="0" type="stmt"/>
2343
- <line num="75" count="0" type="cond" truecount="0" falsecount="2"/>
2344
- <line num="77" count="0" type="cond" truecount="0" falsecount="4"/>
2345
- <line num="78" count="0" type="stmt"/>
2346
- <line num="82" count="106" type="stmt"/>
2347
- <line num="83" count="106" type="stmt"/>
2348
- <line num="90" count="106" type="cond" truecount="4" falsecount="0"/>
2349
- <line num="91" count="5" type="stmt"/>
2350
- <line num="94" count="0" type="stmt"/>
2351
- <line num="99" count="106" type="stmt"/>
2352
- <line num="100" count="106" type="cond" truecount="4" falsecount="0"/>
2353
- <line num="101" count="1" type="stmt"/>
2354
- <line num="103" count="106" type="stmt"/>
2355
- <line num="104" count="106" type="stmt"/>
2356
- <line num="106" count="106" type="stmt"/>
2357
- <line num="108" count="106" type="stmt"/>
2358
- <line num="109" count="106" type="stmt"/>
2359
- <line num="112" count="41" type="stmt"/>
2360
- <line num="113" count="3" type="stmt"/>
2361
- <line num="114" count="3" type="stmt"/>
2362
- <line num="117" count="3" type="stmt"/>
2363
- <line num="122" count="3" type="stmt"/>
2364
- <line num="123" count="3" type="stmt"/>
2365
- <line num="126" count="3" type="stmt"/>
2366
- <line num="132" count="3" type="stmt"/>
2367
- <line num="135" count="3" type="cond" truecount="1" falsecount="1"/>
2368
- <line num="136" count="0" type="stmt"/>
2369
- <line num="137" count="0" type="stmt"/>
2370
- <line num="138" count="0" type="stmt"/>
2371
- <line num="140" count="0" type="cond" truecount="0" falsecount="2"/>
2372
- <line num="141" count="0" type="stmt"/>
2373
- <line num="146" count="3" type="stmt"/>
2374
- <line num="147" count="3" type="stmt"/>
2375
- <line num="148" count="3" type="stmt"/>
2376
- <line num="151" count="41" type="stmt"/>
2377
- <line num="152" count="0" type="stmt"/>
2378
- <line num="153" count="0" type="stmt"/>
2379
- <line num="154" count="0" type="stmt"/>
2380
- <line num="155" count="0" type="stmt"/>
2381
- </file>
2382
- <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/utils.js">
2383
- <metrics statements="199" coveredstatements="128" conditionals="95" coveredconditionals="38" methods="34" coveredmethods="20"/>
2384
- <line num="1" count="41" type="stmt"/>
2385
- <line num="8" count="41" type="stmt"/>
2386
- <line num="9" count="41" type="stmt"/>
2387
- <line num="10" count="41" type="stmt"/>
2388
- <line num="14" count="41" type="stmt"/>
2389
- <line num="19" count="41" type="stmt"/>
2390
- <line num="24" count="41" type="stmt"/>
2391
- <line num="25" count="41" type="stmt"/>
2392
- <line num="26" count="41" type="stmt"/>
2393
- <line num="27" count="41" type="stmt"/>
2394
- <line num="28" count="41" type="stmt"/>
2395
- <line num="29" count="41" type="stmt"/>
2396
- <line num="31" count="41" type="stmt"/>
2397
- <line num="32" count="0" type="stmt"/>
2398
- <line num="33" count="0" type="stmt"/>
2399
- <line num="38" count="0" type="stmt"/>
2400
- <line num="40" count="0" type="stmt"/>
2401
- <line num="41" count="0" type="stmt"/>
2402
- <line num="46" count="41" type="stmt"/>
2403
- <line num="47" count="106" type="stmt"/>
2404
- <line num="48" count="106" type="stmt"/>
2405
- <line num="49" count="106" type="stmt"/>
2406
- <line num="50" count="106" type="stmt"/>
2407
- <line num="51" count="106" type="cond" truecount="5" falsecount="0"/>
2408
- <line num="52" count="5" type="stmt"/>
2409
- <line num="53" count="13" type="stmt"/>
2410
- <line num="57" count="106" type="cond" truecount="4" falsecount="0"/>
2411
- <line num="59" count="1" type="stmt"/>
2412
- <line num="64" count="1" type="stmt"/>
2413
- <line num="65" count="1" type="stmt"/>
2414
- <line num="66" count="1" type="stmt"/>
2415
- <line num="67" count="1" type="cond" truecount="1" falsecount="1"/>
2416
- <line num="68" count="1" type="stmt"/>
2417
- <line num="69" count="1" type="stmt"/>
2418
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
2419
- <line num="71" count="0" type="stmt"/>
2420
- <line num="73" count="1" type="stmt"/>
2421
- <line num="77" count="1" type="stmt"/>
2422
- <line num="79" count="1" type="stmt"/>
2423
- <line num="80" count="1" type="stmt"/>
2424
- <line num="82" count="106" type="stmt"/>
2425
- <line num="86" count="41" type="stmt"/>
2426
- <line num="87" count="5" type="cond" truecount="1" falsecount="1"/>
2427
- <line num="88" count="0" type="stmt"/>
2428
- <line num="91" count="5" type="stmt"/>
2429
- <line num="94" count="5" type="stmt"/>
2430
- <line num="95" count="13" type="cond" truecount="1" falsecount="1"/>
2431
- <line num="100" count="0" type="stmt"/>
2432
- <line num="103" count="5" type="stmt"/>
2433
- <line num="106" count="41" type="stmt"/>
2434
- <line num="107" count="107" type="cond" truecount="4" falsecount="0"/>
2435
- <line num="108" count="106" type="stmt"/>
2436
- <line num="111" count="1" type="stmt"/>
2437
- <line num="113" count="1" type="stmt"/>
2438
- <line num="118" count="1" type="stmt"/>
2439
- <line num="119" count="1" type="stmt"/>
2440
- <line num="120" count="1" type="stmt"/>
2441
- <line num="121" count="1" type="stmt"/>
2442
- <line num="122" count="1" type="stmt"/>
2443
- <line num="123" count="1" type="stmt"/>
2444
- <line num="126" count="1" type="stmt"/>
2445
- <line num="127" count="1" type="stmt"/>
2446
- <line num="129" count="1" type="stmt"/>
2447
- <line num="131" count="4" type="cond" truecount="1" falsecount="1"/>
2448
- <line num="136" count="0" type="stmt"/>
2449
- <line num="143" count="1" type="stmt"/>
2450
- <line num="146" count="1" type="stmt"/>
2451
- <line num="149" count="1" type="stmt"/>
2452
- <line num="150" count="1" type="stmt"/>
2453
- <line num="151" count="1" type="stmt"/>
2454
- <line num="152" count="1" type="stmt"/>
2455
- <line num="153" count="1" type="stmt"/>
2456
- <line num="156" count="41" type="stmt"/>
2457
- <line num="157" count="106" type="stmt"/>
2458
- <line num="159" count="106" type="cond" truecount="4" falsecount="0"/>
2459
- <line num="160" count="2" type="stmt"/>
2460
- <line num="161" count="2" type="stmt"/>
2461
- <line num="163" count="2" type="stmt"/>
2462
- <line num="164" count="3" type="stmt"/>
2463
- <line num="167" count="2" type="cond" truecount="2" falsecount="0"/>
2464
- <line num="168" count="1" type="stmt"/>
2465
- <line num="169" count="1" type="stmt"/>
2466
- <line num="173" count="1" type="cond" truecount="1" falsecount="1"/>
2467
- <line num="174" count="1" type="stmt"/>
2468
- <line num="176" count="1" type="stmt"/>
2469
- <line num="187" count="1" type="stmt"/>
2470
- <line num="197" count="106" type="stmt"/>
2471
- <line num="200" count="41" type="stmt"/>
2472
- <line num="202" count="106" type="cond" truecount="2" falsecount="0"/>
2473
- <line num="203" count="1" type="stmt"/>
2474
- <line num="205" count="5" type="cond" truecount="1" falsecount="1"/>
2475
- <line num="206" count="5" type="stmt"/>
2476
- <line num="210" count="106" type="stmt"/>
2477
- <line num="215" count="106" type="stmt"/>
2478
- <line num="216" count="106" type="stmt"/>
2479
- <line num="217" count="106" type="stmt"/>
2480
- <line num="218" count="106" type="stmt"/>
2481
- <line num="220" count="106" type="stmt"/>
2482
- <line num="225" count="106" type="cond" truecount="2" falsecount="0"/>
2483
- <line num="226" count="5" type="stmt"/>
2484
- <line num="228" count="106" type="stmt"/>
2485
- <line num="229" count="106" type="stmt"/>
2486
- <line num="234" count="106" type="stmt"/>
2487
- <line num="235" count="106" type="stmt"/>
2488
- <line num="236" count="106" type="stmt"/>
2489
- <line num="241" count="106" type="stmt"/>
2490
- <line num="242" count="106" type="stmt"/>
2491
- <line num="243" count="106" type="stmt"/>
2492
- <line num="247" count="106" type="stmt"/>
2493
- <line num="251" count="41" type="stmt"/>
2494
- <line num="252" count="220" type="stmt"/>
2495
- <line num="253" count="220" type="stmt"/>
2496
- <line num="258" count="506" type="stmt"/>
2497
- <line num="265" count="41" type="stmt"/>
2498
- <line num="266" count="0" type="stmt"/>
2499
- <line num="267" count="0" type="stmt"/>
2500
- <line num="268" count="0" type="cond" truecount="0" falsecount="4"/>
2501
- <line num="269" count="0" type="stmt"/>
2502
- <line num="271" count="0" type="stmt"/>
2503
- <line num="274" count="41" type="stmt"/>
2504
- <line num="275" count="0" type="stmt"/>
2505
- <line num="276" count="0" type="stmt"/>
2506
- <line num="279" count="41" type="stmt"/>
2507
- <line num="280" count="31" type="stmt"/>
2508
- <line num="281" count="31" type="cond" truecount="1" falsecount="1"/>
2509
- <line num="282" count="0" type="stmt"/>
2510
- <line num="283" count="0" type="stmt"/>
2511
- <line num="284" count="0" type="stmt"/>
2512
- <line num="285" count="0" type="stmt"/>
2513
- <line num="287" count="31" type="stmt"/>
2514
- <line num="291" count="41" type="stmt"/>
2515
- <line num="292" count="1" type="stmt"/>
2516
- <line num="293" count="1" type="stmt"/>
2517
- <line num="296" count="1" type="stmt"/>
2518
- <line num="297" count="0" type="stmt"/>
2519
- <line num="300" count="0" type="cond" truecount="0" falsecount="2"/>
2520
- <line num="302" count="0" type="cond" truecount="0" falsecount="2"/>
2521
- <line num="303" count="0" type="stmt"/>
2522
- <line num="304" count="0" type="stmt"/>
2523
- <line num="308" count="0" type="cond" truecount="0" falsecount="2"/>
2524
- <line num="309" count="0" type="stmt"/>
2525
- <line num="310" count="0" type="stmt"/>
2526
- <line num="314" count="0" type="cond" truecount="0" falsecount="2"/>
2527
- <line num="315" count="0" type="stmt"/>
2528
- <line num="316" count="0" type="cond" truecount="0" falsecount="2"/>
2529
- <line num="317" count="0" type="stmt"/>
2530
- <line num="318" count="0" type="stmt"/>
2531
- <line num="322" count="0" type="cond" truecount="0" falsecount="2"/>
2532
- <line num="323" count="0" type="stmt"/>
2533
- <line num="325" count="0" type="cond" truecount="0" falsecount="2"/>
2534
- <line num="326" count="0" type="stmt"/>
2535
- <line num="327" count="0" type="stmt"/>
2536
- <line num="328" count="0" type="stmt"/>
2537
- <line num="329" count="0" type="stmt"/>
2538
- <line num="333" count="0" type="cond" truecount="0" falsecount="2"/>
2539
- <line num="334" count="0" type="stmt"/>
2540
- <line num="335" count="0" type="stmt"/>
2541
- <line num="339" count="0" type="cond" truecount="0" falsecount="4"/>
2542
- <line num="340" count="0" type="stmt"/>
2543
- <line num="341" count="0" type="stmt"/>
2544
- <line num="342" count="0" type="stmt"/>
2545
- <line num="344" count="0" type="cond" truecount="0" falsecount="2"/>
2546
- <line num="345" count="0" type="stmt"/>
2547
- <line num="352" count="0" type="cond" truecount="0" falsecount="2"/>
2548
- <line num="353" count="0" type="stmt"/>
2549
- <line num="354" count="0" type="stmt"/>
2550
- <line num="355" count="0" type="cond" truecount="0" falsecount="2"/>
2551
- <line num="356" count="0" type="stmt"/>
2552
- <line num="358" count="0" type="stmt"/>
2553
- <line num="363" count="41" type="stmt"/>
2554
- <line num="364" count="0" type="stmt"/>
2555
- <line num="367" count="41" type="stmt"/>
2556
- <line num="368" count="0" type="stmt"/>
2557
- <line num="371" count="41" type="cond" truecount="0" falsecount="1"/>
2558
- <line num="372" count="0" type="stmt"/>
2559
- <line num="377" count="0" type="cond" truecount="0" falsecount="2"/>
2560
- <line num="378" count="0" type="stmt"/>
2561
- <line num="380" count="0" type="stmt"/>
2562
- <line num="383" count="41" type="stmt"/>
2563
- <line num="384" count="0" type="cond" truecount="0" falsecount="2"/>
2564
- <line num="388" count="0" type="stmt"/>
2565
- <line num="390" count="0" type="stmt"/>
2566
- <line num="391" count="0" type="stmt"/>
2567
- <line num="392" count="0" type="stmt"/>
2568
- <line num="393" count="0" type="cond" truecount="0" falsecount="5"/>
2569
- <line num="394" count="0" type="stmt"/>
2570
- <line num="397" count="0" type="stmt"/>
2571
- <line num="400" count="41" type="stmt"/>
2572
- <line num="401" count="106" type="cond" truecount="2" falsecount="0"/>
2573
- <line num="402" count="101" type="stmt"/>
2574
- <line num="404" count="5" type="stmt"/>
2575
- <line num="405" count="13" type="stmt"/>
2576
- <line num="406" count="13" type="cond" truecount="2" falsecount="0"/>
2577
- <line num="407" count="7" type="stmt"/>
2578
- <line num="409" count="6" type="stmt"/>
2579
- <line num="410" count="6" type="cond" truecount="2" falsecount="2"/>
2580
- <line num="411" count="0" type="stmt"/>
2581
- <line num="414" count="5" type="stmt"/>
2582
- <line num="417" count="41" type="stmt"/>
2583
- </file>
2584
1921
  </package>
2585
1922
  <package name="api.controllers.view">
2586
1923
  <metrics statements="193" coveredstatements="143" conditionals="83" coveredconditionals="53" methods="25" coveredmethods="18"/>
@@ -2791,7 +2128,7 @@
2791
2128
  </file>
2792
2129
  </package>
2793
2130
  <package name="api.routes">
2794
- <metrics statements="251" coveredstatements="244" conditionals="6" coveredconditionals="3" methods="1" coveredmethods="1"/>
2131
+ <metrics statements="190" coveredstatements="183" conditionals="4" coveredconditionals="2" methods="1" coveredmethods="1"/>
2795
2132
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/analytics.js">
2796
2133
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2797
2134
  <line num="1" count="24" type="stmt"/>
@@ -2810,19 +2147,8 @@
2810
2147
  <line num="8" count="24" type="stmt"/>
2811
2148
  <line num="12" count="24" type="stmt"/>
2812
2149
  </file>
2813
- <file name="application.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/application.js">
2814
- <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2815
- <line num="1" count="24" type="stmt"/>
2816
- <line num="2" count="24" type="stmt"/>
2817
- <line num="3" count="24" type="stmt"/>
2818
- <line num="4" count="24" type="stmt"/>
2819
- <line num="5" count="24" type="stmt"/>
2820
- <line num="7" count="24" type="stmt"/>
2821
- <line num="9" count="24" type="stmt"/>
2822
- <line num="33" count="24" type="stmt"/>
2823
- </file>
2824
- <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/auth.js">
2825
- <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2150
+ <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/auth.js">
2151
+ <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2826
2152
  <line num="1" count="24" type="stmt"/>
2827
2153
  <line num="2" count="24" type="stmt"/>
2828
2154
  <line num="4" count="24" type="stmt"/>
@@ -2908,40 +2234,6 @@
2908
2234
  <line num="21" count="24" type="stmt"/>
2909
2235
  <line num="26" count="24" type="stmt"/>
2910
2236
  </file>
2911
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/index.js">
2912
- <metrics statements="31" coveredstatements="31" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2913
- <line num="1" count="24" type="stmt"/>
2914
- <line num="2" count="24" type="stmt"/>
2915
- <line num="3" count="24" type="stmt"/>
2916
- <line num="4" count="24" type="stmt"/>
2917
- <line num="5" count="24" type="stmt"/>
2918
- <line num="6" count="24" type="stmt"/>
2919
- <line num="7" count="24" type="stmt"/>
2920
- <line num="8" count="24" type="stmt"/>
2921
- <line num="9" count="24" type="stmt"/>
2922
- <line num="10" count="24" type="stmt"/>
2923
- <line num="11" count="24" type="stmt"/>
2924
- <line num="12" count="24" type="stmt"/>
2925
- <line num="13" count="24" type="stmt"/>
2926
- <line num="14" count="24" type="stmt"/>
2927
- <line num="15" count="24" type="stmt"/>
2928
- <line num="16" count="24" type="stmt"/>
2929
- <line num="17" count="24" type="stmt"/>
2930
- <line num="18" count="24" type="stmt"/>
2931
- <line num="19" count="24" type="stmt"/>
2932
- <line num="20" count="24" type="stmt"/>
2933
- <line num="21" count="24" type="stmt"/>
2934
- <line num="22" count="24" type="stmt"/>
2935
- <line num="23" count="24" type="stmt"/>
2936
- <line num="24" count="24" type="stmt"/>
2937
- <line num="25" count="24" type="stmt"/>
2938
- <line num="26" count="24" type="stmt"/>
2939
- <line num="27" count="24" type="stmt"/>
2940
- <line num="28" count="24" type="stmt"/>
2941
- <line num="30" count="24" type="stmt"/>
2942
- <line num="61" count="24" type="stmt"/>
2943
- <line num="62" count="24" type="stmt"/>
2944
- </file>
2945
2237
  <file name="integration.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/integration.js">
2946
2238
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2947
2239
  <line num="1" count="24" type="stmt"/>
@@ -3026,19 +2318,6 @@
3026
2318
  <line num="8" count="24" type="stmt"/>
3027
2319
  <line num="14" count="24" type="stmt"/>
3028
2320
  </file>
3029
- <file name="row.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/row.js">
3030
- <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3031
- <line num="1" count="24" type="stmt"/>
3032
- <line num="2" count="24" type="stmt"/>
3033
- <line num="3" count="24" type="stmt"/>
3034
- <line num="4" count="24" type="stmt"/>
3035
- <line num="8" count="24" type="stmt"/>
3036
- <line num="12" count="24" type="stmt"/>
3037
- <line num="13" count="24" type="stmt"/>
3038
- <line num="15" count="24" type="stmt"/>
3039
- <line num="17" count="24" type="stmt"/>
3040
- <line num="276" count="24" type="stmt"/>
3041
- </file>
3042
2321
  <file name="screen.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/screen.js">
3043
2322
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3044
2323
  <line num="1" count="24" type="stmt"/>
@@ -3060,21 +2339,6 @@
3060
2339
  <line num="8" count="0" type="stmt"/>
3061
2340
  <line num="10" count="0" type="stmt"/>
3062
2341
  </file>
3063
- <file name="static.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/static.js">
3064
- <metrics statements="12" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
3065
- <line num="1" count="24" type="stmt"/>
3066
- <line num="2" count="24" type="stmt"/>
3067
- <line num="3" count="24" type="stmt"/>
3068
- <line num="4" count="24" type="stmt"/>
3069
- <line num="9" count="24" type="stmt"/>
3070
- <line num="10" count="24" type="stmt"/>
3071
- <line num="11" count="24" type="stmt"/>
3072
- <line num="13" count="24" type="stmt"/>
3073
- <line num="33" count="24" type="cond" truecount="1" falsecount="1"/>
3074
- <line num="34" count="24" type="stmt"/>
3075
- <line num="37" count="24" type="stmt"/>
3076
- <line num="55" count="24" type="stmt"/>
3077
- </file>
3078
2342
  <file name="table.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/table.js">
3079
2343
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3080
2344
  <line num="1" count="24" type="stmt"/>
@@ -3173,9 +2437,9 @@
3173
2437
  </file>
3174
2438
  </package>
3175
2439
  <package name="automations">
3176
- <metrics statements="215" coveredstatements="181" conditionals="96" coveredconditionals="77" methods="28" coveredmethods="22"/>
2440
+ <metrics statements="145" coveredstatements="121" conditionals="58" coveredconditionals="46" methods="18" coveredmethods="13"/>
3177
2441
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
3178
- <metrics statements="23" coveredstatements="23" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2442
+ <metrics statements="24" coveredstatements="24" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
3179
2443
  <line num="1" count="41" type="stmt"/>
3180
2444
  <line num="2" count="41" type="stmt"/>
3181
2445
  <line num="3" count="41" type="stmt"/>
@@ -3192,47 +2456,56 @@
3192
2456
  <line num="14" count="41" type="stmt"/>
3193
2457
  <line num="15" count="41" type="stmt"/>
3194
2458
  <line num="16" count="41" type="stmt"/>
3195
- <line num="18" count="41" type="stmt"/>
3196
- <line num="36" count="41" type="stmt"/>
3197
- <line num="58" count="41" type="cond" truecount="1" falsecount="1"/>
3198
- <line num="59" count="41" type="stmt"/>
3199
- <line num="60" count="41" type="stmt"/>
3200
- <line num="61" count="41" type="stmt"/>
3201
- <line num="71" count="41" type="stmt"/>
2459
+ <line num="17" count="41" type="stmt"/>
2460
+ <line num="19" count="41" type="stmt"/>
2461
+ <line num="38" count="41" type="stmt"/>
2462
+ <line num="61" count="41" type="cond" truecount="1" falsecount="1"/>
2463
+ <line num="62" count="41" type="stmt"/>
2464
+ <line num="63" count="41" type="stmt"/>
2465
+ <line num="64" count="41" type="stmt"/>
2466
+ <line num="74" count="41" type="stmt"/>
3202
2467
  </file>
3203
2468
  <file name="automationUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/automationUtils.js">
3204
- <metrics statements="31" coveredstatements="29" conditionals="25" coveredconditionals="21" methods="3" coveredmethods="3"/>
2469
+ <metrics statements="39" coveredstatements="31" conditionals="25" coveredconditionals="21" methods="4" coveredmethods="3"/>
3205
2470
  <line num="1" count="41" type="stmt"/>
3206
- <line num="19" count="41" type="stmt"/>
3207
- <line num="20" count="15" type="cond" truecount="2" falsecount="0"/>
3208
- <line num="21" count="1" type="stmt"/>
3209
- <line num="23" count="14" type="stmt"/>
3210
- <line num="24" count="36" type="stmt"/>
3211
- <line num="25" count="36" type="cond" truecount="2" falsecount="0"/>
3212
- <line num="26" count="6" type="stmt"/>
3213
- <line num="28" count="30" type="stmt"/>
3214
- <line num="29" count="30" type="cond" truecount="2" falsecount="0"/>
3215
- <line num="30" count="12" type="stmt"/>
3216
- <line num="32" count="18" type="cond" truecount="2" falsecount="0"/>
3217
- <line num="33" count="2" type="stmt"/>
3218
- <line num="34" count="2" type="cond" truecount="2" falsecount="0"/>
3219
- <line num="35" count="1" type="stmt"/>
3220
- <line num="37" count="2" type="cond" truecount="2" falsecount="0"/>
3221
- <line num="38" count="1" type="stmt"/>
3222
- <line num="41" count="18" type="cond" truecount="2" falsecount="0"/>
3223
- <line num="42" count="1" type="stmt"/>
3224
- <line num="43" count="1" type="cond" truecount="1" falsecount="1"/>
3225
- <line num="44" count="1" type="stmt"/>
3226
- <line num="48" count="14" type="stmt"/>
3227
- <line num="60" count="41" type="stmt"/>
3228
- <line num="61" count="9" type="stmt"/>
2471
+ <line num="2" count="41" type="stmt"/>
2472
+ <line num="20" count="41" type="stmt"/>
2473
+ <line num="21" count="14" type="cond" truecount="2" falsecount="0"/>
2474
+ <line num="22" count="1" type="stmt"/>
2475
+ <line num="24" count="13" type="stmt"/>
2476
+ <line num="25" count="33" type="stmt"/>
2477
+ <line num="26" count="33" type="cond" truecount="2" falsecount="0"/>
2478
+ <line num="27" count="6" type="stmt"/>
2479
+ <line num="29" count="27" type="stmt"/>
2480
+ <line num="30" count="27" type="cond" truecount="2" falsecount="0"/>
2481
+ <line num="31" count="11" type="stmt"/>
2482
+ <line num="33" count="16" type="cond" truecount="2" falsecount="0"/>
2483
+ <line num="34" count="2" type="stmt"/>
2484
+ <line num="35" count="2" type="cond" truecount="2" falsecount="0"/>
2485
+ <line num="36" count="1" type="stmt"/>
2486
+ <line num="38" count="2" type="cond" truecount="2" falsecount="0"/>
2487
+ <line num="39" count="1" type="stmt"/>
2488
+ <line num="42" count="16" type="cond" truecount="2" falsecount="0"/>
2489
+ <line num="43" count="1" type="stmt"/>
2490
+ <line num="44" count="1" type="cond" truecount="1" falsecount="1"/>
2491
+ <line num="45" count="1" type="stmt"/>
2492
+ <line num="49" count="13" type="stmt"/>
2493
+ <line num="61" count="41" type="stmt"/>
3229
2494
  <line num="62" count="8" type="stmt"/>
3230
- <line num="65" count="41" type="stmt"/>
3231
- <line num="66" count="3" type="cond" truecount="1" falsecount="1"/>
3232
- <line num="67" count="0" type="stmt"/>
3233
- <line num="69" count="3" type="cond" truecount="1" falsecount="1"/>
3234
- <line num="73" count="0" type="stmt"/>
3235
- <line num="75" count="3" type="cond" truecount="1" falsecount="1"/>
2495
+ <line num="63" count="7" type="stmt"/>
2496
+ <line num="66" count="41" type="stmt"/>
2497
+ <line num="67" count="3" type="cond" truecount="1" falsecount="1"/>
2498
+ <line num="68" count="0" type="stmt"/>
2499
+ <line num="70" count="3" type="cond" truecount="1" falsecount="1"/>
2500
+ <line num="74" count="0" type="stmt"/>
2501
+ <line num="76" count="3" type="cond" truecount="1" falsecount="1"/>
2502
+ <line num="79" count="41" type="stmt"/>
2503
+ <line num="80" count="0" type="stmt"/>
2504
+ <line num="81" count="0" type="stmt"/>
2505
+ <line num="82" count="0" type="stmt"/>
2506
+ <line num="83" count="0" type="stmt"/>
2507
+ <line num="84" count="0" type="stmt"/>
2508
+ <line num="87" count="0" type="stmt"/>
3236
2509
  </file>
3237
2510
  <file name="bullboard.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/bullboard.js">
3238
2511
  <metrics statements="28" coveredstatements="15" conditionals="6" coveredconditionals="3" methods="3" coveredmethods="0"/>
@@ -3290,16 +2563,16 @@
3290
2563
  <line num="11" count="40" type="stmt"/>
3291
2564
  <line num="13" count="40" type="stmt"/>
3292
2565
  <line num="14" count="40" type="stmt"/>
3293
- <line num="20" count="19" type="cond" truecount="1" falsecount="1"/>
2566
+ <line num="20" count="18" type="cond" truecount="1" falsecount="1"/>
3294
2567
  <line num="21" count="0" type="stmt"/>
3295
- <line num="24" count="19" type="stmt"/>
3296
- <line num="25" count="19" type="stmt"/>
3297
- <line num="26" count="19" type="stmt"/>
3298
- <line num="31" count="19" type="stmt"/>
2568
+ <line num="24" count="18" type="stmt"/>
2569
+ <line num="25" count="18" type="stmt"/>
2570
+ <line num="26" count="18" type="stmt"/>
2571
+ <line num="31" count="18" type="stmt"/>
3299
2572
  <line num="32" count="4" type="stmt"/>
3300
2573
  <line num="34" count="4" type="stmt"/>
3301
2574
  <line num="35" count="4" type="cond" truecount="2" falsecount="0"/>
3302
- <line num="38" count="19" type="stmt"/>
2575
+ <line num="38" count="18" type="stmt"/>
3303
2576
  <line num="39" count="4" type="stmt"/>
3304
2577
  <line num="40" count="4" type="cond" truecount="1" falsecount="1"/>
3305
2578
  <line num="44" count="4" type="cond" truecount="1" falsecount="1"/>
@@ -3307,7 +2580,7 @@
3307
2580
  <line num="51" count="4" type="cond" truecount="1" falsecount="1"/>
3308
2581
  <line num="55" count="4" type="stmt"/>
3309
2582
  <line num="61" count="40" type="stmt"/>
3310
- <line num="66" count="9" type="stmt"/>
2583
+ <line num="66" count="8" type="stmt"/>
3311
2584
  <line num="69" count="40" type="stmt"/>
3312
2585
  <line num="74" count="4" type="stmt"/>
3313
2586
  <line num="77" count="40" type="stmt"/>
@@ -3325,91 +2598,9 @@
3325
2598
  <line num="109" count="4" type="stmt"/>
3326
2599
  <line num="113" count="40" type="stmt"/>
3327
2600
  </file>
3328
- <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/utils.js">
3329
- <metrics statements="79" coveredstatements="63" conditionals="38" coveredconditionals="31" methods="11" coveredmethods="9"/>
3330
- <line num="1" count="40" type="stmt"/>
3331
- <line num="2" count="40" type="stmt"/>
3332
- <line num="3" count="40" type="stmt"/>
3333
- <line num="4" count="40" type="stmt"/>
3334
- <line num="5" count="40" type="stmt"/>
3335
- <line num="6" count="40" type="stmt"/>
3336
- <line num="7" count="40" type="stmt"/>
3337
- <line num="8" count="40" type="stmt"/>
3338
- <line num="9" count="40" type="stmt"/>
3339
- <line num="10" count="40" type="stmt"/>
3340
- <line num="11" count="40" type="stmt"/>
3341
- <line num="13" count="40" type="stmt"/>
3342
- <line num="14" count="40" type="stmt"/>
3343
- <line num="15" count="40" type="stmt"/>
3344
- <line num="17" count="40" type="stmt"/>
3345
- <line num="18" count="10" type="stmt"/>
3346
- <line num="20" count="10" type="stmt"/>
3347
- <line num="23" count="10" type="stmt"/>
3348
- <line num="25" count="0" type="stmt"/>
3349
- <line num="26" count="0" type="stmt"/>
3350
- <line num="29" count="0" type="stmt"/>
3351
- <line num="30" count="0" type="stmt"/>
3352
- <line num="34" count="40" type="stmt"/>
3353
- <line num="35" count="2" type="stmt"/>
3354
- <line num="39" count="2" type="cond" truecount="3" falsecount="1"/>
3355
- <line num="40" count="0" type="stmt"/>
3356
- <line num="42" count="2" type="stmt"/>
3357
- <line num="46" count="2" type="stmt"/>
3358
- <line num="51" count="40" type="stmt"/>
3359
- <line num="52" count="80" type="stmt"/>
3360
- <line num="53" count="80" type="stmt"/>
3361
- <line num="54" count="880" type="cond" truecount="2" falsecount="0"/>
3362
- <line num="55" count="40" type="stmt"/>
3363
- <line num="58" count="80" type="stmt"/>
3364
- <line num="62" count="40" type="stmt"/>
3365
- <line num="63" count="206" type="stmt"/>
3366
- <line num="64" count="206" type="stmt"/>
3367
- <line num="65" count="206" type="stmt"/>
3368
- <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
3369
- <line num="67" count="0" type="stmt"/>
3370
- <line num="68" count="0" type="stmt"/>
3371
- <line num="71" count="206" type="stmt"/>
3372
- <line num="79" count="40" type="stmt"/>
3373
- <line num="80" count="1" type="cond" truecount="1" falsecount="1"/>
3374
- <line num="82" count="1" type="stmt"/>
3375
- <line num="89" count="1" type="cond" truecount="1" falsecount="1"/>
3376
- <line num="91" count="0" type="stmt"/>
3377
- <line num="92" count="0" type="stmt"/>
3378
- <line num="100" count="0" type="stmt"/>
3379
- <line num="104" count="0" type="stmt"/>
3380
- <line num="105" count="0" type="stmt"/>
3381
- <line num="106" count="0" type="stmt"/>
3382
- <line num="107" count="0" type="stmt"/>
3383
- <line num="110" count="1" type="stmt"/>
3384
- <line num="121" count="40" type="stmt"/>
3385
- <line num="122" count="23" type="stmt"/>
3386
- <line num="123" count="23" type="cond" truecount="2" falsecount="0"/>
3387
- <line num="124" count="23" type="cond" truecount="2" falsecount="0"/>
3388
- <line num="126" count="23" type="cond" truecount="3" falsecount="0"/>
3389
- <line num="128" count="70" type="stmt"/>
3390
- <line num="135" count="23" type="cond" truecount="2" falsecount="0"/>
3391
- <line num="140" count="1" type="stmt"/>
3392
- <line num="141" count="1" type="stmt"/>
3393
- <line num="143" count="1" type="stmt"/>
3394
- <line num="144" count="1" type="stmt"/>
3395
- <line num="149" count="1" type="cond" truecount="1" falsecount="1"/>
3396
- <line num="150" count="1" type="stmt"/>
3397
- <line num="151" count="1" type="stmt"/>
3398
- <line num="153" count="1" type="stmt"/>
3399
- <line num="159" count="23" type="cond" truecount="2" falsecount="0"/>
3400
- <line num="163" count="1" type="stmt"/>
3401
- <line num="173" count="1" type="stmt"/>
3402
- <line num="174" count="1" type="stmt"/>
3403
- <line num="175" count="1" type="stmt"/>
3404
- <line num="179" count="1" type="stmt"/>
3405
- <line num="180" count="1" type="stmt"/>
3406
- <line num="185" count="23" type="stmt"/>
3407
- <line num="193" count="40" type="stmt"/>
3408
- <line num="194" count="0" type="stmt"/>
3409
- </file>
3410
2601
  </package>
3411
2602
  <package name="automations.steps">
3412
- <metrics statements="240" coveredstatements="177" conditionals="88" coveredconditionals="60" methods="20" coveredmethods="11"/>
2603
+ <metrics statements="211" coveredstatements="148" conditionals="80" coveredconditionals="52" methods="18" coveredmethods="9"/>
3413
2604
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
3414
2605
  <metrics statements="17" coveredstatements="6" conditionals="4" coveredconditionals="0" methods="1" coveredmethods="0"/>
3415
2606
  <line num="1" count="41" type="stmt"/>
@@ -3430,25 +2621,6 @@
3430
2621
  <line num="63" count="0" type="stmt"/>
3431
2622
  <line num="68" count="0" type="stmt"/>
3432
2623
  </file>
3433
- <file name="createRow.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/createRow.js">
3434
- <metrics statements="16" coveredstatements="16" conditionals="4" coveredconditionals="4" methods="1" coveredmethods="1"/>
3435
- <line num="1" count="41" type="stmt"/>
3436
- <line num="2" count="41" type="stmt"/>
3437
- <line num="3" count="41" type="stmt"/>
3438
- <line num="4" count="41" type="stmt"/>
3439
- <line num="6" count="41" type="stmt"/>
3440
- <line num="62" count="41" type="stmt"/>
3441
- <line num="63" count="9" type="cond" truecount="4" falsecount="0"/>
3442
- <line num="64" count="1" type="stmt"/>
3443
- <line num="72" count="8" type="stmt"/>
3444
- <line num="79" count="8" type="stmt"/>
3445
- <line num="80" count="8" type="stmt"/>
3446
- <line num="84" count="7" type="stmt"/>
3447
- <line num="85" count="7" type="stmt"/>
3448
- <line num="86" count="7" type="stmt"/>
3449
- <line num="87" count="7" type="stmt"/>
3450
- <line num="95" count="1" type="stmt"/>
3451
- </file>
3452
2624
  <file name="delay.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/delay.js">
3453
2625
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3454
2626
  <line num="1" count="41" type="stmt"/>
@@ -3457,23 +2629,6 @@
3457
2629
  <line num="35" count="1" type="stmt"/>
3458
2630
  <line num="36" count="1" type="stmt"/>
3459
2631
  </file>
3460
- <file name="deleteRow.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/deleteRow.js">
3461
- <metrics statements="14" coveredstatements="14" conditionals="4" coveredconditionals="4" methods="1" coveredmethods="1"/>
3462
- <line num="1" count="41" type="stmt"/>
3463
- <line num="2" count="41" type="stmt"/>
3464
- <line num="3" count="41" type="stmt"/>
3465
- <line num="4" count="41" type="stmt"/>
3466
- <line num="6" count="41" type="stmt"/>
3467
- <line num="55" count="41" type="stmt"/>
3468
- <line num="56" count="4" type="cond" truecount="4" falsecount="0"/>
3469
- <line num="57" count="1" type="stmt"/>
3470
- <line num="65" count="3" type="stmt"/>
3471
- <line num="75" count="3" type="stmt"/>
3472
- <line num="76" count="3" type="stmt"/>
3473
- <line num="77" count="3" type="stmt"/>
3474
- <line num="78" count="2" type="stmt"/>
3475
- <line num="84" count="1" type="stmt"/>
3476
- </file>
3477
2632
  <file name="discord.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/discord.js">
3478
2633
  <metrics statements="14" coveredstatements="6" conditionals="6" coveredconditionals="0" methods="1" coveredmethods="0"/>
3479
2634
  <line num="1" count="41" type="stmt"/>
@@ -3563,6 +2718,10 @@
3563
2718
  <line num="81" count="0" type="stmt"/>
3564
2719
  <line num="82" count="0" type="stmt"/>
3565
2720
  </file>
2721
+ <file name="loop.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/loop.js">
2722
+ <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2723
+ <line num="1" count="41" type="stmt"/>
2724
+ </file>
3566
2725
  <file name="outgoingWebhook.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/outgoingWebhook.js">
3567
2726
  <metrics statements="25" coveredstatements="21" conditionals="17" coveredconditionals="12" methods="1" coveredmethods="1"/>
3568
2727
  <line num="1" count="41" type="stmt"/>
@@ -3682,13 +2841,13 @@
3682
2841
  <line num="12" count="0" type="stmt"/>
3683
2842
  <line num="14" count="2" type="stmt"/>
3684
2843
  <line num="20" count="41" type="cond" truecount="0" falsecount="1"/>
3685
- <line num="21" count="15" type="stmt"/>
2844
+ <line num="21" count="14" type="stmt"/>
3686
2845
  <line num="26" count="1" type="stmt"/>
3687
- <line num="29" count="15" type="cond" truecount="2" falsecount="0"/>
3688
- <line num="30" count="14" type="stmt"/>
3689
- <line num="32" count="15" type="cond" truecount="1" falsecount="1"/>
3690
- <line num="33" count="15" type="stmt"/>
3691
- <line num="35" count="15" type="stmt"/>
2846
+ <line num="29" count="14" type="cond" truecount="2" falsecount="0"/>
2847
+ <line num="30" count="13" type="stmt"/>
2848
+ <line num="32" count="14" type="cond" truecount="1" falsecount="1"/>
2849
+ <line num="33" count="14" type="stmt"/>
2850
+ <line num="35" count="14" type="stmt"/>
3692
2851
  </file>
3693
2852
  <file name="zapier.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/zapier.js">
3694
2853
  <metrics statements="8" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3740,35 +2899,36 @@
3740
2899
  </file>
3741
2900
  </package>
3742
2901
  <package name="constants">
3743
- <metrics statements="33" coveredstatements="33" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="2"/>
2902
+ <metrics statements="34" coveredstatements="34" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="2"/>
3744
2903
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3745
- <metrics statements="26" coveredstatements="26" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
3746
- <line num="1" count="49" type="stmt"/>
3747
- <line num="2" count="49" type="stmt"/>
3748
- <line num="3" count="49" type="stmt"/>
3749
- <line num="5" count="49" type="stmt"/>
3750
- <line num="9" count="49" type="stmt"/>
3751
- <line num="22" count="49" type="stmt"/>
3752
- <line num="23" count="49" type="stmt"/>
3753
- <line num="32" count="49" type="stmt"/>
3754
- <line num="48" count="49" type="stmt"/>
3755
- <line num="54" count="49" type="stmt"/>
3756
- <line num="55" count="98" type="cond" truecount="1" falsecount="1"/>
3757
- <line num="58" count="49" type="stmt"/>
3758
- <line num="64" count="49" type="stmt"/>
3759
- <line num="69" count="49" type="stmt"/>
3760
- <line num="75" count="49" type="stmt"/>
3761
- <line num="86" count="49" type="stmt"/>
3762
- <line num="90" count="49" type="stmt"/>
3763
- <line num="95" count="49" type="stmt"/>
3764
- <line num="157" count="49" type="stmt"/>
3765
- <line num="165" count="49" type="stmt"/>
3766
- <line num="166" count="49" type="stmt"/>
3767
- <line num="173" count="49" type="stmt"/>
3768
- <line num="178" count="49" type="stmt"/>
3769
- <line num="184" count="49" type="stmt"/>
3770
- <line num="189" count="49" type="stmt"/>
3771
- <line num="194" count="49" type="stmt"/>
2904
+ <metrics statements="27" coveredstatements="27" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
2905
+ <line num="1" count="48" type="stmt"/>
2906
+ <line num="2" count="48" type="stmt"/>
2907
+ <line num="3" count="48" type="stmt"/>
2908
+ <line num="5" count="48" type="stmt"/>
2909
+ <line num="9" count="48" type="stmt"/>
2910
+ <line num="22" count="48" type="stmt"/>
2911
+ <line num="23" count="48" type="stmt"/>
2912
+ <line num="32" count="48" type="stmt"/>
2913
+ <line num="48" count="48" type="stmt"/>
2914
+ <line num="54" count="48" type="stmt"/>
2915
+ <line num="55" count="96" type="cond" truecount="1" falsecount="1"/>
2916
+ <line num="58" count="48" type="stmt"/>
2917
+ <line num="64" count="48" type="stmt"/>
2918
+ <line num="69" count="48" type="stmt"/>
2919
+ <line num="75" count="48" type="stmt"/>
2920
+ <line num="86" count="48" type="stmt"/>
2921
+ <line num="90" count="48" type="stmt"/>
2922
+ <line num="95" count="48" type="stmt"/>
2923
+ <line num="157" count="48" type="stmt"/>
2924
+ <line num="165" count="48" type="stmt"/>
2925
+ <line num="166" count="48" type="stmt"/>
2926
+ <line num="173" count="48" type="stmt"/>
2927
+ <line num="178" count="48" type="stmt"/>
2928
+ <line num="184" count="48" type="stmt"/>
2929
+ <line num="189" count="48" type="stmt"/>
2930
+ <line num="193" count="48" type="stmt"/>
2931
+ <line num="200" count="48" type="stmt"/>
3772
2932
  </file>
3773
2933
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3774
2934
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3825,124 +2985,124 @@
3825
2985
  </file>
3826
2986
  <file name="newid.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/newid.js">
3827
2987
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3828
- <line num="1" count="55" type="stmt"/>
3829
- <line num="3" count="55" type="stmt"/>
3830
- <line num="4" count="1001" type="stmt"/>
2988
+ <line num="1" count="54" type="stmt"/>
2989
+ <line num="3" count="54" type="stmt"/>
2990
+ <line num="4" count="996" type="stmt"/>
3831
2991
  </file>
3832
2992
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3833
2993
  <metrics statements="113" coveredstatements="103" conditionals="51" coveredconditionals="19" methods="32" coveredmethods="27"/>
3834
- <line num="1" count="55" type="stmt"/>
3835
- <line num="12" count="55" type="stmt"/>
3836
- <line num="14" count="55" type="stmt"/>
3837
- <line num="16" count="55" type="stmt"/>
3838
- <line num="22" count="55" type="stmt"/>
3839
- <line num="46" count="55" type="stmt"/>
3840
- <line num="51" count="55" type="stmt"/>
3841
- <line num="55" count="55" type="stmt"/>
3842
- <line num="59" count="55" type="stmt"/>
3843
- <line num="61" count="55" type="stmt"/>
3844
- <line num="69" count="55" type="stmt"/>
3845
- <line num="70" count="55" type="stmt"/>
3846
- <line num="71" count="55" type="stmt"/>
3847
- <line num="72" count="55" type="stmt"/>
3848
- <line num="73" count="55" type="stmt"/>
3849
- <line num="74" count="55" type="stmt"/>
3850
- <line num="75" count="55" type="stmt"/>
3851
- <line num="76" count="55" type="stmt"/>
3852
- <line num="77" count="55" type="stmt"/>
3853
- <line num="78" count="55" type="stmt"/>
3854
- <line num="79" count="55" type="stmt"/>
3855
- <line num="80" count="55" type="stmt"/>
3856
- <line num="81" count="55" type="stmt"/>
3857
- <line num="82" count="55" type="stmt"/>
3858
- <line num="84" count="55" type="stmt"/>
3859
- <line num="85" count="55" type="stmt"/>
3860
- <line num="87" count="55" type="stmt"/>
2994
+ <line num="1" count="54" type="stmt"/>
2995
+ <line num="12" count="54" type="stmt"/>
2996
+ <line num="14" count="54" type="stmt"/>
2997
+ <line num="16" count="54" type="stmt"/>
2998
+ <line num="22" count="54" type="stmt"/>
2999
+ <line num="46" count="54" type="stmt"/>
3000
+ <line num="51" count="54" type="stmt"/>
3001
+ <line num="55" count="54" type="stmt"/>
3002
+ <line num="59" count="54" type="stmt"/>
3003
+ <line num="61" count="54" type="stmt"/>
3004
+ <line num="69" count="54" type="stmt"/>
3005
+ <line num="70" count="54" type="stmt"/>
3006
+ <line num="71" count="54" type="stmt"/>
3007
+ <line num="72" count="54" type="stmt"/>
3008
+ <line num="73" count="54" type="stmt"/>
3009
+ <line num="74" count="54" type="stmt"/>
3010
+ <line num="75" count="54" type="stmt"/>
3011
+ <line num="76" count="54" type="stmt"/>
3012
+ <line num="77" count="54" type="stmt"/>
3013
+ <line num="78" count="54" type="stmt"/>
3014
+ <line num="79" count="54" type="stmt"/>
3015
+ <line num="80" count="54" type="stmt"/>
3016
+ <line num="81" count="54" type="stmt"/>
3017
+ <line num="82" count="54" type="stmt"/>
3018
+ <line num="84" count="54" type="stmt"/>
3019
+ <line num="85" count="54" type="stmt"/>
3020
+ <line num="87" count="54" type="stmt"/>
3861
3021
  <line num="88" count="74" type="stmt"/>
3862
- <line num="104" count="903" type="cond" truecount="2" falsecount="0"/>
3863
- <line num="105" count="888" type="stmt"/>
3864
- <line num="107" count="903" type="stmt"/>
3865
- <line num="114" count="55" type="stmt"/>
3866
- <line num="119" count="55" type="cond" truecount="0" falsecount="2"/>
3867
- <line num="120" count="222" type="stmt"/>
3868
- <line num="127" count="55" type="stmt"/>
3869
- <line num="128" count="106" type="stmt"/>
3870
- <line num="139" count="55" type="cond" truecount="0" falsecount="3"/>
3871
- <line num="140" count="16" type="cond" truecount="2" falsecount="0"/>
3872
- <line num="141" count="4" type="stmt"/>
3022
+ <line num="104" count="908" type="cond" truecount="2" falsecount="0"/>
3023
+ <line num="105" count="893" type="stmt"/>
3024
+ <line num="107" count="908" type="stmt"/>
3025
+ <line num="114" count="54" type="stmt"/>
3026
+ <line num="119" count="54" type="cond" truecount="0" falsecount="2"/>
3027
+ <line num="120" count="220" type="stmt"/>
3028
+ <line num="127" count="54" type="stmt"/>
3029
+ <line num="128" count="105" type="stmt"/>
3030
+ <line num="139" count="54" type="cond" truecount="0" falsecount="3"/>
3031
+ <line num="140" count="27" type="cond" truecount="2" falsecount="0"/>
3032
+ <line num="141" count="15" type="stmt"/>
3873
3033
  <line num="144" count="12" type="cond" truecount="1" falsecount="1"/>
3874
3034
  <line num="146" count="12" type="stmt"/>
3875
- <line num="154" count="55" type="stmt"/>
3035
+ <line num="154" count="54" type="stmt"/>
3876
3036
  <line num="155" count="0" type="stmt"/>
3877
3037
  <line num="158" count="0" type="stmt"/>
3878
- <line num="167" count="55" type="cond" truecount="1" falsecount="0"/>
3879
- <line num="168" count="265" type="cond" truecount="2" falsecount="0"/>
3880
- <line num="169" count="265" type="stmt"/>
3881
- <line num="175" count="55" type="cond" truecount="0" falsecount="2"/>
3038
+ <line num="167" count="54" type="cond" truecount="1" falsecount="0"/>
3039
+ <line num="168" count="264" type="cond" truecount="2" falsecount="0"/>
3040
+ <line num="169" count="264" type="stmt"/>
3041
+ <line num="175" count="54" type="cond" truecount="0" falsecount="2"/>
3882
3042
  <line num="176" count="3" type="stmt"/>
3883
- <line num="184" count="55" type="stmt"/>
3043
+ <line num="184" count="54" type="stmt"/>
3884
3044
  <line num="185" count="193" type="stmt"/>
3885
- <line num="191" count="55" type="stmt"/>
3045
+ <line num="191" count="54" type="stmt"/>
3886
3046
  <line num="192" count="2" type="stmt"/>
3887
3047
  <line num="193" count="2" type="cond" truecount="4" falsecount="0"/>
3888
3048
  <line num="194" count="1" type="stmt"/>
3889
3049
  <line num="196" count="1" type="stmt"/>
3890
- <line num="202" count="55" type="cond" truecount="0" falsecount="2"/>
3891
- <line num="203" count="227" type="stmt"/>
3892
- <line num="210" count="55" type="stmt"/>
3050
+ <line num="202" count="54" type="cond" truecount="0" falsecount="2"/>
3051
+ <line num="203" count="225" type="stmt"/>
3052
+ <line num="210" count="54" type="stmt"/>
3893
3053
  <line num="211" count="20" type="stmt"/>
3894
- <line num="225" count="55" type="stmt"/>
3054
+ <line num="225" count="54" type="stmt"/>
3895
3055
  <line num="233" count="9" type="stmt"/>
3896
3056
  <line num="234" count="9" type="stmt"/>
3897
3057
  <line num="235" count="9" type="stmt"/>
3898
3058
  <line num="236" count="9" type="stmt"/>
3899
- <line num="242" count="55" type="cond" truecount="0" falsecount="1"/>
3059
+ <line num="242" count="54" type="cond" truecount="0" falsecount="1"/>
3900
3060
  <line num="243" count="0" type="stmt"/>
3901
- <line num="250" count="55" type="cond" truecount="0" falsecount="1"/>
3902
- <line num="251" count="200" type="stmt"/>
3903
- <line num="252" count="200" type="cond" truecount="1" falsecount="1"/>
3061
+ <line num="250" count="54" type="cond" truecount="0" falsecount="1"/>
3062
+ <line num="251" count="199" type="stmt"/>
3063
+ <line num="252" count="199" type="cond" truecount="1" falsecount="1"/>
3904
3064
  <line num="253" count="0" type="stmt"/>
3905
- <line num="255" count="200" type="stmt"/>
3906
- <line num="262" count="55" type="stmt"/>
3907
- <line num="263" count="200" type="stmt"/>
3908
- <line num="264" count="200" type="stmt"/>
3909
- <line num="265" count="200" type="stmt"/>
3910
- <line num="272" count="55" type="stmt"/>
3065
+ <line num="255" count="199" type="stmt"/>
3066
+ <line num="262" count="54" type="stmt"/>
3067
+ <line num="263" count="199" type="stmt"/>
3068
+ <line num="264" count="199" type="stmt"/>
3069
+ <line num="265" count="199" type="stmt"/>
3070
+ <line num="272" count="54" type="stmt"/>
3911
3071
  <line num="273" count="5" type="cond" truecount="2" falsecount="0"/>
3912
- <line num="279" count="55" type="cond" truecount="0" falsecount="2"/>
3913
- <line num="280" count="213" type="stmt"/>
3914
- <line num="287" count="55" type="stmt"/>
3072
+ <line num="279" count="54" type="cond" truecount="0" falsecount="2"/>
3073
+ <line num="280" count="212" type="stmt"/>
3074
+ <line num="287" count="54" type="stmt"/>
3915
3075
  <line num="288" count="19" type="stmt"/>
3916
- <line num="294" count="55" type="cond" truecount="0" falsecount="2"/>
3917
- <line num="295" count="215" type="stmt"/>
3918
- <line num="302" count="55" type="stmt"/>
3076
+ <line num="294" count="54" type="cond" truecount="0" falsecount="2"/>
3077
+ <line num="295" count="214" type="stmt"/>
3078
+ <line num="302" count="54" type="stmt"/>
3919
3079
  <line num="303" count="10" type="stmt"/>
3920
- <line num="309" count="55" type="cond" truecount="0" falsecount="2"/>
3080
+ <line num="309" count="54" type="cond" truecount="0" falsecount="2"/>
3921
3081
  <line num="310" count="2" type="stmt"/>
3922
- <line num="317" count="55" type="cond" truecount="1" falsecount="1"/>
3082
+ <line num="317" count="54" type="cond" truecount="1" falsecount="1"/>
3923
3083
  <line num="318" count="39" type="stmt"/>
3924
- <line num="326" count="55" type="cond" truecount="0" falsecount="2"/>
3084
+ <line num="326" count="54" type="cond" truecount="0" falsecount="2"/>
3925
3085
  <line num="327" count="4" type="stmt"/>
3926
- <line num="334" count="55" type="stmt"/>
3086
+ <line num="334" count="54" type="stmt"/>
3927
3087
  <line num="335" count="131" type="stmt"/>
3928
- <line num="343" count="55" type="cond" truecount="0" falsecount="2"/>
3088
+ <line num="343" count="54" type="cond" truecount="0" falsecount="2"/>
3929
3089
  <line num="344" count="4" type="cond" truecount="2" falsecount="0"/>
3930
3090
  <line num="345" count="3" type="stmt"/>
3931
3091
  <line num="348" count="1" type="stmt"/>
3932
- <line num="359" count="55" type="stmt"/>
3092
+ <line num="359" count="54" type="stmt"/>
3933
3093
  <line num="360" count="0" type="stmt"/>
3934
- <line num="363" count="55" type="stmt"/>
3094
+ <line num="363" count="54" type="stmt"/>
3935
3095
  <line num="364" count="10" type="stmt"/>
3936
- <line num="367" count="55" type="cond" truecount="0" falsecount="2"/>
3096
+ <line num="367" count="54" type="cond" truecount="0" falsecount="2"/>
3937
3097
  <line num="368" count="0" type="stmt"/>
3938
3098
  <line num="369" count="0" type="cond" truecount="0" falsecount="2"/>
3939
3099
  <line num="370" count="0" type="stmt"/>
3940
3100
  <line num="372" count="0" type="stmt"/>
3941
- <line num="375" count="55" type="stmt"/>
3101
+ <line num="375" count="54" type="stmt"/>
3942
3102
  <line num="376" count="1" type="stmt"/>
3943
- <line num="379" count="55" type="cond" truecount="0" falsecount="1"/>
3103
+ <line num="379" count="54" type="cond" truecount="0" falsecount="1"/>
3944
3104
  <line num="380" count="0" type="stmt"/>
3945
- <line num="386" count="55" type="stmt"/>
3105
+ <line num="386" count="54" type="stmt"/>
3946
3106
  <line num="387" count="60" type="stmt"/>
3947
3107
  </file>
3948
3108
  </package>
@@ -3959,21 +3119,21 @@
3959
3119
  <line num="41" count="9" type="stmt"/>
3960
3120
  <line num="42" count="9" type="stmt"/>
3961
3121
  <line num="47" count="9" type="stmt"/>
3962
- <line num="56" count="201" type="stmt"/>
3963
- <line num="57" count="201" type="stmt"/>
3964
- <line num="58" count="201" type="stmt"/>
3965
- <line num="59" count="201" type="stmt"/>
3966
- <line num="60" count="201" type="stmt"/>
3122
+ <line num="56" count="199" type="stmt"/>
3123
+ <line num="57" count="199" type="stmt"/>
3124
+ <line num="58" count="199" type="stmt"/>
3125
+ <line num="59" count="199" type="stmt"/>
3126
+ <line num="60" count="199" type="stmt"/>
3967
3127
  <line num="69" count="53" type="cond" truecount="2" falsecount="0"/>
3968
3128
  <line num="70" count="6" type="stmt"/>
3969
3129
  <line num="73" count="53" type="stmt"/>
3970
- <line num="84" count="195" type="cond" truecount="2" falsecount="0"/>
3130
+ <line num="84" count="193" type="cond" truecount="2" falsecount="0"/>
3971
3131
  <line num="85" count="6" type="stmt"/>
3972
- <line num="87" count="195" type="stmt"/>
3973
- <line num="88" count="479" type="stmt"/>
3974
- <line num="89" count="479" type="cond" truecount="2" falsecount="0"/>
3132
+ <line num="87" count="193" type="stmt"/>
3133
+ <line num="88" count="475" type="stmt"/>
3134
+ <line num="89" count="475" type="cond" truecount="2" falsecount="0"/>
3975
3135
  <line num="90" count="41" type="stmt"/>
3976
- <line num="93" count="154" type="stmt"/>
3136
+ <line num="93" count="152" type="stmt"/>
3977
3137
  <line num="100" count="27" type="stmt"/>
3978
3138
  <line num="111" count="9" type="stmt"/>
3979
3139
  <line num="121" count="22" type="stmt"/>
@@ -4141,14 +3301,14 @@
4141
3301
  <line num="90" count="30" type="stmt"/>
4142
3302
  <line num="91" count="30" type="stmt"/>
4143
3303
  <line num="105" count="41" type="stmt"/>
4144
- <line num="106" count="191" type="stmt"/>
4145
- <line num="107" count="191" type="cond" truecount="2" falsecount="0"/>
4146
- <line num="109" count="191" type="cond" truecount="4" falsecount="0"/>
4147
- <line num="110" count="109" type="stmt"/>
4148
- <line num="112" count="191" type="stmt"/>
4149
- <line num="113" count="191" type="stmt"/>
4150
- <line num="114" count="191" type="cond" truecount="2" falsecount="0"/>
4151
- <line num="119" count="150" type="stmt"/>
3304
+ <line num="106" count="189" type="stmt"/>
3305
+ <line num="107" count="189" type="cond" truecount="2" falsecount="0"/>
3306
+ <line num="109" count="189" type="cond" truecount="4" falsecount="0"/>
3307
+ <line num="110" count="108" type="stmt"/>
3308
+ <line num="112" count="189" type="stmt"/>
3309
+ <line num="113" count="189" type="stmt"/>
3310
+ <line num="114" count="189" type="cond" truecount="2" falsecount="0"/>
3311
+ <line num="119" count="148" type="stmt"/>
4152
3312
  <line num="122" count="0" type="stmt"/>
4153
3313
  <line num="124" count="41" type="cond" truecount="5" falsecount="2"/>
4154
3314
  <line num="127" count="21" type="stmt"/>
@@ -4158,9 +3318,9 @@
4158
3318
  <line num="135" count="1" type="stmt"/>
4159
3319
  <line num="137" count="0" type="stmt"/>
4160
3320
  <line num="148" count="41" type="stmt"/>
4161
- <line num="149" count="113" type="stmt"/>
4162
- <line num="150" count="113" type="cond" truecount="2" falsecount="0"/>
4163
- <line num="151" count="83" type="stmt"/>
3321
+ <line num="149" count="112" type="stmt"/>
3322
+ <line num="150" count="112" type="cond" truecount="2" falsecount="0"/>
3323
+ <line num="151" count="82" type="stmt"/>
4164
3324
  <line num="154" count="30" type="stmt"/>
4165
3325
  <line num="155" count="25" type="stmt"/>
4166
3326
  <line num="158" count="30" type="stmt"/>
@@ -4231,8 +3391,8 @@
4231
3391
  <line num="80" count="30" type="stmt"/>
4232
3392
  <line num="81" count="33" type="stmt"/>
4233
3393
  <line num="85" count="41" type="stmt"/>
4234
- <line num="86" count="113" type="stmt"/>
4235
- <line num="87" count="322" type="stmt"/>
3394
+ <line num="86" count="112" type="stmt"/>
3395
+ <line num="87" count="320" type="stmt"/>
4236
3396
  <line num="88" count="53" type="stmt"/>
4237
3397
  <line num="91" count="41" type="stmt"/>
4238
3398
  <line num="92" count="68" type="stmt"/>
@@ -4257,24 +3417,24 @@
4257
3417
  <metrics statements="38" coveredstatements="34" conditionals="18" coveredconditionals="10" methods="8" coveredmethods="7"/>
4258
3418
  <file name="AutomationEmitter.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/AutomationEmitter.js">
4259
3419
  <metrics statements="12" coveredstatements="9" conditionals="6" coveredconditionals="2" methods="3" coveredmethods="2"/>
4260
- <line num="1" count="4" type="stmt"/>
4261
- <line num="2" count="4" type="stmt"/>
4262
- <line num="5" count="4" type="stmt"/>
4263
- <line num="15" count="7" type="stmt"/>
4264
- <line num="16" count="7" type="stmt"/>
3420
+ <line num="1" count="3" type="stmt"/>
3421
+ <line num="2" count="3" type="stmt"/>
3422
+ <line num="5" count="3" type="stmt"/>
3423
+ <line num="15" count="6" type="stmt"/>
3424
+ <line num="16" count="6" type="stmt"/>
4265
3425
  <line num="23" count="5" type="cond" truecount="2" falsecount="0"/>
4266
3426
  <line num="24" count="1" type="stmt"/>
4267
3427
  <line num="26" count="4" type="stmt"/>
4268
3428
  <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4269
3429
  <line num="39" count="0" type="stmt"/>
4270
3430
  <line num="41" count="0" type="stmt"/>
4271
- <line num="51" count="4" type="stmt"/>
3431
+ <line num="51" count="3" type="stmt"/>
4272
3432
  </file>
4273
3433
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/index.js">
4274
3434
  <metrics statements="7" coveredstatements="7" conditionals="2" coveredconditionals="1" methods="3" coveredmethods="3"/>
4275
3435
  <line num="1" count="41" type="stmt"/>
4276
3436
  <line num="2" count="41" type="stmt"/>
4277
- <line num="16" count="15" type="stmt"/>
3437
+ <line num="16" count="14" type="stmt"/>
4278
3438
  <line num="20" count="10" type="stmt"/>
4279
3439
  <line num="24" count="24" type="stmt"/>
4280
3440
  <line num="28" count="41" type="stmt"/>
@@ -4283,15 +3443,15 @@
4283
3443
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/utils.js">
4284
3444
  <metrics statements="19" coveredstatements="18" conditionals="10" coveredconditionals="7" methods="2" coveredmethods="2"/>
4285
3445
  <line num="1" count="41" type="stmt"/>
4286
- <line num="2" count="19" type="stmt"/>
4287
- <line num="7" count="19" type="cond" truecount="2" falsecount="0"/>
4288
- <line num="8" count="13" type="stmt"/>
4289
- <line num="10" count="19" type="stmt"/>
4290
- <line num="11" count="19" type="cond" truecount="1" falsecount="1"/>
4291
- <line num="12" count="19" type="stmt"/>
4292
- <line num="14" count="19" type="cond" truecount="2" falsecount="0"/>
3446
+ <line num="2" count="18" type="stmt"/>
3447
+ <line num="7" count="18" type="cond" truecount="2" falsecount="0"/>
3448
+ <line num="8" count="12" type="stmt"/>
3449
+ <line num="10" count="18" type="stmt"/>
3450
+ <line num="11" count="18" type="cond" truecount="1" falsecount="1"/>
3451
+ <line num="12" count="18" type="stmt"/>
3452
+ <line num="14" count="18" type="cond" truecount="2" falsecount="0"/>
4293
3453
  <line num="15" count="4" type="stmt"/>
4294
- <line num="17" count="19" type="stmt"/>
3454
+ <line num="17" count="18" type="stmt"/>
4295
3455
  <line num="20" count="41" type="stmt"/>
4296
3456
  <line num="21" count="10" type="stmt"/>
4297
3457
  <line num="22" count="10" type="stmt"/>
@@ -4310,7 +3470,7 @@
4310
3470
  </file>
4311
3471
  </package>
4312
3472
  <package name="middleware">
4313
- <metrics statements="285" coveredstatements="234" conditionals="203" coveredconditionals="143" methods="39" coveredmethods="34"/>
3473
+ <metrics statements="174" coveredstatements="149" conditionals="117" coveredconditionals="89" methods="25" coveredmethods="25"/>
4314
3474
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
4315
3475
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
4316
3476
  <line num="1" count="24" type="stmt"/>
@@ -4324,58 +3484,6 @@
4324
3484
  <line num="16" count="0" type="stmt"/>
4325
3485
  <line num="18" count="7" type="stmt"/>
4326
3486
  </file>
4327
- <file name="authorized.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/authorized.js">
4328
- <metrics statements="49" coveredstatements="44" conditionals="47" coveredconditionals="39" methods="6" coveredmethods="5"/>
4329
- <line num="5" count="25" type="stmt"/>
4330
- <line num="10" count="25" type="stmt"/>
4331
- <line num="11" count="25" type="stmt"/>
4332
- <line num="12" count="25" type="stmt"/>
4333
- <line num="13" count="25" type="stmt"/>
4334
- <line num="14" count="25" type="stmt"/>
4335
- <line num="17" count="176" type="stmt"/>
4336
- <line num="20" count="25" type="stmt"/>
4337
- <line num="28" count="25" type="stmt"/>
4338
- <line num="30" count="177" type="cond" truecount="3" falsecount="0"/>
4339
- <line num="31" count="177" type="stmt"/>
4340
- <line num="32" count="177" type="cond" truecount="4" falsecount="0"/>
4341
- <line num="33" count="28" type="stmt"/>
4342
- <line num="37" count="149" type="cond" truecount="2" falsecount="0"/>
4343
- <line num="38" count="3" type="stmt"/>
4344
- <line num="42" count="25" type="stmt"/>
4345
- <line num="49" count="3" type="cond" truecount="2" falsecount="0"/>
4346
- <line num="50" count="3" type="stmt"/>
4347
- <line num="53" count="3" type="stmt"/>
4348
- <line num="55" count="3" type="cond" truecount="1" falsecount="1"/>
4349
- <line num="57" count="0" type="stmt"/>
4350
- <line num="58" count="0" type="cond" truecount="0" falsecount="2"/>
4351
- <line num="59" count="0" type="stmt"/>
4352
- <line num="62" count="3" type="cond" truecount="1" falsecount="1"/>
4353
- <line num="63" count="3" type="stmt"/>
4354
- <line num="67" count="25" type="stmt"/>
4355
- <line num="69" count="2703" type="stmt"/>
4356
- <line num="72" count="183" type="cond" truecount="4" falsecount="0"/>
4357
- <line num="73" count="1" type="stmt"/>
4358
- <line num="76" count="182" type="cond" truecount="2" falsecount="0"/>
4359
- <line num="77" count="1" type="stmt"/>
4360
- <line num="82" count="181" type="stmt"/>
4361
- <line num="85" count="181" type="stmt"/>
4362
- <line num="88" count="181" type="cond" truecount="2" falsecount="0"/>
4363
- <line num="91" count="181" type="stmt"/>
4364
- <line num="92" count="181" type="cond" truecount="4" falsecount="0"/>
4365
- <line num="93" count="69" type="stmt"/>
4366
- <line num="94" count="69" type="cond" truecount="3" falsecount="1"/>
4367
- <line num="95" count="0" type="stmt"/>
4368
- <line num="100" count="181" type="cond" truecount="2" falsecount="0"/>
4369
- <line num="104" count="1" type="stmt"/>
4370
- <line num="108" count="180" type="cond" truecount="2" falsecount="0"/>
4371
- <line num="109" count="3" type="stmt"/>
4372
- <line num="112" count="177" type="stmt"/>
4373
- <line num="114" count="177" type="stmt"/>
4374
- <line num="117" count="27" type="cond" truecount="3" falsecount="2"/>
4375
- <line num="118" count="0" type="stmt"/>
4376
- <line num="120" count="27" type="stmt"/>
4377
- <line num="125" count="150" type="stmt"/>
4378
- </file>
4379
3487
  <file name="builder.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/builder.js">
4380
3488
  <metrics statements="36" coveredstatements="32" conditionals="22" coveredconditionals="17" methods="4" coveredmethods="4"/>
4381
3489
  <line num="1" count="25" type="stmt"/>
@@ -4416,7 +3524,7 @@
4416
3524
  <line num="78" count="1" type="stmt"/>
4417
3525
  </file>
4418
3526
  <file name="currentapp.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/currentapp.js">
4419
- <metrics statements="56" coveredstatements="46" conditionals="43" coveredconditionals="33" methods="2" coveredmethods="2"/>
3527
+ <metrics statements="63" coveredstatements="50" conditionals="55" coveredconditionals="44" methods="2" coveredmethods="2"/>
4420
3528
  <line num="6" count="29" type="stmt"/>
4421
3529
  <line num="7" count="29" type="stmt"/>
4422
3530
  <line num="8" count="29" type="stmt"/>
@@ -4454,25 +3562,32 @@
4454
3562
  <line num="62" count="185" type="stmt"/>
4455
3563
  <line num="63" count="185" type="stmt"/>
4456
3564
  <line num="65" count="185" type="cond" truecount="2" falsecount="0"/>
4457
- <line num="69" count="190" type="cond" truecount="1" falsecount="1"/>
4458
- <line num="70" count="0" type="stmt"/>
4459
- <line num="73" count="190" type="stmt"/>
4460
- <line num="74" count="190" type="stmt"/>
4461
- <line num="77" count="190" type="cond" truecount="1" falsecount="1"/>
4462
- <line num="84" count="0" type="stmt"/>
3565
+ <line num="69" count="185" type="cond" truecount="3" falsecount="0"/>
3566
+ <line num="70" count="185" type="cond" truecount="2" falsecount="0"/>
3567
+ <line num="71" count="185" type="cond" truecount="2" falsecount="0"/>
3568
+ <line num="72" count="185" type="cond" truecount="4" falsecount="1"/>
3569
+ <line num="74" count="0" type="stmt"/>
3570
+ <line num="75" count="0" type="stmt"/>
3571
+ <line num="76" count="0" type="stmt"/>
3572
+ <line num="84" count="190" type="cond" truecount="1" falsecount="1"/>
4463
3573
  <line num="85" count="0" type="stmt"/>
4464
- <line num="86" count="0" type="stmt"/>
4465
- <line num="87" count="0" type="stmt"/>
4466
- <line num="88" count="0" type="stmt"/>
4467
- <line num="89" count="0" type="stmt"/>
4468
- <line num="92" count="190" type="stmt"/>
4469
- <line num="93" count="190" type="cond" truecount="1" falsecount="1"/>
4470
- <line num="94" count="190" type="stmt"/>
4471
- <line num="95" count="190" type="cond" truecount="2" falsecount="0"/>
4472
- <line num="96" count="190" type="stmt"/>
4473
- <line num="105" count="190" type="cond" truecount="2" falsecount="0"/>
4474
- <line num="111" count="7" type="stmt"/>
4475
- <line num="114" count="190" type="stmt"/>
3574
+ <line num="88" count="190" type="stmt"/>
3575
+ <line num="89" count="190" type="stmt"/>
3576
+ <line num="92" count="190" type="cond" truecount="1" falsecount="1"/>
3577
+ <line num="99" count="0" type="stmt"/>
3578
+ <line num="100" count="0" type="stmt"/>
3579
+ <line num="101" count="0" type="stmt"/>
3580
+ <line num="102" count="0" type="stmt"/>
3581
+ <line num="103" count="0" type="stmt"/>
3582
+ <line num="104" count="0" type="stmt"/>
3583
+ <line num="107" count="190" type="stmt"/>
3584
+ <line num="108" count="190" type="cond" truecount="1" falsecount="1"/>
3585
+ <line num="109" count="190" type="stmt"/>
3586
+ <line num="110" count="190" type="cond" truecount="2" falsecount="0"/>
3587
+ <line num="111" count="190" type="stmt"/>
3588
+ <line num="120" count="190" type="cond" truecount="2" falsecount="0"/>
3589
+ <line num="126" count="7" type="stmt"/>
3590
+ <line num="129" count="190" type="stmt"/>
4476
3591
  </file>
4477
3592
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
4478
3593
  <metrics statements="17" coveredstatements="14" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
@@ -4548,78 +3663,6 @@
4548
3663
  <line num="7" count="1" type="stmt"/>
4549
3664
  <line num="9" count="0" type="stmt"/>
4550
3665
  </file>
4551
- <file name="usageQuota.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/usageQuota.js">
4552
- <metrics statements="69" coveredstatements="45" conditionals="51" coveredconditionals="26" methods="8" coveredmethods="4"/>
4553
- <line num="1" count="25" type="stmt"/>
4554
- <line num="2" count="25" type="stmt"/>
4555
- <line num="6" count="25" type="stmt"/>
4556
- <line num="7" count="25" type="stmt"/>
4557
- <line num="10" count="25" type="stmt"/>
4558
- <line num="15" count="25" type="stmt"/>
4559
- <line num="27" count="4" type="stmt"/>
4560
- <line num="28" count="7" type="cond" truecount="2" falsecount="0"/>
4561
- <line num="29" count="4" type="stmt"/>
4562
- <line num="34" count="25" type="stmt"/>
4563
- <line num="35" count="24" type="cond" truecount="2" falsecount="0"/>
4564
- <line num="36" count="20" type="stmt"/>
4565
- <line num="39" count="4" type="stmt"/>
4566
- <line num="40" count="4" type="stmt"/>
4567
- <line num="41" count="4" type="cond" truecount="3" falsecount="1"/>
4568
- <line num="42" count="0" type="stmt"/>
4569
- <line num="45" count="4" type="cond" truecount="5" falsecount="0"/>
4570
- <line num="46" count="2" type="stmt"/>
4571
- <line num="47" count="2" type="stmt"/>
4572
- <line num="48" count="2" type="cond" truecount="1" falsecount="1"/>
4573
- <line num="49" count="2" type="stmt"/>
4574
- <line num="50" count="0" type="stmt"/>
4575
- <line num="52" count="0" type="stmt"/>
4576
- <line num="54" count="2" type="cond" truecount="1" falsecount="1"/>
4577
- <line num="60" count="0" type="stmt"/>
4578
- <line num="62" count="2" type="stmt"/>
4579
- <line num="68" count="4" type="cond" truecount="1" falsecount="1"/>
4580
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
4581
- <line num="73" count="0" type="stmt"/>
4582
- <line num="75" count="4" type="stmt"/>
4583
- <line num="76" count="4" type="stmt"/>
4584
- <line num="78" count="0" type="stmt"/>
4585
- <line num="82" count="25" type="stmt"/>
4586
- <line num="83" count="4" type="stmt"/>
4587
- <line num="89" count="4" type="cond" truecount="1" falsecount="1"/>
4588
- <line num="90" count="0" type="cond" truecount="0" falsecount="2"/>
4589
- <line num="91" count="0" type="stmt"/>
4590
- <line num="94" count="4" type="cond" truecount="1" falsecount="1"/>
4591
- <line num="95" count="0" type="stmt"/>
4592
- <line num="100" count="4" type="cond" truecount="1" falsecount="1"/>
4593
- <line num="101" count="4" type="stmt"/>
4594
- <line num="102" count="4" type="stmt"/>
4595
- <line num="105" count="4" type="cond" truecount="1" falsecount="1"/>
4596
- <line num="106" count="0" type="cond" truecount="0" falsecount="2"/>
4597
- <line num="107" count="0" type="stmt"/>
4598
- <line num="110" count="4" type="cond" truecount="2" falsecount="0"/>
4599
- <line num="111" count="3" type="stmt"/>
4600
- <line num="116" count="4" type="cond" truecount="1" falsecount="1"/>
4601
- <line num="117" count="4" type="stmt"/>
4602
- <line num="121" count="25" type="stmt"/>
4603
- <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
4604
- <line num="124" count="0" type="stmt"/>
4605
- <line num="125" count="0" type="stmt"/>
4606
- <line num="129" count="0" type="stmt"/>
4607
- <line num="130" count="0" type="cond" truecount="0" falsecount="2"/>
4608
- <line num="131" count="0" type="stmt"/>
4609
- <line num="135" count="25" type="stmt"/>
4610
- <line num="137" count="0" type="stmt"/>
4611
- <line num="138" count="0" type="cond" truecount="0" falsecount="2"/>
4612
- <line num="139" count="0" type="stmt"/>
4613
- <line num="143" count="25" type="stmt"/>
4614
- <line num="145" count="3" type="cond" truecount="1" falsecount="1"/>
4615
- <line num="146" count="0" type="stmt"/>
4616
- <line num="147" count="0" type="cond" truecount="0" falsecount="2"/>
4617
- <line num="148" count="0" type="stmt"/>
4618
- <line num="152" count="25" type="stmt"/>
4619
- <line num="156" count="25" type="stmt"/>
4620
- <line num="160" count="25" type="stmt"/>
4621
- <line num="162" count="25" type="stmt"/>
4622
- </file>
4623
3666
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/utils.js">
4624
3667
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4625
3668
  <line num="1" count="30" type="stmt"/>
@@ -4628,118 +3671,141 @@
4628
3671
  </file>
4629
3672
  </package>
4630
3673
  <package name="threads">
4631
- <metrics statements="241" coveredstatements="208" conditionals="98" coveredconditionals="67" methods="38" coveredmethods="35"/>
3674
+ <metrics statements="267" coveredstatements="200" conditionals="115" coveredconditionals="65" methods="34" coveredmethods="30"/>
4632
3675
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4633
- <metrics statements="73" coveredstatements="62" conditionals="19" coveredconditionals="11" methods="11" coveredmethods="10"/>
4634
- <line num="1" count="4" type="stmt"/>
4635
- <line num="2" count="4" type="stmt"/>
4636
- <line num="3" count="4" type="stmt"/>
4637
- <line num="4" count="4" type="stmt"/>
4638
- <line num="5" count="4" type="stmt"/>
4639
- <line num="6" count="4" type="stmt"/>
4640
- <line num="7" count="4" type="stmt"/>
4641
- <line num="8" count="4" type="stmt"/>
4642
- <line num="9" count="4" type="stmt"/>
4643
- <line num="10" count="4" type="stmt"/>
4644
- <line num="12" count="4" type="stmt"/>
4645
- <line num="13" count="4" type="stmt"/>
4646
- <line num="14" count="4" type="stmt"/>
4647
- <line num="23" count="7" type="stmt"/>
4648
- <line num="24" count="7" type="cond" truecount="2" falsecount="0"/>
4649
- <line num="25" count="7" type="stmt"/>
4650
- <line num="26" count="7" type="stmt"/>
4651
- <line num="27" count="7" type="stmt"/>
4652
- <line num="28" count="7" type="stmt"/>
4653
- <line num="30" count="7" type="stmt"/>
4654
- <line num="31" count="7" type="stmt"/>
4655
- <line num="33" count="7" type="stmt"/>
4656
- <line num="34" count="7" type="stmt"/>
4657
- <line num="37" count="7" type="stmt"/>
4658
- <line num="38" count="7" type="stmt"/>
4659
- <line num="40" count="7" type="stmt"/>
4660
- <line num="41" count="7" type="stmt"/>
4661
- <line num="45" count="7" type="cond" truecount="1" falsecount="1"/>
4662
- <line num="46" count="0" type="stmt"/>
4663
- <line num="48" count="7" type="stmt"/>
4664
- <line num="52" count="5" type="stmt"/>
4665
- <line num="53" count="5" type="cond" truecount="1" falsecount="1"/>
4666
- <line num="54" count="0" type="stmt"/>
3676
+ <metrics statements="132" coveredstatements="79" conditionals="57" coveredconditionals="21" methods="12" coveredmethods="10"/>
3677
+ <line num="1" count="3" type="stmt"/>
3678
+ <line num="2" count="3" type="stmt"/>
3679
+ <line num="3" count="3" type="stmt"/>
3680
+ <line num="4" count="3" type="stmt"/>
3681
+ <line num="5" count="3" type="stmt"/>
3682
+ <line num="6" count="3" type="stmt"/>
3683
+ <line num="7" count="3" type="stmt"/>
3684
+ <line num="8" count="3" type="stmt"/>
3685
+ <line num="9" count="3" type="stmt"/>
3686
+ <line num="10" count="3" type="stmt"/>
3687
+ <line num="11" count="3" type="stmt"/>
3688
+ <line num="12" count="3" type="stmt"/>
3689
+ <line num="13" count="3" type="stmt"/>
3690
+ <line num="15" count="3" type="stmt"/>
3691
+ <line num="16" count="3" type="stmt"/>
3692
+ <line num="17" count="3" type="stmt"/>
3693
+ <line num="18" count="3" type="stmt"/>
3694
+ <line num="27" count="6" type="stmt"/>
3695
+ <line num="28" count="6" type="cond" truecount="2" falsecount="0"/>
3696
+ <line num="29" count="6" type="stmt"/>
3697
+ <line num="30" count="6" type="stmt"/>
3698
+ <line num="31" count="6" type="stmt"/>
3699
+ <line num="32" count="6" type="stmt"/>
3700
+ <line num="34" count="6" type="stmt"/>
3701
+ <line num="35" count="6" type="stmt"/>
3702
+ <line num="37" count="6" type="stmt"/>
3703
+ <line num="38" count="6" type="stmt"/>
3704
+ <line num="41" count="6" type="stmt"/>
3705
+ <line num="42" count="6" type="stmt"/>
3706
+ <line num="44" count="6" type="stmt"/>
3707
+ <line num="45" count="6" type="stmt"/>
3708
+ <line num="49" count="6" type="cond" truecount="1" falsecount="1"/>
3709
+ <line num="50" count="0" type="stmt"/>
3710
+ <line num="52" count="6" type="stmt"/>
4667
3711
  <line num="56" count="5" type="stmt"/>
4668
- <line num="60" count="7" type="cond" truecount="1" falsecount="1"/>
4669
- <line num="61" count="0" type="stmt"/>
4670
- <line num="63" count="7" type="stmt"/>
4671
- <line num="64" count="7" type="stmt"/>
4672
- <line num="65" count="6" type="stmt"/>
4673
- <line num="69" count="12" type="stmt"/>
4674
- <line num="71" count="12" type="cond" truecount="2" falsecount="0"/>
4675
- <line num="72" count="7" type="stmt"/>
4676
- <line num="74" count="12" type="stmt"/>
4677
- <line num="78" count="7" type="stmt"/>
4678
- <line num="79" count="7" type="stmt"/>
4679
- <line num="80" count="6" type="stmt"/>
4680
- <line num="81" count="6" type="stmt"/>
4681
- <line num="83" count="5" type="cond" truecount="1" falsecount="1"/>
4682
- <line num="84" count="0" type="stmt"/>
4683
- <line num="85" count="0" type="stmt"/>
4684
- <line num="87" count="5" type="stmt"/>
4685
- <line num="88" count="5" type="stmt"/>
4686
- <line num="89" count="5" type="stmt"/>
4687
- <line num="94" count="5" type="stmt"/>
4688
- <line num="95" count="5" type="cond" truecount="1" falsecount="1"/>
4689
- <line num="96" count="5" type="stmt"/>
4690
- <line num="97" count="5" type="stmt"/>
4691
- <line num="104" count="5" type="stmt"/>
4692
- <line num="107" count="5" type="cond" truecount="2" falsecount="2"/>
4693
- <line num="108" count="0" type="stmt"/>
4694
- <line num="109" count="0" type="stmt"/>
3712
+ <line num="57" count="5" type="cond" truecount="1" falsecount="1"/>
3713
+ <line num="58" count="0" type="stmt"/>
3714
+ <line num="60" count="5" type="stmt"/>
3715
+ <line num="64" count="6" type="cond" truecount="1" falsecount="1"/>
3716
+ <line num="65" count="0" type="stmt"/>
3717
+ <line num="67" count="6" type="stmt"/>
3718
+ <line num="68" count="6" type="stmt"/>
3719
+ <line num="69" count="6" type="stmt"/>
3720
+ <line num="73" count="11" type="stmt"/>
3721
+ <line num="75" count="11" type="cond" truecount="2" falsecount="0"/>
3722
+ <line num="76" count="6" type="stmt"/>
3723
+ <line num="78" count="11" type="stmt"/>
3724
+ <line num="82" count="0" type="stmt"/>
3725
+ <line num="92" count="0" type="stmt"/>
3726
+ <line num="100" count="6" type="stmt"/>
3727
+ <line num="101" count="6" type="stmt"/>
3728
+ <line num="102" count="6" type="stmt"/>
3729
+ <line num="105" count="6" type="stmt"/>
3730
+ <line num="107" count="6" type="stmt"/>
3731
+ <line num="108" count="6" type="stmt"/>
3732
+ <line num="109" count="5" type="stmt"/>
3733
+ <line num="111" count="5" type="cond" truecount="1" falsecount="1"/>
3734
+ <line num="112" count="0" type="stmt"/>
4695
3735
  <line num="113" count="0" type="stmt"/>
4696
- <line num="115" count="5" type="stmt"/>
4697
- <line num="117" count="0" type="stmt"/>
3736
+ <line num="114" count="0" type="stmt"/>
3737
+ <line num="117" count="5" type="cond" truecount="1" falsecount="1"/>
4698
3738
  <line num="118" count="0" type="stmt"/>
4699
- <line num="121" count="6" type="stmt"/>
4700
- <line num="125" count="4" type="stmt"/>
4701
- <line num="126" count="7" type="stmt"/>
4702
- <line num="127" count="7" type="stmt"/>
4703
- <line num="128" count="7" type="stmt"/>
4704
- <line num="132" count="7" type="stmt"/>
4705
- <line num="135" count="6" type="stmt"/>
4706
- <line num="138" count="0" type="stmt"/>
4707
- </file>
4708
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/index.js">
4709
- <metrics statements="33" coveredstatements="25" conditionals="22" coveredconditionals="13" methods="5" coveredmethods="5"/>
4710
- <line num="1" count="41" type="stmt"/>
4711
- <line num="2" count="41" type="stmt"/>
4712
- <line num="4" count="41" type="stmt"/>
4713
- <line num="10" count="20" type="stmt"/>
4714
- <line num="11" count="20" type="cond" truecount="2" falsecount="1"/>
4715
- <line num="13" count="10" type="stmt"/>
4716
- <line num="14" count="10" type="stmt"/>
4717
- <line num="16" count="10" type="stmt"/>
4718
- <line num="17" count="10" type="stmt"/>
4719
- <line num="19" count="0" type="stmt"/>
4720
- <line num="21" count="20" type="stmt"/>
4721
- <line num="26" count="81" type="stmt"/>
4722
- <line num="27" count="81" type="cond" truecount="2" falsecount="0"/>
4723
- <line num="28" count="81" type="stmt"/>
4724
- <line num="33" count="81" type="cond" truecount="1" falsecount="1"/>
4725
- <line num="34" count="0" type="stmt"/>
4726
- <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4727
- <line num="39" count="0" type="stmt"/>
4728
- <line num="40" count="0" type="stmt"/>
4729
- <line num="42" count="0" type="stmt"/>
4730
- <line num="47" count="20" type="stmt"/>
4731
- <line num="48" count="20" type="stmt"/>
4732
- <line num="51" count="20" type="cond" truecount="1" falsecount="1"/>
4733
- <line num="52" count="20" type="stmt"/>
4734
- <line num="54" count="0" type="stmt"/>
4735
- <line num="56" count="20" type="stmt"/>
4736
- <line num="57" count="16" type="cond" truecount="3" falsecount="1"/>
4737
- <line num="58" count="0" type="stmt"/>
4738
- <line num="61" count="16" type="cond" truecount="2" falsecount="0"/>
4739
- <line num="62" count="2" type="stmt"/>
4740
- <line num="64" count="14" type="stmt"/>
4741
- <line num="71" count="41" type="stmt"/>
4742
- <line num="72" count="41" type="stmt"/>
3739
+ <line num="120" count="5" type="cond" truecount="1" falsecount="1"/>
3740
+ <line num="121" count="5" type="stmt"/>
3741
+ <line num="122" count="5" type="stmt"/>
3742
+ <line num="123" count="5" type="stmt"/>
3743
+ <line num="126" count="5" type="cond" truecount="1" falsecount="1"/>
3744
+ <line num="129" count="0" type="stmt"/>
3745
+ <line num="133" count="0" type="stmt"/>
3746
+ <line num="137" count="0" type="stmt"/>
3747
+ <line num="141" count="0" type="stmt"/>
3748
+ <line num="142" count="0" type="cond" truecount="0" falsecount="2"/>
3749
+ <line num="148" count="0" type="stmt"/>
3750
+ <line num="152" count="0" type="stmt"/>
3751
+ <line num="153" count="0" type="stmt"/>
3752
+ <line num="154" count="0" type="stmt"/>
3753
+ <line num="159" count="0" type="stmt"/>
3754
+ <line num="160" count="0" type="cond" truecount="0" falsecount="2"/>
3755
+ <line num="161" count="0" type="stmt"/>
3756
+ <line num="164" count="0" type="cond" truecount="0" falsecount="2"/>
3757
+ <line num="165" count="0" type="stmt"/>
3758
+ <line num="173" count="0" type="cond" truecount="0" falsecount="2"/>
3759
+ <line num="174" count="0" type="stmt"/>
3760
+ <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
3761
+ <line num="186" count="0" type="stmt"/>
3762
+ <line num="190" count="0" type="stmt"/>
3763
+ <line num="191" count="0" type="stmt"/>
3764
+ <line num="192" count="0" type="stmt"/>
3765
+ <line num="195" count="0" type="cond" truecount="0" falsecount="2"/>
3766
+ <line num="199" count="0" type="stmt"/>
3767
+ <line num="203" count="0" type="stmt"/>
3768
+ <line num="204" count="0" type="stmt"/>
3769
+ <line num="205" count="0" type="stmt"/>
3770
+ <line num="210" count="5" type="cond" truecount="1" falsecount="1"/>
3771
+ <line num="211" count="0" type="stmt"/>
3772
+ <line num="212" count="0" type="stmt"/>
3773
+ <line num="216" count="5" type="stmt"/>
3774
+ <line num="217" count="5" type="stmt"/>
3775
+ <line num="218" count="5" type="stmt"/>
3776
+ <line num="219" count="5" type="stmt"/>
3777
+ <line num="221" count="5" type="cond" truecount="1" falsecount="1"/>
3778
+ <line num="222" count="5" type="stmt"/>
3779
+ <line num="223" count="5" type="stmt"/>
3780
+ <line num="230" count="5" type="stmt"/>
3781
+ <line num="233" count="5" type="cond" truecount="2" falsecount="2"/>
3782
+ <line num="234" count="0" type="stmt"/>
3783
+ <line num="235" count="0" type="stmt"/>
3784
+ <line num="239" count="0" type="stmt"/>
3785
+ <line num="241" count="5" type="cond" truecount="2" falsecount="2"/>
3786
+ <line num="242" count="0" type="stmt"/>
3787
+ <line num="244" count="5" type="stmt"/>
3788
+ <line num="252" count="0" type="stmt"/>
3789
+ <line num="253" count="0" type="stmt"/>
3790
+ <line num="255" count="5" type="cond" truecount="1" falsecount="1"/>
3791
+ <line num="256" count="0" type="stmt"/>
3792
+ <line num="257" count="0" type="cond" truecount="0" falsecount="2"/>
3793
+ <line num="258" count="0" type="stmt"/>
3794
+ <line num="259" count="0" type="stmt"/>
3795
+ <line num="260" count="0" type="stmt"/>
3796
+ <line num="265" count="5" type="cond" truecount="3" falsecount="1"/>
3797
+ <line num="266" count="0" type="stmt"/>
3798
+ <line num="271" count="0" type="stmt"/>
3799
+ <line num="278" count="0" type="stmt"/>
3800
+ <line num="279" count="0" type="stmt"/>
3801
+ <line num="283" count="6" type="stmt"/>
3802
+ <line num="287" count="3" type="stmt"/>
3803
+ <line num="288" count="6" type="stmt"/>
3804
+ <line num="289" count="6" type="stmt"/>
3805
+ <line num="290" count="6" type="stmt"/>
3806
+ <line num="294" count="6" type="stmt"/>
3807
+ <line num="297" count="6" type="stmt"/>
3808
+ <line num="300" count="0" type="stmt"/>
4743
3809
  </file>
4744
3810
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4745
3811
  <metrics statements="99" coveredstatements="91" conditionals="43" coveredconditionals="34" methods="13" coveredmethods="12"/>
@@ -4844,7 +3910,7 @@
4844
3910
  <line num="201" count="2" type="stmt"/>
4845
3911
  </file>
4846
3912
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4847
- <metrics statements="36" coveredstatements="30" conditionals="14" coveredconditionals="9" methods="9" coveredmethods="8"/>
3913
+ <metrics statements="36" coveredstatements="30" conditionals="15" coveredconditionals="10" methods="9" coveredmethods="8"/>
4848
3914
  <line num="1" count="41" type="stmt"/>
4849
3915
  <line num="2" count="41" type="stmt"/>
4850
3916
  <line num="3" count="41" type="stmt"/>
@@ -4856,8 +3922,8 @@
4856
3922
  <line num="16" count="41" type="stmt"/>
4857
3923
  <line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
4858
3924
  <line num="20" count="41" type="stmt"/>
4859
- <line num="22" count="6" type="cond" truecount="2" falsecount="2"/>
4860
- <line num="23" count="6" type="stmt"/>
3925
+ <line num="22" count="5" type="cond" truecount="2" falsecount="2"/>
3926
+ <line num="23" count="5" type="stmt"/>
4861
3927
  <line num="26" count="0" type="stmt"/>
4862
3928
  <line num="27" count="0" type="stmt"/>
4863
3929
  <line num="31" count="19" type="stmt"/>
@@ -5076,12 +4142,12 @@
5076
4142
  <line num="41" count="2" type="stmt"/>
5077
4143
  <line num="43" count="0" type="stmt"/>
5078
4144
  <line num="57" count="44" type="stmt"/>
5079
- <line num="58" count="212" type="cond" truecount="1" falsecount="1"/>
4145
+ <line num="58" count="211" type="cond" truecount="1" falsecount="1"/>
5080
4146
  <line num="59" count="0" type="stmt"/>
5081
4147
  <line num="63" count="0" type="cond" truecount="0" falsecount="2"/>
5082
4148
  <line num="64" count="0" type="stmt"/>
5083
4149
  <line num="66" count="0" type="stmt"/>
5084
- <line num="68" count="212" type="stmt"/>
4150
+ <line num="68" count="211" type="stmt"/>
5085
4151
  <line num="72" count="44" type="stmt"/>
5086
4152
  <line num="73" count="2" type="stmt"/>
5087
4153
  <line num="78" count="44" type="stmt"/>
@@ -5257,9 +4323,9 @@
5257
4323
  </file>
5258
4324
  </package>
5259
4325
  <package name="utilities.queue">
5260
- <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="8" coveredmethods="6"/>
4326
+ <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="9" coveredmethods="6"/>
5261
4327
  <file name="inMemoryQueue.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/queue/inMemoryQueue.js">
5262
- <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="8" coveredmethods="6"/>
4328
+ <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="9" coveredmethods="6"/>
5263
4329
  <line num="1" count="40" type="stmt"/>
5264
4330
  <line num="13" count="8" type="stmt"/>
5265
4331
  <line num="33" count="40" type="stmt"/>
@@ -5273,14 +4339,14 @@
5273
4339
  <line num="54" count="8" type="stmt"/>
5274
4340
  <line num="55" count="8" type="cond" truecount="1" falsecount="1"/>
5275
4341
  <line num="56" count="8" type="stmt"/>
5276
- <line num="70" count="8" type="cond" truecount="1" falsecount="1"/>
5277
- <line num="71" count="0" type="stmt"/>
5278
- <line num="73" count="8" type="stmt"/>
4342
+ <line num="71" count="8" type="cond" truecount="1" falsecount="1"/>
4343
+ <line num="72" count="0" type="stmt"/>
5279
4344
  <line num="74" count="8" type="stmt"/>
5280
- <line num="83" count="0" type="stmt"/>
5281
- <line num="90" count="206" type="stmt"/>
5282
- <line num="97" count="0" type="stmt"/>
5283
- <line num="101" count="40" type="stmt"/>
4345
+ <line num="75" count="8" type="stmt"/>
4346
+ <line num="84" count="0" type="stmt"/>
4347
+ <line num="91" count="205" type="stmt"/>
4348
+ <line num="103" count="0" type="stmt"/>
4349
+ <line num="107" count="40" type="stmt"/>
5284
4350
  </file>
5285
4351
  </package>
5286
4352
  <package name="utilities.routing">
@@ -5335,12 +4401,12 @@
5335
4401
  <line num="117" count="0" type="stmt"/>
5336
4402
  <line num="119" count="0" type="stmt"/>
5337
4403
  <line num="120" count="0" type="stmt"/>
5338
- <line num="139" count="78" type="cond" truecount="2" falsecount="0"/>
5339
- <line num="140" count="78" type="stmt"/>
5340
- <line num="142" count="78" type="stmt"/>
5341
- <line num="143" count="78" type="stmt"/>
5342
- <line num="144" count="216" type="cond" truecount="1" falsecount="1"/>
5343
- <line num="145" count="216" type="stmt"/>
4404
+ <line num="139" count="77" type="cond" truecount="2" falsecount="0"/>
4405
+ <line num="140" count="77" type="stmt"/>
4406
+ <line num="142" count="77" type="stmt"/>
4407
+ <line num="143" count="77" type="stmt"/>
4408
+ <line num="144" count="214" type="cond" truecount="1" falsecount="1"/>
4409
+ <line num="145" count="214" type="stmt"/>
5344
4410
  <line num="147" count="0" type="cond" truecount="0" falsecount="5"/>
5345
4411
  <line num="149" count="0" type="cond" truecount="0" falsecount="2"/>
5346
4412
  <line num="155" count="0" type="stmt"/>
@@ -5357,51 +4423,51 @@
5357
4423
  <line num="173" count="0" type="cond" truecount="0" falsecount="2"/>
5358
4424
  <line num="174" count="0" type="stmt"/>
5359
4425
  <line num="176" count="0" type="stmt"/>
5360
- <line num="179" count="78" type="stmt"/>
4426
+ <line num="179" count="77" type="stmt"/>
5361
4427
  <line num="181" count="41" type="stmt"/>
5362
4428
  <line num="183" count="41" type="stmt"/>
5363
4429
  <line num="191" count="41" type="stmt"/>
5364
- <line num="193" count="182" type="cond" truecount="1" falsecount="1"/>
4430
+ <line num="193" count="180" type="cond" truecount="1" falsecount="1"/>
5365
4431
  <line num="194" count="0" type="stmt"/>
5366
- <line num="197" count="182" type="cond" truecount="2" falsecount="0"/>
4432
+ <line num="197" count="180" type="cond" truecount="2" falsecount="0"/>
5367
4433
  <line num="198" count="16" type="stmt"/>
5368
- <line num="199" count="166" type="cond" truecount="2" falsecount="0"/>
4434
+ <line num="199" count="164" type="cond" truecount="2" falsecount="0"/>
5369
4435
  <line num="200" count="22" type="stmt"/>
5370
- <line num="203" count="144" type="stmt"/>
4436
+ <line num="203" count="142" type="stmt"/>
5371
4437
  <line num="215" count="41" type="stmt"/>
5372
- <line num="221" count="78" type="stmt"/>
5373
- <line num="223" count="78" type="stmt"/>
5374
- <line num="224" count="78" type="stmt"/>
5375
- <line num="225" count="78" type="stmt"/>
5376
- <line num="226" count="353" type="stmt"/>
5377
- <line num="228" count="353" type="cond" truecount="2" falsecount="0"/>
5378
- <line num="229" count="172" type="cond" truecount="2" falsecount="0"/>
4438
+ <line num="221" count="77" type="stmt"/>
4439
+ <line num="223" count="77" type="stmt"/>
4440
+ <line num="224" count="77" type="stmt"/>
4441
+ <line num="225" count="77" type="stmt"/>
4442
+ <line num="226" count="349" type="stmt"/>
4443
+ <line num="228" count="349" type="cond" truecount="2" falsecount="0"/>
4444
+ <line num="229" count="170" type="cond" truecount="2" falsecount="0"/>
5379
4445
  <line num="230" count="3" type="stmt"/>
5380
- <line num="232" count="172" type="stmt"/>
5381
- <line num="235" count="181" type="cond" truecount="1" falsecount="1"/>
4446
+ <line num="232" count="170" type="stmt"/>
4447
+ <line num="235" count="179" type="cond" truecount="1" falsecount="1"/>
5382
4448
  <line num="236" count="0" type="stmt"/>
5383
- <line num="240" count="181" type="stmt"/>
5384
- <line num="244" count="78" type="cond" truecount="4" falsecount="0"/>
5385
- <line num="245" count="72" type="stmt"/>
5386
- <line num="246" count="72" type="stmt"/>
5387
- <line num="250" count="78" type="stmt"/>
4449
+ <line num="240" count="179" type="stmt"/>
4450
+ <line num="244" count="77" type="cond" truecount="4" falsecount="0"/>
4451
+ <line num="245" count="71" type="stmt"/>
4452
+ <line num="246" count="71" type="stmt"/>
4453
+ <line num="250" count="77" type="stmt"/>
5388
4454
  <line num="262" count="41" type="cond" truecount="1" falsecount="0"/>
5389
- <line num="263" count="113" type="stmt"/>
5390
- <line num="264" count="113" type="cond" truecount="2" falsecount="0"/>
5391
- <line num="265" count="99" type="stmt"/>
5392
- <line num="266" count="99" type="stmt"/>
5393
- <line num="269" count="113" type="stmt"/>
5394
- <line num="272" count="113" type="stmt"/>
5395
- <line num="275" count="113" type="stmt"/>
5396
- <line num="276" count="322" type="cond" truecount="2" falsecount="0"/>
4455
+ <line num="263" count="112" type="stmt"/>
4456
+ <line num="264" count="112" type="cond" truecount="2" falsecount="0"/>
4457
+ <line num="265" count="98" type="stmt"/>
4458
+ <line num="266" count="98" type="stmt"/>
4459
+ <line num="269" count="112" type="stmt"/>
4460
+ <line num="272" count="112" type="stmt"/>
4461
+ <line num="275" count="112" type="stmt"/>
4462
+ <line num="276" count="320" type="cond" truecount="2" falsecount="0"/>
5397
4463
  <line num="277" count="8" type="stmt"/>
5398
4464
  <line num="278" count="8" type="cond" truecount="4" falsecount="0"/>
5399
4465
  <line num="279" count="6" type="stmt"/>
5400
4466
  <line num="281" count="2" type="stmt"/>
5401
4467
  <line num="282" count="2" type="stmt"/>
5402
- <line num="287" count="113" type="cond" truecount="2" falsecount="0"/>
4468
+ <line num="287" count="112" type="cond" truecount="2" falsecount="0"/>
5403
4469
  <line num="288" count="33" type="stmt"/>
5404
- <line num="290" count="113" type="cond" truecount="2" falsecount="0"/>
4470
+ <line num="290" count="112" type="cond" truecount="2" falsecount="0"/>
5405
4471
  <line num="303" count="41" type="stmt"/>
5406
4472
  <line num="304" count="14" type="stmt"/>
5407
4473
  <line num="305" count="14" type="cond" truecount="1" falsecount="1"/>
@@ -5432,99 +4498,61 @@
5432
4498
  <line num="1" count="41" type="stmt"/>
5433
4499
  <line num="2" count="41" type="stmt"/>
5434
4500
  <line num="7" count="41" type="stmt"/>
5435
- <line num="12" count="281" type="stmt"/>
5436
- <line num="13" count="281" type="cond" truecount="2" falsecount="0"/>
5437
- <line num="14" count="168" type="stmt"/>
5438
- <line num="15" count="168" type="cond" truecount="2" falsecount="0"/>
5439
- <line num="17" count="281" type="stmt"/>
5440
- <line num="18" count="804" type="stmt"/>
5441
- <line num="19" count="804" type="cond" truecount="1" falsecount="1"/>
5442
- <line num="24" count="804" type="stmt"/>
4501
+ <line num="12" count="278" type="stmt"/>
4502
+ <line num="13" count="278" type="cond" truecount="2" falsecount="0"/>
4503
+ <line num="14" count="166" type="stmt"/>
4504
+ <line num="15" count="166" type="cond" truecount="2" falsecount="0"/>
4505
+ <line num="17" count="278" type="stmt"/>
4506
+ <line num="18" count="798" type="stmt"/>
4507
+ <line num="19" count="798" type="cond" truecount="1" falsecount="1"/>
4508
+ <line num="24" count="798" type="stmt"/>
5443
4509
  <line num="27" count="0" type="stmt"/>
5444
4510
  <line num="28" count="0" type="cond" truecount="0" falsecount="2"/>
5445
4511
  <line num="29" count="0" type="stmt"/>
5446
4512
  <line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
5447
4513
  <line num="31" count="0" type="stmt"/>
5448
- <line num="38" count="281" type="cond" truecount="2" falsecount="0"/>
4514
+ <line num="38" count="278" type="cond" truecount="2" falsecount="0"/>
5449
4515
  </file>
5450
4516
  </package>
5451
4517
  <package name="utilities.usageQuota">
5452
- <metrics statements="75" coveredstatements="63" conditionals="27" coveredconditionals="19" methods="11" coveredmethods="9"/>
5453
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/index.js">
5454
- <metrics statements="35" coveredstatements="31" conditionals="17" coveredconditionals="13" methods="3" coveredmethods="3"/>
5455
- <line num="1" count="42" type="stmt"/>
5456
- <line num="2" count="42" type="stmt"/>
5457
- <line num="6" count="42" type="stmt"/>
5458
- <line num="8" count="42" type="stmt"/>
5459
- <line num="10" count="68" type="cond" truecount="2" falsecount="0"/>
5460
- <line num="12" count="7" type="cond" truecount="2" falsecount="0"/>
5461
- <line num="13" count="3" type="stmt"/>
5462
- <line num="17" count="3" type="stmt"/>
5463
- <line num="18" count="3" type="cond" truecount="2" falsecount="0"/>
5464
- <line num="19" count="2" type="stmt"/>
5465
- <line num="22" count="5" type="stmt"/>
5466
- <line num="24" count="61" type="stmt"/>
5467
- <line num="27" count="42" type="stmt"/>
5468
- <line num="37" count="42" type="stmt"/>
5469
- <line num="39" count="10" type="stmt"/>
5470
- <line num="40" count="10" type="stmt"/>
5471
- <line num="43" count="2" type="stmt"/>
5472
- <line num="44" count="2" type="stmt"/>
5473
- <line num="45" count="2" type="stmt"/>
5474
- <line num="48" count="10" type="stmt"/>
5475
- <line num="59" count="42" type="cond" truecount="1" falsecount="0"/>
5476
- <line num="60" count="17" type="cond" truecount="2" falsecount="0"/>
5477
- <line num="61" count="15" type="stmt"/>
5478
- <line num="64" count="2" type="stmt"/>
5479
- <line num="65" count="2" type="stmt"/>
5480
- <line num="66" count="2" type="stmt"/>
5481
- <line num="69" count="2" type="stmt"/>
5482
- <line num="71" count="2" type="cond" truecount="1" falsecount="1"/>
5483
- <line num="75" count="0" type="stmt"/>
5484
- <line num="80" count="2" type="cond" truecount="1" falsecount="1"/>
5485
- <line num="82" count="0" type="stmt"/>
5486
- <line num="86" count="2" type="cond" truecount="1" falsecount="1"/>
5487
- <line num="87" count="2" type="stmt"/>
5488
- <line num="90" count="0" type="stmt"/>
5489
- <line num="91" count="0" type="stmt"/>
5490
- </file>
4518
+ <metrics statements="40" coveredstatements="33" conditionals="10" coveredconditionals="7" methods="8" coveredmethods="6"/>
5491
4519
  <file name="rows.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/rows.js">
5492
- <metrics statements="35" coveredstatements="32" conditionals="8" coveredconditionals="6" methods="6" coveredmethods="6"/>
5493
- <line num="1" count="26" type="stmt"/>
5494
- <line num="6" count="26" type="stmt"/>
5495
- <line num="8" count="26" type="stmt"/>
5496
- <line num="10" count="26" type="stmt"/>
5497
- <line num="13" count="1" type="stmt"/>
5498
- <line num="14" count="1" type="stmt"/>
5499
- <line num="15" count="4" type="stmt"/>
5500
- <line num="16" count="4" type="cond" truecount="2" falsecount="0"/>
5501
- <line num="17" count="2" type="stmt"/>
5502
- <line num="19" count="4" type="cond" truecount="2" falsecount="0"/>
5503
- <line num="20" count="2" type="stmt"/>
4520
+ <metrics statements="35" coveredstatements="33" conditionals="8" coveredconditionals="7" methods="6" coveredmethods="6"/>
4521
+ <line num="1" count="40" type="stmt"/>
4522
+ <line num="6" count="40" type="stmt"/>
4523
+ <line num="8" count="40" type="stmt"/>
4524
+ <line num="10" count="40" type="stmt"/>
4525
+ <line num="13" count="36" type="stmt"/>
4526
+ <line num="14" count="36" type="stmt"/>
4527
+ <line num="15" count="15" type="stmt"/>
4528
+ <line num="16" count="15" type="cond" truecount="2" falsecount="0"/>
4529
+ <line num="17" count="13" type="stmt"/>
4530
+ <line num="19" count="15" type="cond" truecount="2" falsecount="0"/>
4531
+ <line num="20" count="13" type="stmt"/>
5504
4532
  <line num="22" count="2" type="stmt"/>
5505
- <line num="25" count="1" type="stmt"/>
5506
- <line num="28" count="26" type="stmt"/>
5507
- <line num="30" count="4" type="stmt"/>
5508
- <line num="31" count="4" type="stmt"/>
5509
- <line num="36" count="4" type="stmt"/>
4533
+ <line num="25" count="36" type="stmt"/>
4534
+ <line num="28" count="40" type="stmt"/>
4535
+ <line num="30" count="15" type="stmt"/>
4536
+ <line num="31" count="15" type="stmt"/>
4537
+ <line num="36" count="15" type="stmt"/>
5510
4538
  <line num="37" count="3" type="stmt"/>
5511
4539
  <line num="39" count="3" type="stmt"/>
5512
4540
  <line num="40" count="3" type="cond" truecount="1" falsecount="1"/>
5513
4541
  <line num="41" count="0" type="stmt"/>
5514
4542
  <line num="44" count="3" type="stmt"/>
5515
- <line num="54" count="26" type="stmt"/>
5516
- <line num="55" count="1" type="stmt"/>
5517
- <line num="56" count="1" type="stmt"/>
5518
- <line num="58" count="1" type="stmt"/>
5519
- <line num="59" count="2" type="stmt"/>
5520
- <line num="60" count="2" type="stmt"/>
5521
- <line num="61" count="4" type="cond" truecount="1" falsecount="1"/>
5522
- <line num="62" count="0" type="stmt"/>
5523
- <line num="64" count="4" type="stmt"/>
5524
- <line num="65" count="4" type="stmt"/>
4543
+ <line num="54" count="40" type="stmt"/>
4544
+ <line num="55" count="36" type="stmt"/>
4545
+ <line num="56" count="36" type="stmt"/>
4546
+ <line num="58" count="36" type="stmt"/>
4547
+ <line num="59" count="13" type="stmt"/>
4548
+ <line num="60" count="13" type="stmt"/>
4549
+ <line num="61" count="26" type="cond" truecount="2" falsecount="0"/>
4550
+ <line num="62" count="11" type="stmt"/>
4551
+ <line num="64" count="15" type="stmt"/>
4552
+ <line num="65" count="15" type="stmt"/>
5525
4553
  <line num="67" count="0" type="stmt"/>
5526
- <line num="75" count="2" type="stmt"/>
5527
- <line num="78" count="1" type="stmt"/>
4554
+ <line num="75" count="13" type="stmt"/>
4555
+ <line num="78" count="36" type="stmt"/>
5528
4556
  </file>
5529
4557
  <file name="usageQuoteReset.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/usageQuoteReset.js">
5530
4558
  <metrics statements="5" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>