@budibase/server 1.0.123 → 1.0.125

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 (325) hide show
  1. package/builder/assets/index.3d890df7.js +1299 -0
  2. package/builder/assets/index.89795487.css +6 -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 +695 -1678
  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 +55 -32
  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 +48 -43
  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 +1144 -2875
  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 +41 -35
  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} +30 -26
  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/common.ts +1 -0
  273. package/src/definitions/datasource.ts +1 -0
  274. package/src/environment.js +2 -3
  275. package/src/index.ts +3 -0
  276. package/src/integrations/index.ts +4 -0
  277. package/src/integrations/redis.ts +152 -0
  278. package/src/integrations/tests/redis.spec.js +60 -0
  279. package/src/middleware/{authorized.js → authorized.ts} +20 -14
  280. package/src/middleware/currentapp.js +16 -1
  281. package/src/middleware/tests/currentapp.spec.js +8 -4
  282. package/src/migrations/functions/developerQuota.ts +15 -0
  283. package/src/migrations/functions/publishedAppsQuota.ts +13 -0
  284. package/src/migrations/functions/tests/quotas1.spec.js +0 -2
  285. package/src/migrations/functions/usageQuotas/index.ts +0 -5
  286. package/src/migrations/functions/usageQuotas/syncApps.ts +3 -6
  287. package/src/migrations/functions/usageQuotas/syncDevelopers.ts +19 -0
  288. package/src/migrations/functions/usageQuotas/syncPublishedApps.ts +21 -0
  289. package/src/migrations/functions/usageQuotas/syncRows.ts +3 -6
  290. package/src/migrations/functions/usageQuotas/tests/syncApps.spec.ts +34 -0
  291. package/src/migrations/functions/usageQuotas/tests/syncRows.spec.ts +40 -0
  292. package/src/migrations/index.ts +13 -1
  293. package/src/threads/automation.js +196 -34
  294. package/src/threads/{index.js → index.ts} +18 -14
  295. package/src/threads/utils.js +1 -0
  296. package/src/utilities/queue/inMemoryQueue.js +7 -1
  297. package/tsconfig.build.json +10 -0
  298. package/tsconfig.json +2 -2
  299. package/builder/assets/index.68a7f4e3.css +0 -6
  300. package/builder/assets/index.8d4a5b33.js +0 -1291
  301. package/coverage/lcov-report/api/controllers/application.js.html +0 -1436
  302. package/coverage/lcov-report/api/controllers/query/index.js.html +0 -713
  303. package/coverage/lcov-report/api/controllers/row/index.js.html +0 -524
  304. package/coverage/lcov-report/api/controllers/table/internal.js.html +0 -620
  305. package/coverage/lcov-report/api/controllers/table/utils.js.html +0 -1331
  306. package/coverage/lcov-report/api/routes/application.js.html +0 -179
  307. package/coverage/lcov-report/api/routes/index.js.html +0 -266
  308. package/coverage/lcov-report/api/routes/row.js.html +0 -908
  309. package/coverage/lcov-report/automations/steps/createRow.js.html +0 -380
  310. package/coverage/lcov-report/automations/steps/deleteRow.js.html +0 -347
  311. package/coverage/lcov-report/automations/utils.js.html +0 -665
  312. package/coverage/lcov-report/middleware/authorized.js.html +0 -458
  313. package/coverage/lcov-report/middleware/usageQuota.js.html +0 -572
  314. package/coverage/lcov-report/threads/index.js.html +0 -296
  315. package/coverage/lcov-report/utilities/usageQuota/index.js.html +0 -359
  316. package/dist/middleware/usageQuota.js +0 -154
  317. package/dist/tsconfig.tsbuildinfo +0 -1
  318. package/dist/utilities/usageQuota/index.js +0 -86
  319. package/src/api/routes/index.js +0 -62
  320. package/src/middleware/tests/usageQuota.spec.js +0 -120
  321. package/src/middleware/usageQuota.js +0 -164
  322. package/src/migrations/functions/usageQuotas/tests/syncApps.spec.js +0 -41
  323. package/src/migrations/functions/usageQuotas/tests/syncRows.spec.js +0 -45
  324. package/src/utilities/tests/usageQuota/usageQuota.spec.js +0 -72
  325. package/src/utilities/usageQuota/index.js +0 -93
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1650993062603" clover="3.2.0">
3
- <project timestamp="1650993062604" name="All files">
4
- <metrics statements="5059" coveredstatements="3748" conditionals="2097" coveredconditionals="1149" methods="737" coveredmethods="529" elements="7893" coveredelements="5426" complexity="0" loc="5059" ncloc="5059" packages="23" files="146" classes="146"/>
2
+ <coverage generated="1651051723156" clover="3.2.0">
3
+ <project timestamp="1651051723156" name="All files">
4
+ <metrics statements="4121" coveredstatements="2973" conditionals="1687" coveredconditionals="874" methods="613" coveredmethods="432" elements="6421" coveredelements="4279" complexity="0" loc="4121" ncloc="4121" 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="545" coveredstatements="294" conditionals="298" coveredconditionals="111" methods="79" coveredmethods="42"/>
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,330 +1918,48 @@
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="77" coveredstatements="59" conditionals="46" coveredconditionals="32" methods="6" coveredmethods="3"/>
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="16" count="41" type="stmt"/>
2323
- <line num="17" count="41" type="stmt"/>
2324
- <line num="20" count="106" type="cond" truecount="1" falsecount="1"/>
2325
- <line num="21" count="0" type="stmt"/>
2326
- <line num="23" count="106" type="stmt"/>
2327
- <line num="24" count="264" type="cond" truecount="4" falsecount="0"/>
2328
- <line num="25" count="262" type="stmt"/>
2329
- <line num="27" count="2" type="cond" truecount="2" falsecount="0"/>
2330
- <line num="28" count="2" type="cond" truecount="2" falsecount="2"/>
2331
- <line num="29" count="0" type="stmt"/>
2332
- <line num="31" count="2" type="stmt"/>
2333
- <line num="34" count="106" type="stmt"/>
2334
- <line num="37" count="41" type="stmt"/>
2335
- <line num="38" count="106" type="stmt"/>
2336
- <line num="39" count="106" type="stmt"/>
2337
- <line num="40" count="106" type="stmt"/>
2338
- <line num="49" count="106" type="cond" truecount="4" falsecount="0"/>
2339
- <line num="50" count="5" type="stmt"/>
2340
- <line num="54" count="106" type="cond" truecount="1" falsecount="1"/>
2341
- <line num="55" count="0" type="stmt"/>
2342
- <line num="58" count="106" type="stmt"/>
2343
- <line num="62" count="106" type="stmt"/>
2344
- <line num="67" count="106" type="stmt"/>
2345
- <line num="71" count="106" type="cond" truecount="4" falsecount="0"/>
2346
- <line num="72" count="5" type="stmt"/>
2347
- <line num="73" count="15" type="stmt"/>
2348
- <line num="74" count="15" type="cond" truecount="3" falsecount="1"/>
2349
- <line num="75" count="0" type="stmt"/>
2350
- <line num="81" count="106" type="stmt"/>
2351
- <line num="94" count="106" type="stmt"/>
2352
- <line num="97" count="106" type="stmt"/>
2353
- <line num="98" count="0" type="stmt"/>
2354
- <line num="99" count="0" type="cond" truecount="0" falsecount="2"/>
2355
- <line num="101" count="0" type="cond" truecount="0" falsecount="4"/>
2356
- <line num="102" count="0" type="stmt"/>
2357
- <line num="106" count="106" type="stmt"/>
2358
- <line num="107" count="106" type="stmt"/>
2359
- <line num="114" count="106" type="cond" truecount="4" falsecount="0"/>
2360
- <line num="115" count="5" type="stmt"/>
2361
- <line num="118" count="0" type="stmt"/>
2362
- <line num="123" count="106" type="stmt"/>
2363
- <line num="124" count="106" type="cond" truecount="4" falsecount="0"/>
2364
- <line num="125" count="1" type="stmt"/>
2365
- <line num="127" count="106" type="stmt"/>
2366
- <line num="128" count="106" type="stmt"/>
2367
- <line num="130" count="106" type="stmt"/>
2368
- <line num="132" count="106" type="stmt"/>
2369
- <line num="133" count="106" type="stmt"/>
2370
- <line num="136" count="41" type="stmt"/>
2371
- <line num="137" count="3" type="stmt"/>
2372
- <line num="138" count="3" type="stmt"/>
2373
- <line num="141" count="3" type="stmt"/>
2374
- <line num="146" count="3" type="stmt"/>
2375
- <line num="147" count="3" type="stmt"/>
2376
- <line num="150" count="3" type="stmt"/>
2377
- <line num="156" count="3" type="stmt"/>
2378
- <line num="159" count="3" type="cond" truecount="1" falsecount="1"/>
2379
- <line num="160" count="0" type="stmt"/>
2380
- <line num="161" count="0" type="stmt"/>
2381
- <line num="162" count="0" type="stmt"/>
2382
- <line num="164" count="0" type="cond" truecount="0" falsecount="2"/>
2383
- <line num="165" count="0" type="stmt"/>
2384
- <line num="170" count="3" type="stmt"/>
2385
- <line num="171" count="3" type="stmt"/>
2386
- <line num="172" count="3" type="stmt"/>
2387
- <line num="175" count="41" type="stmt"/>
2388
- <line num="176" count="0" type="stmt"/>
2389
- <line num="177" count="0" type="stmt"/>
2390
- <line num="178" count="0" type="stmt"/>
2391
- <line num="179" count="0" type="stmt"/>
2392
- </file>
2393
- <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/utils.js">
2394
- <metrics statements="199" coveredstatements="128" conditionals="95" coveredconditionals="38" methods="34" coveredmethods="20"/>
1921
+ </package>
1922
+ <package name="api.controllers.view">
1923
+ <metrics statements="193" coveredstatements="143" conditionals="83" coveredconditionals="53" methods="25" coveredmethods="18"/>
1924
+ <file name="exporters.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/exporters.js">
1925
+ <metrics statements="11" coveredstatements="11" conditionals="2" coveredconditionals="1" methods="4" coveredmethods="4"/>
2395
1926
  <line num="1" count="41" type="stmt"/>
2396
- <line num="8" count="41" type="stmt"/>
2397
- <line num="9" count="41" type="stmt"/>
2398
- <line num="10" count="41" type="stmt"/>
2399
- <line num="14" count="41" type="stmt"/>
1927
+ <line num="2" count="2" type="stmt"/>
1928
+ <line num="4" count="1" type="stmt"/>
1929
+ <line num="5" count="1" type="stmt"/>
1930
+ <line num="7" count="2" type="stmt"/>
1931
+ <line num="8" count="2" type="stmt"/>
1932
+ <line num="12" count="2" type="stmt"/>
1933
+ <line num="16" count="1" type="stmt"/>
2400
1934
  <line num="19" count="41" type="stmt"/>
