@budibase/server 1.0.105-alpha.21 → 1.0.105-alpha.24

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 (292) hide show
  1. package/builder/assets/{index.8d922c8c.js → index.06b1c616.js} +150 -147
  2. package/builder/assets/{index.b7e0672d.css → index.e3fb1cb4.css} +2 -2
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +517 -1564
  5. package/coverage/coverage-final.json +27 -43
  6. package/coverage/lcov-report/api/controllers/analytics.js.html +8 -3
  7. package/coverage/lcov-report/api/controllers/apikeys.js.html +9 -4
  8. package/coverage/lcov-report/api/controllers/auth.js.html +8 -3
  9. package/coverage/lcov-report/api/controllers/automation.js.html +8 -3
  10. package/coverage/lcov-report/api/controllers/backup.js.html +8 -3
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +8 -3
  12. package/coverage/lcov-report/api/controllers/component.js.html +8 -3
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +11 -6
  14. package/coverage/lcov-report/api/controllers/dev.js.html +8 -3
  15. package/coverage/lcov-report/api/controllers/index.html +16 -26
  16. package/coverage/lcov-report/api/controllers/integration.js.html +8 -3
  17. package/coverage/lcov-report/api/controllers/layout.js.html +8 -3
  18. package/coverage/lcov-report/api/controllers/metadata.js.html +8 -3
  19. package/coverage/lcov-report/api/controllers/migrations.js.html +8 -3
  20. package/coverage/lcov-report/api/controllers/permission.js.html +8 -3
  21. package/coverage/lcov-report/api/controllers/query/index.html +16 -26
  22. package/coverage/lcov-report/api/controllers/query/validation.js.html +8 -3
  23. package/coverage/lcov-report/api/controllers/role.js.html +10 -5
  24. package/coverage/lcov-report/api/controllers/routing.js.html +9 -4
  25. package/coverage/lcov-report/api/controllers/row/external.js.html +8 -3
  26. package/coverage/lcov-report/api/controllers/row/index.html +23 -33
  27. package/coverage/lcov-report/api/controllers/row/internal.js.html +32 -24
  28. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +21 -16
  29. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +24 -19
  30. package/coverage/lcov-report/api/controllers/row/utils.js.html +20 -15
  31. package/coverage/lcov-report/api/controllers/screen.js.html +9 -4
  32. package/coverage/lcov-report/api/controllers/script.js.html +8 -3
  33. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +52 -47
  34. package/coverage/lcov-report/api/controllers/table/external.js.html +8 -3
  35. package/coverage/lcov-report/api/controllers/table/index.html +17 -42
  36. package/coverage/lcov-report/api/controllers/table/index.js.html +20 -15
  37. package/coverage/lcov-report/api/controllers/templates.js.html +8 -3
  38. package/coverage/lcov-report/api/controllers/user.js.html +8 -3
  39. package/coverage/lcov-report/api/controllers/view/exporters.js.html +8 -3
  40. package/coverage/lcov-report/api/controllers/view/index.html +8 -3
  41. package/coverage/lcov-report/api/controllers/view/index.js.html +10 -5
  42. package/coverage/lcov-report/api/controllers/view/utils.js.html +8 -3
  43. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +8 -3
  44. package/coverage/lcov-report/api/controllers/webhook.js.html +10 -5
  45. package/coverage/lcov-report/api/index.html +18 -13
  46. package/coverage/lcov-report/api/index.js.html +28 -8
  47. package/coverage/lcov-report/api/routes/analytics.js.html +8 -3
  48. package/coverage/lcov-report/api/routes/apikeys.js.html +8 -3
  49. package/coverage/lcov-report/api/routes/auth.js.html +8 -3
  50. package/coverage/lcov-report/api/routes/automation.js.html +8 -3
  51. package/coverage/lcov-report/api/routes/backup.js.html +8 -3
  52. package/coverage/lcov-report/api/routes/cloud.js.html +8 -3
  53. package/coverage/lcov-report/api/routes/component.js.html +8 -3
  54. package/coverage/lcov-report/api/routes/datasource.js.html +8 -3
  55. package/coverage/lcov-report/api/routes/deploy.js.html +8 -3
  56. package/coverage/lcov-report/api/routes/dev.js.html +9 -4
  57. package/coverage/lcov-report/api/routes/index.html +13 -68
  58. package/coverage/lcov-report/api/routes/integration.js.html +8 -3
  59. package/coverage/lcov-report/api/routes/layout.js.html +8 -3
  60. package/coverage/lcov-report/api/routes/metadata.js.html +8 -3
  61. package/coverage/lcov-report/api/routes/migrations.js.html +8 -3
  62. package/coverage/lcov-report/api/routes/permission.js.html +8 -3
  63. package/coverage/lcov-report/api/routes/query.js.html +8 -3
  64. package/coverage/lcov-report/api/routes/role.js.html +8 -3
  65. package/coverage/lcov-report/api/routes/routing.js.html +8 -3
  66. package/coverage/lcov-report/api/routes/screen.js.html +8 -3
  67. package/coverage/lcov-report/api/routes/script.js.html +8 -3
  68. package/coverage/lcov-report/api/routes/table.js.html +8 -3
  69. package/coverage/lcov-report/api/routes/templates.js.html +8 -3
  70. package/coverage/lcov-report/api/routes/user.js.html +8 -3
  71. package/coverage/lcov-report/api/routes/utils/index.html +8 -3
  72. package/coverage/lcov-report/api/routes/utils/validators.js.html +8 -3
  73. package/coverage/lcov-report/api/routes/view.js.html +8 -3
  74. package/coverage/lcov-report/api/routes/webhook.js.html +8 -3
  75. package/coverage/lcov-report/automations/actions.js.html +9 -4
  76. package/coverage/lcov-report/automations/automationUtils.js.html +20 -15
  77. package/coverage/lcov-report/automations/bullboard.js.html +8 -3
  78. package/coverage/lcov-report/automations/index.html +16 -26
  79. package/coverage/lcov-report/automations/index.js.html +8 -3
  80. package/coverage/lcov-report/automations/steps/bash.js.html +8 -3
  81. package/coverage/lcov-report/automations/steps/delay.js.html +8 -3
  82. package/coverage/lcov-report/automations/steps/discord.js.html +8 -3
  83. package/coverage/lcov-report/automations/steps/executeQuery.js.html +8 -3
  84. package/coverage/lcov-report/automations/steps/executeScript.js.html +8 -3
  85. package/coverage/lcov-report/automations/steps/filter.js.html +8 -3
  86. package/coverage/lcov-report/automations/steps/index.html +16 -41
  87. package/coverage/lcov-report/automations/steps/integromat.js.html +8 -3
  88. package/coverage/lcov-report/automations/steps/loop.js.html +8 -3
  89. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +9 -4
  90. package/coverage/lcov-report/automations/steps/queryRows.js.html +9 -4
  91. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +8 -3
  92. package/coverage/lcov-report/automations/steps/serverLog.js.html +8 -3
  93. package/coverage/lcov-report/automations/steps/slack.js.html +8 -3
  94. package/coverage/lcov-report/automations/steps/updateRow.js.html +8 -3
  95. package/coverage/lcov-report/automations/steps/utils.js.html +14 -9
  96. package/coverage/lcov-report/automations/steps/zapier.js.html +8 -3
  97. package/coverage/lcov-report/automations/triggerInfo/app.js.html +8 -3
  98. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +8 -3
  99. package/coverage/lcov-report/automations/triggerInfo/index.html +8 -3
  100. package/coverage/lcov-report/automations/triggerInfo/index.js.html +8 -3
  101. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +8 -3
  102. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +8 -3
  103. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +8 -3
  104. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +8 -3
  105. package/coverage/lcov-report/automations/triggers.js.html +16 -11
  106. package/coverage/lcov-report/block-navigation.js +8 -0
  107. package/coverage/lcov-report/constants/index.html +8 -3
  108. package/coverage/lcov-report/constants/index.js.html +35 -30
  109. package/coverage/lcov-report/constants/layouts.js.html +8 -3
  110. package/coverage/lcov-report/constants/screens.js.html +8 -3
  111. package/coverage/lcov-report/db/client.js.html +26 -21
  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 +10 -5
  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 +83 -78
  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 +122 -117
  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 +11 -6
  131. package/coverage/lcov-report/middleware/index.html +16 -41
  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 +55 -50
  139. package/coverage/lcov-report/threads/index.html +16 -26
  140. package/coverage/lcov-report/threads/query.js.html +10 -5
  141. package/coverage/lcov-report/threads/utils.js.html +11 -6
  142. package/coverage/lcov-report/utilities/bcrypt.js.html +8 -3
  143. package/coverage/lcov-report/utilities/budibaseDir.js.html +8 -3
  144. package/coverage/lcov-report/utilities/centralPath.js.html +8 -3
  145. package/coverage/lcov-report/utilities/csvParser.js.html +10 -5
  146. package/coverage/lcov-report/utilities/global.js.html +9 -4
  147. package/coverage/lcov-report/utilities/index.html +8 -3
  148. package/coverage/lcov-report/utilities/index.js.html +11 -6
  149. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +32 -9
  150. package/coverage/lcov-report/utilities/queue/index.html +12 -7
  151. package/coverage/lcov-report/utilities/routing/index.html +8 -3
  152. package/coverage/lcov-report/utilities/routing/index.js.html +8 -3
  153. package/coverage/lcov-report/utilities/rowProcessor/index.html +8 -3
  154. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +46 -41
  155. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +18 -13
  156. package/coverage/lcov-report/utilities/scriptRunner.js.html +8 -3
  157. package/coverage/lcov-report/utilities/security.js.html +9 -4
  158. package/coverage/lcov-report/utilities/statusCodes.js.html +8 -3
  159. package/coverage/lcov-report/utilities/usageQuota/index.html +24 -34
  160. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +45 -40
  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 +759 -2599
  165. package/dist/api/controllers/application.js +138 -70
  166. package/dist/api/controllers/deploy/index.js +64 -35
  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/table/internal.js +40 -34
  179. package/dist/api/controllers/table/utils.js +271 -229
  180. package/dist/api/index.js +5 -0
  181. package/dist/api/routes/application.js +39 -13
  182. package/dist/api/routes/index.js +61 -56
  183. package/dist/api/routes/public/index.js +6 -9
  184. package/dist/api/routes/public/queries.js +1 -1
  185. package/dist/api/routes/public/rows.js +1 -1
  186. package/dist/api/routes/public/tables.js +3 -3
  187. package/dist/api/routes/public/users.js +1 -1
  188. package/dist/api/routes/row.js +43 -17
  189. package/dist/api/routes/static.js +40 -13
  190. package/dist/api/routes/tests/utilities/TestFunctions.js +62 -26
  191. package/dist/app.js +11 -4
  192. package/dist/automations/steps/createRow.js +12 -12
  193. package/dist/automations/steps/deleteRow.js +13 -16
  194. package/dist/automations/tests/utilities/index.js +0 -2
  195. package/dist/automations/utils.js +187 -132
  196. package/dist/environment.js +0 -2
  197. package/dist/integrations/base/sql.js +2 -2
  198. package/dist/integrations/base/sqlTable.js +2 -2
  199. package/dist/integrations/googlesheets.js +1 -1
  200. package/dist/integrations/microsoftSqlServer.js +8 -8
  201. package/dist/integrations/mysql.js +9 -9
  202. package/dist/integrations/oracle.js +7 -7
  203. package/dist/integrations/postgres.js +7 -7
  204. package/dist/integrations/rest.js +1 -1
  205. package/dist/middleware/authorized.js +51 -51
  206. package/dist/migrations/functions/appUrls.js +1 -1
  207. package/dist/migrations/functions/developerQuota.js +49 -0
  208. package/dist/migrations/functions/publishedAppsQuota.js +47 -0
  209. package/dist/migrations/functions/quotas1.js +6 -2
  210. package/dist/migrations/functions/usageQuotas/index.js +0 -4
  211. package/dist/migrations/functions/usageQuotas/syncApps.js +4 -7
  212. package/dist/migrations/functions/usageQuotas/syncDevelopers.js +24 -0
  213. package/dist/migrations/functions/usageQuotas/syncPublishedApps.js +26 -0
  214. package/dist/migrations/functions/usageQuotas/syncRows.js +5 -8
  215. package/dist/migrations/index.js +17 -1
  216. package/dist/package.json +10 -8
  217. package/dist/threads/index.js +35 -8
  218. package/dist/tsconfig.build.tsbuildinfo +1 -0
  219. package/dist/utilities/queue/inMemoryQueue.js +6 -1
  220. package/nodemon.json +1 -1
  221. package/package.json +11 -9
  222. package/scripts/dev/manage.js +2 -0
  223. package/src/api/controllers/{application.js → application.ts} +103 -44
  224. package/src/api/controllers/deploy/{index.js → index.ts} +45 -28
  225. package/src/api/controllers/public/applications.ts +2 -2
  226. package/src/api/controllers/public/queries.ts +1 -1
  227. package/src/api/controllers/public/rows.ts +1 -1
  228. package/src/api/controllers/query/{index.js → index.ts} +51 -48
  229. package/src/api/controllers/row/ExternalRequest.ts +1 -1
  230. package/src/api/controllers/row/{index.js → index.ts} +24 -17
  231. package/src/api/controllers/row/internal.js +2 -1
  232. package/src/api/controllers/table/{internal.js → internal.ts} +27 -24
  233. package/src/api/controllers/table/{utils.js → utils.ts} +86 -69
  234. package/src/api/index.js +5 -0
  235. package/src/api/routes/{application.js → application.ts} +8 -14
  236. package/src/api/routes/index.ts +60 -0
  237. package/src/api/routes/public/index.ts +1 -4
  238. package/src/api/routes/{row.js → row.ts} +7 -15
  239. package/src/api/routes/{static.js → static.ts} +11 -11
  240. package/src/api/routes/tests/utilities/{TestFunctions.js → TestFunctions.ts} +42 -25
  241. package/src/app.ts +1 -2
  242. package/src/automations/steps/{createRow.js → createRow.ts} +9 -15
  243. package/src/automations/steps/{deleteRow.js → deleteRow.ts} +10 -16
  244. package/src/automations/tests/automation.spec.js +0 -1
  245. package/src/automations/tests/{createRow.spec.js → createRow.spec.ts} +4 -15
  246. package/src/automations/tests/{deleteRow.spec.js → deleteRow.spec.ts} +3 -5
  247. package/src/automations/tests/utilities/index.js +0 -2
  248. package/src/automations/{utils.js → utils.ts} +39 -27
  249. package/src/environment.js +0 -2
  250. package/src/middleware/{authorized.js → authorized.ts} +20 -14
  251. package/src/migrations/functions/developerQuota.ts +15 -0
  252. package/src/migrations/functions/publishedAppsQuota.ts +13 -0
  253. package/src/migrations/functions/tests/quotas1.spec.js +0 -2
  254. package/src/migrations/functions/usageQuotas/index.ts +0 -5
  255. package/src/migrations/functions/usageQuotas/syncApps.ts +3 -6
  256. package/src/migrations/functions/usageQuotas/syncDevelopers.ts +19 -0
  257. package/src/migrations/functions/usageQuotas/syncPublishedApps.ts +21 -0
  258. package/src/migrations/functions/usageQuotas/syncRows.ts +3 -6
  259. package/src/migrations/functions/usageQuotas/tests/syncApps.spec.ts +32 -0
  260. package/src/migrations/functions/usageQuotas/tests/syncRows.spec.ts +38 -0
  261. package/src/migrations/index.ts +13 -1
  262. package/src/module.d.ts +4 -0
  263. package/src/threads/{index.js → index.ts} +14 -12
  264. package/src/utilities/queue/inMemoryQueue.js +7 -1
  265. package/tsconfig.build.json +10 -0
  266. package/tsconfig.json +2 -2
  267. package/coverage/lcov-report/api/controllers/application.js.html +0 -1430
  268. package/coverage/lcov-report/api/controllers/query/index.js.html +0 -713
  269. package/coverage/lcov-report/api/controllers/row/index.js.html +0 -524
  270. package/coverage/lcov-report/api/controllers/table/internal.js.html +0 -548
  271. package/coverage/lcov-report/api/controllers/table/utils.js.html +0 -1331
  272. package/coverage/lcov-report/api/routes/application.js.html +0 -179
  273. package/coverage/lcov-report/api/routes/index.js.html +0 -266
  274. package/coverage/lcov-report/api/routes/row.js.html +0 -908
  275. package/coverage/lcov-report/api/routes/static.js.html +0 -245
  276. package/coverage/lcov-report/automations/steps/createRow.js.html +0 -380
  277. package/coverage/lcov-report/automations/steps/deleteRow.js.html +0 -347
  278. package/coverage/lcov-report/automations/utils.js.html +0 -662
  279. package/coverage/lcov-report/middleware/authorized.js.html +0 -458
  280. package/coverage/lcov-report/middleware/usageQuota.js.html +0 -572
  281. package/coverage/lcov-report/threads/index.js.html +0 -278
  282. package/coverage/lcov-report/utilities/usageQuota/index.js.html +0 -359
  283. package/dist/middleware/usageQuota.js +0 -154
  284. package/dist/tsconfig.tsbuildinfo +0 -1
  285. package/dist/utilities/usageQuota/index.js +0 -86
  286. package/src/api/routes/index.js +0 -62
  287. package/src/middleware/tests/usageQuota.spec.js +0 -134
  288. package/src/middleware/usageQuota.js +0 -164
  289. package/src/migrations/functions/usageQuotas/tests/syncApps.spec.js +0 -37
  290. package/src/migrations/functions/usageQuotas/tests/syncRows.spec.js +0 -43
  291. package/src/utilities/tests/usageQuota/usageQuota.spec.js +0 -72
  292. package/src/utilities/usageQuota/index.js +0 -93
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1650369925488" clover="3.2.0">
3
- <project timestamp="1650369925488" name="All files">
4
- <metrics statements="5151" coveredstatements="3771" conditionals="2142" coveredconditionals="1156" methods="736" coveredmethods="526" elements="8029" coveredelements="5453" complexity="0" loc="5151" ncloc="5151" packages="23" files="148" classes="148"/>
2
+ <coverage generated="1650541911706" clover="3.2.0">
3
+ <project timestamp="1650541911706" name="All files">
4
+ <metrics statements="4152" coveredstatements="2981" conditionals="1693" coveredconditionals="871" methods="612" coveredmethods="430" elements="6457" coveredelements="4282" complexity="0" loc="4152" ncloc="4152" packages="23" files="132" classes="132"/>
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="1108" coveredstatements="786" conditionals="368" coveredconditionals="172" methods="156" coveredmethods="108"/>
45
+ <metrics statements="907" 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,210 +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="201" coveredstatements="164" conditionals="78" coveredconditionals="47" methods="26" coveredmethods="23"/>
88
- <line num="1" count="39" type="stmt"/>
89
- <line num="2" count="39" type="stmt"/>
90
- <line num="7" count="39" type="stmt"/>
91
- <line num="12" count="39" type="stmt"/>
92
- <line num="20" count="39" type="stmt"/>
93
- <line num="24" count="39" type="stmt"/>
94
- <line num="25" count="39" type="stmt"/>
95
- <line num="26" count="39" type="stmt"/>
96
- <line num="27" count="39" type="stmt"/>
97
- <line num="33" count="39" type="stmt"/>
98
- <line num="34" count="39" type="stmt"/>
99
- <line num="35" count="39" type="stmt"/>
100
- <line num="36" count="39" type="stmt"/>
101
- <line num="37" count="39" type="stmt"/>
102
- <line num="42" count="39" type="stmt"/>
103
- <line num="43" count="39" type="stmt"/>
104
- <line num="44" count="39" type="stmt"/>
105
- <line num="45" count="39" type="stmt"/>
106
- <line num="46" count="39" type="stmt"/>
107
- <line num="51" count="39" type="stmt"/>
108
- <line num="53" count="39" type="stmt"/>
109
- <line num="57" count="211" type="stmt"/>
110
- <line num="58" count="211" type="stmt"/>
111
- <line num="64" count="422" type="stmt"/>
112
- <line num="68" count="211" type="stmt"/>
113
- <line num="69" count="211" type="stmt"/>
114
- <line num="75" count="12" type="stmt"/>
115
- <line num="79" count="205" type="cond" truecount="4" falsecount="0"/>
116
- <line num="84" count="39" type="stmt"/>
117
- <line num="87" count="202" type="cond" truecount="2" falsecount="0"/>
118
- <line num="89" count="1" type="stmt"/>
119
- <line num="90" count="201" type="cond" truecount="1" falsecount="1"/>
120
- <line num="92" count="201" type="stmt"/>
121
- <line num="94" count="202" type="cond" truecount="1" falsecount="1"/>
122
- <line num="95" count="202" type="stmt"/>
123
- <line num="97" count="202" type="stmt"/>
124
- <line num="100" count="39" type="stmt"/>
125
- <line num="101" count="201" type="cond" truecount="2" falsecount="0"/>
126
- <line num="102" count="4" type="stmt"/>
127
- <line num="104" count="736" type="cond" truecount="1" falsecount="1"/>
128
- <line num="105" count="0" type="stmt"/>
129
- <line num="109" count="39" type="stmt"/>
130
- <line num="111" count="201" type="cond" truecount="1" falsecount="1"/>
131
- <line num="112" count="0" type="stmt"/>
132
- <line num="114" count="201" type="cond" truecount="2" falsecount="0"/>
133
- <line num="115" count="4" type="stmt"/>
134
- <line num="117" count="736" type="cond" truecount="1" falsecount="1"/>
135
- <line num="118" count="0" type="stmt"/>
136
- <line num="123" count="198" type="cond" truecount="1" falsecount="1"/>
137
- <line num="124" count="198" type="stmt"/>
138
- <line num="125" count="198" type="stmt"/>
139
- <line num="126" count="198" type="stmt"/>
140
- <line num="128" count="198" type="stmt"/>
141
- <line num="129" count="198" type="stmt"/>
142
- <line num="138" count="198" type="stmt"/>
143
- <line num="139" count="198" type="stmt"/>
144
- <line num="140" count="198" type="stmt"/>
145
- <line num="144" count="198" 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="198" 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="198" type="stmt"/>
153
- <line num="160" count="198" type="stmt"/>
154
- <line num="163" count="39" 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="14" type="cond" truecount="1" falsecount="1"/>
162
- <line num="173" count="0" type="stmt"/>
163
- <line num="175" count="14" type="stmt"/>
164
- <line num="176" count="14" type="cond" truecount="1" falsecount="1"/>
165
- <line num="177" count="0" type="stmt"/>
166
- <line num="180" count="14" type="stmt"/>
167
- <line num="185" count="10" type="stmt"/>
168
- <line num="188" count="39" 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="39" type="stmt"/>
175
- <line num="204" count="210" type="stmt"/>
176
- <line num="205" count="210" type="stmt"/>
177
- <line num="206" count="210" type="stmt"/>
178
- <line num="207" count="210" type="stmt"/>
179
- <line num="210" count="210" type="cond" truecount="4" falsecount="0"/>
180
- <line num="211" count="204" type="stmt"/>
181
- <line num="212" count="204" type="stmt"/>
182
- <line num="213" count="204" type="stmt"/>
183
- <line num="216" count="210" type="stmt"/>
184
- <line num="224" count="39" type="stmt"/>
185
- <line num="225" count="198" type="stmt"/>
186
- <line num="226" count="198" type="stmt"/>
187
- <line num="227" count="198" type="stmt"/>
188
- <line num="228" count="198" type="stmt"/>
189
- <line num="229" count="198" type="stmt"/>
190
- <line num="231" count="198" type="stmt"/>
191
- <line num="232" count="198" type="stmt"/>
192
- <line num="237" count="198" type="cond" truecount="2" falsecount="2"/>
193
- <line num="238" count="0" type="stmt"/>
194
- <line num="240" count="198" type="stmt"/>
195
- <line num="241" count="198" type="stmt"/>
196
- <line num="243" count="198" type="stmt"/>
197
- <line num="245" count="198" type="stmt"/>
198
- <line num="247" count="198" type="stmt"/>
199
- <line num="248" count="0" type="stmt"/>
200
- <line num="252" count="198" type="stmt"/>
201
- <line num="268" count="198" type="stmt"/>
202
- <line num="269" count="198" type="stmt"/>
203
- <line num="273" count="198" type="cond" truecount="1" falsecount="1"/>
204
- <line num="274" count="198" type="stmt"/>
205
- <line num="282" count="198" type="stmt"/>
206
- <line num="283" count="198" type="stmt"/>
207
- <line num="284" count="198" type="stmt"/>
208
- <line num="289" count="39" 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="39" 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="39" 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="39" type="stmt"/>
243
- <line num="353" count="12" type="stmt"/>
244
- <line num="355" count="12" type="stmt"/>
245
- <line num="360" count="12" type="cond" truecount="3" falsecount="1"/>
246
- <line num="361" count="0" type="stmt"/>
247
- <line num="364" count="12" type="stmt"/>
248
- <line num="365" count="12" type="stmt"/>
249
- <line num="367" count="12" type="stmt"/>
250
- <line num="368" count="12" type="stmt"/>
251
- <line num="371" count="39" 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="410" count="0" type="stmt"/>
269
- <line num="412" count="0" type="cond" truecount="0" falsecount="2"/>
270
- <line num="413" count="0" type="stmt"/>
271
- <line num="415" count="0" type="stmt"/>
272
- <line num="421" count="39" type="stmt"/>
273
- <line num="422" count="6" type="stmt"/>
274
- <line num="423" count="6" type="stmt"/>
275
- <line num="425" count="6" type="stmt"/>
276
- <line num="426" count="6" type="cond" truecount="2" falsecount="0"/>
277
- <line num="427" count="5" type="stmt"/>
278
- <line num="432" count="6" type="stmt"/>
279
- <line num="434" count="6" type="stmt"/>
280
- <line num="436" count="6" type="stmt"/>
281
- <line num="437" count="6" type="stmt"/>
282
- <line num="440" count="39" type="stmt"/>
283
- <line num="441" count="198" type="stmt"/>
284
- <line num="443" count="198" type="stmt"/>
285
- <line num="444" count="198" type="stmt"/>
286
- <line num="445" count="396" type="stmt"/>
287
- <line num="446" count="396" type="stmt"/>
288
- <line num="449" count="198" type="stmt"/>
289
- </file>
290
89
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
291
90
  <metrics statements="28" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