2401
- <line num="24" count="41" type="stmt"/>
2402
- <line num="25" count="41" type="stmt"/>
2403
- <line num="26" count="41" type="stmt"/>
2404
- <line num="27" count="41" type="stmt"/>
2405
- <line num="28" count="41" type="stmt"/>
2406
- <line num="29" count="41" type="stmt"/>
2407
- <line num="31" count="41" type="stmt"/>
2408
- <line num="32" count="0" type="stmt"/>
2409
- <line num="33" count="0" type="stmt"/>
2410
- <line num="38" count="0" type="stmt"/>
2411
- <line num="40" count="0" type="stmt"/>
2412
- <line num="41" count="0" type="stmt"/>
2413
- <line num="46" count="41" type="stmt"/>
2414
- <line num="47" count="106" type="stmt"/>
2415
- <line num="48" count="106" type="stmt"/>
2416
- <line num="49" count="106" type="stmt"/>
2417
- <line num="50" count="106" type="stmt"/>
2418
- <line num="51" count="106" type="cond" truecount="5" falsecount="0"/>
2419
- <line num="52" count="5" type="stmt"/>
2420
- <line num="53" count="13" type="stmt"/>
2421
- <line num="57" count="106" type="cond" truecount="4" falsecount="0"/>
2422
- <line num="59" count="1" type="stmt"/>
2423
- <line num="64" count="1" type="stmt"/>
2424
- <line num="65" count="1" type="stmt"/>
2425
- <line num="66" count="1" type="stmt"/>
2426
- <line num="67" count="1" type="cond" truecount="1" falsecount="1"/>
2427
- <line num="68" count="1" type="stmt"/>
2428
- <line num="69" count="1" type="stmt"/>
2429
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
2430
- <line num="71" count="0" type="stmt"/>
2431
- <line num="73" count="1" type="stmt"/>
2432
- <line num="77" count="1" type="stmt"/>
2433
- <line num="79" count="1" type="stmt"/>
2434
- <line num="80" count="1" type="stmt"/>
2435
- <line num="82" count="106" type="stmt"/>
2436
- <line num="86" count="41" type="stmt"/>
2437
- <line num="87" count="5" type="cond" truecount="1" falsecount="1"/>
2438
- <line num="88" count="0" type="stmt"/>
2439
- <line num="91" count="5" type="stmt"/>
2440
- <line num="94" count="5" type="stmt"/>
2441
- <line num="95" count="13" type="cond" truecount="1" falsecount="1"/>
2442
- <line num="100" count="0" type="stmt"/>
2443
- <line num="103" count="5" type="stmt"/>
2444
- <line num="106" count="41" type="stmt"/>
2445
- <line num="107" count="107" type="cond" truecount="4" falsecount="0"/>
2446
- <line num="108" count="106" type="stmt"/>
2447
- <line num="111" count="1" type="stmt"/>
2448
- <line num="113" count="1" type="stmt"/>
2449
- <line num="118" count="1" type="stmt"/>
2450
- <line num="119" count="1" type="stmt"/>
2451
- <line num="120" count="1" type="stmt"/>
2452
- <line num="121" count="1" type="stmt"/>
2453
- <line num="122" count="1" type="stmt"/>
2454
- <line num="123" count="1" type="stmt"/>
2455
- <line num="126" count="1" type="stmt"/>
2456
- <line num="127" count="1" type="stmt"/>
2457
- <line num="129" count="1" type="stmt"/>
2458
- <line num="131" count="4" type="cond" truecount="1" falsecount="1"/>
2459
- <line num="136" count="0" type="stmt"/>
2460
- <line num="143" count="1" type="stmt"/>
2461
- <line num="146" count="1" type="stmt"/>
2462
- <line num="149" count="1" type="stmt"/>
2463
- <line num="150" count="1" type="stmt"/>
2464
- <line num="151" count="1" type="stmt"/>
2465
- <line num="152" count="1" type="stmt"/>
2466
- <line num="153" count="1" type="stmt"/>
2467
- <line num="156" count="41" type="stmt"/>
2468
- <line num="157" count="106" type="stmt"/>
2469
- <line num="159" count="106" type="cond" truecount="4" falsecount="0"/>
2470
- <line num="160" count="2" type="stmt"/>
2471
- <line num="161" count="2" type="stmt"/>
2472
- <line num="163" count="2" type="stmt"/>
2473
- <line num="164" count="3" type="stmt"/>
2474
- <line num="167" count="2" type="cond" truecount="2" falsecount="0"/>
2475
- <line num="168" count="1" type="stmt"/>
2476
- <line num="169" count="1" type="stmt"/>
2477
- <line num="173" count="1" type="cond" truecount="1" falsecount="1"/>
2478
- <line num="174" count="1" type="stmt"/>
2479
- <line num="176" count="1" type="stmt"/>
2480
- <line num="187" count="1" type="stmt"/>
2481
- <line num="197" count="106" type="stmt"/>
2482
- <line num="200" count="41" type="stmt"/>
2483
- <line num="202" count="106" type="cond" truecount="2" falsecount="0"/>
2484
- <line num="203" count="1" type="stmt"/>
2485
- <line num="205" count="5" type="cond" truecount="1" falsecount="1"/>
2486
- <line num="206" count="5" type="stmt"/>
2487
- <line num="210" count="106" type="stmt"/>
2488
- <line num="215" count="106" type="stmt"/>
2489
- <line num="216" count="106" type="stmt"/>
2490
- <line num="217" count="106" type="stmt"/>
2491
- <line num="218" count="106" type="stmt"/>
2492
- <line num="220" count="106" type="stmt"/>
2493
- <line num="225" count="106" type="cond" truecount="2" falsecount="0"/>
2494
- <line num="226" count="5" type="stmt"/>
2495
- <line num="228" count="106" type="stmt"/>
2496
- <line num="229" count="106" type="stmt"/>
2497
- <line num="234" count="106" type="stmt"/>
2498
- <line num="235" count="106" type="stmt"/>
2499
- <line num="236" count="106" type="stmt"/>
2500
- <line num="241" count="106" type="stmt"/>
2501
- <line num="242" count="106" type="stmt"/>
2502
- <line num="243" count="106" type="stmt"/>
2503
- <line num="247" count="106" type="stmt"/>
2504
- <line num="251" count="41" type="stmt"/>
2505
- <line num="252" count="220" type="stmt"/>
2506
- <line num="253" count="220" type="stmt"/>
2507
- <line num="258" count="506" type="stmt"/>
2508
- <line num="265" count="41" type="stmt"/>
2509
- <line num="266" count="0" type="stmt"/>
2510
- <line num="267" count="0" type="stmt"/>
2511
- <line num="268" count="0" type="cond" truecount="0" falsecount="4"/>
2512
- <line num="269" count="0" type="stmt"/>
2513
- <line num="271" count="0" type="stmt"/>
2514
- <line num="274" count="41" type="stmt"/>
2515
- <line num="275" count="0" type="stmt"/>
2516
- <line num="276" count="0" type="stmt"/>
2517
- <line num="279" count="41" type="stmt"/>
2518
- <line num="280" count="31" type="stmt"/>
2519
- <line num="281" count="31" type="cond" truecount="1" falsecount="1"/>
2520
- <line num="282" count="0" type="stmt"/>
2521
- <line num="283" count="0" type="stmt"/>
2522
- <line num="284" count="0" type="stmt"/>
2523
- <line num="285" count="0" type="stmt"/>
2524
- <line num="287" count="31" type="stmt"/>
2525
- <line num="291" count="41" type="stmt"/>
2526
- <line num="292" count="1" type="stmt"/>
2527
- <line num="293" count="1" type="stmt"/>
2528
- <line num="296" count="1" type="stmt"/>
2529
- <line num="297" count="0" type="stmt"/>
2530
- <line num="300" count="0" type="cond" truecount="0" falsecount="2"/>
2531
- <line num="302" count="0" type="cond" truecount="0" falsecount="2"/>
2532
- <line num="303" count="0" type="stmt"/>
2533
- <line num="304" count="0" type="stmt"/>
2534
- <line num="308" count="0" type="cond" truecount="0" falsecount="2"/>
2535
- <line num="309" count="0" type="stmt"/>
2536
- <line num="310" count="0" type="stmt"/>
2537
- <line num="314" count="0" type="cond" truecount="0" falsecount="2"/>
2538
- <line num="315" count="0" type="stmt"/>
2539
- <line num="316" count="0" type="cond" truecount="0" falsecount="2"/>
2540
- <line num="317" count="0" type="stmt"/>
2541
- <line num="318" count="0" type="stmt"/>
2542
- <line num="322" count="0" type="cond" truecount="0" falsecount="2"/>
2543
- <line num="323" count="0" type="stmt"/>
2544
- <line num="325" count="0" type="cond" truecount="0" falsecount="2"/>
2545
- <line num="326" count="0" type="stmt"/>
2546
- <line num="327" count="0" type="stmt"/>
2547
- <line num="328" count="0" type="stmt"/>
2548
- <line num="329" count="0" type="stmt"/>
2549
- <line num="333" count="0" type="cond" truecount="0" falsecount="2"/>
2550
- <line num="334" count="0" type="stmt"/>
2551
- <line num="335" count="0" type="stmt"/>
2552
- <line num="339" count="0" type="cond" truecount="0" falsecount="4"/>
2553
- <line num="340" count="0" type="stmt"/>
2554
- <line num="341" count="0" type="stmt"/>
2555
- <line num="342" count="0" type="stmt"/>
2556
- <line num="344" count="0" type="cond" truecount="0" falsecount="2"/>
2557
- <line num="345" count="0" type="stmt"/>
2558
- <line num="352" count="0" type="cond" truecount="0" falsecount="2"/>
2559
- <line num="353" count="0" type="stmt"/>
2560
- <line num="354" count="0" type="stmt"/>
2561
- <line num="355" count="0" type="cond" truecount="0" falsecount="2"/>
2562
- <line num="356" count="0" type="stmt"/>
2563
- <line num="358" count="0" type="stmt"/>
2564
- <line num="363" count="41" type="stmt"/>
2565
- <line num="364" count="0" type="stmt"/>
2566
- <line num="367" count="41" type="stmt"/>
2567
- <line num="368" count="0" type="stmt"/>
2568
- <line num="371" count="41" type="cond" truecount="0" falsecount="1"/>
2569
- <line num="372" count="0" type="stmt"/>
2570
- <line num="377" count="0" type="cond" truecount="0" falsecount="2"/>
2571
- <line num="378" count="0" type="stmt"/>
2572
- <line num="380" count="0" type="stmt"/>
2573
- <line num="383" count="41" type="stmt"/>
2574
- <line num="384" count="0" type="cond" truecount="0" falsecount="2"/>
2575
- <line num="388" count="0" type="stmt"/>
2576
- <line num="390" count="0" type="stmt"/>
2577
- <line num="391" count="0" type="stmt"/>
2578
- <line num="392" count="0" type="stmt"/>
2579
- <line num="393" count="0" type="cond" truecount="0" falsecount="5"/>
2580
- <line num="394" count="0" type="stmt"/>
2581
- <line num="397" count="0" type="stmt"/>
2582
- <line num="400" count="41" type="stmt"/>
2583
- <line num="401" count="106" type="cond" truecount="2" falsecount="0"/>
2584
- <line num="402" count="101" type="stmt"/>
2585
- <line num="404" count="5" type="stmt"/>
2586
- <line num="405" count="13" type="stmt"/>
2587
- <line num="406" count="13" type="cond" truecount="2" falsecount="0"/>
2588
- <line num="407" count="7" type="stmt"/>
2589
- <line num="409" count="6" type="stmt"/>
2590
- <line num="410" count="6" type="cond" truecount="2" falsecount="2"/>
2591
- <line num="411" count="0" type="stmt"/>
2592
- <line num="414" count="5" type="stmt"/>
2593
- <line num="417" count="41" type="stmt"/>
2594
- </file>
2595
- </package>
2596
- <package name="api.controllers.view">
2597
- <metrics statements="193" coveredstatements="143" conditionals="83" coveredconditionals="53" methods="25" coveredmethods="18"/>
2598
- <file name="exporters.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/exporters.js">
2599
- <metrics statements="11" coveredstatements="11" conditionals="2" coveredconditionals="1" methods="4" coveredmethods="4"/>
2600
- <line num="1" count="41" type="stmt"/>
2601
- <line num="2" count="2" type="stmt"/>
2602
- <line num="4" count="1" type="stmt"/>
2603
- <line num="5" count="1" type="stmt"/>
2604
- <line num="7" count="2" type="stmt"/>
2605
- <line num="8" count="2" type="stmt"/>
2606
- <line num="12" count="2" type="stmt"/>
2607
- <line num="16" count="1" type="stmt"/>
2608
- <line num="19" count="41" type="stmt"/>
2609
- <line num="20" count="1" type="stmt"/>
2610
- <line num="23" count="41" type="stmt"/>
2611
- </file>
2612
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/index.js">
2613
- <metrics statements="68" coveredstatements="61" conditionals="25" coveredconditionals="18" methods="8" coveredmethods="5"/>
2614
- <line num="1" count="40" type="stmt"/>
2615
- <line num="2" count="40" type="stmt"/>
2616
- <line num="3" count="40" type="stmt"/>
2617
- <line num="4" count="40" type="stmt"/>
2618
- <line num="5" count="40" type="stmt"/>
2619
- <line num="6" count="40" type="stmt"/>
2620
- <line num="7" count="40" type="stmt"/>
2621
- <line num="8" count="40" type="stmt"/>
2622
- <line num="10" count="40" type="stmt"/>
2623
- <line num="11" count="1" type="stmt"/>
2624
- <line num="14" count="40" type="stmt"/>
2625
- <line num="15" count="8" type="stmt"/>
2626
- <line num="16" count="8" type="stmt"/>
2627
- <line num="17" count="8" type="stmt"/>
2628
- <line num="19" count="8" type="cond" truecount="1" falsecount="1"/>
2629
- <line num="20" count="0" type="stmt"/>
2630
- <line num="23" count="8" type="stmt"/>
2631
- <line num="26" count="8" type="stmt"/>
2632
- <line num="27" count="8" type="cond" truecount="1" falsecount="1"/>
2633
- <line num="28" count="8" type="cond" truecount="2" falsecount="0"/>
2634
- <line num="29" count="3" type="stmt"/>
2635
- <line num="31" count="8" type="stmt"/>
2636
- <line num="32" count="8" type="cond" truecount="1" falsecount="1"/>
1935
+ <line num="20" count="1" type="stmt"/>
1936
+ <line num="23" count="41" type="stmt"/>
1937
+ </file>
1938
+ <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/index.js">
1939
+ <metrics statements="68" coveredstatements="61" conditionals="25" coveredconditionals="18" methods="8" coveredmethods="5"/>
1940
+ <line num="1" count="40" type="stmt"/>
1941
+ <line num="2" count="40" type="stmt"/>
1942
+ <line num="3" count="40" type="stmt"/>
1943
+ <line num="4" count="40" type="stmt"/>
1944
+ <line num="5" count="40" type="stmt"/>
1945
+ <line num="6" count="40" type="stmt"/>
1946
+ <line num="7" count="40" type="stmt"/>
1947
+ <line num="8" count="40" type="stmt"/>
1948
+ <line num="10" count="40" type="stmt"/>
1949
+ <line num="11" count="1" type="stmt"/>
1950
+ <line num="14" count="40" type="stmt"/>
1951
+ <line num="15" count="8" type="stmt"/>
1952
+ <line num="16" count="8" type="stmt"/>
1953
+ <line num="17" count="8" type="stmt"/>
1954
+ <line num="19" count="8" type="cond" truecount="1" falsecount="1"/>
1955
+ <line num="20" count="0" type="stmt"/>
1956
+ <line num="23" count="8" type="stmt"/>
1957
+ <line num="26" count="8" type="stmt"/>
1958
+ <line num="27" count="8" type="cond" truecount="1" falsecount="1"/>
1959
+ <line num="28" count="8" type="cond" truecount="2" falsecount="0"/>
1960
+ <line num="29" count="3" type="stmt"/>
1961
+ <line num="31" count="8" type="stmt"/>
1962
+ <line num="32" count="8" type="cond" truecount="1" falsecount="1"/>
2637
1963
  <line num="33" count="0" type="stmt"/>
2638
1964
  <line num="35" count="8" type="stmt"/>
2639
1965
  <line num="37" count="8" type="stmt"/>
@@ -2802,7 +2128,7 @@
2802
2128
  </file>
2803
2129
  </package>
2804
2130
  <package name="api.routes">
2805
- <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"/>
2806
2132
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/analytics.js">
2807
2133
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2808
2134
  <line num="1" count="24" type="stmt"/>
@@ -2821,17 +2147,6 @@
2821
2147
  <line num="8" count="24" type="stmt"/>
2822
2148
  <line num="12" count="24" type="stmt"/>
2823
2149
  </file>
2824
- <file name="application.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/application.js">
2825
- <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2826
- <line num="1" count="24" type="stmt"/>
2827
- <line num="2" count="24" type="stmt"/>
2828
- <line num="3" count="24" type="stmt"/>
2829
- <line num="4" count="24" type="stmt"/>
2830
- <line num="5" count="24" type="stmt"/>
2831
- <line num="7" count="24" type="stmt"/>
2832
- <line num="9" count="24" type="stmt"/>
2833
- <line num="33" count="24" type="stmt"/>
2834
- </file>
2835
2150
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/auth.js">
2836
2151
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2837
2152
  <line num="1" count="24" type="stmt"/>
@@ -2919,40 +2234,6 @@
2919
2234
  <line num="21" count="24" type="stmt"/>
2920
2235
  <line num="26" count="24" type="stmt"/>
2921
2236
  </file>
2922
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/index.js">
2923
- <metrics statements="31" coveredstatements="31" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2924
- <line num="1" count="24" type="stmt"/>
2925
- <line num="2" count="24" type="stmt"/>
2926
- <line num="3" count="24" type="stmt"/>
2927
- <line num="4" count="24" type="stmt"/>
2928
- <line num="5" count="24" type="stmt"/>
2929
- <line num="6" count="24" type="stmt"/>
2930
- <line num="7" count="24" type="stmt"/>
2931
- <line num="8" count="24" type="stmt"/>
2932
- <line num="9" count="24" type="stmt"/>
2933
- <line num="10" count="24" type="stmt"/>
2934
- <line num="11" count="24" type="stmt"/>
2935
- <line num="12" count="24" type="stmt"/>
2936
- <line num="13" count="24" type="stmt"/>
2937
- <line num="14" count="24" type="stmt"/>
2938
- <line num="15" count="24" type="stmt"/>
2939
- <line num="16" count="24" type="stmt"/>
2940
- <line num="17" count="24" type="stmt"/>
2941
- <line num="18" count="24" type="stmt"/>
2942
- <line num="19" count="24" type="stmt"/>
2943
- <line num="20" count="24" type="stmt"/>
2944
- <line num="21" count="24" type="stmt"/>
2945
- <line num="22" count="24" type="stmt"/>
2946
- <line num="23" count="24" type="stmt"/>
2947
- <line num="24" count="24" type="stmt"/>
2948
- <line num="25" count="24" type="stmt"/>
2949
- <line num="26" count="24" type="stmt"/>
2950
- <line num="27" count="24" type="stmt"/>
2951
- <line num="28" count="24" type="stmt"/>
2952
- <line num="30" count="24" type="stmt"/>
2953
- <line num="61" count="24" type="stmt"/>
2954
- <line num="62" count="24" type="stmt"/>
2955
- </file>
2956
2237
  <file name="integration.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/integration.js">
2957
2238
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2958
2239
  <line num="1" count="24" type="stmt"/>
@@ -3037,19 +2318,6 @@
3037
2318
  <line num="8" count="24" type="stmt"/>
3038
2319
  <line num="14" count="24" type="stmt"/>
3039
2320
  </file>
3040
- <file name="row.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/row.js">
3041
- <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3042
- <line num="1" count="24" type="stmt"/>
3043
- <line num="2" count="24" type="stmt"/>
3044
- <line num="3" count="24" type="stmt"/>
3045
- <line num="4" count="24" type="stmt"/>
3046
- <line num="8" count="24" type="stmt"/>
3047
- <line num="12" count="24" type="stmt"/>
3048
- <line num="13" count="24" type="stmt"/>
3049
- <line num="15" count="24" type="stmt"/>
3050
- <line num="17" count="24" type="stmt"/>
3051
- <line num="276" count="24" type="stmt"/>
3052
- </file>
3053
2321
  <file name="screen.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/screen.js">
3054
2322
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3055
2323
  <line num="1" count="24" type="stmt"/>
@@ -3071,21 +2339,6 @@
3071
2339
  <line num="8" count="0" type="stmt"/>
3072
2340
  <line num="10" count="0" type="stmt"/>
3073
2341
  </file>
3074
- <file name="static.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/static.js">
3075
- <metrics statements="12" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
3076
- <line num="1" count="24" type="stmt"/>
3077
- <line num="2" count="24" type="stmt"/>
3078
- <line num="3" count="24" type="stmt"/>
3079
- <line num="4" count="24" type="stmt"/>
3080
- <line num="9" count="24" type="stmt"/>
3081
- <line num="10" count="24" type="stmt"/>
3082
- <line num="11" count="24" type="stmt"/>
3083
- <line num="13" count="24" type="stmt"/>
3084
- <line num="33" count="24" type="cond" truecount="1" falsecount="1"/>
3085
- <line num="34" count="24" type="stmt"/>
3086
- <line num="37" count="24" type="stmt"/>
3087
- <line num="55" count="24" type="stmt"/>
3088
- </file>
3089
2342
  <file name="table.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/table.js">
3090
2343
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3091
2344
  <line num="1" count="24" type="stmt"/>
@@ -3184,9 +2437,9 @@
3184
2437
  </file>
3185
2438
  </package>
3186
2439
  <package name="automations">
3187
- <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"/>
3188
2441
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
3189
- <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"/>
3190
2443
  <line num="1" count="41" type="stmt"/>
3191
2444
  <line num="2" count="41" type="stmt"/>
3192
2445
  <line num="3" count="41" type="stmt"/>
@@ -3203,47 +2456,56 @@
3203
2456
  <line num="14" count="41" type="stmt"/>
3204
2457
  <line num="15" count="41" type="stmt"/>
3205
2458
  <line num="16" count="41" type="stmt"/>
3206
- <line num="18" count="41" type="stmt"/>
3207
- <line num="36" count="41" type="stmt"/>
3208
- <line num="58" count="41" type="cond" truecount="1" falsecount="1"/>
3209
- <line num="59" count="41" type="stmt"/>
3210
- <line num="60" count="41" type="stmt"/>
3211
- <line num="61" count="41" type="stmt"/>
3212
- <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"/>
3213
2467
  </file>
3214
2468
  <file name="automationUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/automationUtils.js">
3215
- <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"/>
3216
2470
  <line num="1" count="41" type="stmt"/>
3217
- <line num="19" count="41" type="stmt"/>
3218
- <line num="20" count="15" type="cond" truecount="2" falsecount="0"/>
3219
- <line num="21" count="1" type="stmt"/>
3220
- <line num="23" count="14" type="stmt"/>
3221
- <line num="24" count="36" type="stmt"/>
3222
- <line num="25" count="36" type="cond" truecount="2" falsecount="0"/>
3223
- <line num="26" count="6" type="stmt"/>
3224
- <line num="28" count="30" type="stmt"/>
3225
- <line num="29" count="30" type="cond" truecount="2" falsecount="0"/>
3226
- <line num="30" count="12" type="stmt"/>
3227
- <line num="32" count="18" type="cond" truecount="2" falsecount="0"/>
3228
- <line num="33" count="2" type="stmt"/>
3229
- <line num="34" count="2" type="cond" truecount="2" falsecount="0"/>
3230
- <line num="35" count="1" type="stmt"/>
3231
- <line num="37" count="2" type="cond" truecount="2" falsecount="0"/>
3232
- <line num="38" count="1" type="stmt"/>
3233
- <line num="41" count="18" type="cond" truecount="2" falsecount="0"/>
3234
- <line num="42" count="1" type="stmt"/>
3235
- <line num="43" count="1" type="cond" truecount="1" falsecount="1"/>
3236
- <line num="44" count="1" type="stmt"/>
3237
- <line num="48" count="14" type="stmt"/>
3238
- <line num="60" count="41" type="stmt"/>
3239
- <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"/>
3240
2494
  <line num="62" count="8" type="stmt"/>
3241
- <line num="65" count="41" type="stmt"/>
3242
- <line num="66" count="3" type="cond" truecount="1" falsecount="1"/>
3243
- <line num="67" count="0" type="stmt"/>
3244
- <line num="69" count="3" type="cond" truecount="1" falsecount="1"/>
3245
- <line num="73" count="0" type="stmt"/>
3246
- <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"/>
3247
2509
  </file>
3248
2510
  <file name="bullboard.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/bullboard.js">
3249
2511
  <metrics statements="28" coveredstatements="15" conditionals="6" coveredconditionals="3" methods="3" coveredmethods="0"/>
@@ -3301,16 +2563,16 @@
3301
2563
  <line num="11" count="40" type="stmt"/>
3302
2564
  <line num="13" count="40" type="stmt"/>
3303
2565
  <line num="14" count="40" type="stmt"/>
3304
- <line num="20" count="19" type="cond" truecount="1" falsecount="1"/>
2566
+ <line num="20" count="18" type="cond" truecount="1" falsecount="1"/>
3305
2567
  <line num="21" count="0" type="stmt"/>
3306
- <line num="24" count="19" type="stmt"/>
3307
- <line num="25" count="19" type="stmt"/>
3308
- <line num="26" count="19" type="stmt"/>
3309
- <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"/>
3310
2572
  <line num="32" count="4" type="stmt"/>
3311
2573
  <line num="34" count="4" type="stmt"/>
3312
2574
  <line num="35" count="4" type="cond" truecount="2" falsecount="0"/>
3313
- <line num="38" count="19" type="stmt"/>
2575
+ <line num="38" count="18" type="stmt"/>
3314
2576
  <line num="39" count="4" type="stmt"/>
3315
2577
  <line num="40" count="4" type="cond" truecount="1" falsecount="1"/>
3316
2578
  <line num="44" count="4" type="cond" truecount="1" falsecount="1"/>
@@ -3318,7 +2580,7 @@
3318
2580
  <line num="51" count="4" type="cond" truecount="1" falsecount="1"/>
3319
2581
  <line num="55" count="4" type="stmt"/>
3320
2582
  <line num="61" count="40" type="stmt"/>
3321
- <line num="66" count="9" type="stmt"/>
2583
+ <line num="66" count="8" type="stmt"/>
3322
2584
  <line num="69" count="40" type="stmt"/>
3323
2585
  <line num="74" count="4" type="stmt"/>
3324
2586
  <line num="77" count="40" type="stmt"/>
@@ -3336,91 +2598,9 @@
3336
2598
  <line num="109" count="4" type="stmt"/>
3337
2599
  <line num="113" count="40" type="stmt"/>
3338
2600
  </file>
3339
- <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/utils.js">
3340
- <metrics statements="79" coveredstatements="63" conditionals="38" coveredconditionals="31" methods="11" coveredmethods="9"/>
3341
- <line num="1" count="40" type="stmt"/>
3342
- <line num="2" count="40" type="stmt"/>
3343
- <line num="3" count="40" type="stmt"/>
3344
- <line num="4" count="40" type="stmt"/>
3345
- <line num="5" count="40" type="stmt"/>
3346
- <line num="6" count="40" type="stmt"/>
3347
- <line num="7" count="40" type="stmt"/>
3348
- <line num="8" count="40" type="stmt"/>
3349
- <line num="9" count="40" type="stmt"/>
3350
- <line num="10" count="40" type="stmt"/>
3351
- <line num="11" count="40" type="stmt"/>
3352
- <line num="13" count="40" type="stmt"/>
3353
- <line num="14" count="40" type="stmt"/>
3354
- <line num="15" count="40" type="stmt"/>
3355
- <line num="17" count="40" type="stmt"/>
3356
- <line num="18" count="10" type="stmt"/>
3357
- <line num="20" count="10" type="stmt"/>
3358
- <line num="23" count="10" type="stmt"/>
3359
- <line num="25" count="0" type="stmt"/>
3360
- <line num="26" count="0" type="stmt"/>
3361
- <line num="29" count="0" type="stmt"/>
3362
- <line num="30" count="0" type="stmt"/>
3363
- <line num="34" count="40" type="stmt"/>
3364
- <line num="35" count="2" type="stmt"/>
3365
- <line num="39" count="2" type="cond" truecount="3" falsecount="1"/>
3366
- <line num="40" count="0" type="stmt"/>
3367
- <line num="42" count="2" type="stmt"/>
3368
- <line num="46" count="2" type="stmt"/>
3369
- <line num="51" count="40" type="stmt"/>
3370
- <line num="52" count="80" type="stmt"/>
3371
- <line num="53" count="80" type="stmt"/>
3372
- <line num="54" count="880" type="cond" truecount="2" falsecount="0"/>
3373
- <line num="55" count="40" type="stmt"/>
3374
- <line num="58" count="80" type="stmt"/>
3375
- <line num="62" count="40" type="stmt"/>
3376
- <line num="63" count="206" type="stmt"/>
3377
- <line num="64" count="206" type="stmt"/>
3378
- <line num="65" count="206" type="stmt"/>
3379
- <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
3380
- <line num="67" count="0" type="stmt"/>
3381
- <line num="68" count="0" type="stmt"/>
3382
- <line num="71" count="206" type="stmt"/>
3383
- <line num="79" count="40" type="stmt"/>
3384
- <line num="80" count="1" type="cond" truecount="1" falsecount="1"/>
3385
- <line num="82" count="1" type="stmt"/>
3386
- <line num="89" count="1" type="cond" truecount="1" falsecount="1"/>
3387
- <line num="91" count="0" type="stmt"/>
3388
- <line num="92" count="0" type="stmt"/>
3389
- <line num="100" count="0" type="stmt"/>
3390
- <line num="104" count="0" type="stmt"/>
3391
- <line num="105" count="0" type="stmt"/>
3392
- <line num="106" count="0" type="stmt"/>
3393
- <line num="107" count="0" type="stmt"/>
3394
- <line num="110" count="1" type="stmt"/>
3395
- <line num="121" count="40" type="stmt"/>
3396
- <line num="122" count="23" type="stmt"/>
3397
- <line num="123" count="23" type="cond" truecount="2" falsecount="0"/>
3398
- <line num="124" count="23" type="cond" truecount="2" falsecount="0"/>
3399
- <line num="126" count="23" type="cond" truecount="3" falsecount="0"/>
3400
- <line num="128" count="70" type="stmt"/>
3401
- <line num="135" count="23" type="cond" truecount="2" falsecount="0"/>
3402
- <line num="140" count="1" type="stmt"/>
3403
- <line num="141" count="1" type="stmt"/>
3404
- <line num="143" count="1" type="stmt"/>
3405
- <line num="144" count="1" type="stmt"/>
3406
- <line num="149" count="1" type="cond" truecount="1" falsecount="1"/>
3407
- <line num="150" count="1" type="stmt"/>
3408
- <line num="151" count="1" type="stmt"/>
3409
- <line num="153" count="1" type="stmt"/>
3410
- <line num="159" count="23" type="cond" truecount="2" falsecount="0"/>
3411
- <line num="163" count="1" type="stmt"/>
3412
- <line num="173" count="1" type="stmt"/>
3413
- <line num="174" count="1" type="stmt"/>
3414
- <line num="175" count="1" type="stmt"/>
3415
- <line num="179" count="1" type="stmt"/>
3416
- <line num="180" count="1" type="stmt"/>
3417
- <line num="185" count="23" type="stmt"/>
3418
- <line num="193" count="40" type="stmt"/>
3419
- <line num="194" count="0" type="stmt"/>
3420
- </file>
3421
2601
  </package>
3422
2602
  <package name="automations.steps">
3423
- <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"/>
3424
2604
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
3425
2605
  <metrics statements="17" coveredstatements="6" conditionals="4" coveredconditionals="0" methods="1" coveredmethods="0"/>
3426
2606
  <line num="1" count="41" type="stmt"/>
@@ -3441,25 +2621,6 @@
3441
2621
  <line num="63" count="0" type="stmt"/>
3442
2622
  <line num="68" count="0" type="stmt"/>
3443
2623
  </file>
3444
- <file name="createRow.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/createRow.js">
3445
- <metrics statements="16" coveredstatements="16" conditionals="4" coveredconditionals="4" methods="1" coveredmethods="1"/>
3446
- <line num="1" count="41" type="stmt"/>
3447
- <line num="2" count="41" type="stmt"/>
3448
- <line num="3" count="41" type="stmt"/>
3449
- <line num="4" count="41" type="stmt"/>
3450
- <line num="6" count="41" type="stmt"/>
3451
- <line num="62" count="41" type="stmt"/>
3452
- <line num="63" count="9" type="cond" truecount="4" falsecount="0"/>
3453
- <line num="64" count="1" type="stmt"/>
3454
- <line num="72" count="8" type="stmt"/>
3455
- <line num="79" count="8" type="stmt"/>
3456
- <line num="80" count="8" type="stmt"/>
3457
- <line num="84" count="7" type="stmt"/>
3458
- <line num="85" count="7" type="stmt"/>
3459
- <line num="86" count="7" type="stmt"/>
3460
- <line num="87" count="7" type="stmt"/>
3461
- <line num="95" count="1" type="stmt"/>
3462
- </file>
3463
2624
  <file name="delay.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/delay.js">
3464
2625
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3465
2626
  <line num="1" count="41" type="stmt"/>
@@ -3468,23 +2629,6 @@
3468
2629
  <line num="35" count="1" type="stmt"/>
3469
2630
  <line num="36" count="1" type="stmt"/>
3470
2631
  </file>