292
91
  <line num="1" count="24" type="stmt"/>
@@ -1216,105 +1015,7 @@
1216
1015
  </file>
1217
1016
  </package>
1218
1017
  <package name="api.controllers.query">
1219
- <metrics statements="104" coveredstatements="85" conditionals="29" coveredconditionals="19" methods="17" coveredmethods="15"/>
1220
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
1221
- <metrics statements="95" coveredstatements="76" conditionals="29" coveredconditionals="19" methods="14" coveredmethods="12"/>
1222
- <line num="5" count="40" type="stmt"/>
1223
- <line num="6" count="40" type="stmt"/>
1224
- <line num="7" count="40" type="stmt"/>
1225
- <line num="8" count="40" type="stmt"/>
1226
- <line num="9" count="40" type="stmt"/>
1227
- <line num="10" count="40" type="stmt"/>
1228
- <line num="11" count="40" type="stmt"/>
1229
- <line num="12" count="40" type="stmt"/>
1230
- <line num="14" count="40" type="stmt"/>
1231
- <line num="20" count="6" type="stmt"/>
1232
- <line num="21" count="6" type="cond" truecount="2" falsecount="0"/>
1233
- <line num="22" count="6" type="stmt"/>
1234
- <line num="23" count="4" type="cond" truecount="1" falsecount="1"/>
1235
- <line num="24" count="4" type="stmt"/>
1236
- <line num="27" count="6" type="cond" truecount="2" falsecount="0"/>
1237
- <line num="30" count="40" type="stmt"/>
1238
- <line num="31" count="3" type="stmt"/>
1239
- <line num="33" count="3" type="stmt"/>
1240
- <line num="39" count="3" type="stmt"/>
1241
- <line num="42" count="40" type="stmt"/>
1242
- <line num="43" count="0" type="stmt"/>
1243
- <line num="44" count="0" type="stmt"/>
1244
- <line num="46" count="0" type="stmt"/>
1245
- <line num="47" count="0" type="stmt"/>
1246
- <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
1247
- <line num="52" count="0" type="stmt"/>
1248
- <line num="53" count="0" type="stmt"/>
1249
- <line num="63" count="0" type="stmt"/>
1250
- <line num="64" count="0" type="stmt"/>
1251
- <line num="65" count="0" type="stmt"/>
1252
- <line num="66" count="0" type="stmt"/>
1253
- <line num="69" count="0" type="stmt"/>
1254
- <line num="72" count="0" type="stmt"/>
1255
- <line num="74" count="0" type="stmt"/>
1256
- <line num="78" count="0" type="stmt"/>
1257
- <line num="81" count="40" type="stmt"/>
1258
- <line num="82" count="28" type="stmt"/>
1259
- <line num="83" count="28" type="stmt"/>
1260
- <line num="85" count="28" type="cond" truecount="1" falsecount="1"/>
1261
- <line num="86" count="28" type="stmt"/>
1262
- <line num="89" count="28" type="stmt"/>
1263
- <line num="90" count="28" type="stmt"/>
1264
- <line num="92" count="28" type="stmt"/>
1265
- <line num="93" count="28" type="stmt"/>
1266
- <line num="96" count="40" type="stmt"/>
1267
- <line num="97" count="3" type="stmt"/>
1268
- <line num="98" count="3" type="stmt"/>
1269
- <line num="100" count="3" type="cond" truecount="2" falsecount="0"/>
1270
- <line num="101" count="1" type="stmt"/>
1271
- <line num="102" count="1" type="stmt"/>
1272
- <line num="104" count="3" type="stmt"/>
1273
- <line num="107" count="40" type="stmt"/>
1274
- <line num="108" count="8" type="stmt"/>
1275
- <line num="110" count="8" type="stmt"/>
1276
- <line num="114" count="8" type="stmt"/>
1277
- <line num="116" count="8" type="stmt"/>
1278
- <line num="117" count="8" type="stmt"/>
1279
- <line num="127" count="7" type="stmt"/>
1280
- <line num="134" count="1" type="stmt"/>
1281
- <line num="139" count="2" type="stmt"/>
1282
- <line num="141" count="2" type="stmt"/>
1283
- <line num="142" count="2" type="stmt"/>
1284
- <line num="144" count="2" type="cond" truecount="1" falsecount="1"/>
1285
- <line num="146" count="2" type="cond" truecount="3" falsecount="1"/>
1286
- <line num="147" count="2" type="stmt"/>
1287
- <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
1288
- <line num="149" count="0" type="stmt"/>
1289
- <line num="155" count="2" type="stmt"/>
1290
- <line num="156" count="2" type="stmt"/>
1291
- <line num="166" count="1" type="cond" truecount="3" falsecount="1"/>
1292
- <line num="167" count="1" type="stmt"/>
1293
- <line num="169" count="0" type="stmt"/>
1294
- <line num="172" count="1" type="stmt"/>
1295
- <line num="176" count="40" type="stmt"/>
1296
- <line num="177" count="2" type="stmt"/>
1297
- <line num="180" count="40" type="stmt"/>
1298
- <line num="181" count="0" type="stmt"/>
1299
- <line num="184" count="40" type="stmt"/>
1300
- <line num="185" count="2" type="stmt"/>
1301
- <line num="186" count="2" type="stmt"/>
1302
- <line num="187" count="2" type="stmt"/>
1303
- <line num="188" count="2" type="stmt"/>
1304
- <line num="190" count="2" type="cond" truecount="2" falsecount="0"/>
1305
- <line num="192" count="1" type="stmt"/>
1306
- <line num="193" count="1" type="stmt"/>
1307
- <line num="195" count="1" type="stmt"/>
1308
- <line num="198" count="1" type="stmt"/>
1309
- <line num="199" count="1" type="stmt"/>
1310
- <line num="201" count="1" type="stmt"/>
1311
- <line num="205" count="40" type="stmt"/>
1312
- <line num="206" count="2" type="stmt"/>
1313
- <line num="207" count="2" type="stmt"/>
1314
- <line num="208" count="2" type="stmt"/>
1315
- <line num="209" count="2" type="stmt"/>
1316
- <line num="210" count="2" type="stmt"/>
1317
- </file>
1018
+ <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1318
1019
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1319
1020
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1320
1021
  <line num="1" count="41" type="stmt"/>
@@ -1329,7 +1030,7 @@
1329
1030
  </file>
1330
1031
  </package>
1331
1032
  <package name="api.controllers.row">
1332
- <metrics statements="677" coveredstatements="419" conditionals="298" coveredconditionals="127" methods="98" coveredmethods="57"/>
1033
+ <metrics statements="588" coveredstatements="340" conditionals="266" coveredconditionals="96" methods="86" coveredmethods="46"/>
1333
1034
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1334
1035
  <metrics statements="110" coveredstatements="18" conditionals="46" coveredconditionals="0" methods="15" coveredmethods="0"/>
1335
1036
  <line num="6" count="40" type="stmt"/>
@@ -1443,101 +1144,8 @@
1443
1144
  <line num="219" count="0" type="stmt"/>
1444
1145
  <line num="232" count="0" type="stmt"/>
1445
1146
  </file>
1446
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/index.js">
1447
- <metrics statements="90" coveredstatements="80" conditionals="34" coveredconditionals="32" methods="12" coveredmethods="11"/>
1448
- <line num="1" count="40" type="stmt"/>
1449
- <line num="2" count="40" type="stmt"/>
1450
- <line num="3" count="40" type="stmt"/>
1451
- <line num="6" count="119" type="cond" truecount="1" falsecount="1"/>
1452
- <line num="7" count="0" type="stmt"/>
1453
- <line num="9" count="118" type="stmt"/>
1454
- <line num="13" count="122" type="cond" truecount="4" falsecount="0"/>
1455
- <line num="14" count="80" type="stmt"/>
1456
- <line num="16" count="42" type="cond" truecount="4" falsecount="0"/>
1457
- <line num="17" count="34" type="stmt"/>
1458
- <line num="19" count="8" type="cond" truecount="4" falsecount="0"/>
1459
- <line num="20" count="7" type="stmt"/>
1460
- <line num="24" count="40" type="stmt"/>
1461
- <line num="25" count="7" type="stmt"/>
1462
- <line num="26" count="7" type="stmt"/>
1463
- <line num="27" count="7" type="stmt"/>
1464
- <line num="29" count="7" type="cond" truecount="3" falsecount="1"/>
1465
- <line num="30" count="0" type="stmt"/>
1466
- <line num="32" count="7" type="stmt"/>
1467
- <line num="33" count="7" type="stmt"/>
1468
- <line num="34" count="5" type="stmt"/>
1469
- <line num="35" count="5" type="cond" truecount="2" falsecount="0"/>
1470
- <line num="37" count="5" type="stmt"/>
1471
- <line num="38" count="5" type="stmt"/>
1472
- <line num="40" count="2" type="stmt"/>
1473
- <line num="44" count="40" type="stmt"/>
1474
- <line num="45" count="74" type="stmt"/>
1475
- <line num="46" count="74" type="stmt"/>
1476
- <line num="47" count="74" type="stmt"/>
1477
- <line num="49" count="74" type="cond" truecount="4" falsecount="0"/>
1478
- <line num="50" count="3" type="stmt"/>
1479
- <line num="52" count="71" type="stmt"/>
1480
- <line num="53" count="71" type="stmt"/>
1481
- <line num="54" count="70" type="stmt"/>
1482
- <line num="55" count="70" type="cond" truecount="2" falsecount="0"/>
1483
- <line num="56" count="70" type="stmt"/>
1484
- <line num="57" count="70" type="stmt"/>
1485
- <line num="59" count="1" type="stmt"/>
1486
- <line num="63" count="40" type="stmt"/>
1487
- <line num="64" count="7" type="stmt"/>
1488
- <line num="65" count="7" type="stmt"/>
1489
- <line num="66" count="7" type="stmt"/>
1490
- <line num="68" count="1" type="stmt"/>
1491
- <line num="72" count="40" type="stmt"/>
1492
- <line num="73" count="4" type="stmt"/>
1493
- <line num="74" count="4" type="stmt"/>
1494
- <line num="75" count="4" type="stmt"/>
1495
- <line num="77" count="0" type="stmt"/>
1496
- <line num="81" count="40" type="stmt"/>
1497
- <line num="82" count="18" type="stmt"/>
1498
- <line num="83" count="18" type="stmt"/>
1499
- <line num="84" count="18" type="stmt"/>
1500
- <line num="86" count="3" type="stmt"/>
1501
- <line num="90" count="40" type="stmt"/>
1502
- <line num="91" count="6" type="stmt"/>
1503
- <line num="92" count="6" type="stmt"/>
1504
- <line num="93" count="6" type="stmt"/>
1505
- <line num="95" count="6" type="cond" truecount="2" falsecount="0"/>
1506
- <line num="96" count="2" type="stmt"/>
1507
- <line num="97" count="2" type="stmt"/>
1508
- <line num="98" count="2" type="stmt"/>
1509
- <line num="99" count="3" type="cond" truecount="2" falsecount="0"/>
1510
- <line num="102" count="4" type="stmt"/>
1511
- <line num="103" count="3" type="stmt"/>
1512
- <line num="104" count="3" type="stmt"/>
1513
- <line num="105" count="3" type="cond" truecount="2" falsecount="0"/>
1514
- <line num="107" count="5" type="stmt"/>
1515
- <line num="109" count="5" type="cond" truecount="2" falsecount="0"/>
1516
- <line num="110" count="5" type="stmt"/>
1517
- <line num="113" count="40" type="stmt"/>
1518
- <line num="114" count="2" type="stmt"/>
1519
- <line num="115" count="2" type="stmt"/>
1520
- <line num="116" count="2" type="stmt"/>
1521
- <line num="117" count="2" type="stmt"/>
1522
- <line num="119" count="0" type="stmt"/>
1523
- <line num="123" count="40" type="stmt"/>
1524
- <line num="124" count="2" type="stmt"/>
1525
- <line num="125" count="2" type="stmt"/>
1526
- <line num="126" count="2" type="stmt"/>
1527
- <line num="128" count="0" type="stmt"/>
1528
- <line num="132" count="40" type="stmt"/>
1529
- <line num="133" count="2" type="stmt"/>
1530
- <line num="134" count="2" type="stmt"/>
1531
- <line num="135" count="2" type="stmt"/>
1532
- <line num="137" count="0" type="stmt"/>
1533
- <line num="141" count="40" type="stmt"/>
1534
- <line num="142" count="0" type="stmt"/>
1535
- <line num="143" count="0" type="stmt"/>
1536
- <line num="144" count="0" type="stmt"/>
1537
- <line num="146" count="0" type="stmt"/>
1538
- </file>
1539
1147
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internal.js">
1540
- <metrics statements="211" coveredstatements="170" conditionals="62" coveredconditionals="39" methods="26" coveredmethods="22"/>
1148
+ <metrics statements="212" coveredstatements="171" conditionals="64" coveredconditionals="40" methods="26" coveredmethods="22"/>
1541
1149
  <line num="1" count="40" type="stmt"/>
1542
1150
  <line num="8" count="40" type="stmt"/>
1543
1151
  <line num="9" count="40" type="stmt"/>
@@ -1604,18 +1212,18 @@
1604
1212
  <line num="137" count="0" type="stmt"/>
1605
1213
  <line num="140" count="5" type="stmt"/>
1606
1214
  <line num="146" count="40" type="stmt"/>
1607
- <line num="147" count="71" type="stmt"/>
1608
- <line num="148" count="71" type="stmt"/>
1609
- <line num="149" count="71" type="stmt"/>
1610
- <line num="151" count="71" type="cond" truecount="3" falsecount="1"/>
1611
- <line num="152" count="71" type="stmt"/>
1612
- <line num="156" count="71" type="stmt"/>
1613
- <line num="157" count="71" type="stmt"/>
1614
- <line num="158" count="71" type="stmt"/>
1615
- <line num="163" count="71" type="cond" truecount="1" falsecount="1"/>
1215
+ <line num="147" count="70" type="stmt"/>
1216
+ <line num="148" count="70" type="stmt"/>
1217
+ <line num="149" count="70" type="stmt"/>
1218
+ <line num="151" count="70" type="cond" truecount="3" falsecount="1"/>
1219
+ <line num="152" count="70" type="stmt"/>
1220
+ <line num="156" count="70" type="stmt"/>
1221
+ <line num="157" count="70" type="stmt"/>
1222
+ <line num="158" count="70" type="stmt"/>
1223
+ <line num="163" count="70" type="cond" truecount="1" falsecount="1"/>
1616
1224
  <line num="164" count="0" type="stmt"/>
1617
- <line num="168" count="71" type="stmt"/>
1618
- <line num="175" count="70" type="stmt"/>
1225
+ <line num="168" count="70" type="stmt"/>
1226
+ <line num="175" count="69" type="stmt"/>
1619
1227
  <line num="181" count="40" type="stmt"/>
1620
1228
  <line num="182" count="7" type="stmt"/>
1621
1229
  <line num="185" count="7" type="cond" truecount="2" falsecount="0"/>
@@ -1656,99 +1264,100 @@
1656
1264
  <line num="261" count="4" type="stmt"/>
1657
1265
  <line num="262" count="4" type="stmt"/>
1658
1266
  <line num="263" count="4" type="stmt"/>
1659
- <line num="265" count="3" type="cond" truecount="1" falsecount="1"/>
1660
- <line num="266" count="0" type="stmt"/>
1661
- <line num="268" count="3" type="stmt"/>
1662
- <line num="270" count="3" type="stmt"/>
1663
- <line num="272" count="3" type="stmt"/>
1664
- <line num="278" count="3" type="stmt"/>
1665
- <line num="280" count="3" type="stmt"/>
1666
- <line num="283" count="3" type="cond" truecount="1" falsecount="1"/>
1667
- <line num="284" count="0" type="stmt"/>
1668
- <line num="287" count="0" type="stmt"/>
1267
+ <line num="264" count="3" type="cond" truecount="1" falsecount="1"/>
1268
+ <line num="266" count="3" type="cond" truecount="1" falsecount="1"/>
1269
+ <line num="267" count="0" type="stmt"/>
1270
+ <line num="269" count="3" type="stmt"/>
1271
+ <line num="271" count="3" type="stmt"/>
1272
+ <line num="273" count="3" type="stmt"/>
1273
+ <line num="279" count="3" type="stmt"/>
1274
+ <line num="281" count="3" type="stmt"/>
1275
+ <line num="284" count="3" type="cond" truecount="1" falsecount="1"/>
1276
+ <line num="285" count="0" type="stmt"/>
1669
1277
  <line num="288" count="0" type="stmt"/>
1670
- <line num="290" count="3" type="stmt"/>
1671
- <line num="292" count="3" type="stmt"/>
1672
- <line num="295" count="40" type="stmt"/>
1673
- <line num="296" count="2" type="stmt"/>
1278
+ <line num="289" count="0" type="stmt"/>
1279
+ <line num="291" count="3" type="stmt"/>
1280
+ <line num="293" count="3" type="stmt"/>
1281
+ <line num="296" count="40" type="stmt"/>
1674
1282
  <line num="297" count="2" type="stmt"/>