3471
- <file name="deleteRow.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/deleteRow.js">
3472
- <metrics statements="14" coveredstatements="14" conditionals="4" coveredconditionals="4" methods="1" coveredmethods="1"/>
3473
- <line num="1" count="41" type="stmt"/>
3474
- <line num="2" count="41" type="stmt"/>
3475
- <line num="3" count="41" type="stmt"/>
3476
- <line num="4" count="41" type="stmt"/>
3477
- <line num="6" count="41" type="stmt"/>
3478
- <line num="55" count="41" type="stmt"/>
3479
- <line num="56" count="4" type="cond" truecount="4" falsecount="0"/>
3480
- <line num="57" count="1" type="stmt"/>
3481
- <line num="65" count="3" type="stmt"/>
3482
- <line num="75" count="3" type="stmt"/>
3483
- <line num="76" count="3" type="stmt"/>
3484
- <line num="77" count="3" type="stmt"/>
3485
- <line num="78" count="2" type="stmt"/>
3486
- <line num="84" count="1" type="stmt"/>
3487
- </file>
3488
2632
  <file name="discord.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/discord.js">
3489
2633
  <metrics statements="14" coveredstatements="6" conditionals="6" coveredconditionals="0" methods="1" coveredmethods="0"/>
3490
2634
  <line num="1" count="41" type="stmt"/>
@@ -3574,6 +2718,10 @@
3574
2718
  <line num="81" count="0" type="stmt"/>
3575
2719
  <line num="82" count="0" type="stmt"/>
3576
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>
3577
2725
  <file name="outgoingWebhook.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/outgoingWebhook.js">
3578
2726
  <metrics statements="25" coveredstatements="21" conditionals="17" coveredconditionals="12" methods="1" coveredmethods="1"/>
3579
2727
  <line num="1" count="41" type="stmt"/>
@@ -3693,13 +2841,13 @@
3693
2841
  <line num="12" count="0" type="stmt"/>
3694
2842
  <line num="14" count="2" type="stmt"/>
3695
2843
  <line num="20" count="41" type="cond" truecount="0" falsecount="1"/>
3696
- <line num="21" count="15" type="stmt"/>
2844
+ <line num="21" count="14" type="stmt"/>
3697
2845
  <line num="26" count="1" type="stmt"/>
3698
- <line num="29" count="15" type="cond" truecount="2" falsecount="0"/>
3699
- <line num="30" count="14" type="stmt"/>
3700
- <line num="32" count="15" type="cond" truecount="1" falsecount="1"/>
3701
- <line num="33" count="15" type="stmt"/>
3702
- <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"/>
3703
2851
  </file>
3704
2852
  <file name="zapier.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/zapier.js">
3705
2853
  <metrics statements="8" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3751,36 +2899,37 @@
3751
2899
  </file>
3752
2900
  </package>
3753
2901
  <package name="constants">
3754
- <metrics statements="34" coveredstatements="34" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="2"/>
2902
+ <metrics statements="35" coveredstatements="35" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="2"/>
3755
2903
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3756
- <metrics statements="27" coveredstatements="27" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
3757
- <line num="1" count="49" type="stmt"/>
3758
- <line num="2" count="49" type="stmt"/>
3759
- <line num="3" count="49" type="stmt"/>
3760
- <line num="5" count="49" type="stmt"/>
3761
- <line num="9" count="49" type="stmt"/>
3762
- <line num="22" count="49" type="stmt"/>
3763
- <line num="23" count="49" type="stmt"/>
3764
- <line num="32" count="49" type="stmt"/>
3765
- <line num="48" count="49" type="stmt"/>
3766
- <line num="54" count="49" type="stmt"/>
3767
- <line num="55" count="98" type="cond" truecount="1" falsecount="1"/>
3768
- <line num="58" count="49" type="stmt"/>
3769
- <line num="64" count="49" type="stmt"/>
3770
- <line num="69" count="49" type="stmt"/>
3771
- <line num="75" count="49" type="stmt"/>
3772
- <line num="86" count="49" type="stmt"/>
3773
- <line num="90" count="49" type="stmt"/>
3774
- <line num="95" count="49" type="stmt"/>
3775
- <line num="157" count="49" type="stmt"/>
3776
- <line num="165" count="49" type="stmt"/>
3777
- <line num="173" count="49" type="stmt"/>
3778
- <line num="174" count="49" type="stmt"/>
3779
- <line num="181" count="49" type="stmt"/>
3780
- <line num="186" count="49" type="stmt"/>
3781
- <line num="192" count="49" type="stmt"/>
3782
- <line num="197" count="49" type="stmt"/>
3783
- <line num="202" count="49" type="stmt"/>
2904
+ <metrics statements="28" coveredstatements="28" 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="173" count="48" type="stmt"/>
2926
+ <line num="174" count="48" type="stmt"/>
2927
+ <line num="181" count="48" type="stmt"/>
2928
+ <line num="186" count="48" type="stmt"/>
2929
+ <line num="192" count="48" type="stmt"/>
2930
+ <line num="197" count="48" type="stmt"/>
2931
+ <line num="201" count="48" type="stmt"/>
2932
+ <line num="208" count="48" type="stmt"/>
3784
2933
  </file>
3785
2934
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3786
2935
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3837,124 +2986,124 @@
3837
2986
  </file>
3838
2987
  <file name="newid.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/newid.js">
3839
2988
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3840
- <line num="1" count="55" type="stmt"/>
3841
- <line num="3" count="55" type="stmt"/>
3842
- <line num="4" count="1001" type="stmt"/>
2989
+ <line num="1" count="54" type="stmt"/>
2990
+ <line num="3" count="54" type="stmt"/>
2991
+ <line num="4" count="996" type="stmt"/>
3843
2992
  </file>
3844
2993
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3845
2994
  <metrics statements="113" coveredstatements="103" conditionals="51" coveredconditionals="19" methods="32" coveredmethods="27"/>
3846
- <line num="1" count="55" type="stmt"/>
3847
- <line num="12" count="55" type="stmt"/>
3848
- <line num="14" count="55" type="stmt"/>
3849
- <line num="16" count="55" type="stmt"/>
3850
- <line num="22" count="55" type="stmt"/>
3851
- <line num="46" count="55" type="stmt"/>
3852
- <line num="51" count="55" type="stmt"/>
3853
- <line num="55" count="55" type="stmt"/>
3854
- <line num="59" count="55" type="stmt"/>
3855
- <line num="61" count="55" type="stmt"/>
3856
- <line num="69" count="55" type="stmt"/>
3857
- <line num="70" count="55" type="stmt"/>
3858
- <line num="71" count="55" type="stmt"/>
3859
- <line num="72" count="55" type="stmt"/>
3860
- <line num="73" count="55" type="stmt"/>
3861
- <line num="74" count="55" type="stmt"/>
3862
- <line num="75" count="55" type="stmt"/>
3863
- <line num="76" count="55" type="stmt"/>
3864
- <line num="77" count="55" type="stmt"/>
3865
- <line num="78" count="55" type="stmt"/>
3866
- <line num="79" count="55" type="stmt"/>
3867
- <line num="80" count="55" type="stmt"/>
3868
- <line num="81" count="55" type="stmt"/>
3869
- <line num="82" count="55" type="stmt"/>
3870
- <line num="84" count="55" type="stmt"/>
3871
- <line num="85" count="55" type="stmt"/>
3872
- <line num="87" count="55" type="stmt"/>
2995
+ <line num="1" count="54" type="stmt"/>
2996
+ <line num="12" count="54" type="stmt"/>
2997
+ <line num="14" count="54" type="stmt"/>
2998
+ <line num="16" count="54" type="stmt"/>
2999
+ <line num="22" count="54" type="stmt"/>
3000
+ <line num="46" count="54" type="stmt"/>
3001
+ <line num="51" count="54" type="stmt"/>
3002
+ <line num="55" count="54" type="stmt"/>
3003
+ <line num="59" count="54" type="stmt"/>
3004
+ <line num="61" count="54" type="stmt"/>
3005
+ <line num="69" count="54" type="stmt"/>
3006
+ <line num="70" count="54" type="stmt"/>
3007
+ <line num="71" count="54" type="stmt"/>
3008
+ <line num="72" count="54" type="stmt"/>
3009
+ <line num="73" count="54" type="stmt"/>
3010
+ <line num="74" count="54" type="stmt"/>
3011
+ <line num="75" count="54" type="stmt"/>
3012
+ <line num="76" count="54" type="stmt"/>
3013
+ <line num="77" count="54" type="stmt"/>
3014
+ <line num="78" count="54" type="stmt"/>
3015
+ <line num="79" count="54" type="stmt"/>
3016
+ <line num="80" count="54" type="stmt"/>
3017
+ <line num="81" count="54" type="stmt"/>
3018
+ <line num="82" count="54" type="stmt"/>
3019
+ <line num="84" count="54" type="stmt"/>
3020
+ <line num="85" count="54" type="stmt"/>
3021
+ <line num="87" count="54" type="stmt"/>
3873
3022
  <line num="88" count="74" type="stmt"/>
3874
- <line num="104" count="903" type="cond" truecount="2" falsecount="0"/>
3875
- <line num="105" count="888" type="stmt"/>
3876
- <line num="107" count="903" type="stmt"/>
3877
- <line num="114" count="55" type="stmt"/>
3878
- <line num="119" count="55" type="cond" truecount="0" falsecount="2"/>
3879
- <line num="120" count="222" type="stmt"/>
3880
- <line num="127" count="55" type="stmt"/>
3881
- <line num="128" count="106" type="stmt"/>
3882
- <line num="139" count="55" type="cond" truecount="0" falsecount="3"/>
3883
- <line num="140" count="16" type="cond" truecount="2" falsecount="0"/>
3884
- <line num="141" count="4" type="stmt"/>
3023
+ <line num="104" count="908" type="cond" truecount="2" falsecount="0"/>
3024
+ <line num="105" count="893" type="stmt"/>
3025
+ <line num="107" count="908" type="stmt"/>
3026
+ <line num="114" count="54" type="stmt"/>
3027
+ <line num="119" count="54" type="cond" truecount="0" falsecount="2"/>
3028
+ <line num="120" count="220" type="stmt"/>
3029
+ <line num="127" count="54" type="stmt"/>
3030
+ <line num="128" count="105" type="stmt"/>
3031
+ <line num="139" count="54" type="cond" truecount="0" falsecount="3"/>
3032
+ <line num="140" count="27" type="cond" truecount="2" falsecount="0"/>
3033
+ <line num="141" count="15" type="stmt"/>
3885
3034
  <line num="144" count="12" type="cond" truecount="1" falsecount="1"/>
3886
3035
  <line num="146" count="12" type="stmt"/>
3887
- <line num="154" count="55" type="stmt"/>
3036
+ <line num="154" count="54" type="stmt"/>
3888
3037
  <line num="155" count="0" type="stmt"/>
3889
3038
  <line num="158" count="0" type="stmt"/>
3890
- <line num="167" count="55" type="cond" truecount="1" falsecount="0"/>
3891
- <line num="168" count="265" type="cond" truecount="2" falsecount="0"/>
3892
- <line num="169" count="265" type="stmt"/>
3893
- <line num="175" count="55" type="cond" truecount="0" falsecount="2"/>
3039
+ <line num="167" count="54" type="cond" truecount="1" falsecount="0"/>
3040
+ <line num="168" count="264" type="cond" truecount="2" falsecount="0"/>
3041
+ <line num="169" count="264" type="stmt"/>
3042
+ <line num="175" count="54" type="cond" truecount="0" falsecount="2"/>
3894
3043
  <line num="176" count="3" type="stmt"/>
3895
- <line num="184" count="55" type="stmt"/>
3044
+ <line num="184" count="54" type="stmt"/>
3896
3045
  <line num="185" count="193" type="stmt"/>
3897
- <line num="191" count="55" type="stmt"/>
3046
+ <line num="191" count="54" type="stmt"/>
3898
3047
  <line num="192" count="2" type="stmt"/>
3899
3048
  <line num="193" count="2" type="cond" truecount="4" falsecount="0"/>
3900
3049
  <line num="194" count="1" type="stmt"/>
3901
3050
  <line num="196" count="1" type="stmt"/>
3902
- <line num="202" count="55" type="cond" truecount="0" falsecount="2"/>
3903
- <line num="203" count="227" type="stmt"/>
3904
- <line num="210" count="55" type="stmt"/>
3051
+ <line num="202" count="54" type="cond" truecount="0" falsecount="2"/>
3052
+ <line num="203" count="225" type="stmt"/>
3053
+ <line num="210" count="54" type="stmt"/>
3905
3054
  <line num="211" count="20" type="stmt"/>
3906
- <line num="225" count="55" type="stmt"/>
3055
+ <line num="225" count="54" type="stmt"/>
3907
3056
  <line num="233" count="9" type="stmt"/>
3908
3057
  <line num="234" count="9" type="stmt"/>
3909
3058
  <line num="235" count="9" type="stmt"/>
3910
3059
  <line num="236" count="9" type="stmt"/>
3911
- <line num="242" count="55" type="cond" truecount="0" falsecount="1"/>
3060
+ <line num="242" count="54" type="cond" truecount="0" falsecount="1"/>
3912
3061
  <line num="243" count="0" type="stmt"/>
3913
- <line num="250" count="55" type="cond" truecount="0" falsecount="1"/>
3914
- <line num="251" count="200" type="stmt"/>
3915
- <line num="252" count="200" type="cond" truecount="1" falsecount="1"/>
3062
+ <line num="250" count="54" type="cond" truecount="0" falsecount="1"/>
3063
+ <line num="251" count="199" type="stmt"/>
3064
+ <line num="252" count="199" type="cond" truecount="1" falsecount="1"/>
3916
3065
  <line num="253" count="0" type="stmt"/>
3917
- <line num="255" count="200" type="stmt"/>
3918
- <line num="262" count="55" type="stmt"/>
3919
- <line num="263" count="200" type="stmt"/>
3920
- <line num="264" count="200" type="stmt"/>
3921
- <line num="265" count="200" type="stmt"/>
3922
- <line num="272" count="55" type="stmt"/>
3066
+ <line num="255" count="199" type="stmt"/>
3067
+ <line num="262" count="54" type="stmt"/>
3068
+ <line num="263" count="199" type="stmt"/>
3069
+ <line num="264" count="199" type="stmt"/>
3070
+ <line num="265" count="199" type="stmt"/>
3071
+ <line num="272" count="54" type="stmt"/>
3923
3072
  <line num="273" count="5" type="cond" truecount="2" falsecount="0"/>
3924
- <line num="279" count="55" type="cond" truecount="0" falsecount="2"/>
3925
- <line num="280" count="213" type="stmt"/>
3926
- <line num="287" count="55" type="stmt"/>
3073
+ <line num="279" count="54" type="cond" truecount="0" falsecount="2"/>
3074
+ <line num="280" count="212" type="stmt"/>
3075
+ <line num="287" count="54" type="stmt"/>
3927
3076
  <line num="288" count="19" type="stmt"/>
3928
- <line num="294" count="55" type="cond" truecount="0" falsecount="2"/>
3929
- <line num="295" count="215" type="stmt"/>
3930
- <line num="302" count="55" type="stmt"/>
3077
+ <line num="294" count="54" type="cond" truecount="0" falsecount="2"/>
3078
+ <line num="295" count="214" type="stmt"/>
3079
+ <line num="302" count="54" type="stmt"/>
3931
3080
  <line num="303" count="10" type="stmt"/>
3932
- <line num="309" count="55" type="cond" truecount="0" falsecount="2"/>
3081
+ <line num="309" count="54" type="cond" truecount="0" falsecount="2"/>
3933
3082
  <line num="310" count="2" type="stmt"/>