1675
1283
  <line num="298" count="2" type="stmt"/>
1676
1284
  <line num="299" count="2" type="stmt"/>
1677
- <line num="303" count="2" type="stmt"/>
1678
- <line num="306" count="2" type="stmt"/>
1679
- <line num="307" count="3" type="stmt"/>
1680
- <line num="313" count="2" type="cond" truecount="1" falsecount="1"/>
1681
- <line num="314" count="0" type="stmt"/>
1682
- <line num="316" count="0" type="stmt"/>
1683
- <line num="319" count="0" type="stmt"/>
1684
- <line num="323" count="3" type="stmt"/>
1685
- <line num="326" count="2" type="stmt"/>
1285
+ <line num="300" count="2" type="stmt"/>
1286
+ <line num="304" count="2" type="stmt"/>
1287
+ <line num="307" count="2" type="stmt"/>
1288
+ <line num="308" count="3" type="stmt"/>
1289
+ <line num="314" count="2" type="cond" truecount="1" falsecount="1"/>
1290
+ <line num="315" count="0" type="stmt"/>
1291
+ <line num="317" count="0" type="stmt"/>
1292
+ <line num="320" count="0" type="stmt"/>
1293
+ <line num="324" count="3" type="stmt"/>
1686
1294
  <line num="327" count="2" type="stmt"/>
1687
1295
  <line num="328" count="2" type="stmt"/>
1688
1296
  <line num="329" count="2" type="stmt"/>
1689
- <line num="332" count="40" type="stmt"/>
1690
- <line num="334" count="2" type="cond" truecount="1" falsecount="1"/>
1691
- <line num="335" count="0" type="stmt"/>
1692
- <line num="338" count="2" type="stmt"/>
1297
+ <line num="330" count="2" type="stmt"/>
1298
+ <line num="333" count="40" type="stmt"/>
1299
+ <line num="335" count="2" type="cond" truecount="1" falsecount="1"/>
1300
+ <line num="336" count="0" type="stmt"/>
1693
1301
  <line num="339" count="2" type="stmt"/>
1694
1302
  <line num="340" count="2" type="stmt"/>
1695
1303
  <line num="341" count="2" type="stmt"/>
1696
1304
  <line num="342" count="2" type="stmt"/>
1697
- <line num="345" count="2" type="cond" truecount="1" falsecount="1"/>
1698
- <line num="346" count="0" type="stmt"/>
1699
- <line num="348" count="2" type="stmt"/>
1700
- <line num="352" count="2" type="cond" truecount="3" falsecount="1"/>
1701
- <line num="354" count="2" type="cond" truecount="1" falsecount="1"/>
1702
- <line num="355" count="0" type="stmt"/>
1703
- <line num="357" count="2" type="stmt"/>
1305
+ <line num="343" count="2" type="stmt"/>
1306
+ <line num="346" count="2" type="cond" truecount="1" falsecount="1"/>
1307
+ <line num="347" count="0" type="stmt"/>
1308
+ <line num="349" count="2" type="stmt"/>
1309
+ <line num="353" count="2" type="cond" truecount="3" falsecount="1"/>
1310
+ <line num="355" count="2" type="cond" truecount="1" falsecount="1"/>
1311
+ <line num="356" count="0" type="stmt"/>
1704
1312
  <line num="358" count="2" type="stmt"/>
1705
- <line num="361" count="2" type="stmt"/>
1706
- <line num="364" count="40" type="stmt"/>
1707
- <line num="365" count="2" type="stmt"/>
1708
- <line num="371" count="40" type="stmt"/>
1709
- <line num="372" count="0" type="stmt"/>
1313
+ <line num="359" count="2" type="stmt"/>
1314
+ <line num="362" count="2" type="stmt"/>
1315
+ <line num="365" count="40" type="stmt"/>
1316
+ <line num="366" count="2" type="stmt"/>
1317
+ <line num="372" count="40" type="stmt"/>
1710
1318
  <line num="373" count="0" type="stmt"/>
1711
1319
  <line num="374" count="0" type="stmt"/>
1712
1320
  <line num="375" count="0" type="stmt"/>
1713
1321
  <line num="376" count="0" type="stmt"/>
1714
- <line num="381" count="0" type="stmt"/>
1715
- <line num="383" count="0" type="stmt"/>
1716
- <line num="385" count="0" type="stmt"/>
1322
+ <line num="377" count="0" type="stmt"/>
1323
+ <line num="382" count="0" type="stmt"/>
1324
+ <line num="384" count="0" type="stmt"/>
1717
1325
  <line num="386" count="0" type="stmt"/>
1718
1326
  <line num="387" count="0" type="stmt"/>
1719
- <line num="390" count="0" type="stmt"/>
1327
+ <line num="388" count="0" type="stmt"/>
1720
1328
  <line num="391" count="0" type="stmt"/>
1721
- <line num="394" count="40" type="stmt"/>
1722
- <line num="395" count="2" type="stmt"/>
1329
+ <line num="392" count="0" type="stmt"/>
1330
+ <line num="395" count="40" type="stmt"/>
1723
1331
  <line num="396" count="2" type="stmt"/>
1724
1332
  <line num="397" count="2" type="stmt"/>
1725
- <line num="399" count="2" type="stmt"/>
1726
- <line num="404" count="2" type="stmt"/>
1727
- <line num="409" count="2" type="stmt"/>
1728
- <line num="412" count="1" type="stmt"/>
1729
- <line num="414" count="1" type="stmt"/>
1730
- <line num="416" count="2" type="stmt"/>
1333
+ <line num="398" count="2" type="stmt"/>
1334
+ <line num="400" count="2" type="stmt"/>
1335
+ <line num="405" count="2" type="stmt"/>
1336
+ <line num="410" count="2" type="stmt"/>
1337
+ <line num="413" count="1" type="stmt"/>
1338
+ <line num="415" count="1" type="stmt"/>
1731
1339
  <line num="417" count="2" type="stmt"/>
1732
1340
  <line num="418" count="2" type="stmt"/>
1733
- <line num="419" count="1" type="cond" truecount="1" falsecount="1"/>
1734
- <line num="420" count="0" type="stmt"/>
1735
- <line num="422" count="1" type="stmt"/>
1736
- <line num="423" count="1" type="cond" truecount="1" falsecount="1"/>
1737
- <line num="424" count="1" type="stmt"/>
1341
+ <line num="419" count="2" type="stmt"/>
1342
+ <line num="420" count="1" type="cond" truecount="1" falsecount="1"/>
1343
+ <line num="421" count="0" type="stmt"/>
1344
+ <line num="423" count="1" type="stmt"/>
1345
+ <line num="424" count="1" type="cond" truecount="1" falsecount="1"/>
1738
1346
  <line num="425" count="1" type="stmt"/>
1739
- <line num="427" count="0" type="stmt"/>
1740
- <line num="430" count="2" type="stmt"/>
1347
+ <line num="426" count="1" type="stmt"/>
1348
+ <line num="428" count="0" type="stmt"/>
1741
1349
  <line num="431" count="2" type="stmt"/>
1742
- <line num="433" count="1" type="stmt"/>
1743
- <line num="439" count="2" type="stmt"/>
1744
- <line num="440" count="5" type="stmt"/>
1745
- <line num="441" count="5" type="cond" truecount="2" falsecount="0"/>
1746
- <line num="443" count="1" type="stmt"/>
1350
+ <line num="432" count="2" type="stmt"/>
1351
+ <line num="434" count="1" type="stmt"/>
1352
+ <line num="440" count="2" type="stmt"/>
1353
+ <line num="441" count="5" type="stmt"/>
1354
+ <line num="442" count="5" type="cond" truecount="2" falsecount="0"/>
1747
1355
  <line num="444" count="1" type="stmt"/>
1748
1356
  <line num="445" count="1" type="stmt"/>
1749
- <line num="447" count="1" type="stmt"/>
1357
+ <line num="446" count="1" type="stmt"/>
1750
1358
  <line num="448" count="1" type="stmt"/>
1751
- <line num="452" count="2" type="stmt"/>
1359
+ <line num="449" count="1" type="stmt"/>
1360
+ <line num="453" count="2" type="stmt"/>
1752
1361
  </file>
1753
1362
  <file name="internalSearch.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internalSearch.js">
1754
1363
  <metrics statements="152" coveredstatements="93" conditionals="95" coveredconditionals="38" methods="33" coveredmethods="18"/>
@@ -1914,9 +1523,9 @@
1914
1523
  <line num="9" count="40" type="stmt"/>
1915
1524
  <line num="10" count="40" type="stmt"/>
1916
1525
  <line num="18" count="40" type="stmt"/>
1917
- <line num="19" count="80" type="stmt"/>
1918
- <line num="21" count="80" type="cond" truecount="1" falsecount="1"/>
1919
- <line num="22" count="80" type="stmt"/>
1526
+ <line num="19" count="79" type="stmt"/>
1527
+ <line num="21" count="79" type="cond" truecount="1" falsecount="1"/>
1528
+ <line num="22" count="79" type="stmt"/>
1920
1529
  <line num="24" count="0" type="stmt"/>
1921
1530
  <line num="25" count="0" type="cond" truecount="0" falsecount="2"/>
1922
1531
  <line num="29" count="0" type="stmt"/>
@@ -1951,11 +1560,11 @@
1951
1560
  <line num="98" count="0" type="stmt"/>
1952
1561
  <line num="102" count="0" type="stmt"/>
1953
1562
  <line num="111" count="40" type="stmt"/>
1954
- <line num="116" count="75" type="stmt"/>
1955
- <line num="117" count="75" type="stmt"/>
1956
- <line num="119" count="75" type="stmt"/>
1957
- <line num="123" count="75" type="stmt"/>
1958
- <line num="131" count="75" type="cond" truecount="3" falsecount="1"/>
1563
+ <line num="116" count="74" type="stmt"/>
1564
+ <line num="117" count="74" type="stmt"/>
1565
+ <line num="119" count="74" type="stmt"/>
1566
+ <line num="123" count="74" type="stmt"/>
1567
+ <line num="131" count="74" type="cond" truecount="3" falsecount="1"/>
1959
1568
  <line num="132" count="0" type="stmt"/>
1960
1569
  <line num="133" count="0" type="stmt"/>
1961
1570
  <line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
@@ -1964,12 +1573,12 @@
1964
1573
  <line num="140" count="0" type="stmt"/>
1965
1574
  <line num="141" count="0" type="stmt"/>
1966
1575
  <line num="143" count="0" type="stmt"/>
1967
- <line num="147" count="75" type="stmt"/>
1968
- <line num="149" count="75" type="stmt"/>
1969
- <line num="150" count="75" type="stmt"/>
1970
- <line num="152" count="75" type="cond" truecount="1" falsecount="1"/>
1971
- <line num="153" count="75" type="stmt"/>
1972
- <line num="155" count="75" type="stmt"/>
1576
+ <line num="147" count="74" type="stmt"/>
1577
+ <line num="149" count="74" type="stmt"/>
1578
+ <line num="150" count="74" type="stmt"/>
1579
+ <line num="152" count="74" type="cond" truecount="1" falsecount="1"/>
1580
+ <line num="153" count="74" type="stmt"/>
1581
+ <line num="155" count="74" type="stmt"/>
1973
1582
  </file>
1974
1583
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1975
1584
  <metrics statements="51" coveredstatements="35" conditionals="30" coveredconditionals="13" methods="6" coveredmethods="4"/>
@@ -1999,35 +1608,35 @@
1999
1608
  <line num="40" count="0" type="stmt"/>
2000
1609
  <line num="42" count="23" type="stmt"/>
2001
1610
  <line num="45" count="40" type="stmt"/>
2002
- <line num="46" count="79" type="cond" truecount="2" falsecount="0"/>
1611
+ <line num="46" count="78" type="cond" truecount="2" falsecount="0"/>
2003
1612
  <line num="47" count="2" type="stmt"/>
2004
1613
  <line num="48" count="2" type="stmt"/>
2005
- <line num="50" count="79" type="stmt"/>
2006
- <line num="51" count="79" type="stmt"/>
2007
- <line num="52" count="216" type="stmt"/>
2008
- <line num="53" count="216" type="stmt"/>
2009
- <line num="55" count="216" type="cond" truecount="1" falsecount="1"/>
1614
+ <line num="50" count="78" type="stmt"/>
1615
+ <line num="51" count="78" type="stmt"/>
1616
+ <line num="52" count="214" type="stmt"/>
1617
+ <line num="53" count="214" type="stmt"/>
1618
+ <line num="55" count="214" type="cond" truecount="1" falsecount="1"/>
2010
1619
  <line num="56" count="0" type="stmt"/>
2011
- <line num="59" count="216" type="cond" truecount="2" falsecount="2"/>
1620
+ <line num="59" count="214" type="cond" truecount="2" falsecount="2"/>
2012
1621
  <line num="60" count="0" type="stmt"/>
2013
- <line num="65" count="216" type="cond" truecount="2" falsecount="2"/>
1622
+ <line num="65" count="214" type="cond" truecount="2" falsecount="2"/>
2014
1623
  <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
2015
1624
  <line num="67" count="0" type="stmt"/>
2016
1625
  <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
2017
1626
  <line num="69" count="0" type="stmt"/>
2018
1627
  <line num="72" count="0" type="cond" truecount="0" falsecount="4"/>
2019
1628
  <line num="74" count="0" type="stmt"/>
2020
- <line num="76" count="216" type="cond" truecount="2" falsecount="2"/>
1629
+ <line num="76" count="214" type="cond" truecount="2" falsecount="2"/>
2021
1630
  <line num="78" count="0" type="stmt"/>
2022
1631
  <line num="79" count="0" type="stmt"/>
2023
1632
  <line num="81" count="0" type="stmt"/>
2024
- <line num="84" count="216" type="stmt"/>
2025
- <line num="86" count="216" type="cond" truecount="2" falsecount="0"/>
2026
- <line num="88" count="79" type="stmt"/>
1633
+ <line num="84" count="214" type="stmt"/>
1634
+ <line num="86" count="214" type="cond" truecount="2" falsecount="0"/>
1635
+ <line num="88" count="78" type="stmt"/>
2027
1636
  </file>
2028
1637
  </package>
2029
1638
  <package name="api.controllers.table">
2030
- <metrics statements="534" coveredstatements="285" conditionals="288" coveredconditionals="102" methods="78" coveredmethods="41"/>
1639
+ <metrics statements="269" coveredstatements="107" conditionals="159" coveredconditionals="41" methods="39" coveredmethods="19"/>
2031
1640
  <file name="bulkFormula.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/bulkFormula.js">
2032
1641
  <metrics statements="75" coveredstatements="52" conditionals="57" coveredconditionals="24" methods="16" coveredmethods="13"/>
2033
1642
  <line num="1" count="40" type="stmt"/>
@@ -2037,30 +1646,30 @@
2037
1646
  <line num="5" count="40" type="stmt"/>
2038
1647
  <line num="6" count="40" type="stmt"/>
2039
1648
  <line num="7" count="40" type="stmt"/>
2040
- <line num="10" count="1384" type="stmt"/>
2041
- <line num="21" count="271" type="stmt"/>
2042
- <line num="22" count="271" type="cond" truecount="1" falsecount="1"/>
2043
- <line num="23" count="271" type="stmt"/>
2044
- <line num="25" count="1115" type="cond" truecount="1" falsecount="1"/>
2045
- <line num="26" count="1115" type="stmt"/>
1649
+ <line num="10" count="1378" type="stmt"/>
1650
+ <line num="21" count="269" type="stmt"/>
1651
+ <line num="22" count="269" type="cond" truecount="1" falsecount="1"/>
1652
+ <line num="23" count="269" type="stmt"/>
1653
+ <line num="25" count="1111" type="cond" truecount="1" falsecount="1"/>
1654
+ <line num="26" count="1111" type="stmt"/>
2046
1655
  <line num="28" count="0" type="cond" truecount="0" falsecount="4"/>
2047
1656
  <line num="29" count="0" type="stmt"/>
2048
1657
  <line num="31" count="0" type="stmt"/>
2049
- <line num="33" count="271" type="stmt"/>
2050
- <line num="42" count="109" type="stmt"/>
2051
- <line num="43" count="251" type="stmt"/>
2052
- <line num="45" count="109" type="cond" truecount="2" falsecount="0"/>
2053
- <line num="46" count="109" type="stmt"/>
2054
- <line num="47" count="274" type="cond" truecount="2" falsecount="0"/>
2055
- <line num="50" count="109" type="stmt"/>
2056
- <line num="51" count="238" type="stmt"/>
2057
- <line num="53" count="238" type="cond" truecount="2" falsecount="0"/>
1658
+ <line num="33" count="269" type="stmt"/>
1659
+ <line num="42" count="108" type="stmt"/>
1660
+ <line num="43" count="249" type="stmt"/>
1661
+ <line num="45" count="108" type="cond" truecount="2" falsecount="0"/>
1662
+ <line num="46" count="108" type="stmt"/>
1663
+ <line num="47" count="272" type="cond" truecount="2" falsecount="0"/>
1664
+ <line num="50" count="108" type="stmt"/>
1665
+ <line num="51" count="236" type="stmt"/>
1666
+ <line num="53" count="236" type="cond" truecount="2" falsecount="0"/>
2058
1667
  <line num="54" count="2" type="stmt"/>
2059
- <line num="56" count="238" type="stmt"/>
2060
- <line num="57" count="238" type="cond" truecount="1" falsecount="1"/>
1668
+ <line num="56" count="236" type="stmt"/>
1669
+ <line num="57" count="236" type="cond" truecount="1" falsecount="1"/>
2061
1670
  <line num="58" count="0" type="stmt"/>
2062
- <line num="62" count="238" type="cond" truecount="1" falsecount="1"/>
2063
- <line num="63" count="238" type="stmt"/>
1671
+ <line num="62" count="236" type="cond" truecount="1" falsecount="1"/>
1672
+ <line num="63" count="236" type="stmt"/>
2064
1673
  <line num="65" count="0" type="stmt"/>
2065
1674
  <line num="66" count="0" type="stmt"/>
2066
1675
  <line num="67" count="0" type="stmt"/>
@@ -2071,20 +1680,20 @@
2071
1680
  <line num="75" count="0" type="stmt"/>
2072
1681
  <line num="82" count="0" type="cond" truecount="0" falsecount="2"/>
2073
1682
  <line num="83" count="0" type="stmt"/>
2074
- <line num="100" count="109" type="stmt"/>
2075
- <line num="102" count="109" type="stmt"/>
2076
- <line num="103" count="251" type="stmt"/>
2077
- <line num="106" count="109" type="stmt"/>
2078
- <line num="108" count="109" type="stmt"/>
2079
- <line num="109" count="276" type="stmt"/>
2080
- <line num="112" count="109" type="stmt"/>
2081
- <line num="113" count="145" type="cond" truecount="1" falsecount="1"/>
2082
- <line num="114" count="145" type="stmt"/>
1683
+ <line num="100" count="108" type="stmt"/>
1684
+ <line num="102" count="108" type="stmt"/>
1685
+ <line num="103" count="249" type="stmt"/>
1686
+ <line num="106" count="108" type="stmt"/>
1687
+ <line num="108" count="108" type="stmt"/>
1688
+ <line num="109" count="274" type="stmt"/>
1689
+ <line num="112" count="108" type="stmt"/>
1690
+ <line num="113" count="144" type="cond" truecount="1" falsecount="1"/>
1691
+ <line num="114" count="144" type="stmt"/>
2083
1692
  <line num="116" count="0" type="stmt"/>
2084
1693
  <line num="117" count="0" type="cond" truecount="0" falsecount="2"/>
2085
1694
  <line num="118" count="0" type="stmt"/>
2086
- <line num="122" count="109" type="cond" truecount="2" falsecount="0"/>
2087
- <line num="123" count="106" type="stmt"/>
1695
+ <line num="122" count="108" type="cond" truecount="2" falsecount="0"/>
1696
+ <line num="123" count="105" type="stmt"/>
2088
1697
  <line num="124" count="33" type="stmt"/>
2089
1698
  <line num="125" count="33" type="cond" truecount="3" falsecount="1"/>
2090
1699
  <line num="126" count="33" type="stmt"/>
@@ -2092,19 +1701,19 @@
2092
1701
  <line num="129" count="0" type="stmt"/>
2093
1702
  <line num="132" count="0" type="cond" truecount="0" falsecount="2"/>
2094
1703
  <line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
2095
- <line num="144" count="109" type="stmt"/>
2096
- <line num="145" count="192" type="stmt"/>
2097
- <line num="146" count="145" type="cond" truecount="3" falsecount="1"/>
1704
+ <line num="144" count="108" type="stmt"/>
1705
+ <line num="145" count="191" type="stmt"/>
1706
+ <line num="146" count="144" type="cond" truecount="3" falsecount="1"/>
2098
1707
  <line num="147" count="0" type="stmt"/>
2099
- <line num="154" count="106" type="stmt"/>
2100
- <line num="156" count="269" type="cond" truecount="1" falsecount="3"/>
2101
- <line num="162" count="106" type="cond" truecount="1" falsecount="1"/>
1708
+ <line num="154" count="105" type="stmt"/>
1709
+ <line num="156" count="267" type="cond" truecount="1" falsecount="3"/>
1710
+ <line num="162" count="105" type="cond" truecount="1" falsecount="1"/>
2102
1711
  <line num="163" count="0" type="stmt"/>
2103
1712
  <line num="167" count="40" type="stmt"/>
2104
- <line num="168" count="109" type="stmt"/>
2105
- <line num="169" count="109" type="stmt"/>
2106
- <line num="170" count="109" type="cond" truecount="2" falsecount="0"/>
2107
- <line num="171" count="106" type="stmt"/>
1713
+ <line num="168" count="108" type="stmt"/>
1714
+ <line num="169" count="108" type="stmt"/>
1715
+ <line num="170" count="108" type="cond" truecount="2" falsecount="0"/>
1716
+ <line num="171" count="105" type="stmt"/>
2108
1717
  </file>
2109
1718
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/external.js">
2110
1719
  <metrics statements="138" coveredstatements="11" conditionals="79" coveredconditionals="0" methods="14" coveredmethods="0"/>
@@ -2256,13 +1865,13 @@
2256
1865
  <line num="5" count="40" type="stmt"/>
2257
1866
  <line num="6" count="40" type="stmt"/>
2258
1867
  <line num="7" count="40" type="stmt"/>
2259
- <line num="10" count="109" type="cond" truecount="4" falsecount="0"/>
2260
- <line num="11" count="106" type="stmt"/>
2261
- <line num="13" count="109" type="cond" truecount="3" falsecount="1"/>
1868
+ <line num="10" count="108" type="cond" truecount="4" falsecount="0"/>
1869
+ <line num="11" count="105" type="stmt"/>
1870
+ <line num="13" count="108" type="cond" truecount="3" falsecount="1"/>
2262
1871
  <line num="14" count="0" type="stmt"/>
2263
- <line num="15" count="109" type="cond" truecount="3" falsecount="1"/>
1872
+ <line num="15" count="108" type="cond" truecount="3" falsecount="1"/>
2264
1873
  <line num="16" count="0" type="stmt"/>
2265
- <line num="18" count="109" type="stmt"/>
1874
+ <line num="18" count="108" type="stmt"/>
2266
1875
  <line num="22" count="40" type="stmt"/>
2267
1876
  <line num="23" count="2" type="stmt"/>
2268
1877
  <line num="25" count="2" type="stmt"/>
@@ -2277,13 +1886,13 @@
2277
1886
  <line num="51" count="20" type="stmt"/>
2278
1887
  <line num="52" count="20" type="stmt"/>
2279
1888
  <line num="55" count="40" type="stmt"/>
2280
- <line num="56" count="106" type="stmt"/>
2281
- <line num="57" count="106" type="stmt"/>
2282
- <line num="58" count="106" type="stmt"/>
2283
- <line num="59" count="106" type="stmt"/>
2284
- <line num="60" count="106" type="stmt"/>
2285
- <line num="61" count="106" type="cond" truecount="2" falsecount="0"/>
2286
- <line num="63" count="106" type="stmt"/>
1889
+ <line num="56" count="105" type="stmt"/>
1890
+ <line num="57" count="105" type="stmt"/>
1891
+ <line num="58" count="105" type="stmt"/>
1892
+ <line num="59" count="105" type="stmt"/>
1893
+ <line num="60" count="105" type="stmt"/>
1894
+ <line num="61" count="105" type="cond" truecount="2" falsecount="0"/>
1895
+ <line num="63" count="105" type="stmt"/>
2287
1896
  <line num="66" count="40" type="stmt"/>
2288
1897
  <line num="67" count="3" type="stmt"/>
2289
1898
  <line num="68" count="3" type="stmt"/>
@@ -2306,277 +1915,6 @@
2306
1915
  <line num="96" count="0" type="stmt"/>
2307
1916
  <line num="98" count="1" type="stmt"/>
2308
1917
  </file>
2309
- <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/internal.js">
2310
- <metrics statements="66" coveredstatements="50" conditionals="34" coveredconditionals="23" methods="5" coveredmethods="2"/>
2311
- <line num="1" count="40" type="stmt"/>
2312
- <line num="2" count="40" type="stmt"/>
2313
- <line num="3" count="40" type="stmt"/>
2314
- <line num="9" count="40" type="stmt"/>
2315
- <line num="10" count="40" type="stmt"/>
2316
- <line num="11" count="40" type="stmt"/>
2317
- <line num="12" count="40" type="stmt"/>
2318
- <line num="13" count="40" type="stmt"/>
2319
- <line num="14" count="40" type="stmt"/>
2320
- <line num="16" count="40" type="stmt"/>
2321
- <line num="17" count="106" type="stmt"/>
2322
- <line num="18" count="106" type="stmt"/>
2323
- <line num="19" count="106" type="stmt"/>
2324
- <line num="28" count="106" type="cond" truecount="4" falsecount="0"/>
2325
- <line num="29" count="5" type="stmt"/>
2326
- <line num="32" count="106" type="cond" truecount="1" falsecount="1"/>
2327
- <line num="33" count="0" type="stmt"/>
2328
- <line num="38" count="106" type="stmt"/>
2329
- <line num="43" count="106" type="stmt"/>
2330
- <line num="47" count="106" type="cond" truecount="4" falsecount="0"/>
2331
- <line num="48" count="5" type="stmt"/>
2332
- <line num="49" count="15" type="stmt"/>
2333
- <line num="50" count="15" type="cond" truecount="3" falsecount="1"/>
2334
- <line num="51" count="0" type="stmt"/>
2335
- <line num="57" count="106" type="stmt"/>
2336
- <line num="70" count="106" type="stmt"/>
2337
- <line num="73" count="106" type="stmt"/>
2338
- <line num="74" count="0" type="stmt"/>
2339
- <line num="75" count="0" type="cond" truecount="0" falsecount="2"/>
2340
- <line num="77" count="0" type="cond" truecount="0" falsecount="4"/>
2341
- <line num="78" count="0" type="stmt"/>
2342
- <line num="82" count="106" type="stmt"/>
2343
- <line num="83" count="106" type="stmt"/>
2344
- <line num="90" count="106" type="cond" truecount="4" falsecount="0"/>
2345
- <line num="91" count="5" type="stmt"/>
2346
- <line num="94" count="0" type="stmt"/>
2347
- <line num="99" count="106" type="stmt"/>
2348
- <line num="100" count="106" type="cond" truecount="4" falsecount="0"/>
2349
- <line num="101" count="1" type="stmt"/>
2350
- <line num="103" count="106" type="stmt"/>
2351
- <line num="104" count="106" type="stmt"/>
2352
- <line num="106" count="106" type="stmt"/>
2353
- <line num="108" count="106" type="stmt"/>
2354
- <line num="109" count="106" type="stmt"/>
2355
- <line num="112" count="40" type="stmt"/>
2356
- <line num="113" count="3" type="stmt"/>
2357
- <line num="114" count="3" type="stmt"/>
2358
- <line num="117" count="3" type="stmt"/>
2359
- <line num="122" count="3" type="stmt"/>
2360
- <line num="123" count="3" type="stmt"/>
2361
- <line num="126" count="3" type="stmt"/>
2362
- <line num="132" count="3" type="stmt"/>
2363
- <line num="135" count="3" type="cond" truecount="1" falsecount="1"/>
2364
- <line num="136" count="0" type="stmt"/>
2365
- <line num="137" count="0" type="stmt"/>
2366
- <line num="138" count="0" type="stmt"/>
2367
- <line num="140" count="0" type="cond" truecount="0" falsecount="2"/>
2368
- <line num="141" count="0" type="stmt"/>
2369
- <line num="146" count="3" type="stmt"/>
2370
- <line num="147" count="3" type="stmt"/>
2371
- <line num="148" count="3" type="stmt"/>
2372
- <line num="151" count="40" type="stmt"/>
2373
- <line num="152" count="0" type="stmt"/>
2374
- <line num="153" count="0" type="stmt"/>
2375
- <line num="154" count="0" type="stmt"/>
2376
- <line num="155" count="0" type="stmt"/>
2377
- </file>
2378
- <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/utils.js">
2379
- <metrics statements="199" coveredstatements="128" conditionals="95" coveredconditionals="38" methods="34" coveredmethods="20"/>
2380
- <line num="1" count="40" type="stmt"/>
2381
- <line num="8" count="40" type="stmt"/>
2382
- <line num="9" count="40" type="stmt"/>
2383
- <line num="10" count="40" type="stmt"/>
2384
- <line num="14" count="40" type="stmt"/>
2385
- <line num="19" count="40" type="stmt"/>
2386
- <line num="24" count="40" type="stmt"/>
2387
- <line num="25" count="40" type="stmt"/>
2388
- <line num="26" count="40" type="stmt"/>
2389
- <line num="27" count="40" type="stmt"/>
2390
- <line num="28" count="40" type="stmt"/>
2391
- <line num="29" count="40" type="stmt"/>
2392
- <line num="31" count="40" type="stmt"/>
2393
- <line num="32" count="0" type="stmt"/>
2394
- <line num="33" count="0" type="stmt"/>
2395
- <line num="38" count="0" type="stmt"/>
2396
- <line num="40" count="0" type="stmt"/>
2397
- <line num="41" count="0" type="stmt"/>
2398
- <line num="46" count="40" type="stmt"/>
2399
- <line num="47" count="106" type="stmt"/>
2400
- <line num="48" count="106" type="stmt"/>
2401
- <line num="49" count="106" type="stmt"/>
2402
- <line num="50" count="106" type="stmt"/>
2403
- <line num="51" count="106" type="cond" truecount="5" falsecount="0"/>
2404
- <line num="52" count="5" type="stmt"/>
2405
- <line num="53" count="13" type="stmt"/>
2406
- <line num="57" count="106" type="cond" truecount="4" falsecount="0"/>
2407
- <line num="59" count="1" type="stmt"/>
2408
- <line num="64" count="1" type="stmt"/>
2409
- <line num="65" count="1" type="stmt"/>
2410
- <line num="66" count="1" type="stmt"/>
2411
- <line num="67" count="1" type="cond" truecount="1" falsecount="1"/>
2412
- <line num="68" count="1" type="stmt"/>
2413
- <line num="69" count="1" type="stmt"/>
2414
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
2415
- <line num="71" count="0" type="stmt"/>
2416
- <line num="73" count="1" type="stmt"/>
2417
- <line num="77" count="1" type="stmt"/>
2418
- <line num="79" count="1" type="stmt"/>
2419
- <line num="80" count="1" type="stmt"/>
2420
- <line num="82" count="106" type="stmt"/>
2421
- <line num="86" count="40" type="stmt"/>
2422
- <line num="87" count="5" type="cond" truecount="1" falsecount="1"/>
2423
- <line num="88" count="0" type="stmt"/>
2424
- <line num="91" count="5" type="stmt"/>
2425
- <line num="94" count="5" type="stmt"/>
2426
- <line num="95" count="13" type="cond" truecount="1" falsecount="1"/>
2427
- <line num="100" count="0" type="stmt"/>
2428
- <line num="103" count="5" type="stmt"/>
2429
- <line num="106" count="40" type="stmt"/>
2430
- <line num="107" count="107" type="cond" truecount="4" falsecount="0"/>
2431
- <line num="108" count="106" type="stmt"/>
2432
- <line num="111" count="1" type="stmt"/>
2433
- <line num="113" count="1" type="stmt"/>
2434
- <line num="118" count="1" type="stmt"/>
2435
- <line num="119" count="1" type="stmt"/>
2436
- <line num="120" count="1" type="stmt"/>
2437
- <line num="121" count="1" type="stmt"/>
2438
- <line num="122" count="1" type="stmt"/>
2439
- <line num="123" count="1" type="stmt"/>
2440
- <line num="126" count="1" type="stmt"/>
2441
- <line num="127" count="1" type="stmt"/>
2442
- <line num="129" count="1" type="stmt"/>
2443
- <line num="131" count="4" type="cond" truecount="1" falsecount="1"/>
2444
- <line num="136" count="0" type="stmt"/>
2445
- <line num="143" count="1" type="stmt"/>
2446
- <line num="146" count="1" type="stmt"/>
2447
- <line num="149" count="1" type="stmt"/>
2448
- <line num="150" count="1" type="stmt"/>
2449
- <line num="151" count="1" type="stmt"/>
2450
- <line num="152" count="1" type="stmt"/>
2451
- <line num="153" count="1" type="stmt"/>
2452
- <line num="156" count="40" type="stmt"/>
2453
- <line num="157" count="106" type="stmt"/>
2454
- <line num="159" count="106" type="cond" truecount="4" falsecount="0"/>
2455
- <line num="160" count="2" type="stmt"/>
2456
- <line num="161" count="2" type="stmt"/>
2457
- <line num="163" count="2" type="stmt"/>
2458
- <line num="164" count="3" type="stmt"/>
2459
- <line num="167" count="2" type="cond" truecount="2" falsecount="0"/>
2460
- <line num="168" count="1" type="stmt"/>
2461
- <line num="169" count="1" type="stmt"/>
2462
- <line num="173" count="1" type="cond" truecount="1" falsecount="1"/>
2463
- <line num="174" count="1" type="stmt"/>
2464
- <line num="176" count="1" type="stmt"/>
2465
- <line num="187" count="1" type="stmt"/>
2466
- <line num="197" count="106" type="stmt"/>
2467
- <line num="200" count="40" type="stmt"/>
2468
- <line num="202" count="106" type="cond" truecount="2" falsecount="0"/>
2469
- <line num="203" count="1" type="stmt"/>
2470
- <line num="205" count="5" type="cond" truecount="1" falsecount="1"/>
2471
- <line num="206" count="5" type="stmt"/>
2472
- <line num="210" count="106" type="stmt"/>
2473
- <line num="215" count="106" type="stmt"/>
2474
- <line num="216" count="106" type="stmt"/>
2475
- <line num="217" count="106" type="stmt"/>
2476
- <line num="218" count="106" type="stmt"/>
2477
- <line num="220" count="106" type="stmt"/>
2478
- <line num="225" count="106" type="cond" truecount="2" falsecount="0"/>
2479
- <line num="226" count="5" type="stmt"/>
2480
- <line num="228" count="106" type="stmt"/>
2481
- <line num="229" count="106" type="stmt"/>
2482
- <line num="234" count="106" type="stmt"/>
2483
- <line num="235" count="106" type="stmt"/>
2484
- <line num="236" count="106" type="stmt"/>
2485
- <line num="241" count="106" type="stmt"/>
2486
- <line num="242" count="106" type="stmt"/>
2487
- <line num="243" count="106" type="stmt"/>
2488
- <line num="247" count="106" type="stmt"/>
2489
- <line num="251" count="40" type="stmt"/>
2490
- <line num="252" count="220" type="stmt"/>
2491
- <line num="253" count="220" type="stmt"/>
2492
- <line num="258" count="506" type="stmt"/>
2493
- <line num="265" count="40" type="stmt"/>
2494
- <line num="266" count="0" type="stmt"/>
2495
- <line num="267" count="0" type="stmt"/>
2496
- <line num="268" count="0" type="cond" truecount="0" falsecount="4"/>
2497
- <line num="269" count="0" type="stmt"/>
2498
- <line num="271" count="0" type="stmt"/>
2499
- <line num="274" count="40" type="stmt"/>
2500
- <line num="275" count="0" type="stmt"/>
2501
- <line num="276" count="0" type="stmt"/>
2502
- <line num="279" count="40" type="stmt"/>
2503
- <line num="280" count="31" type="stmt"/>
2504
- <line num="281" count="31" type="cond" truecount="1" falsecount="1"/>
2505
- <line num="282" count="0" type="stmt"/>
2506
- <line num="283" count="0" type="stmt"/>
2507
- <line num="284" count="0" type="stmt"/>
2508
- <line num="285" count="0" type="stmt"/>
2509
- <line num="287" count="31" type="stmt"/>
2510
- <line num="291" count="40" type="stmt"/>
2511
- <line num="292" count="1" type="stmt"/>
2512
- <line num="293" count="1" type="stmt"/>
2513
- <line num="296" count="1" type="stmt"/>
2514
- <line num="297" count="0" type="stmt"/>
2515
- <line num="300" count="0" type="cond" truecount="0" falsecount="2"/>
2516
- <line num="302" count="0" type="cond" truecount="0" falsecount="2"/>
2517
- <line num="303" count="0" type="stmt"/>
2518
- <line num="304" count="0" type="stmt"/>
2519
- <line num="308" count="0" type="cond" truecount="0" falsecount="2"/>
2520
- <line num="309" count="0" type="stmt"/>
2521
- <line num="310" count="0" type="stmt"/>
2522
- <line num="314" count="0" type="cond" truecount="0" falsecount="2"/>
2523
- <line num="315" count="0" type="stmt"/>
2524
- <line num="316" count="0" type="cond" truecount="0" falsecount="2"/>
2525
- <line num="317" count="0" type="stmt"/>
2526
- <line num="318" count="0" type="stmt"/>
2527
- <line num="322" count="0" type="cond" truecount="0" falsecount="2"/>
2528
- <line num="323" count="0" type="stmt"/>
2529
- <line num="325" count="0" type="cond" truecount="0" falsecount="2"/>
2530
- <line num="326" count="0" type="stmt"/>
2531
- <line num="327" count="0" type="stmt"/>
2532
- <line num="328" count="0" type="stmt"/>
2533
- <line num="329" count="0" type="stmt"/>
2534
- <line num="333" count="0" type="cond" truecount="0" falsecount="2"/>
2535
- <line num="334" count="0" type="stmt"/>
2536
- <line num="335" count="0" type="stmt"/>
2537
- <line num="339" count="0" type="cond" truecount="0" falsecount="4"/>
2538
- <line num="340" count="0" type="stmt"/>
2539
- <line num="341" count="0" type="stmt"/>
2540
- <line num="342" count="0" type="stmt"/>
2541
- <line num="344" count="0" type="cond" truecount="0" falsecount="2"/>
2542
- <line num="345" count="0" type="stmt"/>
2543
- <line num="352" count="0" type="cond" truecount="0" falsecount="2"/>
2544
- <line num="353" count="0" type="stmt"/>
2545
- <line num="354" count="0" type="stmt"/>
2546
- <line num="355" count="0" type="cond" truecount="0" falsecount="2"/>
2547
- <line num="356" count="0" type="stmt"/>
2548
- <line num="358" count="0" type="stmt"/>
2549
- <line num="363" count="40" type="stmt"/>
2550
- <line num="364" count="0" type="stmt"/>
2551
- <line num="367" count="40" type="stmt"/>
2552
- <line num="368" count="0" type="stmt"/>
2553
- <line num="371" count="40" type="cond" truecount="0" falsecount="1"/>
2554
- <line num="372" count="0" type="stmt"/>
2555
- <line num="377" count="0" type="cond" truecount="0" falsecount="2"/>
2556
- <line num="378" count="0" type="stmt"/>
2557
- <line num="380" count="0" type="stmt"/>
2558
- <line num="383" count="40" type="stmt"/>
2559
- <line num="384" count="0" type="cond" truecount="0" falsecount="2"/>
2560
- <line num="388" count="0" type="stmt"/>
2561
- <line num="390" count="0" type="stmt"/>
2562
- <line num="391" count="0" type="stmt"/>
2563
- <line num="392" count="0" type="stmt"/>
2564
- <line num="393" count="0" type="cond" truecount="0" falsecount="5"/>
2565
- <line num="394" count="0" type="stmt"/>
2566
- <line num="397" count="0" type="stmt"/>
2567
- <line num="400" count="40" type="stmt"/>
2568
- <line num="401" count="106" type="cond" truecount="2" falsecount="0"/>
2569
- <line num="402" count="101" type="stmt"/>
2570
- <line num="404" count="5" type="stmt"/>
2571
- <line num="405" count="13" type="stmt"/>
2572
- <line num="406" count="13" type="cond" truecount="2" falsecount="0"/>
2573
- <line num="407" count="7" type="stmt"/>
2574
- <line num="409" count="6" type="stmt"/>
2575
- <line num="410" count="6" type="cond" truecount="2" falsecount="2"/>
2576
- <line num="411" count="0" type="stmt"/>
2577
- <line num="414" count="5" type="stmt"/>
2578
- <line num="417" count="40" type="stmt"/>
2579
- </file>
2580
1918
  </package>
2581
1919
  <package name="api.controllers.view">
2582
1920
  <metrics statements="193" coveredstatements="143" conditionals="83" coveredconditionals="53" methods="25" coveredmethods="18"/>
@@ -2787,7 +2125,7 @@
2787
2125
  </file>
2788
2126
  </package>
2789
2127
  <package name="api.routes">
2790
- <metrics statements="251" coveredstatements="244" conditionals="6" coveredconditionals="3" methods="1" coveredmethods="1"/>
2128
+ <metrics statements="190" coveredstatements="183" conditionals="4" coveredconditionals="2" methods="1" coveredmethods="1"/>
2791
2129
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/analytics.js">
2792
2130
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2793
2131
  <line num="1" count="24" type="stmt"/>
@@ -2806,17 +2144,6 @@
2806
2144
  <line num="8" count="24" type="stmt"/>
2807
2145
  <line num="12" count="24" type="stmt"/>
2808
2146
  </file>
2809
- <file name="application.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/application.js">
2810
- <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2811
- <line num="1" count="24" type="stmt"/>
2812
- <line num="2" count="24" type="stmt"/>
2813
- <line num="3" count="24" type="stmt"/>
2814
- <line num="4" count="24" type="stmt"/>
2815
- <line num="5" count="24" type="stmt"/>
2816
- <line num="7" count="24" type="stmt"/>
2817
- <line num="9" count="24" type="stmt"/>
2818
- <line num="33" count="24" type="stmt"/>
2819
- </file>
2820
2147
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/auth.js">
2821
2148
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2822
2149
  <line num="1" count="24" type="stmt"/>
@@ -2889,54 +2216,20 @@
2889
2216
  <line num="8" count="24" type="stmt"/>
2890
2217
  <line num="17" count="24" type="stmt"/>
2891
2218
  </file>