3934
- <line num="317" count="55" type="cond" truecount="1" falsecount="1"/>
3083
+ <line num="317" count="54" type="cond" truecount="1" falsecount="1"/>
3935
3084
  <line num="318" count="39" type="stmt"/>
3936
- <line num="326" count="55" type="cond" truecount="0" falsecount="2"/>
3085
+ <line num="326" count="54" type="cond" truecount="0" falsecount="2"/>
3937
3086
  <line num="327" count="4" type="stmt"/>
3938
- <line num="334" count="55" type="stmt"/>
3087
+ <line num="334" count="54" type="stmt"/>
3939
3088
  <line num="335" count="131" type="stmt"/>
3940
- <line num="343" count="55" type="cond" truecount="0" falsecount="2"/>
3089
+ <line num="343" count="54" type="cond" truecount="0" falsecount="2"/>
3941
3090
  <line num="344" count="4" type="cond" truecount="2" falsecount="0"/>
3942
3091
  <line num="345" count="3" type="stmt"/>
3943
3092
  <line num="348" count="1" type="stmt"/>
3944
- <line num="359" count="55" type="stmt"/>
3093
+ <line num="359" count="54" type="stmt"/>
3945
3094
  <line num="360" count="0" type="stmt"/>
3946
- <line num="363" count="55" type="stmt"/>
3095
+ <line num="363" count="54" type="stmt"/>
3947
3096
  <line num="364" count="10" type="stmt"/>
3948
- <line num="367" count="55" type="cond" truecount="0" falsecount="2"/>
3097
+ <line num="367" count="54" type="cond" truecount="0" falsecount="2"/>
3949
3098
  <line num="368" count="0" type="stmt"/>
3950
3099
  <line num="369" count="0" type="cond" truecount="0" falsecount="2"/>
3951
3100
  <line num="370" count="0" type="stmt"/>
3952
3101
  <line num="372" count="0" type="stmt"/>
3953
- <line num="375" count="55" type="stmt"/>
3102
+ <line num="375" count="54" type="stmt"/>
3954
3103
  <line num="376" count="1" type="stmt"/>
3955
- <line num="379" count="55" type="cond" truecount="0" falsecount="1"/>
3104
+ <line num="379" count="54" type="cond" truecount="0" falsecount="1"/>
3956
3105
  <line num="380" count="0" type="stmt"/>
3957
- <line num="386" count="55" type="stmt"/>
3106
+ <line num="386" count="54" type="stmt"/>
3958
3107
  <line num="387" count="60" type="stmt"/>
3959
3108
  </file>
3960
3109
  </package>
@@ -3971,21 +3120,21 @@
3971
3120
  <line num="41" count="9" type="stmt"/>
3972
3121
  <line num="42" count="9" type="stmt"/>
3973
3122
  <line num="47" count="9" type="stmt"/>
3974
- <line num="56" count="201" type="stmt"/>
3975
- <line num="57" count="201" type="stmt"/>
3976
- <line num="58" count="201" type="stmt"/>
3977
- <line num="59" count="201" type="stmt"/>
3978
- <line num="60" count="201" type="stmt"/>
3123
+ <line num="56" count="199" type="stmt"/>
3124
+ <line num="57" count="199" type="stmt"/>
3125
+ <line num="58" count="199" type="stmt"/>
3126
+ <line num="59" count="199" type="stmt"/>
3127
+ <line num="60" count="199" type="stmt"/>
3979
3128
  <line num="69" count="53" type="cond" truecount="2" falsecount="0"/>
3980
3129
  <line num="70" count="6" type="stmt"/>
3981
3130
  <line num="73" count="53" type="stmt"/>
3982
- <line num="84" count="195" type="cond" truecount="2" falsecount="0"/>
3131
+ <line num="84" count="193" type="cond" truecount="2" falsecount="0"/>
3983
3132
  <line num="85" count="6" type="stmt"/>
3984
- <line num="87" count="195" type="stmt"/>
3985
- <line num="88" count="479" type="stmt"/>
3986
- <line num="89" count="479" type="cond" truecount="2" falsecount="0"/>
3133
+ <line num="87" count="193" type="stmt"/>
3134
+ <line num="88" count="475" type="stmt"/>
3135
+ <line num="89" count="475" type="cond" truecount="2" falsecount="0"/>
3987
3136
  <line num="90" count="41" type="stmt"/>
3988
- <line num="93" count="154" type="stmt"/>
3137
+ <line num="93" count="152" type="stmt"/>
3989
3138
  <line num="100" count="27" type="stmt"/>
3990
3139
  <line num="111" count="9" type="stmt"/>
3991
3140
  <line num="121" count="22" type="stmt"/>
@@ -4154,14 +3303,14 @@
4154
3303
  <line num="90" count="30" type="stmt"/>
4155
3304
  <line num="91" count="30" type="stmt"/>
4156
3305
  <line num="105" count="41" type="stmt"/>
4157
- <line num="106" count="191" type="stmt"/>
4158
- <line num="107" count="191" type="cond" truecount="2" falsecount="0"/>
4159
- <line num="109" count="191" type="cond" truecount="4" falsecount="0"/>
4160
- <line num="110" count="109" type="stmt"/>
4161
- <line num="112" count="191" type="stmt"/>
4162
- <line num="113" count="191" type="stmt"/>
4163
- <line num="114" count="191" type="cond" truecount="2" falsecount="0"/>
4164
- <line num="119" count="150" type="stmt"/>
3306
+ <line num="106" count="189" type="stmt"/>
3307
+ <line num="107" count="189" type="cond" truecount="2" falsecount="0"/>
3308
+ <line num="109" count="189" type="cond" truecount="4" falsecount="0"/>
3309
+ <line num="110" count="108" type="stmt"/>
3310
+ <line num="112" count="189" type="stmt"/>
3311
+ <line num="113" count="189" type="stmt"/>
3312
+ <line num="114" count="189" type="cond" truecount="2" falsecount="0"/>
3313
+ <line num="119" count="148" type="stmt"/>
4165
3314
  <line num="122" count="0" type="stmt"/>
4166
3315
  <line num="124" count="41" type="cond" truecount="5" falsecount="2"/>
4167
3316
  <line num="127" count="21" type="stmt"/>
@@ -4171,9 +3320,9 @@
4171
3320
  <line num="135" count="1" type="stmt"/>
4172
3321
  <line num="137" count="0" type="stmt"/>
4173
3322
  <line num="148" count="41" type="stmt"/>
4174
- <line num="149" count="113" type="stmt"/>
4175
- <line num="150" count="113" type="cond" truecount="2" falsecount="0"/>
4176
- <line num="151" count="83" type="stmt"/>
3323
+ <line num="149" count="112" type="stmt"/>
3324
+ <line num="150" count="112" type="cond" truecount="2" falsecount="0"/>
3325
+ <line num="151" count="82" type="stmt"/>
4177
3326
  <line num="154" count="30" type="stmt"/>
4178
3327
  <line num="155" count="25" type="stmt"/>
4179
3328
  <line num="158" count="30" type="stmt"/>
@@ -4244,8 +3393,8 @@
4244
3393
  <line num="80" count="30" type="stmt"/>
4245
3394
  <line num="81" count="33" type="stmt"/>
4246
3395
  <line num="85" count="41" type="stmt"/>
4247
- <line num="86" count="113" type="stmt"/>
4248
- <line num="87" count="322" type="stmt"/>
3396
+ <line num="86" count="112" type="stmt"/>
3397
+ <line num="87" count="320" type="stmt"/>
4249
3398
  <line num="88" count="53" type="stmt"/>
4250
3399
  <line num="91" count="41" type="stmt"/>
4251
3400
  <line num="92" count="68" type="stmt"/>
@@ -4270,24 +3419,24 @@
4270
3419
  <metrics statements="38" coveredstatements="34" conditionals="18" coveredconditionals="10" methods="8" coveredmethods="7"/>
4271
3420
  <file name="AutomationEmitter.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/AutomationEmitter.js">
4272
3421
  <metrics statements="12" coveredstatements="9" conditionals="6" coveredconditionals="2" methods="3" coveredmethods="2"/>
4273
- <line num="1" count="4" type="stmt"/>
4274
- <line num="2" count="4" type="stmt"/>
4275
- <line num="5" count="4" type="stmt"/>
4276
- <line num="15" count="7" type="stmt"/>
4277
- <line num="16" count="7" type="stmt"/>
3422
+ <line num="1" count="3" type="stmt"/>
3423
+ <line num="2" count="3" type="stmt"/>
3424
+ <line num="5" count="3" type="stmt"/>
3425
+ <line num="15" count="6" type="stmt"/>
3426
+ <line num="16" count="6" type="stmt"/>
4278
3427
  <line num="23" count="5" type="cond" truecount="2" falsecount="0"/>
4279
3428
  <line num="24" count="1" type="stmt"/>
4280
3429
  <line num="26" count="4" type="stmt"/>
4281
3430
  <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4282
3431
  <line num="39" count="0" type="stmt"/>
4283
3432
  <line num="41" count="0" type="stmt"/>
4284
- <line num="51" count="4" type="stmt"/>
3433
+ <line num="51" count="3" type="stmt"/>
4285
3434
  </file>
4286
3435
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/index.js">
4287
3436
  <metrics statements="7" coveredstatements="7" conditionals="2" coveredconditionals="1" methods="3" coveredmethods="3"/>
4288
3437
  <line num="1" count="41" type="stmt"/>
4289
3438
  <line num="2" count="41" type="stmt"/>
4290
- <line num="16" count="15" type="stmt"/>
3439
+ <line num="16" count="14" type="stmt"/>
4291
3440
  <line num="20" count="10" type="stmt"/>
4292
3441
  <line num="24" count="24" type="stmt"/>
4293
3442
  <line num="28" count="41" type="stmt"/>
@@ -4296,15 +3445,15 @@
4296
3445
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/utils.js">
4297
3446
  <metrics statements="19" coveredstatements="18" conditionals="10" coveredconditionals="7" methods="2" coveredmethods="2"/>
4298
3447
  <line num="1" count="41" type="stmt"/>
4299
- <line num="2" count="19" type="stmt"/>
4300
- <line num="7" count="19" type="cond" truecount="2" falsecount="0"/>
4301
- <line num="8" count="13" type="stmt"/>
4302
- <line num="10" count="19" type="stmt"/>
4303
- <line num="11" count="19" type="cond" truecount="1" falsecount="1"/>
4304
- <line num="12" count="19" type="stmt"/>
4305
- <line num="14" count="19" type="cond" truecount="2" falsecount="0"/>
3448
+ <line num="2" count="18" type="stmt"/>
3449
+ <line num="7" count="18" type="cond" truecount="2" falsecount="0"/>
3450
+ <line num="8" count="12" type="stmt"/>
3451
+ <line num="10" count="18" type="stmt"/>
3452
+ <line num="11" count="18" type="cond" truecount="1" falsecount="1"/>
3453
+ <line num="12" count="18" type="stmt"/>
3454
+ <line num="14" count="18" type="cond" truecount="2" falsecount="0"/>
4306
3455
  <line num="15" count="4" type="stmt"/>
4307
- <line num="17" count="19" type="stmt"/>
3456
+ <line num="17" count="18" type="stmt"/>
4308
3457
  <line num="20" count="41" type="stmt"/>
4309
3458
  <line num="21" count="10" type="stmt"/>
4310
3459
  <line num="22" count="10" type="stmt"/>
@@ -4323,7 +3472,7 @@
4323
3472
  </file>
4324
3473
  </package>
4325
3474
  <package name="middleware">
4326
- <metrics statements="285" coveredstatements="234" conditionals="203" coveredconditionals="143" methods="39" coveredmethods="34"/>
3475
+ <metrics statements="174" coveredstatements="149" conditionals="117" coveredconditionals="89" methods="25" coveredmethods="25"/>
4327
3476
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
4328
3477
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
4329
3478
  <line num="1" count="24" type="stmt"/>
@@ -4337,58 +3486,6 @@
4337
3486
  <line num="16" count="0" type="stmt"/>
4338
3487
  <line num="18" count="7" type="stmt"/>
4339
3488
  </file>
4340
- <file name="authorized.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/authorized.js">
4341
- <metrics statements="49" coveredstatements="44" conditionals="47" coveredconditionals="39" methods="6" coveredmethods="5"/>
4342
- <line num="5" count="25" type="stmt"/>
4343
- <line num="10" count="25" type="stmt"/>
4344
- <line num="11" count="25" type="stmt"/>
4345
- <line num="12" count="25" type="stmt"/>
4346
- <line num="13" count="25" type="stmt"/>
4347
- <line num="14" count="25" type="stmt"/>
4348
- <line num="17" count="176" type="stmt"/>
4349
- <line num="20" count="25" type="stmt"/>
4350
- <line num="28" count="25" type="stmt"/>
4351
- <line num="30" count="177" type="cond" truecount="3" falsecount="0"/>
4352
- <line num="31" count="177" type="stmt"/>
4353
- <line num="32" count="177" type="cond" truecount="4" falsecount="0"/>
4354
- <line num="33" count="28" type="stmt"/>
4355
- <line num="37" count="149" type="cond" truecount="2" falsecount="0"/>
4356
- <line num="38" count="3" type="stmt"/>
4357
- <line num="42" count="25" type="stmt"/>
4358
- <line num="49" count="3" type="cond" truecount="2" falsecount="0"/>
4359
- <line num="50" count="3" type="stmt"/>
4360
- <line num="53" count="3" type="stmt"/>
4361
- <line num="55" count="3" type="cond" truecount="1" falsecount="1"/>
4362
- <line num="57" count="0" type="stmt"/>
4363
- <line num="58" count="0" type="cond" truecount="0" falsecount="2"/>
4364
- <line num="59" count="0" type="stmt"/>
4365
- <line num="62" count="3" type="cond" truecount="1" falsecount="1"/>
4366
- <line num="63" count="3" type="stmt"/>
4367
- <line num="67" count="25" type="stmt"/>
4368
- <line num="69" count="2703" type="stmt"/>
4369
- <line num="72" count="183" type="cond" truecount="4" falsecount="0"/>
4370
- <line num="73" count="1" type="stmt"/>
4371
- <line num="76" count="182" type="cond" truecount="2" falsecount="0"/>
4372
- <line num="77" count="1" type="stmt"/>
4373
- <line num="82" count="181" type="stmt"/>
4374
- <line num="85" count="181" type="stmt"/>
4375
- <line num="88" count="181" type="cond" truecount="2" falsecount="0"/>
4376
- <line num="91" count="181" type="stmt"/>
4377
- <line num="92" count="181" type="cond" truecount="4" falsecount="0"/>
4378
- <line num="93" count="69" type="stmt"/>
4379
- <line num="94" count="69" type="cond" truecount="3" falsecount="1"/>
4380
- <line num="95" count="0" type="stmt"/>
4381
- <line num="100" count="181" type="cond" truecount="2" falsecount="0"/>
4382
- <line num="104" count="1" type="stmt"/>
4383
- <line num="108" count="180" type="cond" truecount="2" falsecount="0"/>
4384
- <line num="109" count="3" type="stmt"/>
4385
- <line num="112" count="177" type="stmt"/>
4386
- <line num="114" count="177" type="stmt"/>
4387
- <line num="117" count="27" type="cond" truecount="3" falsecount="2"/>
4388
- <line num="118" count="0" type="stmt"/>
4389
- <line num="120" count="27" type="stmt"/>
4390
- <line num="125" count="150" type="stmt"/>
4391
- </file>
4392
3489
  <file name="builder.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/builder.js">