2892
- <file name="dev.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/dev.js">
2893
- <metrics statements="12" coveredstatements="12" conditionals="4" coveredconditionals="2" methods="1" coveredmethods="1"/>
2894
- <line num="1" count="24" type="stmt"/>
2895
- <line num="2" count="24" type="stmt"/>
2896
- <line num="3" count="24" type="stmt"/>
2897
- <line num="4" count="24" type="stmt"/>
2898
- <line num="5" count="24" type="stmt"/>
2899
- <line num="7" count="24" type="stmt"/>
2900
- <line num="10" count="48" type="stmt"/>
2901
- <line num="16" count="24" type="cond" truecount="2" falsecount="2"/>
2902
- <line num="17" count="24" type="stmt"/>
2903
- <line num="18" count="24" type="stmt"/>
2904
- <line num="21" count="24" type="stmt"/>
2905
- <line num="26" count="24" type="stmt"/>
2906
- </file>
2907
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/index.js">
2908
- <metrics statements="31" coveredstatements="31" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2219
+ <file name="dev.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/dev.js">
2220
+ <metrics statements="12" coveredstatements="12" conditionals="4" coveredconditionals="2" methods="1" coveredmethods="1"/>
2909
2221
  <line num="1" count="24" type="stmt"/>
2910
2222
  <line num="2" count="24" type="stmt"/>
2911
2223
  <line num="3" count="24" type="stmt"/>
2912
2224
  <line num="4" count="24" type="stmt"/>
2913
2225
  <line num="5" count="24" type="stmt"/>
2914
- <line num="6" count="24" type="stmt"/>
2915
2226
  <line num="7" count="24" type="stmt"/>
2916
- <line num="8" count="24" type="stmt"/>
2917
- <line num="9" count="24" type="stmt"/>
2918
- <line num="10" count="24" type="stmt"/>
2919
- <line num="11" count="24" type="stmt"/>
2920
- <line num="12" count="24" type="stmt"/>
2921
- <line num="13" count="24" type="stmt"/>
2922
- <line num="14" count="24" type="stmt"/>
2923
- <line num="15" count="24" type="stmt"/>
2924
- <line num="16" count="24" type="stmt"/>
2227
+ <line num="10" count="48" type="stmt"/>
2228
+ <line num="16" count="24" type="cond" truecount="2" falsecount="2"/>
2925
2229
  <line num="17" count="24" type="stmt"/>
2926
2230
  <line num="18" count="24" type="stmt"/>
2927
- <line num="19" count="24" type="stmt"/>
2928
- <line num="20" count="24" type="stmt"/>
2929
2231
  <line num="21" count="24" type="stmt"/>
2930
- <line num="22" count="24" type="stmt"/>
2931
- <line num="23" count="24" type="stmt"/>
2932
- <line num="24" count="24" type="stmt"/>
2933
- <line num="25" count="24" type="stmt"/>
2934
2232
  <line num="26" count="24" type="stmt"/>
2935
- <line num="27" count="24" type="stmt"/>
2936
- <line num="28" count="24" type="stmt"/>
2937
- <line num="30" count="24" type="stmt"/>
2938
- <line num="61" count="24" type="stmt"/>
2939
- <line num="62" count="24" type="stmt"/>
2940
2233
  </file>
2941
2234
  <file name="integration.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/integration.js">
2942
2235
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3022,19 +2315,6 @@
3022
2315
  <line num="8" count="24" type="stmt"/>
3023
2316
  <line num="14" count="24" type="stmt"/>
3024
2317
  </file>
3025
- <file name="row.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/row.js">
3026
- <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3027
- <line num="1" count="24" type="stmt"/>
3028
- <line num="2" count="24" type="stmt"/>
3029
- <line num="3" count="24" type="stmt"/>
3030
- <line num="4" count="24" type="stmt"/>
3031
- <line num="8" count="24" type="stmt"/>
3032
- <line num="12" count="24" type="stmt"/>
3033
- <line num="13" count="24" type="stmt"/>
3034
- <line num="15" count="24" type="stmt"/>
3035
- <line num="17" count="24" type="stmt"/>
3036
- <line num="276" count="24" type="stmt"/>
3037
- </file>
3038
2318
  <file name="screen.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/screen.js">
3039
2319
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3040
2320
  <line num="1" count="24" type="stmt"/>
@@ -3056,21 +2336,6 @@
3056
2336
  <line num="8" count="0" type="stmt"/>
3057
2337
  <line num="10" count="0" type="stmt"/>
3058
2338
  </file>
3059
- <file name="static.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/static.js">
3060
- <metrics statements="12" coveredstatements="12" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
3061
- <line num="1" count="24" type="stmt"/>
3062
- <line num="2" count="24" type="stmt"/>
3063
- <line num="3" count="24" type="stmt"/>
3064
- <line num="4" count="24" type="stmt"/>
3065
- <line num="9" count="24" type="stmt"/>
3066
- <line num="10" count="24" type="stmt"/>
3067
- <line num="11" count="24" type="stmt"/>
3068
- <line num="13" count="24" type="stmt"/>
3069
- <line num="33" count="24" type="cond" truecount="1" falsecount="1"/>
3070
- <line num="34" count="24" type="stmt"/>
3071
- <line num="37" count="24" type="stmt"/>
3072
- <line num="55" count="24" type="stmt"/>
3073
- </file>
3074
2339
  <file name="table.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/table.js">
3075
2340
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3076
2341
  <line num="1" count="24" type="stmt"/>
@@ -3169,7 +2434,7 @@
3169
2434
  </file>
3170
2435
  </package>
3171
2436
  <package name="automations">
3172
- <metrics statements="224" coveredstatements="184" conditionals="96" coveredconditionals="77" methods="28" coveredmethods="22"/>
2437
+ <metrics statements="145" coveredstatements="121" conditionals="58" coveredconditionals="46" methods="18" coveredmethods="13"/>
3173
2438
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
3174
2439
  <metrics statements="24" coveredstatements="24" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
3175
2440
  <line num="1" count="40" type="stmt"/>
@@ -3202,29 +2467,29 @@
3202
2467
  <line num="1" count="40" type="stmt"/>
3203
2468
  <line num="2" count="40" type="stmt"/>
3204
2469
  <line num="20" count="40" type="stmt"/>
3205
- <line num="21" count="15" type="cond" truecount="2" falsecount="0"/>
2470
+ <line num="21" count="14" type="cond" truecount="2" falsecount="0"/>
3206
2471
  <line num="22" count="1" type="stmt"/>
3207
- <line num="24" count="14" type="stmt"/>
3208
- <line num="25" count="36" type="stmt"/>
3209
- <line num="26" count="36" type="cond" truecount="2" falsecount="0"/>
2472
+ <line num="24" count="13" type="stmt"/>
2473
+ <line num="25" count="33" type="stmt"/>
2474
+ <line num="26" count="33" type="cond" truecount="2" falsecount="0"/>
3210
2475
  <line num="27" count="6" type="stmt"/>
3211
- <line num="29" count="30" type="stmt"/>
3212
- <line num="30" count="30" type="cond" truecount="2" falsecount="0"/>
3213
- <line num="31" count="12" type="stmt"/>
3214
- <line num="33" count="18" type="cond" truecount="2" falsecount="0"/>
2476
+ <line num="29" count="27" type="stmt"/>
2477
+ <line num="30" count="27" type="cond" truecount="2" falsecount="0"/>
2478
+ <line num="31" count="11" type="stmt"/>
2479
+ <line num="33" count="16" type="cond" truecount="2" falsecount="0"/>
3215
2480
  <line num="34" count="2" type="stmt"/>
3216
2481
  <line num="35" count="2" type="cond" truecount="2" falsecount="0"/>
3217
2482
  <line num="36" count="1" type="stmt"/>
3218
2483
  <line num="38" count="2" type="cond" truecount="2" falsecount="0"/>
3219
2484
  <line num="39" count="1" type="stmt"/>
3220
- <line num="42" count="18" type="cond" truecount="2" falsecount="0"/>
2485
+ <line num="42" count="16" type="cond" truecount="2" falsecount="0"/>
3221
2486
  <line num="43" count="1" type="stmt"/>
3222
2487
  <line num="44" count="1" type="cond" truecount="1" falsecount="1"/>
3223
2488
  <line num="45" count="1" type="stmt"/>
3224
- <line num="49" count="14" type="stmt"/>
2489
+ <line num="49" count="13" type="stmt"/>
3225
2490
  <line num="61" count="40" type="stmt"/>
3226
- <line num="62" count="9" type="stmt"/>
3227
- <line num="63" count="8" type="stmt"/>
2491
+ <line num="62" count="8" type="stmt"/>
2492
+ <line num="63" count="7" type="stmt"/>
3228
2493
  <line num="66" count="40" type="stmt"/>
3229
2494
  <line num="67" count="3" type="cond" truecount="1" falsecount="1"/>
3230
2495
  <line num="68" count="0" type="stmt"/>
@@ -3295,16 +2560,16 @@
3295
2560
  <line num="11" count="39" type="stmt"/>
3296
2561
  <line num="13" count="39" type="stmt"/>
3297
2562
  <line num="14" count="39" type="stmt"/>
3298
- <line num="20" count="19" type="cond" truecount="1" falsecount="1"/>
2563
+ <line num="20" count="18" type="cond" truecount="1" falsecount="1"/>
3299
2564
  <line num="21" count="0" type="stmt"/>
3300
- <line num="24" count="19" type="stmt"/>
3301
- <line num="25" count="19" type="stmt"/>
3302
- <line num="26" count="19" type="stmt"/>
3303
- <line num="31" count="19" type="stmt"/>
2565
+ <line num="24" count="18" type="stmt"/>
2566
+ <line num="25" count="18" type="stmt"/>
2567
+ <line num="26" count="18" type="stmt"/>
2568
+ <line num="31" count="18" type="stmt"/>
3304
2569
  <line num="32" count="4" type="stmt"/>
3305
2570
  <line num="34" count="4" type="stmt"/>
3306
2571
  <line num="35" count="4" type="cond" truecount="2" falsecount="0"/>
3307
- <line num="38" count="19" type="stmt"/>
2572
+ <line num="38" count="18" type="stmt"/>
3308
2573
  <line num="39" count="4" type="stmt"/>
3309
2574
  <line num="40" count="4" type="cond" truecount="1" falsecount="1"/>
3310
2575
  <line num="44" count="4" type="cond" truecount="1" falsecount="1"/>
@@ -3312,7 +2577,7 @@
3312
2577
  <line num="51" count="4" type="cond" truecount="1" falsecount="1"/>
3313
2578
  <line num="55" count="4" type="stmt"/>
3314
2579
  <line num="61" count="39" type="stmt"/>
3315
- <line num="66" count="9" type="stmt"/>
2580
+ <line num="66" count="8" type="stmt"/>
3316
2581
  <line num="69" count="39" type="stmt"/>
3317
2582
  <line num="74" count="4" type="stmt"/>
3318
2583
  <line num="77" count="39" type="stmt"/>
@@ -3330,91 +2595,9 @@
3330
2595
  <line num="109" count="4" type="stmt"/>
3331
2596
  <line num="113" count="39" type="stmt"/>
3332
2597
  </file>
3333
- <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/utils.js">
3334
- <metrics statements="79" coveredstatements="63" conditionals="38" coveredconditionals="31" methods="10" coveredmethods="9"/>
3335
- <line num="1" count="39" type="stmt"/>
3336
- <line num="2" count="39" type="stmt"/>
3337
- <line num="3" count="39" type="stmt"/>
3338
- <line num="4" count="39" type="stmt"/>
3339
- <line num="5" count="39" type="stmt"/>
3340
- <line num="6" count="39" type="stmt"/>
3341
- <line num="7" count="39" type="stmt"/>
3342
- <line num="8" count="39" type="stmt"/>
3343
- <line num="9" count="39" type="stmt"/>
3344
- <line num="10" count="39" type="stmt"/>
3345
- <line num="11" count="39" type="stmt"/>
3346
- <line num="13" count="39" type="stmt"/>
3347
- <line num="14" count="39" type="stmt"/>
3348
- <line num="15" count="39" type="stmt"/>
3349
- <line num="17" count="39" type="stmt"/>
3350
- <line num="18" count="10" type="stmt"/>
3351
- <line num="20" count="10" type="stmt"/>
3352
- <line num="23" count="10" type="stmt"/>
3353
- <line num="25" count="0" type="stmt"/>
3354
- <line num="26" count="0" type="stmt"/>
3355
- <line num="29" count="0" type="stmt"/>
3356
- <line num="30" count="0" type="stmt"/>
3357
- <line num="34" count="39" type="stmt"/>
3358
- <line num="35" count="2" type="stmt"/>
3359
- <line num="39" count="2" type="cond" truecount="3" falsecount="1"/>
3360
- <line num="40" count="0" type="stmt"/>
3361
- <line num="42" count="2" type="stmt"/>
3362
- <line num="46" count="2" type="stmt"/>
3363
- <line num="51" count="39" type="stmt"/>
3364
- <line num="52" count="78" type="stmt"/>
3365
- <line num="53" count="78" type="stmt"/>
3366
- <line num="54" count="897" type="cond" truecount="2" falsecount="0"/>
3367
- <line num="55" count="39" type="stmt"/>
3368
- <line num="58" count="78" type="stmt"/>
3369
- <line num="62" count="39" type="stmt"/>
3370
- <line num="63" count="204" type="stmt"/>
3371
- <line num="64" count="204" type="stmt"/>
3372
- <line num="65" count="204" type="stmt"/>
3373
- <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
3374
- <line num="67" count="0" type="stmt"/>
3375
- <line num="68" count="0" type="stmt"/>
3376
- <line num="71" count="204" type="stmt"/>
3377
- <line num="79" count="39" type="stmt"/>
3378
- <line num="80" count="1" type="cond" truecount="1" falsecount="1"/>
3379
- <line num="82" count="1" type="stmt"/>
3380
- <line num="89" count="1" type="cond" truecount="1" falsecount="1"/>
3381
- <line num="91" count="0" type="stmt"/>
3382
- <line num="92" count="0" type="stmt"/>
3383
- <line num="100" count="0" type="stmt"/>
3384
- <line num="104" count="0" type="stmt"/>
3385
- <line num="105" count="0" type="stmt"/>
3386
- <line num="106" count="0" type="stmt"/>
3387
- <line num="107" count="0" type="stmt"/>
3388
- <line num="109" count="1" type="stmt"/>
3389
- <line num="120" count="39" type="stmt"/>
3390
- <line num="121" count="23" type="stmt"/>
3391
- <line num="122" count="23" type="cond" truecount="2" falsecount="0"/>
3392
- <line num="123" count="23" type="cond" truecount="2" falsecount="0"/>
3393
- <line num="125" count="23" type="cond" truecount="3" falsecount="0"/>
3394
- <line num="127" count="70" type="stmt"/>
3395
- <line num="134" count="23" type="cond" truecount="2" falsecount="0"/>
3396
- <line num="139" count="1" type="stmt"/>
3397
- <line num="140" count="1" type="stmt"/>
3398
- <line num="142" count="1" type="stmt"/>
3399
- <line num="143" count="1" type="stmt"/>
3400
- <line num="148" count="1" type="cond" truecount="1" falsecount="1"/>
3401
- <line num="149" count="1" type="stmt"/>
3402
- <line num="150" count="1" type="stmt"/>
3403
- <line num="152" count="1" type="stmt"/>
3404
- <line num="158" count="23" type="cond" truecount="2" falsecount="0"/>
3405
- <line num="162" count="1" type="stmt"/>
3406
- <line num="172" count="1" type="stmt"/>
3407
- <line num="173" count="1" type="stmt"/>
3408
- <line num="174" count="1" type="stmt"/>
3409
- <line num="178" count="1" type="stmt"/>
3410
- <line num="179" count="1" type="stmt"/>
3411
- <line num="184" count="23" type="stmt"/>
3412
- <line num="192" count="39" type="stmt"/>
3413
- <line num="193" count="0" type="stmt"/>
3414
- </file>
3415
2598
  </package>
3416
2599
  <package name="automations.steps">
3417
- <metrics statements="240" coveredstatements="177" conditionals="86" coveredconditionals="60" methods="20" coveredmethods="11"/>
2600
+ <metrics statements="210" coveredstatements="147" conditionals="78" coveredconditionals="52" methods="18" coveredmethods="9"/>
3418
2601
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
3419
2602
  <metrics statements="16" coveredstatements="5" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
3420
2603
  <line num="1" count="40" type="stmt"/>
@@ -3434,25 +2617,6 @@
3434
2617
  <line num="60" count="0" type="stmt"/>
3435
2618
  <line num="65" count="0" type="stmt"/>
3436
2619
  </file>
3437
- <file name="createRow.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/createRow.js">
3438
- <metrics statements="16" coveredstatements="16" conditionals="4" coveredconditionals="4" methods="1" coveredmethods="1"/>
3439
- <line num="1" count="40" type="stmt"/>
3440
- <line num="2" count="40" type="stmt"/>
3441
- <line num="3" count="40" type="stmt"/>
3442
- <line num="4" count="40" type="stmt"/>
3443
- <line num="6" count="40" type="stmt"/>
3444
- <line num="62" count="40" type="stmt"/>
3445
- <line num="63" count="9" type="cond" truecount="4" falsecount="0"/>
3446
- <line num="64" count="1" type="stmt"/>
3447
- <line num="72" count="8" type="stmt"/>
3448
- <line num="79" count="8" type="stmt"/>
3449
- <line num="80" count="8" type="stmt"/>
3450
- <line num="84" count="7" type="stmt"/>
3451
- <line num="85" count="7" type="stmt"/>
3452
- <line num="86" count="7" type="stmt"/>
3453
- <line num="87" count="7" type="stmt"/>
3454
- <line num="95" count="1" type="stmt"/>
3455
- </file>
3456
2620
  <file name="delay.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/delay.js">
3457
2621
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3458
2622
  <line num="1" count="40" type="stmt"/>
@@ -3461,23 +2625,6 @@
3461
2625
  <line num="35" count="1" type="stmt"/>
3462
2626
  <line num="36" count="1" type="stmt"/>
3463
2627
  </file>
3464
- <file name="deleteRow.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/deleteRow.js">
3465
- <metrics statements="14" coveredstatements="14" conditionals="4" coveredconditionals="4" methods="1" coveredmethods="1"/>
3466
- <line num="1" count="40" type="stmt"/>
3467
- <line num="2" count="40" type="stmt"/>
3468
- <line num="3" count="40" type="stmt"/>
3469
- <line num="4" count="40" type="stmt"/>
3470
- <line num="6" count="40" type="stmt"/>
3471
- <line num="55" count="40" type="stmt"/>
3472
- <line num="56" count="4" type="cond" truecount="4" falsecount="0"/>
3473
- <line num="57" count="1" type="stmt"/>
3474
- <line num="65" count="3" type="stmt"/>
3475
- <line num="75" count="3" type="stmt"/>
3476
- <line num="76" count="3" type="stmt"/>
3477
- <line num="77" count="3" type="stmt"/>
3478
- <line num="78" count="2" type="stmt"/>
3479
- <line num="84" count="1" type="stmt"/>
3480
- </file>
3481
2628
  <file name="discord.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/discord.js">
3482
2629
  <metrics statements="14" coveredstatements="6" conditionals="6" coveredconditionals="0" methods="1" coveredmethods="0"/>
3483
2630
  <line num="1" count="40" type="stmt"/>
@@ -3690,13 +2837,13 @@
3690
2837
  <line num="12" count="0" type="stmt"/>
3691
2838
  <line num="14" count="2" type="stmt"/>
3692
2839
  <line num="20" count="40" type="cond" truecount="0" falsecount="1"/>
3693
- <line num="21" count="15" type="stmt"/>
2840
+ <line num="21" count="14" type="stmt"/>
3694
2841
  <line num="26" count="1" type="stmt"/>
3695
- <line num="29" count="15" type="cond" truecount="2" falsecount="0"/>
3696
- <line num="30" count="14" type="stmt"/>
3697
- <line num="32" count="15" type="cond" truecount="1" falsecount="1"/>
3698
- <line num="33" count="15" type="stmt"/>
3699
- <line num="35" count="15" type="stmt"/>
2842
+ <line num="29" count="14" type="cond" truecount="2" falsecount="0"/>
2843
+ <line num="30" count="13" type="stmt"/>
2844
+ <line num="32" count="14" type="cond" truecount="1" falsecount="1"/>
2845
+ <line num="33" count="14" type="stmt"/>
2846
+ <line num="35" count="14" type="stmt"/>
3700
2847
  </file>
3701
2848
  <file name="zapier.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/zapier.js">
3702
2849
  <metrics statements="8" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3751,33 +2898,33 @@
3751
2898
  <metrics statements="34" coveredstatements="34" conditionals="2" coveredconditionals="1" methods="2" coveredmethods="2"/>
3752
2899
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3753
2900
  <metrics statements="27" coveredstatements="27" conditionals="2" coveredconditionals="1" methods="1" coveredmethods="1"/>
3754
- <line num="1" count="48" type="stmt"/>
3755
- <line num="2" count="48" type="stmt"/>
3756
- <line num="3" count="48" type="stmt"/>
3757
- <line num="5" count="48" type="stmt"/>
3758
- <line num="9" count="48" type="stmt"/>
3759
- <line num="22" count="48" type="stmt"/>
3760
- <line num="23" count="48" type="stmt"/>
3761
- <line num="32" count="48" type="stmt"/>
3762
- <line num="48" count="48" type="stmt"/>
3763
- <line num="54" count="48" type="stmt"/>
3764
- <line num="55" count="96" type="cond" truecount="1" falsecount="1"/>
3765
- <line num="58" count="48" type="stmt"/>
3766
- <line num="64" count="48" type="stmt"/>
3767
- <line num="69" count="48" type="stmt"/>
3768
- <line num="75" count="48" type="stmt"/>
3769
- <line num="86" count="48" type="stmt"/>
3770
- <line num="90" count="48" type="stmt"/>
3771
- <line num="95" count="48" type="stmt"/>
3772
- <line num="157" count="48" type="stmt"/>
3773
- <line num="165" count="48" type="stmt"/>
3774
- <line num="166" count="48" type="stmt"/>
3775
- <line num="173" count="48" type="stmt"/>
3776
- <line num="178" count="48" type="stmt"/>
3777
- <line num="184" count="48" type="stmt"/>
3778
- <line num="189" count="48" type="stmt"/>
3779
- <line num="193" count="48" type="stmt"/>
3780
- <line num="200" count="48" type="stmt"/>
2901
+ <line num="1" count="47" type="stmt"/>
2902
+ <line num="2" count="47" type="stmt"/>
2903
+ <line num="3" count="47" type="stmt"/>
2904
+ <line num="5" count="47" type="stmt"/>
2905
+ <line num="9" count="47" type="stmt"/>
2906
+ <line num="22" count="47" type="stmt"/>
2907
+ <line num="23" count="47" type="stmt"/>
2908
+ <line num="32" count="47" type="stmt"/>
2909
+ <line num="48" count="47" type="stmt"/>
2910
+ <line num="54" count="47" type="stmt"/>
2911
+ <line num="55" count="94" type="cond" truecount="1" falsecount="1"/>
2912
+ <line num="58" count="47" type="stmt"/>
2913
+ <line num="64" count="47" type="stmt"/>
2914
+ <line num="69" count="47" type="stmt"/>
2915
+ <line num="75" count="47" type="stmt"/>
2916
+ <line num="86" count="47" type="stmt"/>
2917
+ <line num="90" count="47" type="stmt"/>
2918
+ <line num="95" count="47" type="stmt"/>
2919
+ <line num="157" count="47" type="stmt"/>
2920
+ <line num="165" count="47" type="stmt"/>
2921
+ <line num="166" count="47" type="stmt"/>
2922
+ <line num="173" count="47" type="stmt"/>
2923
+ <line num="178" count="47" type="stmt"/>
2924
+ <line num="184" count="47" type="stmt"/>
2925
+ <line num="189" count="47" type="stmt"/>
2926
+ <line num="193" count="47" type="stmt"/>
2927
+ <line num="200" count="47" type="stmt"/>
3781
2928
  </file>
3782
2929
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3783
2930
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3797,23 +2944,23 @@
3797
2944
  <metrics statements="158" coveredstatements="131" conditionals="63" coveredconditionals="22" methods="37" coveredmethods="28"/>
3798
2945
  <file name="client.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/client.js">
3799
2946
  <metrics statements="17" coveredstatements="17" conditionals="4" coveredconditionals="3" methods="0" coveredmethods="0"/>
3800
- <line num="1" count="43" type="stmt"/>
3801
- <line num="2" count="43" type="stmt"/>
3802
- <line num="3" count="43" type="stmt"/>
3803
- <line num="4" count="43" type="stmt"/>
3804
- <line num="5" count="43" type="stmt"/>
3805
- <line num="6" count="43" type="stmt"/>
3806
- <line num="8" count="43" type="cond" truecount="2" falsecount="0"/>
3807
- <line num="10" count="43" type="stmt"/>
3808
- <line num="11" count="43" type="stmt"/>
3809
- <line num="12" count="43" type="stmt"/>
3810
- <line num="14" count="43" type="stmt"/>
3811
- <line num="18" count="43" type="cond" truecount="1" falsecount="1"/>
3812
- <line num="19" count="43" type="stmt"/>
3813
- <line num="20" count="43" type="stmt"/>
3814
- <line num="26" count="43" type="stmt"/>
3815
- <line num="29" count="43" type="stmt"/>
3816
- <line num="31" count="43" type="stmt"/>
2947
+ <line num="1" count="42" type="stmt"/>
2948
+ <line num="2" count="42" type="stmt"/>
2949
+ <line num="3" count="42" type="stmt"/>
2950
+ <line num="4" count="42" type="stmt"/>
2951
+ <line num="5" count="42" type="stmt"/>
2952
+ <line num="6" count="42" type="stmt"/>
2953
+ <line num="8" count="42" type="cond" truecount="2" falsecount="0"/>
2954
+ <line num="10" count="42" type="stmt"/>
2955
+ <line num="11" count="42" type="stmt"/>
2956
+ <line num="12" count="42" type="stmt"/>
2957
+ <line num="14" count="42" type="stmt"/>
2958
+ <line num="18" count="42" type="cond" truecount="1" falsecount="1"/>
2959
+ <line num="19" count="42" type="stmt"/>
2960
+ <line num="20" count="42" type="stmt"/>
2961
+ <line num="26" count="42" type="stmt"/>
2962
+ <line num="29" count="42" type="stmt"/>
2963
+ <line num="31" count="42" type="stmt"/>
3817
2964
  </file>
3818
2965
  <file name="inMemoryView.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/inMemoryView.js">
3819
2966
  <metrics statements="23" coveredstatements="6" conditionals="8" coveredconditionals="0" methods="4" coveredmethods="0"/>
@@ -3843,129 +2990,129 @@
3843
2990
  </file>
3844
2991
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/index.js">
3845
2992
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3846
- <line num="1" count="43" type="stmt"/>
3847
- <line num="3" count="43" type="stmt"/>
2993
+ <line num="1" count="42" type="stmt"/>
2994
+ <line num="3" count="42" type="stmt"/>
3848
2995
  </file>
3849
2996
  <file name="newid.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/newid.js">
3850
2997
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3851
- <line num="1" count="55" type="stmt"/>
3852
- <line num="3" count="55" type="stmt"/>
3853
- <line num="4" count="995" type="stmt"/>
2998
+ <line num="1" count="54" type="stmt"/>
2999
+ <line num="3" count="54" type="stmt"/>
3000
+ <line num="4" count="990" type="stmt"/>
3854
3001
  </file>
3855
3002
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3856
3003
  <metrics statements="113" coveredstatements="103" conditionals="51" coveredconditionals="19" methods="32" coveredmethods="27"/>
3857
- <line num="1" count="55" type="stmt"/>
3858
- <line num="12" count="55" type="stmt"/>
3859
- <line num="14" count="55" type="stmt"/>
3860
- <line num="16" count="55" type="stmt"/>
3861
- <line num="22" count="55" type="stmt"/>
3862
- <line num="46" count="55" type="stmt"/>
3863
- <line num="51" count="55" type="stmt"/>
3864
- <line num="55" count="55" type="stmt"/>
3865
- <line num="59" count="55" type="stmt"/>
3866
- <line num="61" count="55" type="stmt"/>
3867
- <line num="69" count="55" type="stmt"/>
3868
- <line num="70" count="55" type="stmt"/>
3869
- <line num="71" count="55" type="stmt"/>
3870
- <line num="72" count="55" type="stmt"/>
3871
- <line num="73" count="55" type="stmt"/>
3872
- <line num="74" count="55" type="stmt"/>
3873
- <line num="75" count="55" type="stmt"/>
3874
- <line num="76" count="55" type="stmt"/>
3875
- <line num="77" count="55" type="stmt"/>
3876
- <line num="78" count="55" type="stmt"/>
3877
- <line num="79" count="55" type="stmt"/>
3878
- <line num="80" count="55" type="stmt"/>
3879
- <line num="81" count="55" type="stmt"/>
3880
- <line num="82" count="55" type="stmt"/>
3881
- <line num="84" count="55" type="stmt"/>
3882
- <line num="85" count="55" type="stmt"/>
3883
- <line num="87" count="55" type="stmt"/>
3004
+ <line num="1" count="54" type="stmt"/>
3005
+ <line num="12" count="54" type="stmt"/>
3006
+ <line num="14" count="54" type="stmt"/>
3007
+ <line num="16" count="54" type="stmt"/>
3008
+ <line num="22" count="54" type="stmt"/>
3009
+ <line num="46" count="54" type="stmt"/>
3010
+ <line num="51" count="54" type="stmt"/>
3011
+ <line num="55" count="54" type="stmt"/>
3012
+ <line num="59" count="54" type="stmt"/>
3013
+ <line num="61" count="54" type="stmt"/>
3014
+ <line num="69" count="54" type="stmt"/>
3015
+ <line num="70" count="54" type="stmt"/>
3016
+ <line num="71" count="54" type="stmt"/>
3017
+ <line num="72" count="54" type="stmt"/>
3018
+ <line num="73" count="54" type="stmt"/>
3019
+ <line num="74" count="54" type="stmt"/>
3020
+ <line num="75" count="54" type="stmt"/>
3021
+ <line num="76" count="54" type="stmt"/>
3022
+ <line num="77" count="54" type="stmt"/>
3023
+ <line num="78" count="54" type="stmt"/>
3024
+ <line num="79" count="54" type="stmt"/>
3025
+ <line num="80" count="54" type="stmt"/>
3026
+ <line num="81" count="54" type="stmt"/>
3027
+ <line num="82" count="54" type="stmt"/>
3028
+ <line num="84" count="54" type="stmt"/>
3029
+ <line num="85" count="54" type="stmt"/>
3030
+ <line num="87" count="54" type="stmt"/>
3884
3031
  <line num="88" count="74" type="stmt"/>
3885
- <line num="104" count="897" type="cond" truecount="2" falsecount="0"/>
3886
- <line num="105" count="882" type="stmt"/>
3887
- <line num="107" count="897" type="stmt"/>
3888
- <line num="114" count="55" type="stmt"/>
3889
- <line num="119" count="55" type="cond" truecount="0" falsecount="2"/>
3890
- <line num="120" count="222" type="stmt"/>
3891
- <line num="127" count="55" type="stmt"/>
3892
- <line num="128" count="106" type="stmt"/>
3893
- <line num="139" count="55" type="cond" truecount="0" falsecount="3"/>
3894
- <line num="140" count="16" type="cond" truecount="2" falsecount="0"/>
3895
- <line num="141" count="4" type="stmt"/>
3032
+ <line num="104" count="903" type="cond" truecount="2" falsecount="0"/>
3033
+ <line num="105" count="888" type="stmt"/>
3034
+ <line num="107" count="903" type="stmt"/>
3035
+ <line num="114" count="54" type="stmt"/>
3036
+ <line num="119" count="54" type="cond" truecount="0" falsecount="2"/>
3037
+ <line num="120" count="220" type="stmt"/>
3038
+ <line num="127" count="54" type="stmt"/>
3039
+ <line num="128" count="105" type="stmt"/>
3040
+ <line num="139" count="54" type="cond" truecount="0" falsecount="3"/>
3041
+ <line num="140" count="28" type="cond" truecount="2" falsecount="0"/>
3042
+ <line num="141" count="16" type="stmt"/>
3896
3043
  <line num="144" count="12" type="cond" truecount="1" falsecount="1"/>
3897
3044
  <line num="146" count="12" type="stmt"/>
3898
- <line num="154" count="55" type="stmt"/>
3045
+ <line num="154" count="54" type="stmt"/>
3899
3046
  <line num="155" count="0" type="stmt"/>
3900
3047
  <line num="158" count="0" type="stmt"/>
3901
- <line num="167" count="55" type="cond" truecount="1" falsecount="0"/>
3902
- <line num="168" count="265" type="cond" truecount="2" falsecount="0"/>
3903
- <line num="169" count="265" type="stmt"/>
3904
- <line num="175" count="55" type="cond" truecount="0" falsecount="2"/>
3048
+ <line num="167" count="54" type="cond" truecount="1" falsecount="0"/>
3049
+ <line num="168" count="264" type="cond" truecount="2" falsecount="0"/>
3050
+ <line num="169" count="264" type="stmt"/>
3051
+ <line num="175" count="54" type="cond" truecount="0" falsecount="2"/>
3905
3052
  <line num="176" count="3" type="stmt"/>
3906
- <line num="184" count="55" type="stmt"/>
3053
+ <line num="184" count="54" type="stmt"/>
3907
3054
  <line num="185" count="193" type="stmt"/>
3908
- <line num="191" count="55" type="stmt"/>
3055
+ <line num="191" count="54" type="stmt"/>
3909
3056
  <line num="192" count="2" type="stmt"/>
3910
3057
  <line num="193" count="2" type="cond" truecount="4" falsecount="0"/>
3911
3058
  <line num="194" count="1" type="stmt"/>
3912
3059
  <line num="196" count="1" type="stmt"/>
3913
- <line num="202" count="55" type="cond" truecount="0" falsecount="2"/>
3914
- <line num="203" count="225" type="stmt"/>
3915
- <line num="210" count="55" type="stmt"/>
3060
+ <line num="202" count="54" type="cond" truecount="0" falsecount="2"/>
3061
+ <line num="203" count="223" type="stmt"/>
3062
+ <line num="210" count="54" type="stmt"/>
3916
3063
  <line num="211" count="20" type="stmt"/>
3917
- <line num="225" count="55" type="stmt"/>
3064
+ <line num="225" count="54" type="stmt"/>
3918
3065
  <line num="233" count="9" type="stmt"/>
3919
3066
  <line num="234" count="9" type="stmt"/>
3920
3067
  <line num="235" count="9" type="stmt"/>
3921
3068
  <line num="236" count="9" type="stmt"/>
3922
- <line num="242" count="55" type="cond" truecount="0" falsecount="1"/>
3069
+ <line num="242" count="54" type="cond" truecount="0" falsecount="1"/>
3923
3070
  <line num="243" count="0" type="stmt"/>
3924
- <line num="250" count="55" type="cond" truecount="0" falsecount="1"/>
3925
- <line num="251" count="198" type="stmt"/>
3926
- <line num="252" count="198" type="cond" truecount="1" falsecount="1"/>
3071
+ <line num="250" count="54" type="cond" truecount="0" falsecount="1"/>
3072
+ <line num="251" count="197" type="stmt"/>
3073
+ <line num="252" count="197" type="cond" truecount="1" falsecount="1"/>
3927
3074
  <line num="253" count="0" type="stmt"/>
3928
- <line num="255" count="198" type="stmt"/>
3929
- <line num="262" count="55" type="stmt"/>
3930
- <line num="263" count="198" type="stmt"/>
3931
- <line num="264" count="198" type="stmt"/>
3932
- <line num="265" count="198" type="stmt"/>
3933
- <line num="272" count="55" type="stmt"/>
3075
+ <line num="255" count="197" type="stmt"/>
3076
+ <line num="262" count="54" type="stmt"/>
3077
+ <line num="263" count="197" type="stmt"/>
3078
+ <line num="264" count="197" type="stmt"/>
3079
+ <line num="265" count="197" type="stmt"/>
3080
+ <line num="272" count="54" type="stmt"/>
3934
3081
  <line num="273" count="5" type="cond" truecount="2" falsecount="0"/>
3935
- <line num="279" count="55" type="cond" truecount="0" falsecount="2"/>
3936
- <line num="280" count="211" type="stmt"/>
3937
- <line num="287" count="55" type="stmt"/>
3082
+ <line num="279" count="54" type="cond" truecount="0" falsecount="2"/>
3083
+ <line num="280" count="210" type="stmt"/>
3084
+ <line num="287" count="54" type="stmt"/>
3938
3085
  <line num="288" count="19" type="stmt"/>
3939
- <line num="294" count="55" type="cond" truecount="0" falsecount="2"/>
3940
- <line num="295" count="213" type="stmt"/>
3941
- <line num="302" count="55" type="stmt"/>
3086
+ <line num="294" count="54" type="cond" truecount="0" falsecount="2"/>
3087
+ <line num="295" count="212" type="stmt"/>
3088
+ <line num="302" count="54" type="stmt"/>
3942
3089
  <line num="303" count="10" type="stmt"/>
3943
- <line num="309" count="55" type="cond" truecount="0" falsecount="2"/>
3090
+ <line num="309" count="54" type="cond" truecount="0" falsecount="2"/>
3944
3091
  <line num="310" count="2" type="stmt"/>
3945
- <line num="317" count="55" type="cond" truecount="1" falsecount="1"/>
3092
+ <line num="317" count="54" type="cond" truecount="1" falsecount="1"/>
3946
3093
  <line num="318" count="39" type="stmt"/>
3947
- <line num="326" count="55" type="cond" truecount="0" falsecount="2"/>
3094
+ <line num="326" count="54" type="cond" truecount="0" falsecount="2"/>
3948
3095
  <line num="327" count="4" type="stmt"/>
3949
- <line num="334" count="55" type="stmt"/>
3096
+ <line num="334" count="54" type="stmt"/>
3950
3097
  <line num="335" count="131" type="stmt"/>
3951
- <line num="343" count="55" type="cond" truecount="0" falsecount="2"/>
3098
+ <line num="343" count="54" type="cond" truecount="0" falsecount="2"/>
3952
3099
  <line num="344" count="4" type="cond" truecount="2" falsecount="0"/>
3953
3100
  <line num="345" count="3" type="stmt"/>
3954
3101
  <line num="348" count="1" type="stmt"/>
3955
- <line num="359" count="55" type="stmt"/>
3102
+ <line num="359" count="54" type="stmt"/>
3956
3103
  <line num="360" count="0" type="stmt"/>
3957
- <line num="363" count="55" type="stmt"/>
3104
+ <line num="363" count="54" type="stmt"/>
3958
3105
  <line num="364" count="10" type="stmt"/>
3959
- <line num="367" count="55" type="cond" truecount="0" falsecount="2"/>
3106
+ <line num="367" count="54" type="cond" truecount="0" falsecount="2"/>
3960
3107
  <line num="368" count="0" type="stmt"/>
3961
3108
  <line num="369" count="0" type="cond" truecount="0" falsecount="2"/>
3962
3109
  <line num="370" count="0" type="stmt"/>
3963
3110
  <line num="372" count="0" type="stmt"/>
3964
- <line num="375" count="55" type="stmt"/>
3111
+ <line num="375" count="54" type="stmt"/>
3965
3112
  <line num="376" count="1" type="stmt"/>
3966
- <line num="379" count="55" type="cond" truecount="0" falsecount="1"/>
3113
+ <line num="379" count="54" type="cond" truecount="0" falsecount="1"/>
3967
3114
  <line num="380" count="0" type="stmt"/>
3968
- <line num="386" count="55" type="stmt"/>
3115
+ <line num="386" count="54" type="stmt"/>
3969
3116
  <line num="387" count="60" type="stmt"/>
3970
3117
  </file>
3971
3118
  </package>
@@ -3982,21 +3129,21 @@
3982
3129
  <line num="41" count="9" type="stmt"/>
3983
3130
  <line num="42" count="9" type="stmt"/>
3984
3131
  <line num="47" count="9" type="stmt"/>
3985
- <line num="56" count="201" type="stmt"/>
3986
- <line num="57" count="201" type="stmt"/>
3987
- <line num="58" count="201" type="stmt"/>
3988
- <line num="59" count="201" type="stmt"/>
3989
- <line num="60" count="201" type="stmt"/>
3132
+ <line num="56" count="199" type="stmt"/>
3133
+ <line num="57" count="199" type="stmt"/>
3134
+ <line num="58" count="199" type="stmt"/>
3135
+ <line num="59" count="199" type="stmt"/>
3136
+ <line num="60" count="199" type="stmt"/>
3990
3137
  <line num="69" count="53" type="cond" truecount="2" falsecount="0"/>
3991
3138
  <line num="70" count="6" type="stmt"/>
3992
3139
  <line num="73" count="53" type="stmt"/>
3993
- <line num="84" count="195" type="cond" truecount="2" falsecount="0"/>
3140
+ <line num="84" count="193" type="cond" truecount="2" falsecount="0"/>
3994
3141
  <line num="85" count="6" type="stmt"/>
3995
- <line num="87" count="195" type="stmt"/>
3996
- <line num="88" count="479" type="stmt"/>
3997
- <line num="89" count="479" type="cond" truecount="2" falsecount="0"/>
3142
+ <line num="87" count="193" type="stmt"/>
3143
+ <line num="88" count="475" type="stmt"/>
3144
+ <line num="89" count="475" type="cond" truecount="2" falsecount="0"/>
3998
3145
  <line num="90" count="41" type="stmt"/>
3999
- <line num="93" count="154" type="stmt"/>
3146
+ <line num="93" count="152" type="stmt"/>
4000
3147
  <line num="100" count="27" type="stmt"/>
4001
3148
  <line num="111" count="9" type="stmt"/>
4002
3149
  <line num="121" count="22" type="stmt"/>
@@ -4164,14 +3311,14 @@
4164
3311
  <line num="90" count="30" type="stmt"/>
4165
3312
  <line num="91" count="30" type="stmt"/>
4166
3313
  <line num="105" count="40" type="stmt"/>
4167
- <line num="106" count="191" type="stmt"/>
4168
- <line num="107" count="191" type="cond" truecount="2" falsecount="0"/>
4169
- <line num="109" count="191" type="cond" truecount="4" falsecount="0"/>
4170
- <line num="110" count="109" type="stmt"/>
4171
- <line num="112" count="191" type="stmt"/>
4172
- <line num="113" count="191" type="stmt"/>
4173
- <line num="114" count="191" type="cond" truecount="2" falsecount="0"/>
4174
- <line num="119" count="150" type="stmt"/>
3314
+ <line num="106" count="189" type="stmt"/>
3315
+ <line num="107" count="189" type="cond" truecount="2" falsecount="0"/>
3316
+ <line num="109" count="189" type="cond" truecount="4" falsecount="0"/>
3317
+ <line num="110" count="108" type="stmt"/>
3318
+ <line num="112" count="189" type="stmt"/>
3319
+ <line num="113" count="189" type="stmt"/>
3320
+ <line num="114" count="189" type="cond" truecount="2" falsecount="0"/>
3321
+ <line num="119" count="148" type="stmt"/>
4175
3322
  <line num="122" count="0" type="stmt"/>
4176
3323
  <line num="124" count="41" type="cond" truecount="5" falsecount="2"/>
4177
3324
  <line num="127" count="21" type="stmt"/>