4393
3490
  <metrics statements="36" coveredstatements="32" conditionals="22" coveredconditionals="17" methods="4" coveredmethods="4"/>
4394
3491
  <line num="1" count="25" type="stmt"/>
@@ -4429,7 +3526,7 @@
4429
3526
  <line num="78" count="1" type="stmt"/>
4430
3527
  </file>
4431
3528
  <file name="currentapp.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/currentapp.js">
4432
- <metrics statements="56" coveredstatements="46" conditionals="43" coveredconditionals="33" methods="2" coveredmethods="2"/>
3529
+ <metrics statements="63" coveredstatements="50" conditionals="55" coveredconditionals="44" methods="2" coveredmethods="2"/>
4433
3530
  <line num="6" count="29" type="stmt"/>
4434
3531
  <line num="7" count="29" type="stmt"/>
4435
3532
  <line num="8" count="29" type="stmt"/>
@@ -4467,25 +3564,32 @@
4467
3564
  <line num="62" count="185" type="stmt"/>
4468
3565
  <line num="63" count="185" type="stmt"/>
4469
3566
  <line num="65" count="185" type="cond" truecount="2" falsecount="0"/>
4470
- <line num="69" count="190" type="cond" truecount="1" falsecount="1"/>
4471
- <line num="70" count="0" type="stmt"/>
4472
- <line num="73" count="190" type="stmt"/>
4473
- <line num="74" count="190" type="stmt"/>
4474
- <line num="77" count="190" type="cond" truecount="1" falsecount="1"/>
4475
- <line num="84" count="0" type="stmt"/>
3567
+ <line num="69" count="185" type="cond" truecount="3" falsecount="0"/>
3568
+ <line num="70" count="185" type="cond" truecount="2" falsecount="0"/>
3569
+ <line num="71" count="185" type="cond" truecount="2" falsecount="0"/>
3570
+ <line num="72" count="185" type="cond" truecount="4" falsecount="1"/>
3571
+ <line num="74" count="0" type="stmt"/>
3572
+ <line num="75" count="0" type="stmt"/>
3573
+ <line num="76" count="0" type="stmt"/>
3574
+ <line num="84" count="190" type="cond" truecount="1" falsecount="1"/>
4476
3575
  <line num="85" count="0" type="stmt"/>
4477
- <line num="86" count="0" type="stmt"/>
4478
- <line num="87" count="0" type="stmt"/>
4479
- <line num="88" count="0" type="stmt"/>
4480
- <line num="89" count="0" type="stmt"/>
4481
- <line num="92" count="190" type="stmt"/>
4482
- <line num="93" count="190" type="cond" truecount="1" falsecount="1"/>
4483
- <line num="94" count="190" type="stmt"/>
4484
- <line num="95" count="190" type="cond" truecount="2" falsecount="0"/>
4485
- <line num="96" count="190" type="stmt"/>
4486
- <line num="105" count="190" type="cond" truecount="2" falsecount="0"/>
4487
- <line num="111" count="7" type="stmt"/>
4488
- <line num="114" count="190" type="stmt"/>
3576
+ <line num="88" count="190" type="stmt"/>
3577
+ <line num="89" count="190" type="stmt"/>
3578
+ <line num="92" count="190" type="cond" truecount="1" falsecount="1"/>
3579
+ <line num="99" count="0" type="stmt"/>
3580
+ <line num="100" count="0" type="stmt"/>
3581
+ <line num="101" count="0" type="stmt"/>
3582
+ <line num="102" count="0" type="stmt"/>
3583
+ <line num="103" count="0" type="stmt"/>
3584
+ <line num="104" count="0" type="stmt"/>
3585
+ <line num="107" count="190" type="stmt"/>
3586
+ <line num="108" count="190" type="cond" truecount="1" falsecount="1"/>
3587
+ <line num="109" count="190" type="stmt"/>
3588
+ <line num="110" count="190" type="cond" truecount="2" falsecount="0"/>
3589
+ <line num="111" count="190" type="stmt"/>
3590
+ <line num="120" count="190" type="cond" truecount="2" falsecount="0"/>
3591
+ <line num="126" count="7" type="stmt"/>
3592
+ <line num="129" count="190" type="stmt"/>
4489
3593
  </file>
4490
3594
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
4491
3595
  <metrics statements="17" coveredstatements="14" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
@@ -4561,78 +3665,6 @@
4561
3665
  <line num="7" count="1" type="stmt"/>
4562
3666
  <line num="9" count="0" type="stmt"/>
4563
3667
  </file>
4564
- <file name="usageQuota.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/usageQuota.js">
4565
- <metrics statements="69" coveredstatements="45" conditionals="51" coveredconditionals="26" methods="8" coveredmethods="4"/>
4566
- <line num="1" count="25" type="stmt"/>
4567
- <line num="2" count="25" type="stmt"/>
4568
- <line num="6" count="25" type="stmt"/>
4569
- <line num="7" count="25" type="stmt"/>
4570
- <line num="10" count="25" type="stmt"/>
4571
- <line num="15" count="25" type="stmt"/>
4572
- <line num="27" count="4" type="stmt"/>
4573
- <line num="28" count="7" type="cond" truecount="2" falsecount="0"/>
4574
- <line num="29" count="4" type="stmt"/>
4575
- <line num="34" count="25" type="stmt"/>
4576
- <line num="35" count="24" type="cond" truecount="2" falsecount="0"/>
4577
- <line num="36" count="20" type="stmt"/>
4578
- <line num="39" count="4" type="stmt"/>
4579
- <line num="40" count="4" type="stmt"/>
4580
- <line num="41" count="4" type="cond" truecount="3" falsecount="1"/>
4581
- <line num="42" count="0" type="stmt"/>
4582
- <line num="45" count="4" type="cond" truecount="5" falsecount="0"/>
4583
- <line num="46" count="2" type="stmt"/>
4584
- <line num="47" count="2" type="stmt"/>
4585
- <line num="48" count="2" type="cond" truecount="1" falsecount="1"/>
4586
- <line num="49" count="2" type="stmt"/>
4587
- <line num="50" count="0" type="stmt"/>
4588
- <line num="52" count="0" type="stmt"/>
4589
- <line num="54" count="2" type="cond" truecount="1" falsecount="1"/>
4590
- <line num="60" count="0" type="stmt"/>
4591
- <line num="62" count="2" type="stmt"/>
4592
- <line num="68" count="4" type="cond" truecount="1" falsecount="1"/>
4593
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
4594
- <line num="73" count="0" type="stmt"/>
4595
- <line num="75" count="4" type="stmt"/>
4596
- <line num="76" count="4" type="stmt"/>
4597
- <line num="78" count="0" type="stmt"/>
4598
- <line num="82" count="25" type="stmt"/>
4599
- <line num="83" count="4" type="stmt"/>
4600
- <line num="89" count="4" type="cond" truecount="1" falsecount="1"/>
4601
- <line num="90" count="0" type="cond" truecount="0" falsecount="2"/>
4602
- <line num="91" count="0" type="stmt"/>
4603
- <line num="94" count="4" type="cond" truecount="1" falsecount="1"/>
4604
- <line num="95" count="0" type="stmt"/>
4605
- <line num="100" count="4" type="cond" truecount="1" falsecount="1"/>
4606
- <line num="101" count="4" type="stmt"/>
4607
- <line num="102" count="4" type="stmt"/>
4608
- <line num="105" count="4" type="cond" truecount="1" falsecount="1"/>
4609
- <line num="106" count="0" type="cond" truecount="0" falsecount="2"/>
4610
- <line num="107" count="0" type="stmt"/>
4611
- <line num="110" count="4" type="cond" truecount="2" falsecount="0"/>
4612
- <line num="111" count="3" type="stmt"/>
4613
- <line num="116" count="4" type="cond" truecount="1" falsecount="1"/>
4614
- <line num="117" count="4" type="stmt"/>
4615
- <line num="121" count="25" type="stmt"/>
4616
- <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
4617
- <line num="124" count="0" type="stmt"/>
4618
- <line num="125" count="0" type="stmt"/>
4619
- <line num="129" count="0" type="stmt"/>
4620
- <line num="130" count="0" type="cond" truecount="0" falsecount="2"/>
4621
- <line num="131" count="0" type="stmt"/>
4622
- <line num="135" count="25" type="stmt"/>
4623
- <line num="137" count="0" type="stmt"/>
4624
- <line num="138" count="0" type="cond" truecount="0" falsecount="2"/>
4625
- <line num="139" count="0" type="stmt"/>
4626
- <line num="143" count="25" type="stmt"/>
4627
- <line num="145" count="3" type="cond" truecount="1" falsecount="1"/>
4628
- <line num="146" count="0" type="stmt"/>
4629
- <line num="147" count="0" type="cond" truecount="0" falsecount="2"/>
4630
- <line num="148" count="0" type="stmt"/>
4631
- <line num="152" count="25" type="stmt"/>
4632
- <line num="156" count="25" type="stmt"/>
4633
- <line num="160" count="25" type="stmt"/>
4634
- <line num="162" count="25" type="stmt"/>
4635
- </file>
4636
3668
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/utils.js">
4637
3669
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4638
3670
  <line num="1" count="30" type="stmt"/>
@@ -4641,118 +3673,141 @@
4641
3673
  </file>
4642
3674
  </package>
4643
3675
  <package name="threads">
4644
- <metrics statements="241" coveredstatements="208" conditionals="98" coveredconditionals="67" methods="38" coveredmethods="35"/>
3676
+ <metrics statements="267" coveredstatements="200" conditionals="115" coveredconditionals="65" methods="34" coveredmethods="30"/>
4645
3677
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4646
- <metrics statements="73" coveredstatements="62" conditionals="19" coveredconditionals="11" methods="11" coveredmethods="10"/>
4647
- <line num="1" count="4" type="stmt"/>
4648
- <line num="2" count="4" type="stmt"/>
4649
- <line num="3" count="4" type="stmt"/>
4650
- <line num="4" count="4" type="stmt"/>
4651
- <line num="5" count="4" type="stmt"/>
4652
- <line num="6" count="4" type="stmt"/>
4653
- <line num="7" count="4" type="stmt"/>
4654
- <line num="8" count="4" type="stmt"/>
4655
- <line num="9" count="4" type="stmt"/>
4656
- <line num="10" count="4" type="stmt"/>
4657
- <line num="12" count="4" type="stmt"/>
4658
- <line num="13" count="4" type="stmt"/>
4659
- <line num="14" count="4" type="stmt"/>
4660
- <line num="23" count="7" type="stmt"/>
4661
- <line num="24" count="7" type="cond" truecount="2" falsecount="0"/>
4662
- <line num="25" count="7" type="stmt"/>
4663
- <line num="26" count="7" type="stmt"/>
4664
- <line num="27" count="7" type="stmt"/>
4665
- <line num="28" count="7" type="stmt"/>
4666
- <line num="30" count="7" type="stmt"/>
4667
- <line num="31" count="7" type="stmt"/>
4668
- <line num="33" count="7" type="stmt"/>
4669
- <line num="34" count="7" type="stmt"/>
4670
- <line num="37" count="7" type="stmt"/>
4671
- <line num="38" count="7" type="stmt"/>
4672
- <line num="40" count="7" type="stmt"/>
4673
- <line num="41" count="7" type="stmt"/>
4674
- <line num="45" count="7" type="cond" truecount="1" falsecount="1"/>
4675
- <line num="46" count="0" type="stmt"/>
4676
- <line num="48" count="7" type="stmt"/>
4677
- <line num="52" count="5" type="stmt"/>
4678
- <line num="53" count="5" type="cond" truecount="1" falsecount="1"/>
4679
- <line num="54" count="0" type="stmt"/>
3678
+ <metrics statements="132" coveredstatements="79" conditionals="57" coveredconditionals="21" methods="12" coveredmethods="10"/>
3679
+ <line num="1" count="3" type="stmt"/>
3680
+ <line num="2" count="3" type="stmt"/>
3681
+ <line num="3" count="3" type="stmt"/>
3682
+ <line num="4" count="3" type="stmt"/>
3683
+ <line num="5" count="3" type="stmt"/>
3684
+ <line num="6" count="3" type="stmt"/>
3685
+ <line num="7" count="3" type="stmt"/>
3686
+ <line num="8" count="3" type="stmt"/>
3687
+ <line num="9" count="3" type="stmt"/>
3688
+ <line num="10" count="3" type="stmt"/>
3689
+ <line num="11" count="3" type="stmt"/>
3690
+ <line num="12" count="3" type="stmt"/>
3691
+ <line num="13" count="3" type="stmt"/>
3692
+ <line num="15" count="3" type="stmt"/>
3693
+ <line num="16" count="3" type="stmt"/>
3694
+ <line num="17" count="3" type="stmt"/>
3695
+ <line num="18" count="3" type="stmt"/>
3696
+ <line num="27" count="6" type="stmt"/>
3697
+ <line num="28" count="6" type="cond" truecount="2" falsecount="0"/>
3698
+ <line num="29" count="6" type="stmt"/>
3699
+ <line num="30" count="6" type="stmt"/>
3700
+ <line num="31" count="6" type="stmt"/>
3701
+ <line num="32" count="6" type="stmt"/>
3702
+ <line num="34" count="6" type="stmt"/>
3703
+ <line num="35" count="6" type="stmt"/>
3704
+ <line num="37" count="6" type="stmt"/>
3705
+ <line num="38" count="6" type="stmt"/>
3706
+ <line num="41" count="6" type="stmt"/>
3707
+ <line num="42" count="6" type="stmt"/>
3708
+ <line num="44" count="6" type="stmt"/>
3709
+ <line num="45" count="6" type="stmt"/>
3710
+ <line num="49" count="6" type="cond" truecount="1" falsecount="1"/>
3711
+ <line num="50" count="0" type="stmt"/>
3712
+ <line num="52" count="6" type="stmt"/>
4680
3713
  <line num="56" count="5" type="stmt"/>