@@ -4181,9 +3328,9 @@
4181
3328
  <line num="135" count="1" type="stmt"/>
4182
3329
  <line num="137" count="0" type="stmt"/>
4183
3330
  <line num="148" count="40" type="stmt"/>
4184
- <line num="149" count="113" type="stmt"/>
4185
- <line num="150" count="113" type="cond" truecount="2" falsecount="0"/>
4186
- <line num="151" count="83" type="stmt"/>
3331
+ <line num="149" count="112" type="stmt"/>
3332
+ <line num="150" count="112" type="cond" truecount="2" falsecount="0"/>
3333
+ <line num="151" count="82" type="stmt"/>
4187
3334
  <line num="154" count="30" type="stmt"/>
4188
3335
  <line num="155" count="25" type="stmt"/>
4189
3336
  <line num="158" count="30" type="stmt"/>
@@ -4254,8 +3401,8 @@
4254
3401
  <line num="80" count="30" type="stmt"/>
4255
3402
  <line num="81" count="33" type="stmt"/>
4256
3403
  <line num="85" count="40" type="stmt"/>
4257
- <line num="86" count="113" type="stmt"/>
4258
- <line num="87" count="322" type="stmt"/>
3404
+ <line num="86" count="112" type="stmt"/>
3405
+ <line num="87" count="320" type="stmt"/>
4259
3406
  <line num="88" count="53" type="stmt"/>
4260
3407
  <line num="91" count="40" type="stmt"/>
4261
3408
  <line num="92" count="68" type="stmt"/>
@@ -4280,24 +3427,24 @@
4280
3427
  <metrics statements="38" coveredstatements="34" conditionals="18" coveredconditionals="10" methods="8" coveredmethods="7"/>
4281
3428
  <file name="AutomationEmitter.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/AutomationEmitter.js">
4282
3429
  <metrics statements="12" coveredstatements="9" conditionals="6" coveredconditionals="2" methods="3" coveredmethods="2"/>
4283
- <line num="1" count="4" type="stmt"/>
4284
- <line num="2" count="4" type="stmt"/>
4285
- <line num="5" count="4" type="stmt"/>
4286
- <line num="15" count="7" type="stmt"/>
4287
- <line num="16" count="7" type="stmt"/>
3430
+ <line num="1" count="3" type="stmt"/>
3431
+ <line num="2" count="3" type="stmt"/>
3432
+ <line num="5" count="3" type="stmt"/>
3433
+ <line num="15" count="6" type="stmt"/>
3434
+ <line num="16" count="6" type="stmt"/>
4288
3435
  <line num="23" count="5" type="cond" truecount="2" falsecount="0"/>
4289
3436
  <line num="24" count="1" type="stmt"/>
4290
3437
  <line num="26" count="4" type="stmt"/>
4291
3438
  <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4292
3439
  <line num="39" count="0" type="stmt"/>
4293
3440
  <line num="41" count="0" type="stmt"/>
4294
- <line num="51" count="4" type="stmt"/>
3441
+ <line num="51" count="3" type="stmt"/>
4295
3442
  </file>
4296
3443
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/index.js">
4297
3444
  <metrics statements="7" coveredstatements="7" conditionals="2" coveredconditionals="1" methods="3" coveredmethods="3"/>
4298
3445
  <line num="1" count="40" type="stmt"/>
4299
3446
  <line num="2" count="40" type="stmt"/>
4300
- <line num="16" count="15" type="stmt"/>
3447
+ <line num="16" count="14" type="stmt"/>
4301
3448
  <line num="20" count="10" type="stmt"/>
4302
3449
  <line num="24" count="24" type="stmt"/>
4303
3450
  <line num="28" count="40" type="stmt"/>
@@ -4306,15 +3453,15 @@
4306
3453
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/events/utils.js">
4307
3454
  <metrics statements="19" coveredstatements="18" conditionals="10" coveredconditionals="7" methods="2" coveredmethods="2"/>
4308
3455
  <line num="1" count="40" type="stmt"/>
4309
- <line num="2" count="19" type="stmt"/>
4310
- <line num="7" count="19" type="cond" truecount="2" falsecount="0"/>
4311
- <line num="8" count="13" type="stmt"/>
4312
- <line num="10" count="19" type="stmt"/>
4313
- <line num="11" count="19" type="cond" truecount="1" falsecount="1"/>
4314
- <line num="12" count="19" type="stmt"/>
4315
- <line num="14" count="19" type="cond" truecount="2" falsecount="0"/>
3456
+ <line num="2" count="18" type="stmt"/>
3457
+ <line num="7" count="18" type="cond" truecount="2" falsecount="0"/>
3458
+ <line num="8" count="12" type="stmt"/>
3459
+ <line num="10" count="18" type="stmt"/>
3460
+ <line num="11" count="18" type="cond" truecount="1" falsecount="1"/>
3461
+ <line num="12" count="18" type="stmt"/>
3462
+ <line num="14" count="18" type="cond" truecount="2" falsecount="0"/>
4316
3463
  <line num="15" count="4" type="stmt"/>
4317
- <line num="17" count="19" type="stmt"/>
3464
+ <line num="17" count="18" type="stmt"/>
4318
3465
  <line num="20" count="40" type="stmt"/>
4319
3466
  <line num="21" count="10" type="stmt"/>
4320
3467
  <line num="22" count="10" type="stmt"/>
@@ -4333,7 +3480,7 @@
4333
3480
  </file>
4334
3481
  </package>
4335
3482
  <package name="middleware">
4336
- <metrics statements="292" coveredstatements="238" conditionals="215" coveredconditionals="154" methods="38" coveredmethods="33"/>
3483
+ <metrics statements="174" coveredstatements="149" conditionals="117" coveredconditionals="89" methods="24" coveredmethods="24"/>
4337
3484
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
4338
3485
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
4339
3486
  <line num="1" count="24" type="stmt"/>
@@ -4347,58 +3494,6 @@
4347
3494
  <line num="16" count="0" type="stmt"/>
4348
3495
  <line num="18" count="7" type="stmt"/>
4349
3496
  </file>
4350
- <file name="authorized.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/authorized.js">
4351
- <metrics statements="49" coveredstatements="44" conditionals="47" coveredconditionals="39" methods="6" coveredmethods="5"/>
4352
- <line num="5" count="25" type="stmt"/>
4353
- <line num="10" count="25" type="stmt"/>
4354
- <line num="11" count="25" type="stmt"/>
4355
- <line num="12" count="25" type="stmt"/>
4356
- <line num="13" count="25" type="stmt"/>
4357
- <line num="14" count="25" type="stmt"/>
4358
- <line num="17" count="176" type="stmt"/>
4359
- <line num="20" count="25" type="stmt"/>
4360
- <line num="28" count="25" type="stmt"/>
4361
- <line num="30" count="177" type="cond" truecount="3" falsecount="0"/>
4362
- <line num="31" count="177" type="stmt"/>
4363
- <line num="32" count="177" type="cond" truecount="4" falsecount="0"/>
4364
- <line num="33" count="28" type="stmt"/>
4365
- <line num="37" count="149" type="cond" truecount="2" falsecount="0"/>
4366
- <line num="38" count="3" type="stmt"/>
4367
- <line num="42" count="25" type="stmt"/>
4368
- <line num="49" count="3" type="cond" truecount="2" falsecount="0"/>
4369
- <line num="50" count="3" type="stmt"/>
4370
- <line num="53" count="3" type="stmt"/>
4371
- <line num="55" count="3" type="cond" truecount="1" falsecount="1"/>
4372
- <line num="57" count="0" type="stmt"/>
4373
- <line num="58" count="0" type="cond" truecount="0" falsecount="2"/>
4374
- <line num="59" count="0" type="stmt"/>
4375
- <line num="62" count="3" type="cond" truecount="1" falsecount="1"/>
4376
- <line num="63" count="3" type="stmt"/>
4377
- <line num="67" count="25" type="stmt"/>
4378
- <line num="69" count="2703" type="stmt"/>
4379
- <line num="72" count="183" type="cond" truecount="4" falsecount="0"/>
4380
- <line num="73" count="1" type="stmt"/>
4381
- <line num="76" count="182" type="cond" truecount="2" falsecount="0"/>
4382
- <line num="77" count="1" type="stmt"/>
4383
- <line num="82" count="181" type="stmt"/>
4384
- <line num="85" count="181" type="stmt"/>
4385
- <line num="88" count="181" type="cond" truecount="2" falsecount="0"/>
4386
- <line num="91" count="181" type="stmt"/>
4387
- <line num="92" count="181" type="cond" truecount="4" falsecount="0"/>
4388
- <line num="93" count="69" type="stmt"/>
4389
- <line num="94" count="69" type="cond" truecount="3" falsecount="1"/>
4390
- <line num="95" count="0" type="stmt"/>
4391
- <line num="100" count="181" type="cond" truecount="2" falsecount="0"/>
4392
- <line num="104" count="1" type="stmt"/>
4393
- <line num="108" count="180" type="cond" truecount="2" falsecount="0"/>
4394
- <line num="109" count="3" type="stmt"/>
4395
- <line num="112" count="177" type="stmt"/>
4396
- <line num="114" count="177" type="stmt"/>
4397
- <line num="117" count="27" type="cond" truecount="3" falsecount="2"/>
4398
- <line num="118" count="0" type="stmt"/>
4399
- <line num="120" count="27" type="stmt"/>
4400
- <line num="125" count="150" type="stmt"/>
4401
- </file>
4402
3497
  <file name="builder.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/builder.js">
4403
3498
  <metrics statements="36" coveredstatements="32" conditionals="22" coveredconditionals="17" methods="3" coveredmethods="3"/>
4404
3499
  <line num="1" count="25" type="stmt"/>
@@ -4578,78 +3673,6 @@
4578
3673
  <line num="7" count="1" type="stmt"/>
4579
3674
  <line num="9" count="0" type="stmt"/>
4580
3675
  </file>
4581
- <file name="usageQuota.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/usageQuota.js">
4582
- <metrics statements="69" coveredstatements="45" conditionals="51" coveredconditionals="26" methods="8" coveredmethods="4"/>
4583
- <line num="1" count="25" type="stmt"/>
4584
- <line num="2" count="25" type="stmt"/>
4585
- <line num="6" count="25" type="stmt"/>
4586
- <line num="7" count="25" type="stmt"/>
4587
- <line num="10" count="25" type="stmt"/>
4588
- <line num="15" count="25" type="stmt"/>
4589
- <line num="27" count="4" type="stmt"/>
4590
- <line num="28" count="7" type="cond" truecount="2" falsecount="0"/>
4591
- <line num="29" count="4" type="stmt"/>
4592
- <line num="34" count="25" type="stmt"/>
4593
- <line num="35" count="24" type="cond" truecount="2" falsecount="0"/>
4594
- <line num="36" count="20" type="stmt"/>
4595
- <line num="39" count="4" type="stmt"/>
4596
- <line num="40" count="4" type="stmt"/>
4597
- <line num="41" count="4" type="cond" truecount="3" falsecount="1"/>
4598
- <line num="42" count="0" type="stmt"/>
4599
- <line num="45" count="4" type="cond" truecount="5" falsecount="0"/>
4600
- <line num="46" count="2" type="stmt"/>
4601
- <line num="47" count="2" type="stmt"/>
4602
- <line num="48" count="2" type="cond" truecount="1" falsecount="1"/>
4603
- <line num="49" count="2" type="stmt"/>
4604
- <line num="50" count="0" type="stmt"/>
4605
- <line num="52" count="0" type="stmt"/>
4606
- <line num="54" count="2" type="cond" truecount="1" falsecount="1"/>
4607
- <line num="60" count="0" type="stmt"/>
4608
- <line num="62" count="2" type="stmt"/>
4609
- <line num="68" count="4" type="cond" truecount="1" falsecount="1"/>
4610
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
4611
- <line num="73" count="0" type="stmt"/>
4612
- <line num="75" count="4" type="stmt"/>
4613
- <line num="76" count="4" type="stmt"/>
4614
- <line num="78" count="0" type="stmt"/>
4615
- <line num="82" count="25" type="stmt"/>
4616
- <line num="83" count="4" type="stmt"/>
4617
- <line num="89" count="4" type="cond" truecount="1" falsecount="1"/>
4618
- <line num="90" count="0" type="cond" truecount="0" falsecount="2"/>
4619
- <line num="91" count="0" type="stmt"/>
4620
- <line num="94" count="4" type="cond" truecount="1" falsecount="1"/>
4621
- <line num="95" count="0" type="stmt"/>
4622
- <line num="100" count="4" type="cond" truecount="1" falsecount="1"/>
4623
- <line num="101" count="4" type="stmt"/>
4624
- <line num="102" count="4" type="stmt"/>
4625
- <line num="105" count="4" type="cond" truecount="1" falsecount="1"/>
4626
- <line num="106" count="0" type="cond" truecount="0" falsecount="2"/>
4627
- <line num="107" count="0" type="stmt"/>
4628
- <line num="110" count="4" type="cond" truecount="2" falsecount="0"/>
4629
- <line num="111" count="3" type="stmt"/>
4630
- <line num="116" count="4" type="cond" truecount="1" falsecount="1"/>
4631
- <line num="117" count="4" type="stmt"/>
4632
- <line num="121" count="25" type="stmt"/>
4633
- <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
4634
- <line num="124" count="0" type="stmt"/>
4635
- <line num="125" count="0" type="stmt"/>
4636
- <line num="129" count="0" type="stmt"/>
4637
- <line num="130" count="0" type="cond" truecount="0" falsecount="2"/>
4638
- <line num="131" count="0" type="stmt"/>
4639
- <line num="135" count="25" type="stmt"/>
4640
- <line num="137" count="0" type="stmt"/>
4641
- <line num="138" count="0" type="cond" truecount="0" falsecount="2"/>
4642
- <line num="139" count="0" type="stmt"/>
4643
- <line num="143" count="25" type="stmt"/>
4644
- <line num="145" count="3" type="cond" truecount="1" falsecount="1"/>
4645
- <line num="146" count="0" type="stmt"/>
4646
- <line num="147" count="0" type="cond" truecount="0" falsecount="2"/>
4647
- <line num="148" count="0" type="stmt"/>
4648
- <line num="152" count="25" type="stmt"/>
4649
- <line num="156" count="25" type="stmt"/>
4650
- <line num="160" count="25" type="stmt"/>
4651
- <line num="162" count="25" type="stmt"/>
4652
- </file>
4653
3676
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/utils.js">
4654
3677
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4655
3678
  <line num="1" count="30" type="stmt"/>
@@ -4658,60 +3681,60 @@
4658
3681
  </file>
4659
3682
  </package>
4660
3683
  <package name="threads">
4661
- <metrics statements="342" coveredstatements="234" conditionals="157" coveredconditionals="83" methods="42" coveredmethods="37"/>
3684
+ <metrics statements="313" coveredstatements="211" conditionals="139" coveredconditionals="73" methods="37" coveredmethods="32"/>
4662
3685
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4663
3686
  <metrics statements="132" coveredstatements="79" conditionals="57" coveredconditionals="21" methods="12" coveredmethods="10"/>
4664
- <line num="1" count="4" type="stmt"/>
4665
- <line num="2" count="4" type="stmt"/>
4666
- <line num="3" count="4" type="stmt"/>
4667
- <line num="4" count="4" type="stmt"/>
4668
- <line num="5" count="4" type="stmt"/>
4669
- <line num="6" count="4" type="stmt"/>
4670
- <line num="7" count="4" type="stmt"/>
4671
- <line num="8" count="4" type="stmt"/>
4672
- <line num="9" count="4" type="stmt"/>
4673
- <line num="10" count="4" type="stmt"/>
4674
- <line num="11" count="4" type="stmt"/>
4675
- <line num="12" count="4" type="stmt"/>
4676
- <line num="13" count="4" type="stmt"/>
4677
- <line num="15" count="4" type="stmt"/>
4678
- <line num="16" count="4" type="stmt"/>
4679
- <line num="17" count="4" type="stmt"/>
4680
- <line num="18" count="4" type="stmt"/>
4681
- <line num="27" count="7" type="stmt"/>
4682
- <line num="28" count="7" type="cond" truecount="2" falsecount="0"/>
4683
- <line num="29" count="7" type="stmt"/>
4684
- <line num="30" count="7" type="stmt"/>
4685
- <line num="31" count="7" type="stmt"/>
4686
- <line num="32" count="7" type="stmt"/>
4687
- <line num="34" count="7" type="stmt"/>
4688
- <line num="35" count="7" type="stmt"/>
4689
- <line num="37" count="7" type="stmt"/>
4690
- <line num="38" count="7" type="stmt"/>
4691
- <line num="41" count="7" type="stmt"/>
4692
- <line num="42" count="7" type="stmt"/>
4693
- <line num="44" count="7" type="stmt"/>
4694
- <line num="45" count="7" type="stmt"/>
4695
- <line num="49" count="7" type="cond" truecount="1" falsecount="1"/>
3687
+ <line num="1" count="3" type="stmt"/>
3688
+ <line num="2" count="3" type="stmt"/>
3689
+ <line num="3" count="3" type="stmt"/>
3690
+ <line num="4" count="3" type="stmt"/>
3691
+ <line num="5" count="3" type="stmt"/>
3692
+ <line num="6" count="3" type="stmt"/>
3693
+ <line num="7" count="3" type="stmt"/>
3694
+ <line num="8" count="3" type="stmt"/>
3695
+ <line num="9" count="3" type="stmt"/>
3696
+ <line num="10" count="3" type="stmt"/>
3697
+ <line num="11" count="3" type="stmt"/>
3698
+ <line num="12" count="3" type="stmt"/>
3699
+ <line num="13" count="3" type="stmt"/>
3700
+ <line num="15" count="3" type="stmt"/>
3701
+ <line num="16" count="3" type="stmt"/>
3702
+ <line num="17" count="3" type="stmt"/>
3703
+ <line num="18" count="3" type="stmt"/>
3704
+ <line num="27" count="6" type="stmt"/>
3705
+ <line num="28" count="6" type="cond" truecount="2" falsecount="0"/>
3706
+ <line num="29" count="6" type="stmt"/>
3707
+ <line num="30" count="6" type="stmt"/>
3708
+ <line num="31" count="6" type="stmt"/>
3709
+ <line num="32" count="6" type="stmt"/>
3710
+ <line num="34" count="6" type="stmt"/>
3711
+ <line num="35" count="6" type="stmt"/>
3712
+ <line num="37" count="6" type="stmt"/>
3713
+ <line num="38" count="6" type="stmt"/>
3714
+ <line num="41" count="6" type="stmt"/>
3715
+ <line num="42" count="6" type="stmt"/>
3716
+ <line num="44" count="6" type="stmt"/>
3717
+ <line num="45" count="6" type="stmt"/>
3718
+ <line num="49" count="6" type="cond" truecount="1" falsecount="1"/>
4696
3719
  <line num="50" count="0" type="stmt"/>
4697
- <line num="52" count="7" type="stmt"/>
3720
+ <line num="52" count="6" type="stmt"/>
4698
3721
  <line num="56" count="5" type="stmt"/>
4699
3722
  <line num="57" count="5" type="cond" truecount="1" falsecount="1"/>
4700
3723
  <line num="58" count="0" type="stmt"/>
4701
3724
  <line num="60" count="5" type="stmt"/>
4702
- <line num="64" count="7" type="cond" truecount="1" falsecount="1"/>
3725
+ <line num="64" count="6" type="cond" truecount="1" falsecount="1"/>
4703
3726
  <line num="65" count="0" type="stmt"/>
4704
- <line num="67" count="7" type="stmt"/>
4705
- <line num="68" count="7" type="stmt"/>
3727
+ <line num="67" count="6" type="stmt"/>
3728
+ <line num="68" count="6" type="stmt"/>
4706
3729
  <line num="69" count="6" type="stmt"/>
4707
- <line num="73" count="12" type="stmt"/>
4708
- <line num="75" count="12" type="cond" truecount="2" falsecount="0"/>
4709
- <line num="76" count="7" type="stmt"/>
4710
- <line num="78" count="12" type="stmt"/>
3730
+ <line num="73" count="11" type="stmt"/>
3731
+ <line num="75" count="11" type="cond" truecount="2" falsecount="0"/>
3732
+ <line num="76" count="6" type="stmt"/>
3733
+ <line num="78" count="11" type="stmt"/>
4711
3734
  <line num="82" count="0" type="stmt"/>
4712
3735
  <line num="92" count="0" type="stmt"/>
4713
- <line num="100" count="7" type="stmt"/>
4714
- <line num="101" count="7" type="stmt"/>
3736
+ <line num="100" count="6" type="stmt"/>
3737
+ <line num="101" count="6" type="stmt"/>
4715
3738
  <line num="102" count="6" type="stmt"/>
4716
3739
  <line num="105" count="6" type="stmt"/>
4717
3740
  <line num="107" count="6" type="stmt"/>
@@ -4786,46 +3809,14 @@
4786
3809
  <line num="278" count="0" type="stmt"/>
4787
3810
  <line num="279" count="0" type="stmt"/>
4788
3811
  <line num="283" count="6" type="stmt"/>
4789
- <line num="287" count="4" type="stmt"/>
4790
- <line num="288" count="7" type="stmt"/>
4791
- <line num="289" count="7" type="stmt"/>
4792
- <line num="290" count="7" type="stmt"/>
4793
- <line num="294" count="7" type="stmt"/>
3812
+ <line num="287" count="3" type="stmt"/>
3813
+ <line num="288" count="6" type="stmt"/>
3814
+ <line num="289" count="6" type="stmt"/>
3815
+ <line num="290" count="6" type="stmt"/>
3816
+ <line num="294" count="6" type="stmt"/>
4794
3817
  <line num="297" count="6" type="stmt"/>