4681
- <line num="60" count="7" type="cond" truecount="1" falsecount="1"/>
4682
- <line num="61" count="0" type="stmt"/>
4683
- <line num="63" count="7" type="stmt"/>
4684
- <line num="64" count="7" type="stmt"/>
4685
- <line num="65" count="6" type="stmt"/>
4686
- <line num="69" count="12" type="stmt"/>
4687
- <line num="71" count="12" type="cond" truecount="2" falsecount="0"/>
4688
- <line num="72" count="7" type="stmt"/>
4689
- <line num="74" count="12" type="stmt"/>
4690
- <line num="78" count="7" type="stmt"/>
4691
- <line num="79" count="7" type="stmt"/>
4692
- <line num="80" count="6" type="stmt"/>
4693
- <line num="81" count="6" type="stmt"/>
4694
- <line num="83" count="5" type="cond" truecount="1" falsecount="1"/>
4695
- <line num="84" count="0" type="stmt"/>
4696
- <line num="85" count="0" type="stmt"/>
4697
- <line num="87" count="5" type="stmt"/>
4698
- <line num="88" count="5" type="stmt"/>
4699
- <line num="89" count="5" type="stmt"/>
4700
- <line num="94" count="5" type="stmt"/>
4701
- <line num="95" count="5" type="cond" truecount="1" falsecount="1"/>
4702
- <line num="96" count="5" type="stmt"/>
4703
- <line num="97" count="5" type="stmt"/>
4704
- <line num="104" count="5" type="stmt"/>
4705
- <line num="107" count="5" type="cond" truecount="2" falsecount="2"/>
4706
- <line num="108" count="0" type="stmt"/>
4707
- <line num="109" count="0" type="stmt"/>
3714
+ <line num="57" count="5" type="cond" truecount="1" falsecount="1"/>
3715
+ <line num="58" count="0" type="stmt"/>
3716
+ <line num="60" count="5" type="stmt"/>
3717
+ <line num="64" count="6" type="cond" truecount="1" falsecount="1"/>
3718
+ <line num="65" count="0" type="stmt"/>
3719
+ <line num="67" count="6" type="stmt"/>
3720
+ <line num="68" count="6" type="stmt"/>
3721
+ <line num="69" count="6" type="stmt"/>
3722
+ <line num="73" count="11" type="stmt"/>
3723
+ <line num="75" count="11" type="cond" truecount="2" falsecount="0"/>
3724
+ <line num="76" count="6" type="stmt"/>
3725
+ <line num="78" count="11" type="stmt"/>
3726
+ <line num="82" count="0" type="stmt"/>
3727
+ <line num="92" count="0" type="stmt"/>
3728
+ <line num="100" count="6" type="stmt"/>
3729
+ <line num="101" count="6" type="stmt"/>
3730
+ <line num="102" count="6" type="stmt"/>
3731
+ <line num="105" count="6" type="stmt"/>
3732
+ <line num="107" count="6" type="stmt"/>
3733
+ <line num="108" count="6" type="stmt"/>
3734
+ <line num="109" count="5" type="stmt"/>
3735
+ <line num="111" count="5" type="cond" truecount="1" falsecount="1"/>
3736
+ <line num="112" count="0" type="stmt"/>
4708
3737
  <line num="113" count="0" type="stmt"/>
4709
- <line num="115" count="5" type="stmt"/>
4710
- <line num="117" count="0" type="stmt"/>
3738
+ <line num="114" count="0" type="stmt"/>
3739
+ <line num="117" count="5" type="cond" truecount="1" falsecount="1"/>
4711
3740
  <line num="118" count="0" type="stmt"/>
4712
- <line num="121" count="6" type="stmt"/>
4713
- <line num="125" count="4" type="stmt"/>
4714
- <line num="126" count="7" type="stmt"/>
4715
- <line num="127" count="7" type="stmt"/>
4716
- <line num="128" count="7" type="stmt"/>
4717
- <line num="132" count="7" type="stmt"/>
4718
- <line num="135" count="6" type="stmt"/>
4719
- <line num="138" count="0" type="stmt"/>
4720
- </file>
4721
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/index.js">
4722
- <metrics statements="33" coveredstatements="25" conditionals="22" coveredconditionals="13" methods="5" coveredmethods="5"/>
4723
- <line num="1" count="41" type="stmt"/>
4724
- <line num="2" count="41" type="stmt"/>
4725
- <line num="4" count="41" type="stmt"/>
4726
- <line num="10" count="20" type="stmt"/>
4727
- <line num="11" count="20" type="cond" truecount="2" falsecount="1"/>
4728
- <line num="13" count="10" type="stmt"/>
4729
- <line num="14" count="10" type="stmt"/>
4730
- <line num="16" count="10" type="stmt"/>
4731
- <line num="17" count="10" type="stmt"/>
4732
- <line num="19" count="0" type="stmt"/>
4733
- <line num="21" count="20" type="stmt"/>
4734
- <line num="26" count="81" type="stmt"/>
4735
- <line num="27" count="81" type="cond" truecount="2" falsecount="0"/>
4736
- <line num="28" count="81" type="stmt"/>
4737
- <line num="33" count="81" type="cond" truecount="1" falsecount="1"/>
4738
- <line num="34" count="0" type="stmt"/>
4739
- <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4740
- <line num="39" count="0" type="stmt"/>
4741
- <line num="40" count="0" type="stmt"/>
4742
- <line num="42" count="0" type="stmt"/>
4743
- <line num="47" count="20" type="stmt"/>
4744
- <line num="48" count="20" type="stmt"/>
4745
- <line num="51" count="20" type="cond" truecount="1" falsecount="1"/>
4746
- <line num="52" count="20" type="stmt"/>
4747
- <line num="54" count="0" type="stmt"/>
4748
- <line num="56" count="20" type="stmt"/>
4749
- <line num="57" count="16" type="cond" truecount="3" falsecount="1"/>
4750
- <line num="58" count="0" type="stmt"/>
4751
- <line num="61" count="16" type="cond" truecount="2" falsecount="0"/>
4752
- <line num="62" count="2" type="stmt"/>
4753
- <line num="64" count="14" type="stmt"/>
4754
- <line num="71" count="41" type="stmt"/>
4755
- <line num="72" count="41" type="stmt"/>
3741
+ <line num="120" count="5" type="cond" truecount="1" falsecount="1"/>
3742
+ <line num="121" count="5" type="stmt"/>
3743
+ <line num="122" count="5" type="stmt"/>
3744
+ <line num="123" count="5" type="stmt"/>
3745
+ <line num="126" count="5" type="cond" truecount="1" falsecount="1"/>
3746
+ <line num="129" count="0" type="stmt"/>
3747
+ <line num="133" count="0" type="stmt"/>
3748
+ <line num="137" count="0" type="stmt"/>
3749
+ <line num="141" count="0" type="stmt"/>
3750
+ <line num="142" count="0" type="cond" truecount="0" falsecount="2"/>
3751
+ <line num="148" count="0" type="stmt"/>
3752
+ <line num="152" count="0" type="stmt"/>
3753
+ <line num="153" count="0" type="stmt"/>
3754
+ <line num="154" count="0" type="stmt"/>
3755
+ <line num="159" count="0" type="stmt"/>
3756
+ <line num="160" count="0" type="cond" truecount="0" falsecount="2"/>
3757
+ <line num="161" count="0" type="stmt"/>
3758
+ <line num="164" count="0" type="cond" truecount="0" falsecount="2"/>
3759
+ <line num="165" count="0" type="stmt"/>
3760
+ <line num="173" count="0" type="cond" truecount="0" falsecount="2"/>
3761
+ <line num="174" count="0" type="stmt"/>
3762
+ <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
3763
+ <line num="186" count="0" type="stmt"/>
3764
+ <line num="190" count="0" type="stmt"/>
3765
+ <line num="191" count="0" type="stmt"/>
3766
+ <line num="192" count="0" type="stmt"/>
3767
+ <line num="195" count="0" type="cond" truecount="0" falsecount="2"/>
3768
+ <line num="199" count="0" type="stmt"/>
3769
+ <line num="203" count="0" type="stmt"/>
3770
+ <line num="204" count="0" type="stmt"/>
3771
+ <line num="205" count="0" type="stmt"/>
3772
+ <line num="210" count="5" type="cond" truecount="1" falsecount="1"/>
3773
+ <line num="211" count="0" type="stmt"/>
3774
+ <line num="212" count="0" type="stmt"/>
3775
+ <line num="216" count="5" type="stmt"/>
3776
+ <line num="217" count="5" type="stmt"/>
3777
+ <line num="218" count="5" type="stmt"/>
3778
+ <line num="219" count="5" type="stmt"/>
3779
+ <line num="221" count="5" type="cond" truecount="1" falsecount="1"/>
3780
+ <line num="222" count="5" type="stmt"/>
3781
+ <line num="223" count="5" type="stmt"/>
3782
+ <line num="230" count="5" type="stmt"/>
3783
+ <line num="233" count="5" type="cond" truecount="2" falsecount="2"/>
3784
+ <line num="234" count="0" type="stmt"/>
3785
+ <line num="235" count="0" type="stmt"/>
3786
+ <line num="239" count="0" type="stmt"/>
3787
+ <line num="241" count="5" type="cond" truecount="2" falsecount="2"/>
3788
+ <line num="242" count="0" type="stmt"/>
3789
+ <line num="244" count="5" type="stmt"/>
3790
+ <line num="252" count="0" type="stmt"/>
3791
+ <line num="253" count="0" type="stmt"/>
3792
+ <line num="255" count="5" type="cond" truecount="1" falsecount="1"/>
3793
+ <line num="256" count="0" type="stmt"/>
3794
+ <line num="257" count="0" type="cond" truecount="0" falsecount="2"/>
3795
+ <line num="258" count="0" type="stmt"/>
3796
+ <line num="259" count="0" type="stmt"/>
3797
+ <line num="260" count="0" type="stmt"/>
3798
+ <line num="265" count="5" type="cond" truecount="3" falsecount="1"/>
3799
+ <line num="266" count="0" type="stmt"/>
3800
+ <line num="271" count="0" type="stmt"/>
3801
+ <line num="278" count="0" type="stmt"/>
3802
+ <line num="279" count="0" type="stmt"/>
3803
+ <line num="283" count="6" type="stmt"/>
3804
+ <line num="287" count="3" type="stmt"/>
3805
+ <line num="288" count="6" type="stmt"/>
3806
+ <line num="289" count="6" type="stmt"/>
3807
+ <line num="290" count="6" type="stmt"/>
3808
+ <line num="294" count="6" type="stmt"/>
3809
+ <line num="297" count="6" type="stmt"/>
3810
+ <line num="300" count="0" type="stmt"/>
4756
3811
  </file>
4757
3812
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4758
3813
  <metrics statements="99" coveredstatements="91" conditionals="43" coveredconditionals="34" methods="13" coveredmethods="12"/>
@@ -4857,7 +3912,7 @@
4857
3912
  <line num="201" count="2" type="stmt"/>
4858
3913
  </file>
4859
3914
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4860
- <metrics statements="36" coveredstatements="30" conditionals="14" coveredconditionals="9" methods="9" coveredmethods="8"/>
3915
+ <metrics statements="36" coveredstatements="30" conditionals="15" coveredconditionals="10" methods="9" coveredmethods="8"/>
4861
3916
  <line num="1" count="41" type="stmt"/>
4862
3917
  <line num="2" count="41" type="stmt"/>
4863
3918
  <line num="3" count="41" type="stmt"/>
@@ -4869,8 +3924,8 @@
4869
3924
  <line num="16" count="41" type="stmt"/>
4870
3925
  <line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
4871
3926
  <line num="20" count="41" type="stmt"/>
4872
- <line num="22" count="6" type="cond" truecount="2" falsecount="2"/>
4873
- <line num="23" count="6" type="stmt"/>
3927
+ <line num="22" count="5" type="cond" truecount="2" falsecount="2"/>
3928
+ <line num="23" count="5" type="stmt"/>
4874
3929
  <line num="26" count="0" type="stmt"/>
4875
3930
  <line num="27" count="0" type="stmt"/>
4876
3931
  <line num="31" count="19" type="stmt"/>
@@ -5089,12 +4144,12 @@
5089
4144
  <line num="41" count="2" type="stmt"/>
5090
4145
  <line num="43" count="0" type="stmt"/>
5091
4146
  <line num="57" count="44" type="stmt"/>
5092
- <line num="58" count="212" type="cond" truecount="1" falsecount="1"/>
4147
+ <line num="58" count="211" type="cond" truecount="1" falsecount="1"/>
5093
4148
  <line num="59" count="0" type="stmt"/>
5094
4149
  <line num="63" count="0" type="cond" truecount="0" falsecount="2"/>
5095
4150
  <line num="64" count="0" type="stmt"/>
5096
4151
  <line num="66" count="0" type="stmt"/>
5097
- <line num="68" count="212" type="stmt"/>
4152
+ <line num="68" count="211" type="stmt"/>
5098
4153
  <line num="72" count="44" type="stmt"/>
5099
4154
  <line num="73" count="2" type="stmt"/>
5100
4155
  <line num="78" count="44" type="stmt"/>
@@ -5270,9 +4325,9 @@
5270
4325
  </file>
5271
4326
  </package>
5272
4327
  <package name="utilities.queue">
5273
- <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"/>
5274
4329
  <file name="inMemoryQueue.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/queue/inMemoryQueue.js">
5275
- <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="8" coveredmethods="6"/>
4330
+ <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="9" coveredmethods="6"/>
5276
4331
  <line num="1" count="40" type="stmt"/>
5277
4332
  <line num="13" count="8" type="stmt"/>
5278
4333
  <line num="33" count="40" type="stmt"/>
@@ -5286,14 +4341,14 @@
5286
4341
  <line num="54" count="8" type="stmt"/>
5287
4342
  <line num="55" count="8" type="cond" truecount="1" falsecount="1"/>
5288
4343
  <line num="56" count="8" type="stmt"/>
5289
- <line num="70" count="8" type="cond" truecount="1" falsecount="1"/>
5290
- <line num="71" count="0" type="stmt"/>
5291
- <line num="73" count="8" type="stmt"/>
4344
+ <line num="71" count="8" type="cond" truecount="1" falsecount="1"/>
4345
+ <line num="72" count="0" type="stmt"/>
5292
4346
  <line num="74" count="8" type="stmt"/>
5293
- <line num="83" count="0" type="stmt"/>
5294
- <line num="90" count="206" type="stmt"/>
5295
- <line num="97" count="0" type="stmt"/>
5296
- <line num="101" count="40" type="stmt"/>
4347
+ <line num="75" count="8" type="stmt"/>
4348
+ <line num="84" count="0" type="stmt"/>
4349
+ <line num="91" count="205" type="stmt"/>
4350
+ <line num="103" count="0" type="stmt"/>
4351
+ <line num="107" count="40" type="stmt"/>
5297
4352
  </file>
5298
4353
  </package>
5299
4354
  <package name="utilities.routing">
@@ -5349,14 +4404,14 @@
5349
4404
  <line num="118" count="0" type="stmt"/>
5350
4405
  <line num="120" count="0" type="stmt"/>
5351
4406
  <line num="121" count="0" type="stmt"/>
5352
- <line num="140" count="78" type="cond" truecount="2" falsecount="0"/>
5353
- <line num="141" count="78" type="stmt"/>
5354
- <line num="142" count="78" type="stmt"/>
5355
- <line num="144" count="78" type="stmt"/>
5356
- <line num="147" count="78" type="cond" truecount="4" falsecount="0"/>
5357
- <line num="148" count="78" type="stmt"/>
5358
- <line num="149" count="216" type="cond" truecount="1" falsecount="1"/>
5359
- <line num="150" count="216" type="stmt"/>
4407
+ <line num="140" count="77" type="cond" truecount="2" falsecount="0"/>
4408
+ <line num="141" count="77" type="stmt"/>
4409
+ <line num="142" count="77" type="stmt"/>
4410
+ <line num="144" count="77" type="stmt"/>
4411
+ <line num="147" count="77" type="cond" truecount="4" falsecount="0"/>
4412
+ <line num="148" count="77" type="stmt"/>
4413
+ <line num="149" count="214" type="cond" truecount="1" falsecount="1"/>
4414
+ <line num="150" count="214" type="stmt"/>
5360
4415
  <line num="152" count="0" type="cond" truecount="0" falsecount="2"/>