4795
3818
  <line num="300" count="0" type="stmt"/>
4796
3819
  </file>
4797
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/index.js">
4798
- <metrics statements="29" coveredstatements="23" conditionals="18" coveredconditionals="10" methods="5" coveredmethods="5"/>
4799
- <line num="1" count="40" type="stmt"/>
4800
- <line num="2" count="40" type="stmt"/>
4801
- <line num="4" count="40" type="stmt"/>
4802
- <line num="10" count="20" type="stmt"/>
4803
- <line num="11" count="20" type="cond" truecount="2" falsecount="1"/>
4804
- <line num="13" count="10" type="stmt"/>
4805
- <line num="14" count="10" type="stmt"/>
4806
- <line num="16" count="10" type="stmt"/>
4807
- <line num="17" count="10" type="stmt"/>
4808
- <line num="19" count="0" type="stmt"/>
4809
- <line num="21" count="20" type="stmt"/>
4810
- <line num="26" count="79" type="stmt"/>
4811
- <line num="27" count="79" type="cond" truecount="2" falsecount="0"/>
4812
- <line num="28" count="79" type="stmt"/>
4813
- <line num="33" count="79" type="cond" truecount="1" falsecount="1"/>
4814
- <line num="34" count="0" type="stmt"/>
4815
- <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4816
- <line num="39" count="0" type="stmt"/>
4817
- <line num="41" count="0" type="stmt"/>
4818
- <line num="46" count="20" type="stmt"/>
4819
- <line num="49" count="20" type="cond" truecount="1" falsecount="1"/>
4820
- <line num="50" count="20" type="stmt"/>
4821
- <line num="52" count="0" type="stmt"/>
4822
- <line num="54" count="20" type="stmt"/>
4823
- <line num="55" count="16" type="cond" truecount="2" falsecount="0"/>
4824
- <line num="56" count="2" type="stmt"/>
4825
- <line num="58" count="14" type="stmt"/>
4826
- <line num="65" count="40" type="stmt"/>
4827
- <line num="66" count="40" type="stmt"/>
4828
- </file>
4829
3820
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4830
3821
  <metrics statements="144" coveredstatements="101" conditionals="68" coveredconditionals="43" methods="16" coveredmethods="14"/>
4831
3822
  <line num="1" count="2" type="stmt"/>
@@ -4987,8 +3978,8 @@
4987
3978
  <line num="17" count="40" type="stmt"/>
4988
3979
  <line num="18" count="0" type="cond" truecount="0" falsecount="2"/>
4989
3980
  <line num="21" count="40" type="stmt"/>
4990
- <line num="23" count="6" type="cond" truecount="2" falsecount="2"/>
4991
- <line num="24" count="6" type="stmt"/>
3981
+ <line num="23" count="5" type="cond" truecount="2" falsecount="2"/>
3982
+ <line num="24" count="5" type="stmt"/>
4992
3983
  <line num="27" count="0" type="stmt"/>
4993
3984
  <line num="28" count="0" type="stmt"/>
4994
3985
  <line num="32" count="19" type="stmt"/>
@@ -5206,12 +4197,12 @@
5206
4197
  <line num="39" count="2" type="stmt"/>
5207
4198
  <line num="41" count="0" type="stmt"/>
5208
4199
  <line num="55" count="42" type="stmt"/>
5209
- <line num="56" count="210" type="cond" truecount="1" falsecount="1"/>
4200
+ <line num="56" count="209" type="cond" truecount="1" falsecount="1"/>
5210
4201
  <line num="57" count="0" type="stmt"/>
5211
4202
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
5212
4203
  <line num="62" count="0" type="stmt"/>
5213
4204
  <line num="64" count="0" type="stmt"/>
5214
- <line num="66" count="210" type="stmt"/>
4205
+ <line num="66" count="209" type="stmt"/>
5215
4206
  <line num="70" count="42" type="stmt"/>
5216
4207
  <line num="71" count="2" type="stmt"/>
5217
4208
  <line num="76" count="42" type="stmt"/>
@@ -5387,9 +4378,9 @@
5387
4378
  </file>
5388
4379
  </package>
5389
4380
  <package name="utilities.queue">
5390
- <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="8" coveredmethods="6"/>
4381
+ <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="9" coveredmethods="6"/>
5391
4382
  <file name="inMemoryQueue.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/queue/inMemoryQueue.js">
5392
- <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="8" coveredmethods="6"/>
4383
+ <metrics statements="21" coveredstatements="18" conditionals="7" coveredconditionals="4" methods="9" coveredmethods="6"/>
5393
4384
  <line num="1" count="39" type="stmt"/>
5394
4385
  <line num="13" count="8" type="stmt"/>
5395
4386
  <line num="33" count="39" type="stmt"/>
@@ -5403,14 +4394,14 @@
5403
4394
  <line num="54" count="8" type="stmt"/>
5404
4395
  <line num="55" count="8" type="cond" truecount="1" falsecount="1"/>
5405
4396
  <line num="56" count="8" type="stmt"/>
5406
- <line num="70" count="8" type="cond" truecount="1" falsecount="1"/>
5407
- <line num="71" count="0" type="stmt"/>
5408
- <line num="73" count="8" type="stmt"/>
4397
+ <line num="71" count="8" type="cond" truecount="1" falsecount="1"/>
4398
+ <line num="72" count="0" type="stmt"/>
5409
4399
  <line num="74" count="8" type="stmt"/>
5410
- <line num="83" count="0" type="stmt"/>
5411
- <line num="90" count="204" type="stmt"/>
5412
- <line num="97" count="0" type="stmt"/>
5413
- <line num="101" count="39" type="stmt"/>
4400
+ <line num="75" count="8" type="stmt"/>
4401
+ <line num="84" count="0" type="stmt"/>
4402
+ <line num="91" count="203" type="stmt"/>
4403
+ <line num="103" count="0" type="stmt"/>
4404
+ <line num="107" count="39" type="stmt"/>
5414
4405
  </file>
5415
4406
  </package>
5416
4407
  <package name="utilities.routing">
@@ -5465,12 +4456,12 @@
5465
4456
  <line num="117" count="0" type="stmt"/>
5466
4457
  <line num="119" count="0" type="stmt"/>
5467
4458
  <line num="120" count="0" type="stmt"/>
5468
- <line num="139" count="78" type="cond" truecount="2" falsecount="0"/>
5469
- <line num="140" count="78" type="stmt"/>
5470
- <line num="142" count="78" type="stmt"/>
5471
- <line num="143" count="78" type="stmt"/>
5472
- <line num="144" count="216" type="cond" truecount="1" falsecount="1"/>
5473
- <line num="145" count="216" type="stmt"/>
4459
+ <line num="139" count="77" type="cond" truecount="2" falsecount="0"/>
4460
+ <line num="140" count="77" type="stmt"/>
4461
+ <line num="142" count="77" type="stmt"/>
4462
+ <line num="143" count="77" type="stmt"/>
4463
+ <line num="144" count="214" type="cond" truecount="1" falsecount="1"/>
4464
+ <line num="145" count="214" type="stmt"/>
5474
4465
  <line num="147" count="0" type="cond" truecount="0" falsecount="5"/>
5475
4466
  <line num="149" count="0" type="cond" truecount="0" falsecount="2"/>
5476
4467
  <line num="155" count="0" type="stmt"/>
@@ -5487,51 +4478,51 @@
5487
4478
  <line num="173" count="0" type="cond" truecount="0" falsecount="2"/>
5488
4479
  <line num="174" count="0" type="stmt"/>
5489
4480
  <line num="176" count="0" type="stmt"/>
5490
- <line num="179" count="78" type="stmt"/>
4481
+ <line num="179" count="77" type="stmt"/>
5491
4482
  <line num="181" count="40" type="stmt"/>
5492
4483
  <line num="183" count="40" type="stmt"/>
5493
4484
  <line num="191" count="40" type="stmt"/>
5494
- <line num="193" count="182" type="cond" truecount="1" falsecount="1"/>
4485
+ <line num="193" count="180" type="cond" truecount="1" falsecount="1"/>
5495
4486
  <line num="194" count="0" type="stmt"/>
5496
- <line num="197" count="182" type="cond" truecount="2" falsecount="0"/>
4487
+ <line num="197" count="180" type="cond" truecount="2" falsecount="0"/>
5497
4488
  <line num="198" count="16" type="stmt"/>
5498
- <line num="199" count="166" type="cond" truecount="2" falsecount="0"/>
4489
+ <line num="199" count="164" type="cond" truecount="2" falsecount="0"/>
5499
4490
  <line num="200" count="22" type="stmt"/>
5500
- <line num="203" count="144" type="stmt"/>
4491
+ <line num="203" count="142" type="stmt"/>
5501
4492
  <line num="215" count="40" type="stmt"/>
5502
- <line num="221" count="78" type="stmt"/>
5503
- <line num="223" count="78" type="stmt"/>
5504
- <line num="224" count="78" type="stmt"/>
5505
- <line num="225" count="78" type="stmt"/>
5506
- <line num="226" count="353" type="stmt"/>
5507
- <line num="228" count="353" type="cond" truecount="2" falsecount="0"/>
5508
- <line num="229" count="172" type="cond" truecount="2" falsecount="0"/>
4493
+ <line num="221" count="77" type="stmt"/>
4494
+ <line num="223" count="77" type="stmt"/>
4495
+ <line num="224" count="77" type="stmt"/>
4496
+ <line num="225" count="77" type="stmt"/>
4497
+ <line num="226" count="349" type="stmt"/>
4498
+ <line num="228" count="349" type="cond" truecount="2" falsecount="0"/>
4499
+ <line num="229" count="170" type="cond" truecount="2" falsecount="0"/>
5509
4500
  <line num="230" count="3" type="stmt"/>
5510
- <line num="232" count="172" type="stmt"/>
5511
- <line num="235" count="181" type="cond" truecount="1" falsecount="1"/>
4501
+ <line num="232" count="170" type="stmt"/>
4502
+ <line num="235" count="179" type="cond" truecount="1" falsecount="1"/>
5512
4503
  <line num="236" count="0" type="stmt"/>
5513
- <line num="240" count="181" type="stmt"/>
5514
- <line num="244" count="78" type="cond" truecount="4" falsecount="0"/>
5515
- <line num="245" count="72" type="stmt"/>
5516
- <line num="246" count="72" type="stmt"/>
5517
- <line num="250" count="78" type="stmt"/>
4504
+ <line num="240" count="179" type="stmt"/>
4505
+ <line num="244" count="77" type="cond" truecount="4" falsecount="0"/>
4506
+ <line num="245" count="71" type="stmt"/>
4507
+ <line num="246" count="71" type="stmt"/>
4508
+ <line num="250" count="77" type="stmt"/>
5518
4509
  <line num="262" count="40" type="cond" truecount="1" falsecount="0"/>
5519
- <line num="263" count="113" type="stmt"/>
5520
- <line num="264" count="113" type="cond" truecount="2" falsecount="0"/>
5521
- <line num="265" count="99" type="stmt"/>
5522
- <line num="266" count="99" type="stmt"/>
5523
- <line num="269" count="113" type="stmt"/>
5524
- <line num="272" count="113" type="stmt"/>
5525
- <line num="275" count="113" type="stmt"/>
5526
- <line num="276" count="322" type="cond" truecount="2" falsecount="0"/>
4510
+ <line num="263" count="112" type="stmt"/>
4511
+ <line num="264" count="112" type="cond" truecount="2" falsecount="0"/>
4512
+ <line num="265" count="98" type="stmt"/>
4513
+ <line num="266" count="98" type="stmt"/>
4514
+ <line num="269" count="112" type="stmt"/>
4515
+ <line num="272" count="112" type="stmt"/>
4516
+ <line num="275" count="112" type="stmt"/>
4517
+ <line num="276" count="320" type="cond" truecount="2" falsecount="0"/>
5527
4518
  <line num="277" count="8" type="stmt"/>
5528
4519
  <line num="278" count="8" type="cond" truecount="4" falsecount="0"/>
5529
4520
  <line num="279" count="6" type="stmt"/>
5530
4521
  <line num="281" count="2" type="stmt"/>
5531
4522
  <line num="282" count="2" type="stmt"/>
5532
- <line num="287" count="113" type="cond" truecount="2" falsecount="0"/>
4523
+ <line num="287" count="112" type="cond" truecount="2" falsecount="0"/>
5533
4524
  <line num="288" count="33" type="stmt"/>
5534
- <line num="290" count="113" type="cond" truecount="2" falsecount="0"/>
4525
+ <line num="290" count="112" type="cond" truecount="2" falsecount="0"/>
5535
4526
  <line num="303" count="40" type="stmt"/>
5536
4527
  <line num="304" count="14" type="stmt"/>
5537
4528
  <line num="305" count="14" type="cond" truecount="1" falsecount="1"/>
@@ -5562,100 +4553,62 @@
5562
4553
  <line num="1" count="40" type="stmt"/>
5563
4554
  <line num="2" count="40" type="stmt"/>
5564
4555
  <line num="7" count="40" type="stmt"/>
5565
- <line num="12" count="281" type="stmt"/>
5566
- <line num="13" count="281" type="cond" truecount="2" falsecount="0"/>
5567
- <line num="14" count="168" type="stmt"/>
5568
- <line num="15" count="168" type="cond" truecount="2" falsecount="0"/>
5569
- <line num="17" count="281" type="stmt"/>
5570
- <line num="18" count="804" type="stmt"/>
5571
- <line num="19" count="804" type="cond" truecount="1" falsecount="1"/>
5572
- <line num="24" count="804" type="stmt"/>
4556
+ <line num="12" count="278" type="stmt"/>
4557
+ <line num="13" count="278" type="cond" truecount="2" falsecount="0"/>
4558
+ <line num="14" count="166" type="stmt"/>
4559
+ <line num="15" count="166" type="cond" truecount="2" falsecount="0"/>
4560
+ <line num="17" count="278" type="stmt"/>
4561
+ <line num="18" count="798" type="stmt"/>
4562
+ <line num="19" count="798" type="cond" truecount="1" falsecount="1"/>
4563
+ <line num="24" count="798" type="stmt"/>
5573
4564
  <line num="27" count="0" type="stmt"/>
5574
4565
  <line num="28" count="0" type="cond" truecount="0" falsecount="2"/>
5575
4566
  <line num="29" count="0" type="stmt"/>
5576
4567
  <line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
5577
4568
  <line num="31" count="0" type="stmt"/>
5578
- <line num="38" count="281" type="cond" truecount="2" falsecount="0"/>
4569
+ <line num="38" count="278" type="cond" truecount="2" falsecount="0"/>
5579
4570
  </file>
5580
4571
  </package>
5581
4572
  <package name="utilities.usageQuota">
5582
- <metrics statements="76" coveredstatements="64" conditionals="27" coveredconditionals="19" methods="10" coveredmethods="8"/>
5583
- <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/index.js">
5584
- <metrics statements="35" coveredstatements="31" conditionals="17" coveredconditionals="13" methods="3" coveredmethods="3"/>
5585
- <line num="1" count="41" type="stmt"/>
5586
- <line num="2" count="41" type="stmt"/>
5587
- <line num="6" count="41" type="stmt"/>
5588
- <line num="8" count="41" type="stmt"/>
5589
- <line num="10" count="68" type="cond" truecount="2" falsecount="0"/>
5590
- <line num="12" count="7" type="cond" truecount="2" falsecount="0"/>
5591
- <line num="13" count="3" type="stmt"/>
5592
- <line num="17" count="3" type="stmt"/>
5593
- <line num="18" count="3" type="cond" truecount="2" falsecount="0"/>
5594
- <line num="19" count="2" type="stmt"/>
5595
- <line num="22" count="5" type="stmt"/>
5596
- <line num="24" count="61" type="stmt"/>
5597
- <line num="27" count="41" type="stmt"/>
5598
- <line num="37" count="41" type="stmt"/>
5599
- <line num="39" count="10" type="stmt"/>
5600
- <line num="40" count="10" type="stmt"/>
5601
- <line num="43" count="2" type="stmt"/>
5602
- <line num="44" count="2" type="stmt"/>
5603
- <line num="45" count="2" type="stmt"/>
5604
- <line num="48" count="10" type="stmt"/>
5605
- <line num="59" count="41" type="cond" truecount="1" falsecount="0"/>
5606
- <line num="60" count="17" type="cond" truecount="2" falsecount="0"/>
5607
- <line num="61" count="15" type="stmt"/>
5608
- <line num="64" count="2" type="stmt"/>
5609
- <line num="65" count="2" type="stmt"/>
5610
- <line num="66" count="2" type="stmt"/>
5611
- <line num="69" count="2" type="stmt"/>
5612
- <line num="71" count="2" type="cond" truecount="1" falsecount="1"/>
5613
- <line num="75" count="0" type="stmt"/>
5614
- <line num="80" count="2" type="cond" truecount="1" falsecount="1"/>
5615
- <line num="82" count="0" type="stmt"/>
5616
- <line num="86" count="2" type="cond" truecount="1" falsecount="1"/>
5617
- <line num="87" count="2" type="stmt"/>
5618
- <line num="90" count="0" type="stmt"/>
5619
- <line num="91" count="0" type="stmt"/>
5620
- </file>
4573
+ <metrics statements="41" coveredstatements="34" conditionals="10" coveredconditionals="7" methods="7" coveredmethods="5"/>
5621
4574
  <file name="rows.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/rows.js">
5622
- <metrics statements="36" coveredstatements="33" conditionals="8" coveredconditionals="6" methods="5" coveredmethods="5"/>
5623
- <line num="1" count="26" type="stmt"/>
5624
- <line num="2" count="26" type="stmt"/>
5625
- <line num="3" count="26" type="stmt"/>
5626
- <line num="5" count="26" type="stmt"/>
5627
- <line num="7" count="26" type="stmt"/>
5628
- <line num="10" count="1" type="stmt"/>
5629
- <line num="11" count="1" type="stmt"/>
5630
- <line num="12" count="4" type="stmt"/>
5631
- <line num="13" count="4" type="cond" truecount="2" falsecount="0"/>
5632
- <line num="14" count="2" type="stmt"/>
5633
- <line num="16" count="4" type="cond" truecount="2" falsecount="0"/>
5634
- <line num="17" count="2" type="stmt"/>
4575
+ <metrics statements="36" coveredstatements="34" conditionals="8" coveredconditionals="7" methods="5" coveredmethods="5"/>
4576
+ <line num="1" count="39" type="stmt"/>
4577
+ <line num="2" count="39" type="stmt"/>
4578
+ <line num="3" count="39" type="stmt"/>
4579
+ <line num="5" count="39" type="stmt"/>
4580
+ <line num="7" count="39" type="stmt"/>
4581
+ <line num="10" count="37" type="stmt"/>
4582
+ <line num="11" count="37" type="stmt"/>
4583
+ <line num="12" count="16" type="stmt"/>
4584
+ <line num="13" count="16" type="cond" truecount="2" falsecount="0"/>
4585
+ <line num="14" count="14" type="stmt"/>
4586
+ <line num="16" count="16" type="cond" truecount="2" falsecount="0"/>
4587
+ <line num="17" count="14" type="stmt"/>
5635
4588
  <line num="19" count="2" type="stmt"/>
5636
- <line num="22" count="1" type="stmt"/>
5637
- <line num="25" count="26" type="stmt"/>
5638
- <line num="27" count="4" type="stmt"/>
5639
- <line num="28" count="4" type="stmt"/>
5640
- <line num="33" count="4" type="stmt"/>
4589
+ <line num="22" count="37" type="stmt"/>
4590
+ <line num="25" count="39" type="stmt"/>
4591
+ <line num="27" count="16" type="stmt"/>
4592
+ <line num="28" count="16" type="stmt"/>
4593
+ <line num="33" count="16" type="stmt"/>
5641
4594
  <line num="34" count="3" type="stmt"/>
5642
4595
  <line num="36" count="3" type="stmt"/>
5643
4596
  <line num="37" count="3" type="cond" truecount="1" falsecount="1"/>
5644
4597
  <line num="38" count="0" type="stmt"/>
5645
4598
  <line num="41" count="3" type="stmt"/>
5646
- <line num="50" count="26" type="stmt"/>
5647
- <line num="51" count="1" type="stmt"/>
5648
- <line num="52" count="1" type="stmt"/>
5649
- <line num="54" count="1" type="stmt"/>
5650
- <line num="55" count="2" type="stmt"/>
5651
- <line num="56" count="2" type="stmt"/>
5652
- <line num="57" count="4" type="cond" truecount="1" falsecount="1"/>
5653
- <line num="58" count="0" type="stmt"/>
5654
- <line num="60" count="4" type="stmt"/>
5655
- <line num="61" count="4" type="stmt"/>
4599
+ <line num="50" count="39" type="stmt"/>
4600
+ <line num="51" count="37" type="stmt"/>
4601
+ <line num="52" count="37" type="stmt"/>
4602
+ <line num="54" count="37" type="stmt"/>
4603
+ <line num="55" count="14" type="stmt"/>
4604
+ <line num="56" count="14" type="stmt"/>
4605
+ <line num="57" count="28" type="cond" truecount="2" falsecount="0"/>
4606
+ <line num="58" count="12" type="stmt"/>
4607
+ <line num="60" count="16" type="stmt"/>
4608
+ <line num="61" count="16" type="stmt"/>
5656
4609
  <line num="63" count="0" type="stmt"/>
5657
- <line num="71" count="2" type="stmt"/>
5658
- <line num="74" count="1" type="stmt"/>
4610
+ <line num="71" count="14" type="stmt"/>
4611
+ <line num="74" count="37" type="stmt"/>
5659
4612
  </file>
5660
4613
  <file name="usageQuoteReset.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/usageQuota/usageQuoteReset.js">
5661
4614
  <metrics statements="5" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>