5361
4416
  <line num="153" count="0" type="stmt"/>
5362
4417
  <line num="155" count="0" type="cond" truecount="0" falsecount="5"/>
@@ -5375,52 +4430,52 @@
5375
4430
  <line num="176" count="0" type="cond" truecount="0" falsecount="2"/>
5376
4431
  <line num="177" count="0" type="stmt"/>
5377
4432
  <line num="179" count="0" type="stmt"/>
5378
- <line num="182" count="78" type="stmt"/>
4433
+ <line num="182" count="77" type="stmt"/>
5379
4434
  <line num="184" count="41" type="stmt"/>
5380
4435
  <line num="185" count="41" type="stmt"/>
5381
4436
  <line num="186" count="41" type="stmt"/>
5382
4437
  <line num="194" count="41" type="stmt"/>
5383
- <line num="196" count="182" type="cond" truecount="1" falsecount="1"/>
4438
+ <line num="196" count="180" type="cond" truecount="1" falsecount="1"/>
5384
4439
  <line num="197" count="0" type="stmt"/>
5385
- <line num="200" count="182" type="cond" truecount="2" falsecount="0"/>
4440
+ <line num="200" count="180" type="cond" truecount="2" falsecount="0"/>
5386
4441
  <line num="201" count="16" type="stmt"/>
5387
- <line num="202" count="166" type="cond" truecount="2" falsecount="0"/>
4442
+ <line num="202" count="164" type="cond" truecount="2" falsecount="0"/>
5388
4443
  <line num="203" count="22" type="stmt"/>
5389
- <line num="206" count="144" type="stmt"/>
4444
+ <line num="206" count="142" type="stmt"/>
5390
4445
  <line num="218" count="41" type="stmt"/>
5391
- <line num="224" count="78" type="stmt"/>
5392
- <line num="226" count="78" type="stmt"/>
5393
- <line num="227" count="78" type="stmt"/>
5394
- <line num="228" count="78" type="stmt"/>
5395
- <line num="229" count="353" type="stmt"/>
5396
- <line num="231" count="353" type="cond" truecount="2" falsecount="0"/>
5397
- <line num="232" count="172" type="cond" truecount="2" falsecount="0"/>
4446
+ <line num="224" count="77" type="stmt"/>
4447
+ <line num="226" count="77" type="stmt"/>
4448
+ <line num="227" count="77" type="stmt"/>
4449
+ <line num="228" count="77" type="stmt"/>
4450
+ <line num="229" count="349" type="stmt"/>
4451
+ <line num="231" count="349" type="cond" truecount="2" falsecount="0"/>
4452
+ <line num="232" count="170" type="cond" truecount="2" falsecount="0"/>
5398
4453
  <line num="233" count="3" type="stmt"/>
5399
- <line num="235" count="172" type="stmt"/>
5400
- <line num="238" count="181" type="cond" truecount="1" falsecount="1"/>
4454
+ <line num="235" count="170" type="stmt"/>
4455
+ <line num="238" count="179" type="cond" truecount="1" falsecount="1"/>
5401
4456
  <line num="239" count="0" type="stmt"/>
5402
- <line num="243" count="181" type="stmt"/>
5403
- <line num="247" count="78" type="cond" truecount="4" falsecount="0"/>
5404
- <line num="248" count="72" type="stmt"/>
5405
- <line num="249" count="72" type="stmt"/>
5406
- <line num="253" count="78" type="stmt"/>
4457
+ <line num="243" count="179" type="stmt"/>
4458
+ <line num="247" count="77" type="cond" truecount="4" falsecount="0"/>
4459
+ <line num="248" count="71" type="stmt"/>
4460
+ <line num="249" count="71" type="stmt"/>
4461
+ <line num="253" count="77" type="stmt"/>
5407
4462
  <line num="265" count="41" type="cond" truecount="1" falsecount="0"/>
5408
- <line num="266" count="113" type="stmt"/>
5409
- <line num="267" count="113" type="cond" truecount="2" falsecount="0"/>
5410
- <line num="268" count="99" type="stmt"/>
5411
- <line num="269" count="99" type="stmt"/>
5412
- <line num="272" count="113" type="stmt"/>
5413
- <line num="275" count="113" type="stmt"/>
5414
- <line num="278" count="113" type="stmt"/>
5415
- <line num="279" count="322" type="cond" truecount="2" falsecount="0"/>
4463
+ <line num="266" count="112" type="stmt"/>
4464
+ <line num="267" count="112" type="cond" truecount="2" falsecount="0"/>
4465
+ <line num="268" count="98" type="stmt"/>
4466
+ <line num="269" count="98" type="stmt"/>
4467
+ <line num="272" count="112" type="stmt"/>
4468
+ <line num="275" count="112" type="stmt"/>
4469
+ <line num="278" count="112" type="stmt"/>
4470
+ <line num="279" count="320" type="cond" truecount="2" falsecount="0"/>
5416
4471
  <line num="280" count="8" type="stmt"/>
5417
4472
  <line num="281" count="8" type="cond" truecount="4" falsecount="0"/>
5418
4473
  <line num="282" count="6" type="stmt"/>
5419
4474
  <line num="284" count="2" type="stmt"/>
5420
4475
  <line num="285" count="2" type="stmt"/>
5421
- <line num="290" count="113" type="cond" truecount="2" falsecount="0"/>
4476
+ <line num="290" count="112" type="cond" truecount="2" falsecount="0"/>
5422
4477
  <line num="291" count="33" type="stmt"/>
5423
- <line num="293" count="113" type="cond" truecount="2" falsecount="0"/>
4478
+ <line num="293" count="112" type="cond" truecount="2" falsecount="0"/>
5424
4479
  <line num="306" count="41" type="stmt"/>
5425
4480
  <line num="307" count="14" type="stmt"/>
5426
4481
  <line num="308" count="14" type="cond" truecount="1" falsecount="1"/>
@@ -5465,99 +4520,61 @@
5465
4520
  <line num="27" count="0" type="stmt"/>
5466
4521
  <line num="29" count="2" type="stmt"/>
5467
4522
  <line num="35" count="41" type="stmt"/>
5468
- <line num="40" count="281" type="stmt"/>
5469
- <line num="41" count="281" type="cond" truecount="2" falsecount="0"/>
5470
- <line num="42" count="168" type="stmt"/>
5471
- <line num="43" count="168" type="cond" truecount="2" falsecount="0"/>
5472
- <line num="45" count="281" type="stmt"/>
5473
- <line num="46" count="804" type="stmt"/>
5474
- <line num="47" count="804" type="cond" truecount="1" falsecount="1"/>
5475
- <line num="52" count="804" type="stmt"/>
4523
+ <line num="40" count="278" type="stmt"/>
4524
+ <line num="41" count="278" type="cond" truecount="2" falsecount="0"/>
4525
+ <line num="42" count="166" type="stmt"/>
4526
+ <line num="43" count="166" type="cond" truecount="2" falsecount="0"/>
4527
+ <line num="45" count="278" type="stmt"/>
4528
+ <line num="46" count="798" type="stmt"/>
4529
+ <line num="47" count="798" type="cond" truecount="1" falsecount="1"/>
4530
+ <line num="52" count="798" type="stmt"/>
5476
4531
  <line num="55" count="0" type="stmt"/>
5477
4532
  <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
5478
4533
  <line num="57" count="0" type="stmt"/>
5479
4534
  <line num="58" count="0" type="cond" truecount="0" falsecount="2"/>
5480
4535
  <line num="59" count="0" type="stmt"/>
5481
- <line num="66" count="281" type="cond" truecount="2" falsecount="0"/>
4536
+ <line num="66" count="278" type="cond" truecount="2" falsecount="0"/>
5482
4537
  </file>
5483
4538
  </package>
5484
4539
  <package name="utilities.usageQuota">
5485
- <metrics statements="75" coveredstatements="63" conditionals="27" coveredconditionals="19" methods="11" coveredmethods="9"/>
5486
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/index.js">
5487
- <metrics statements="35" coveredstatements="31" conditionals="17" coveredconditionals="13" methods="3" coveredmethods="3"/>
5488
- <line num="1" count="42" type="stmt"/>
5489
- <line num="2" count="42" type="stmt"/>
5490
- <line num="6" count="42" type="stmt"/>
5491
- <line num="8" count="42" type="stmt"/>
5492
- <line num="10" count="68" type="cond" truecount="2" falsecount="0"/>
5493
- <line num="12" count="7" type="cond" truecount="2" falsecount="0"/>
5494
- <line num="13" count="3" type="stmt"/>
5495
- <line num="17" count="3" type="stmt"/>
5496
- <line num="18" count="3" type="cond" truecount="2" falsecount="0"/>
5497
- <line num="19" count="2" type="stmt"/>
5498
- <line num="22" count="5" type="stmt"/>
5499
- <line num="24" count="61" type="stmt"/>
5500
- <line num="27" count="42" type="stmt"/>
5501
- <line num="37" count="42" type="stmt"/>
5502
- <line num="39" count="10" type="stmt"/>
5503
- <line num="40" count="10" type="stmt"/>
5504
- <line num="43" count="2" type="stmt"/>
5505
- <line num="44" count="2" type="stmt"/>
5506
- <line num="45" count="2" type="stmt"/>
5507
- <line num="48" count="10" type="stmt"/>
5508
- <line num="59" count="42" type="cond" truecount="1" falsecount="0"/>
5509
- <line num="60" count="17" type="cond" truecount="2" falsecount="0"/>
5510
- <line num="61" count="15" type="stmt"/>
5511
- <line num="64" count="2" type="stmt"/>
5512
- <line num="65" count="2" type="stmt"/>
5513
- <line num="66" count="2" type="stmt"/>
5514
- <line num="69" count="2" type="stmt"/>
5515
- <line num="71" count="2" type="cond" truecount="1" falsecount="1"/>
5516
- <line num="75" count="0" type="stmt"/>
5517
- <line num="80" count="2" type="cond" truecount="1" falsecount="1"/>
5518
- <line num="82" count="0" type="stmt"/>
5519
- <line num="86" count="2" type="cond" truecount="1" falsecount="1"/>
5520
- <line num="87" count="2" type="stmt"/>
5521
- <line num="90" count="0" type="stmt"/>
5522
- <line num="91" count="0" type="stmt"/>
5523
- </file>
4540
+ <metrics statements="40" coveredstatements="33" conditionals="10" coveredconditionals="7" methods="8" coveredmethods="6"/>
5524
4541
  <file name="rows.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/rows.js">
5525
- <metrics statements="35" coveredstatements="32" conditionals="8" coveredconditionals="6" methods="6" coveredmethods="6"/>
5526
- <line num="1" count="26" type="stmt"/>
5527
- <line num="6" count="26" type="stmt"/>
5528
- <line num="8" count="26" type="stmt"/>
5529
- <line num="10" count="26" type="stmt"/>
5530
- <line num="13" count="1" type="stmt"/>
5531
- <line num="14" count="1" type="stmt"/>
5532
- <line num="15" count="4" type="stmt"/>
5533
- <line num="16" count="4" type="cond" truecount="2" falsecount="0"/>
5534
- <line num="17" count="2" type="stmt"/>
5535
- <line num="19" count="4" type="cond" truecount="2" falsecount="0"/>
5536
- <line num="20" count="2" type="stmt"/>
4542
+ <metrics statements="35" coveredstatements="33" conditionals="8" coveredconditionals="7" methods="6" coveredmethods="6"/>
4543
+ <line num="1" count="40" type="stmt"/>
4544
+ <line num="6" count="40" type="stmt"/>
4545
+ <line num="8" count="40" type="stmt"/>
4546
+ <line num="10" count="40" type="stmt"/>
4547
+ <line num="13" count="36" type="stmt"/>
4548
+ <line num="14" count="36" type="stmt"/>
4549
+ <line num="15" count="15" type="stmt"/>
4550
+ <line num="16" count="15" type="cond" truecount="2" falsecount="0"/>
4551
+ <line num="17" count="13" type="stmt"/>
4552
+ <line num="19" count="15" type="cond" truecount="2" falsecount="0"/>
4553
+ <line num="20" count="13" type="stmt"/>
5537
4554
  <line num="22" count="2" type="stmt"/>
5538
- <line num="25" count="1" type="stmt"/>
5539
- <line num="28" count="26" type="stmt"/>
5540
- <line num="30" count="4" type="stmt"/>
5541
- <line num="31" count="4" type="stmt"/>
5542
- <line num="36" count="4" type="stmt"/>
4555
+ <line num="25" count="36" type="stmt"/>
4556
+ <line num="28" count="40" type="stmt"/>
4557
+ <line num="30" count="15" type="stmt"/>
4558
+ <line num="31" count="15" type="stmt"/>
4559
+ <line num="36" count="15" type="stmt"/>
5543
4560
  <line num="37" count="3" type="stmt"/>
5544
4561
  <line num="39" count="3" type="stmt"/>
5545
4562
  <line num="40" count="3" type="cond" truecount="1" falsecount="1"/>
5546
4563
  <line num="41" count="0" type="stmt"/>
5547
4564
  <line num="44" count="3" type="stmt"/>
5548
- <line num="54" count="26" type="stmt"/>
5549
- <line num="55" count="1" type="stmt"/>
5550
- <line num="56" count="1" type="stmt"/>
5551
- <line num="58" count="1" type="stmt"/>
5552
- <line num="59" count="2" type="stmt"/>
5553
- <line num="60" count="2" type="stmt"/>
5554
- <line num="61" count="4" type="cond" truecount="1" falsecount="1"/>
5555
- <line num="62" count="0" type="stmt"/>
5556
- <line num="64" count="4" type="stmt"/>
5557
- <line num="65" count="4" type="stmt"/>
4565
+ <line num="54" count="40" type="stmt"/>
4566
+ <line num="55" count="36" type="stmt"/>
4567
+ <line num="56" count="36" type="stmt"/>
4568
+ <line num="58" count="36" type="stmt"/>
4569
+ <line num="59" count="13" type="stmt"/>
4570
+ <line num="60" count="13" type="stmt"/>
4571
+ <line num="61" count="26" type="cond" truecount="2" falsecount="0"/>
4572
+ <line num="62" count="11" type="stmt"/>
4573
+ <line num="64" count="15" type="stmt"/>
4574
+ <line num="65" count="15" type="stmt"/>
5558
4575
  <line num="67" count="0" type="stmt"/>
5559
- <line num="75" count="2" type="stmt"/>
5560
- <line num="78" count="1" type="stmt"/>
4576
+ <line num="75" count="13" type="stmt"/>
4577
+ <line num="78" count="36" type="stmt"/>
5561
4578
  </file>
5562
4579
  <file name="usageQuoteReset.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/usageQuoteReset.js">
5563
4580
  <metrics statements="5" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>