@budibase/server 1.0.217 → 1.0.219-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (257) hide show
  1. package/__mocks__/node-fetch.ts +9 -0
  2. package/builder/assets/index.7786f497.css +6 -0
  3. package/builder/assets/index.832d3790.js +977 -0
  4. package/builder/assets/{vendor.9bf2fcb4.js → vendor.001dcf8c.js} +163 -163
  5. package/builder/index.html +3 -3
  6. package/coverage/clover.xml +866 -792
  7. package/coverage/coverage-final.json +26 -26
  8. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/automation.js.html +111 -12
  11. package/coverage/lcov-report/api/controllers/backup.js.html +9 -6
  12. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/datasource.js.html +16 -16
  15. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +21 -21
  17. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  23. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +47 -17
  27. package/coverage/lcov-report/api/controllers/row/index.html +34 -34
  28. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +95 -11
  30. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/utils.js.html +17 -8
  32. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  46. package/coverage/lcov-report/api/index.html +15 -15
  47. package/coverage/lcov-report/api/index.js.html +22 -13
  48. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/automation.js.html +32 -2
  52. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/index.html +1 -1
  59. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  73. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  76. package/coverage/lcov-report/automations/actions.js.html +1 -1
  77. package/coverage/lcov-report/automations/automationUtils.js.html +57 -12
  78. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  79. package/coverage/lcov-report/automations/index.html +17 -17
  80. package/coverage/lcov-report/automations/index.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/filter.js.html +58 -34
  87. package/coverage/lcov-report/automations/steps/index.html +11 -11
  88. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggers.js.html +4 -4
  107. package/coverage/lcov-report/constants/index.html +1 -1
  108. package/coverage/lcov-report/constants/index.js.html +1 -1
  109. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  110. package/coverage/lcov-report/constants/screens.js.html +1 -1
  111. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  112. package/coverage/lcov-report/db/index.html +14 -14
  113. package/coverage/lcov-report/db/index.js.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  115. package/coverage/lcov-report/db/linkedRows/index.html +13 -13
  116. package/coverage/lcov-report/db/linkedRows/index.js.html +10 -7
  117. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  118. package/coverage/lcov-report/db/newid.js.html +2 -2
  119. package/coverage/lcov-report/db/utils.js.html +27 -51
  120. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  121. package/coverage/lcov-report/events/index.html +1 -1
  122. package/coverage/lcov-report/events/index.js.html +1 -1
  123. package/coverage/lcov-report/events/utils.js.html +1 -1
  124. package/coverage/lcov-report/index.html +74 -74
  125. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  126. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  127. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  128. package/coverage/lcov-report/middleware/builder.js.html +12 -12
  129. package/coverage/lcov-report/middleware/currentapp.js.html +33 -33
  130. package/coverage/lcov-report/middleware/index.html +1 -1
  131. package/coverage/lcov-report/middleware/joi-validator.js.html +10 -10
  132. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  133. package/coverage/lcov-report/middleware/resourceId.js.html +7 -7
  134. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  135. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  136. package/coverage/lcov-report/threads/automation.js.html +18 -9
  137. package/coverage/lcov-report/threads/index.html +25 -25
  138. package/coverage/lcov-report/threads/query.js.html +280 -76
  139. package/coverage/lcov-report/threads/utils.js.html +4 -4
  140. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  141. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  142. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  143. package/coverage/lcov-report/utilities/global.js.html +14 -14
  144. package/coverage/lcov-report/utilities/index.html +1 -1
  145. package/coverage/lcov-report/utilities/index.js.html +9 -9
  146. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  147. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  148. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  149. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  150. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  151. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  152. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  153. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  154. package/coverage/lcov-report/utilities/security.js.html +2 -2
  155. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  156. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  157. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  158. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  159. package/coverage/lcov-report/utilities/users.js.html +1 -1
  160. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  161. package/coverage/lcov.info +1554 -1422
  162. package/dist/api/controllers/application.js +18 -15
  163. package/dist/api/controllers/automation.js +28 -2
  164. package/dist/api/controllers/backup.js +3 -2
  165. package/dist/api/controllers/query/index.js +25 -0
  166. package/dist/api/controllers/row/external.js +19 -7
  167. package/dist/api/controllers/row/internalSearch.js +22 -1
  168. package/dist/api/controllers/row/utils.js +3 -0
  169. package/dist/api/index.js +4 -1
  170. package/dist/api/routes/automation.js +2 -0
  171. package/dist/automations/automationUtils.js +16 -4
  172. package/dist/automations/logging/index.js +70 -0
  173. package/dist/automations/steps/filter.js +38 -29
  174. package/dist/automations/triggers.js +1 -1
  175. package/dist/db/linkedRows/index.js +1 -0
  176. package/dist/db/utils.js +4 -31
  177. package/dist/definitions/datasource.js +1 -0
  178. package/dist/environment.js +1 -0
  179. package/dist/integrations/airtable.js +1 -0
  180. package/dist/integrations/arangodb.js +1 -0
  181. package/dist/integrations/base/sql.js +20 -3
  182. package/dist/integrations/couchdb.js +1 -0
  183. package/dist/integrations/dynamodb.js +1 -0
  184. package/dist/integrations/elasticsearch.js +1 -0
  185. package/dist/integrations/firebase.js +1 -0
  186. package/dist/integrations/googlesheets.js +1 -0
  187. package/dist/integrations/index.js +4 -0
  188. package/dist/integrations/microsoftSqlServer.js +2 -1
  189. package/dist/integrations/mongodb.js +1 -0
  190. package/dist/integrations/mysql.js +2 -1
  191. package/dist/integrations/oracle.js +1 -0
  192. package/dist/integrations/postgres.js +2 -1
  193. package/dist/integrations/queries/sql.js +3 -0
  194. package/dist/integrations/redis.js +1 -0
  195. package/dist/integrations/rest.js +2 -1
  196. package/dist/integrations/s3.js +1 -0
  197. package/dist/integrations/snowflake.js +102 -0
  198. package/dist/package.json +7 -6
  199. package/dist/tests/utilities/TestConfiguration.js +19 -6
  200. package/dist/threads/automation.js +6 -3
  201. package/dist/threads/index.js +15 -1
  202. package/dist/threads/query.js +53 -8
  203. package/dist/tsconfig.build.tsbuildinfo +1 -1
  204. package/dist/utilities/fileSystem/index.js +16 -6
  205. package/package.json +8 -7
  206. package/scripts/integrations/oracle/instantclient/linux/arm64/basiclite-19.10.zip +0 -0
  207. package/scripts/integrations/oracle/instantclient/linux/arm64/install.sh +23 -0
  208. package/scripts/integrations/oracle/instantclient/linux/install.sh +10 -0
  209. package/src/api/controllers/application.ts +18 -14
  210. package/src/api/controllers/automation.js +35 -2
  211. package/src/api/controllers/backup.js +3 -2
  212. package/src/api/controllers/query/index.ts +29 -1
  213. package/src/api/controllers/row/external.js +19 -9
  214. package/src/api/controllers/row/internalSearch.js +28 -0
  215. package/src/api/controllers/row/utils.js +3 -0
  216. package/src/api/index.js +4 -1
  217. package/src/api/routes/automation.js +10 -0
  218. package/src/api/routes/tests/query.spec.js +166 -0
  219. package/src/automations/automationUtils.js +19 -4
  220. package/src/automations/logging/index.ts +35 -0
  221. package/src/automations/steps/filter.js +36 -28
  222. package/src/automations/tests/filter.spec.js +2 -1
  223. package/src/automations/triggers.js +1 -1
  224. package/src/db/linkedRows/index.js +1 -0
  225. package/src/db/utils.js +5 -13
  226. package/src/definitions/common.ts +1 -0
  227. package/src/definitions/datasource.ts +2 -0
  228. package/src/environment.js +1 -0
  229. package/src/integrations/airtable.ts +1 -0
  230. package/src/integrations/arangodb.ts +1 -0
  231. package/src/integrations/base/sql.ts +25 -11
  232. package/src/integrations/couchdb.ts +1 -0
  233. package/src/integrations/dynamodb.ts +1 -0
  234. package/src/integrations/elasticsearch.ts +1 -0
  235. package/src/integrations/firebase.ts +1 -0
  236. package/src/integrations/googlesheets.ts +1 -0
  237. package/src/integrations/index.ts +4 -0
  238. package/src/integrations/microsoftSqlServer.ts +2 -0
  239. package/src/integrations/mongodb.ts +1 -0
  240. package/src/integrations/mysql.ts +2 -0
  241. package/src/integrations/oracle.ts +1 -0
  242. package/src/integrations/postgres.ts +2 -0
  243. package/src/integrations/queries/sql.ts +3 -1
  244. package/src/integrations/redis.ts +1 -0
  245. package/src/integrations/rest.ts +2 -1
  246. package/src/integrations/s3.ts +1 -0
  247. package/src/integrations/snowflake.ts +99 -0
  248. package/src/integrations/tests/rest.spec.js +16 -1
  249. package/src/migrations/tests/index.spec.ts +18 -2
  250. package/src/module.d.ts +2 -0
  251. package/src/tests/utilities/TestConfiguration.js +22 -3
  252. package/src/threads/automation.js +6 -3
  253. package/src/threads/index.ts +5 -1
  254. package/src/threads/query.js +78 -10
  255. package/src/utilities/fileSystem/index.js +22 -8
  256. package/builder/assets/index.24307ca0.css +0 -6
  257. package/builder/assets/index.cc2e9cbe.js +0 -1316
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1656940547305" clover="3.2.0">
3
- <project timestamp="1656940547305" name="All files">
4
- <metrics statements="4308" coveredstatements="3127" conditionals="1787" coveredconditionals="950" methods="625" coveredmethods="446" elements="6720" coveredelements="4523" complexity="0" loc="4308" ncloc="4308" packages="23" files="129" classes="129"/>
2
+ <coverage generated="1657109750143" clover="3.2.0">
3
+ <project timestamp="1657109750143" name="All files">
4
+ <metrics statements="4382" coveredstatements="3147" conditionals="1831" coveredconditionals="957" methods="632" coveredmethods="446" elements="6845" coveredelements="4550" complexity="0" loc="4382" ncloc="4382" packages="23" files="129" classes="129"/>
5
5
  <package name="api">
6
- <metrics statements="34" coveredstatements="34" conditionals="3" coveredconditionals="1" methods="4" coveredmethods="4"/>
6
+ <metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
8
- <metrics statements="34" coveredstatements="34" conditionals="3" coveredconditionals="1" methods="4" coveredmethods="4"/>
8
+ <metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
9
9
  <line num="1" count="27" type="stmt"/>
10
10
  <line num="6" count="27" type="stmt"/>
11
11
  <line num="7" count="27" type="stmt"/>
@@ -21,29 +21,30 @@
21
21
  <line num="19" count="27" type="stmt"/>
22
22
  <line num="20" count="27" type="stmt"/>
23
23
  <line num="22" count="27" type="stmt"/>
24
- <line num="36" count="226" type="stmt"/>
25
- <line num="40" count="226" type="stmt"/>
24
+ <line num="36" count="233" type="stmt"/>
25
+ <line num="40" count="233" type="stmt"/>
26
26
  <line num="62" count="27" type="stmt"/>
27
- <line num="63" count="224" type="stmt"/>
28
- <line num="64" count="224" type="stmt"/>
27
+ <line num="63" count="231" type="stmt"/>
28
+ <line num="64" count="231" type="stmt"/>
29
29
  <line num="66" count="39" type="cond" truecount="1" falsecount="2"/>
30
30
  <line num="67" count="39" type="stmt"/>
31
31
  <line num="68" count="39" type="stmt"/>
32
32
  <line num="74" count="39" type="stmt"/>
33
- <line num="75" count="39" type="stmt"/>
34
- <line num="80" count="27" type="stmt"/>
35
- <line num="81" count="702" type="stmt"/>
36
- <line num="82" count="702" type="stmt"/>
37
- <line num="85" count="27" type="stmt"/>
38
- <line num="86" count="27" type="stmt"/>
33
+ <line num="76" count="39" type="cond" truecount="1" falsecount="1"/>
34
+ <line num="77" count="0" type="stmt"/>
35
+ <line num="83" count="27" type="stmt"/>
36
+ <line num="84" count="702" type="stmt"/>
37
+ <line num="85" count="702" type="stmt"/>
38
+ <line num="88" count="27" type="stmt"/>
39
39
  <line num="89" count="27" type="stmt"/>
40
- <line num="90" count="27" type="stmt"/>
41
40
  <line num="92" count="27" type="stmt"/>
42
41
  <line num="93" count="27" type="stmt"/>
42
+ <line num="95" count="27" type="stmt"/>
43
+ <line num="96" count="27" type="stmt"/>
43
44
  </file>
44
45
  </package>
45
46
  <package name="api.controllers">
46
- <metrics statements="974" coveredstatements="694" conditionals="290" coveredconditionals="136" methods="138" coveredmethods="94"/>
47
+ <metrics statements="991" coveredstatements="699" conditionals="296" coveredconditionals="136" methods="141" coveredmethods="94"/>
47
48
  <file name="apikeys.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/apikeys.js">
48
49
  <metrics statements="24" coveredstatements="24" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="4"/>
49
50
  <line num="1" count="27" type="stmt"/>
@@ -103,125 +104,141 @@
103
104
  <line num="56" count="0" type="stmt"/>
104
105
  </file>
105
106
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/automation.js">
106
- <metrics statements="115" coveredstatements="106" conditionals="34" coveredconditionals="25" methods="21" coveredmethods="20"/>
107
+ <metrics statements="131" coveredstatements="110" conditionals="40" coveredconditionals="25" methods="24" coveredmethods="20"/>
107
108
  <line num="1" count="43" type="stmt"/>
108
109
  <line num="2" count="43" type="stmt"/>
109
- <line num="3" count="43" type="stmt"/>
110
- <line num="8" count="43" type="stmt"/>
111
- <line num="9" count="43" type="stmt"/>
112
- <line num="10" count="43" type="stmt"/>
113
- <line num="11" count="43" type="stmt"/>
110
+ <line num="7" count="43" type="stmt"/>
114
111
  <line num="12" count="43" type="stmt"/>
115
112
  <line num="13" count="43" type="stmt"/>
113
+ <line num="14" count="43" type="stmt"/>
116
114
  <line num="15" count="43" type="stmt"/>
117
- <line num="16" count="43" type="stmt"/>
118
- <line num="25" count="1" type="stmt"/>
119
- <line num="26" count="1" type="stmt"/>
120
- <line num="33" count="33" type="cond" truecount="1" falsecount="1"/>
121
- <line num="34" count="0" type="stmt"/>
122
- <line num="36" count="33" type="stmt"/>
123
- <line num="37" count="33" type="stmt"/>
124
- <line num="38" count="33" type="stmt"/>
125
- <line num="40" count="33" type="cond" truecount="2" falsecount="0"/>
126
- <line num="41" count="27" type="stmt"/>
127
- <line num="43" count="33" type="stmt"/>
128
- <line num="44" count="52" type="cond" truecount="1" falsecount="1"/>
129
- <line num="45" count="0" type="stmt"/>
130
- <line num="47" count="52" type="stmt"/>
131
- <line num="48" count="13" type="cond" truecount="3" falsecount="1"/>
132
- <line num="49" count="0" type="stmt"/>
115
+ <line num="20" count="43" type="stmt"/>
116
+ <line num="21" count="43" type="stmt"/>
117
+ <line num="22" count="43" type="stmt"/>
118
+ <line num="23" count="43" type="stmt"/>
119
+ <line num="25" count="43" type="stmt"/>
120
+ <line num="26" count="43" type="stmt"/>
121
+ <line num="35" count="1" type="stmt"/>
122
+ <line num="36" count="1" type="stmt"/>
123
+ <line num="43" count="33" type="cond" truecount="1" falsecount="1"/>
124
+ <line num="44" count="0" type="stmt"/>
125
+ <line num="46" count="33" type="stmt"/>
126
+ <line num="47" count="33" type="stmt"/>
127
+ <line num="48" count="33" type="stmt"/>
128
+ <line num="50" count="33" type="cond" truecount="2" falsecount="0"/>
129
+ <line num="51" count="27" type="stmt"/>
133
130
  <line num="53" count="33" type="stmt"/>
134
- <line num="56" count="43" type="stmt"/>
135
- <line num="57" count="28" type="stmt"/>
136
- <line num="58" count="28" type="stmt"/>
137
- <line num="59" count="28" type="stmt"/>
138
- <line num="62" count="28" type="cond" truecount="4" falsecount="0"/>
139
- <line num="63" count="1" type="stmt"/>
140
- <line num="66" count="27" type="stmt"/>
141
- <line num="68" count="27" type="stmt"/>
142
- <line num="69" count="27" type="stmt"/>
143
- <line num="70" count="27" type="stmt"/>
144
- <line num="73" count="27" type="stmt"/>
145
- <line num="74" count="27" type="stmt"/>
146
- <line num="75" count="27" type="stmt"/>
147
- <line num="76" count="11" type="stmt"/>
131
+ <line num="54" count="52" type="cond" truecount="1" falsecount="1"/>
132
+ <line num="55" count="0" type="stmt"/>
133
+ <line num="57" count="52" type="stmt"/>
134
+ <line num="58" count="13" type="cond" truecount="3" falsecount="1"/>
135
+ <line num="59" count="0" type="stmt"/>
136
+ <line num="63" count="33" type="stmt"/>
137
+ <line num="66" count="43" type="stmt"/>
138
+ <line num="67" count="28" type="stmt"/>
139
+ <line num="68" count="28" type="stmt"/>
140
+ <line num="69" count="28" type="stmt"/>
141
+ <line num="72" count="28" type="cond" truecount="4" falsecount="0"/>
142
+ <line num="73" count="1" type="stmt"/>
143
+ <line num="76" count="27" type="stmt"/>
148
144
  <line num="78" count="27" type="stmt"/>
145
+ <line num="79" count="27" type="stmt"/>
149
146
  <line num="80" count="27" type="stmt"/>
150
- <line num="81" count="27" type="stmt"/>
151
- <line num="90" count="43" type="stmt"/>
152
- <line num="91" count="7" type="stmt"/>
153
- <line num="92" count="8" type="stmt"/>
154
- <line num="95" count="43" type="stmt"/>
155
- <line num="96" count="8" type="stmt"/>
156
- <line num="97" count="7" type="stmt"/>
147
+ <line num="83" count="27" type="stmt"/>
148
+ <line num="84" count="27" type="stmt"/>
149
+ <line num="85" count="27" type="stmt"/>
150
+ <line num="86" count="11" type="stmt"/>
151
+ <line num="88" count="27" type="stmt"/>
152
+ <line num="90" count="27" type="stmt"/>
153
+ <line num="91" count="27" type="stmt"/>
157
154
  <line num="100" count="43" type="stmt"/>
158
- <line num="102" count="6" type="stmt"/>
159
- <line num="103" count="6" type="stmt"/>
160
- <line num="104" count="4" type="stmt"/>
161
- <line num="108" count="6" type="stmt"/>
162
- <line num="109" count="6" type="stmt"/>
163
- <line num="110" count="3" type="stmt"/>
164
- <line num="114" count="43" type="stmt"/>
165
- <line num="115" count="6" type="stmt"/>
166
- <line num="116" count="6" type="stmt"/>
167
- <line num="117" count="6" type="stmt"/>
155
+ <line num="101" count="7" type="stmt"/>
156
+ <line num="102" count="8" type="stmt"/>
157
+ <line num="105" count="43" type="stmt"/>
158
+ <line num="106" count="8" type="stmt"/>
159
+ <line num="107" count="7" type="stmt"/>
160
+ <line num="110" count="43" type="stmt"/>
161
+ <line num="112" count="6" type="stmt"/>
162
+ <line num="113" count="6" type="stmt"/>
163
+ <line num="114" count="4" type="stmt"/>
168
164
  <line num="118" count="6" type="stmt"/>
169
165
  <line num="119" count="6" type="stmt"/>
170
- <line num="120" count="6" type="stmt"/>
171
- <line num="124" count="6" type="stmt"/>
166
+ <line num="120" count="3" type="stmt"/>
167
+ <line num="124" count="43" type="stmt"/>
172
168
  <line num="125" count="6" type="stmt"/>
173
- <line num="128" count="6" type="cond" truecount="3" falsecount="1"/>
174
- <line num="132" count="6" type="cond" truecount="3" falsecount="1"/>
175
- <line num="136" count="6" type="cond" truecount="4" falsecount="0"/>
176
- <line num="137" count="1" type="stmt"/>
177
- <line num="138" count="1" type="stmt"/>
178
- <line num="145" count="6" type="stmt"/>
179
- <line num="147" count="6" type="stmt"/>
180
- <line num="148" count="6" type="stmt"/>
181
- <line num="158" count="43" type="stmt"/>
182
- <line num="159" count="2" type="stmt"/>
183
- <line num="160" count="2" type="stmt"/>
184
- <line num="165" count="2" type="stmt"/>
169
+ <line num="126" count="6" type="stmt"/>
170
+ <line num="127" count="6" type="stmt"/>
171
+ <line num="128" count="6" type="stmt"/>
172
+ <line num="129" count="6" type="stmt"/>
173
+ <line num="130" count="6" type="stmt"/>
174
+ <line num="134" count="6" type="stmt"/>
175
+ <line num="135" count="6" type="stmt"/>
176
+ <line num="138" count="6" type="cond" truecount="3" falsecount="1"/>
177
+ <line num="142" count="6" type="cond" truecount="3" falsecount="1"/>
178
+ <line num="146" count="6" type="cond" truecount="4" falsecount="0"/>
179
+ <line num="147" count="1" type="stmt"/>
180
+ <line num="148" count="1" type="stmt"/>
181
+ <line num="155" count="6" type="stmt"/>
182
+ <line num="157" count="6" type="stmt"/>
183
+ <line num="158" count="6" type="stmt"/>
185
184
  <line num="168" count="43" type="stmt"/>
186
- <line num="169" count="1" type="stmt"/>
187
- <line num="170" count="1" type="stmt"/>
188
- <line num="173" count="43" type="stmt"/>
189
- <line num="174" count="1" type="stmt"/>
190
- <line num="175" count="1" type="stmt"/>
191
- <line num="176" count="1" type="stmt"/>
192
- <line num="177" count="1" type="stmt"/>
193
- <line num="181" count="1" type="stmt"/>
194
- <line num="182" count="1" type="stmt"/>
195
- <line num="183" count="1" type="stmt"/>
196
- <line num="186" count="43" type="stmt"/>
185
+ <line num="169" count="2" type="stmt"/>
186
+ <line num="170" count="2" type="stmt"/>
187
+ <line num="175" count="2" type="stmt"/>
188
+ <line num="178" count="43" type="stmt"/>
189
+ <line num="179" count="1" type="stmt"/>
190
+ <line num="180" count="1" type="stmt"/>
191
+ <line num="183" count="43" type="stmt"/>
192
+ <line num="184" count="1" type="stmt"/>
193
+ <line num="185" count="1" type="stmt"/>
194
+ <line num="186" count="1" type="stmt"/>
197
195
  <line num="187" count="1" type="stmt"/>
198
- <line num="190" count="43" type="stmt"/>
199
196
  <line num="191" count="1" type="stmt"/>
200
- <line num="194" count="43" type="stmt"/>
201
- <line num="195" count="1" type="stmt"/>
202
- <line num="207" count="43" type="stmt"/>
203
- <line num="208" count="0" type="stmt"/>
204
- <line num="209" count="0" type="stmt"/>
205
- <line num="210" count="0" type="stmt"/>
197
+ <line num="192" count="1" type="stmt"/>
198
+ <line num="193" count="1" type="stmt"/>
199
+ <line num="196" count="43" type="stmt"/>
200
+ <line num="197" count="0" type="stmt"/>
201
+ <line num="200" count="43" type="stmt"/>
202
+ <line num="201" count="0" type="stmt"/>
203
+ <line num="202" count="0" type="stmt"/>
204
+ <line num="203" count="0" type="stmt"/>
205
+ <line num="204" count="0" type="stmt"/>
206
+ <line num="205" count="0" type="cond" truecount="0" falsecount="2"/>
207
+ <line num="206" count="0" type="stmt"/>
208
+ <line num="207" count="0" type="cond" truecount="0" falsecount="2"/>
209
+ <line num="211" count="0" type="stmt"/>
210
+ <line num="213" count="0" type="stmt"/>
206
211
  <line num="214" count="0" type="stmt"/>
207
- <line num="222" count="2" type="cond" truecount="2" falsecount="2"/>
208
- <line num="223" count="0" type="stmt"/>
209
- <line num="225" count="2" type="cond" truecount="2" falsecount="2"/>
210
- <line num="226" count="0" type="stmt"/>
211
- <line num="228" count="2" type="stmt"/>
212
- <line num="231" count="43" type="stmt"/>
213
- <line num="232" count="2" type="stmt"/>
214
- <line num="233" count="2" type="stmt"/>
215
- <line num="234" count="2" type="stmt"/>
216
- <line num="235" count="2" type="stmt"/>
217
- <line num="236" count="2" type="stmt"/>
218
- <line num="245" count="2" type="stmt"/>
219
- <line num="249" count="2" type="stmt"/>
220
- <line num="250" count="2" type="stmt"/>
221
- <line num="251" count="2" type="stmt"/>
212
+ <line num="215" count="0" type="stmt"/>
213
+ <line num="219" count="43" type="stmt"/>
214
+ <line num="220" count="1" type="stmt"/>
215
+ <line num="223" count="43" type="stmt"/>
216
+ <line num="224" count="1" type="stmt"/>
217
+ <line num="227" count="43" type="stmt"/>
218
+ <line num="228" count="1" type="stmt"/>
219
+ <line num="240" count="43" type="stmt"/>
220
+ <line num="241" count="0" type="stmt"/>
221
+ <line num="242" count="0" type="stmt"/>
222
+ <line num="243" count="0" type="stmt"/>
223
+ <line num="247" count="0" type="stmt"/>
224
+ <line num="255" count="2" type="cond" truecount="2" falsecount="2"/>
225
+ <line num="256" count="0" type="stmt"/>
226
+ <line num="258" count="2" type="cond" truecount="2" falsecount="2"/>
227
+ <line num="259" count="0" type="stmt"/>
228
+ <line num="261" count="2" type="stmt"/>
229
+ <line num="264" count="43" type="stmt"/>
230
+ <line num="265" count="2" type="stmt"/>
231
+ <line num="266" count="2" type="stmt"/>
232
+ <line num="267" count="2" type="stmt"/>
233
+ <line num="268" count="2" type="stmt"/>
234
+ <line num="269" count="2" type="stmt"/>
235
+ <line num="278" count="2" type="stmt"/>
236
+ <line num="282" count="2" type="stmt"/>
237
+ <line num="283" count="2" type="stmt"/>
238
+ <line num="284" count="2" type="stmt"/>
222
239
  </file>
223
240
  <file name="backup.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/backup.js">
224
- <metrics statements="13" coveredstatements="13" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
241
+ <metrics statements="14" coveredstatements="14" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
225
242
  <line num="1" count="27" type="stmt"/>
226
243
  <line num="2" count="27" type="stmt"/>
227
244
  <line num="3" count="27" type="stmt"/>
@@ -231,10 +248,11 @@
231
248
  <line num="8" count="1" type="stmt"/>
232
249
  <line num="9" count="1" type="stmt"/>
233
250
  <line num="10" count="1" type="stmt"/>
234
- <line num="12" count="1" type="stmt"/>
251
+ <line num="11" count="1" type="stmt"/>
235
252
  <line num="13" count="1" type="stmt"/>
236
253
  <line num="14" count="1" type="stmt"/>
237
254
  <line num="15" count="1" type="stmt"/>
255
+ <line num="16" count="1" type="stmt"/>
238
256
  </file>
239
257
  <file name="cloud.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/cloud.js">
240
258
  <metrics statements="54" coveredstatements="10" conditionals="23" coveredconditionals="0" methods="8" coveredmethods="0"/>
@@ -378,26 +396,26 @@
378
396
  <line num="124" count="6" type="stmt"/>
379
397
  <line num="125" count="6" type="stmt"/>
380
398
  <line num="128" count="44" type="stmt"/>
381
- <line num="129" count="52" type="stmt"/>
382
- <line num="130" count="52" type="stmt"/>
383
- <line num="131" count="52" type="stmt"/>
384
- <line num="133" count="52" type="stmt"/>
385
- <line num="139" count="52" type="stmt"/>
386
- <line num="140" count="52" type="cond" truecount="1" falsecount="1"/>
399
+ <line num="129" count="66" type="stmt"/>
400
+ <line num="130" count="66" type="stmt"/>
401
+ <line num="131" count="66" type="stmt"/>
402
+ <line num="133" count="66" type="stmt"/>
403
+ <line num="139" count="66" type="stmt"/>
404
+ <line num="140" count="66" type="cond" truecount="1" falsecount="1"/>
387
405
  <line num="141" count="0" type="stmt"/>
388
406
  <line num="142" count="0" type="stmt"/>
389
407
  <line num="143" count="0" type="stmt"/>
390
- <line num="146" count="52" type="stmt"/>
391
- <line num="147" count="52" type="stmt"/>
392
- <line num="148" count="52" type="stmt"/>
393
- <line num="151" count="52" type="cond" truecount="1" falsecount="1"/>
394
- <line num="152" count="52" type="stmt"/>
395
- <line num="153" count="52" type="cond" truecount="3" falsecount="1"/>
408
+ <line num="146" count="66" type="stmt"/>
409
+ <line num="147" count="66" type="stmt"/>
410
+ <line num="148" count="66" type="stmt"/>
411
+ <line num="151" count="66" type="cond" truecount="1" falsecount="1"/>
412
+ <line num="152" count="66" type="stmt"/>
413
+ <line num="153" count="66" type="cond" truecount="3" falsecount="1"/>
396
414
  <line num="154" count="0" type="stmt"/>
397
- <line num="158" count="52" type="stmt"/>
398
- <line num="159" count="52" type="cond" truecount="1" falsecount="1"/>
415
+ <line num="158" count="66" type="stmt"/>
416
+ <line num="159" count="66" type="cond" truecount="1" falsecount="1"/>
399
417
  <line num="160" count="0" type="stmt"/>
400
- <line num="162" count="52" type="stmt"/>
418
+ <line num="162" count="66" type="stmt"/>
401
419
  <line num="165" count="44" type="stmt"/>
402
420
  <line num="166" count="1" type="stmt"/>
403
421
  <line num="167" count="1" type="stmt"/>
@@ -1095,9 +1113,9 @@
1095
1113
  </file>
1096
1114
  </package>
1097
1115
  <package name="api.controllers.row">
1098
- <metrics statements="590" coveredstatements="342" conditionals="268" coveredconditionals="96" methods="86" coveredmethods="46"/>
1116
+ <metrics statements="610" coveredstatements="344" conditionals="280" coveredconditionals="97" methods="88" coveredmethods="46"/>
1099
1117
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1100
- <metrics statements="110" coveredstatements="18" conditionals="46" coveredconditionals="0" methods="15" coveredmethods="0"/>
1118
+ <metrics statements="116" coveredstatements="18" conditionals="50" coveredconditionals="0" methods="15" coveredmethods="0"/>
1101
1119
  <line num="6" count="44" type="stmt"/>
1102
1120
  <line num="10" count="44" type="stmt"/>
1103
1121
  <line num="11" count="44" type="stmt"/>
@@ -1175,39 +1193,45 @@
1175
1193
  <line num="159" count="0" type="stmt"/>
1176
1194
  <line num="160" count="0" type="stmt"/>
1177
1195
  <line num="161" count="0" type="stmt"/>
1178
- <line num="162" count="0" type="cond" truecount="0" falsecount="4"/>
1179
- <line num="163" count="0" type="stmt"/>
1180
- <line num="165" count="0" type="stmt"/>
1196
+ <line num="162" count="0" type="stmt"/>
1197
+ <line num="163" count="0" type="cond" truecount="0" falsecount="4"/>
1198
+ <line num="164" count="0" type="stmt"/>
1181
1199
  <line num="166" count="0" type="stmt"/>
1182
- <line num="167" count="0" type="stmt"/>
1183
- <line num="171" count="0" type="stmt"/>
1184
- <line num="177" count="0" type="stmt"/>
1200
+ <line num="169" count="0" type="stmt"/>
1201
+ <line num="174" count="0" type="stmt"/>
1202
+ <line num="175" count="0" type="stmt"/>
1203
+ <line num="178" count="0" type="cond" truecount="0" falsecount="4"/>
1185
1204
  <line num="179" count="0" type="stmt"/>
1186
1205
  <line num="180" count="0" type="stmt"/>
1187
1206
  <line num="181" count="0" type="stmt"/>
1188
- <line num="184" count="0" type="stmt"/>
1189
- <line num="185" count="0" type="stmt"/>
1190
- <line num="188" count="44" type="stmt"/>
1207
+ <line num="182" count="0" type="stmt"/>
1208
+ <line num="186" count="0" type="stmt"/>
1191
1209
  <line num="189" count="0" type="stmt"/>
1192
1210
  <line num="190" count="0" type="stmt"/>
1193
1211
  <line num="191" count="0" type="stmt"/>
1194
- <line num="192" count="0" type="stmt"/>
1195
- <line num="193" count="0" type="stmt"/>
1196
- <line num="194" count="0" type="cond" truecount="0" falsecount="4"/>
1212
+ <line num="194" count="0" type="stmt"/>
1197
1213
  <line num="195" count="0" type="stmt"/>
1198
- <line num="197" count="0" type="stmt"/>
1199
- <line num="198" count="0" type="stmt"/>
1214
+ <line num="198" count="44" type="stmt"/>
1215
+ <line num="199" count="0" type="stmt"/>
1216
+ <line num="200" count="0" type="stmt"/>
1217
+ <line num="201" count="0" type="stmt"/>
1200
1218
  <line num="202" count="0" type="stmt"/>
1201
1219
  <line num="203" count="0" type="stmt"/>
1202
- <line num="206" count="0" type="stmt"/>
1203
- <line num="207" count="0" type="cond" truecount="0" falsecount="2"/>
1220
+ <line num="204" count="0" type="cond" truecount="0" falsecount="4"/>
1221
+ <line num="205" count="0" type="stmt"/>
1222
+ <line num="207" count="0" type="stmt"/>
1223
+ <line num="208" count="0" type="stmt"/>
1204
1224
  <line num="212" count="0" type="stmt"/>
1205
- <line num="214" count="0" type="stmt"/>
1206
- <line num="215" count="0" type="stmt"/>
1225
+ <line num="213" count="0" type="stmt"/>
1207
1226
  <line num="216" count="0" type="stmt"/>
1208
- <line num="218" count="0" type="stmt"/>
1209
- <line num="219" count="0" type="stmt"/>
1210
- <line num="232" count="0" type="stmt"/>
1227
+ <line num="217" count="0" type="cond" truecount="0" falsecount="2"/>
1228
+ <line num="222" count="0" type="stmt"/>
1229
+ <line num="224" count="0" type="stmt"/>
1230
+ <line num="225" count="0" type="stmt"/>
1231
+ <line num="226" count="0" type="stmt"/>
1232
+ <line num="228" count="0" type="stmt"/>
1233
+ <line num="229" count="0" type="stmt"/>
1234
+ <line num="242" count="0" type="stmt"/>
1211
1235
  </file>
1212
1236
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internal.js">
1213
1237
  <metrics statements="213" coveredstatements="172" conditionals="64" coveredconditionals="40" methods="26" coveredmethods="22"/>
@@ -1426,160 +1450,172 @@
1426
1450
  <line num="454" count="2" type="stmt"/>
1427
1451
  </file>
1428
1452
  <file name="internalSearch.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internalSearch.js">
1429
- <metrics statements="153" coveredstatements="94" conditionals="95" coveredconditionals="38" methods="33" coveredmethods="18"/>
1453
+ <metrics statements="165" coveredstatements="96" conditionals="101" coveredconditionals="39" methods="35" coveredmethods="18"/>
1430
1454
  <line num="1" count="43" type="stmt"/>
1431
1455
  <line num="2" count="43" type="stmt"/>
1432
1456
  <line num="3" count="43" type="stmt"/>
1433
1457
  <line num="4" count="43" type="stmt"/>
1434
1458
  <line num="12" count="1" type="stmt"/>
1435
- <line num="22" count="1" type="stmt"/>
1436
1459
  <line num="23" count="1" type="stmt"/>
1437
1460
  <line num="24" count="1" type="stmt"/>
1438
1461
  <line num="25" count="1" type="stmt"/>
1439
1462
  <line num="26" count="1" type="stmt"/>
1440
- <line num="30" count="1" type="stmt"/>
1463
+ <line num="27" count="1" type="stmt"/>
1441
1464
  <line num="31" count="1" type="stmt"/>
1442
- <line num="35" count="1" type="stmt"/>
1465
+ <line num="32" count="1" type="stmt"/>
1443
1466
  <line num="36" count="1" type="stmt"/>
1444
- <line num="40" count="1" type="cond" truecount="1" falsecount="1"/>
1445
- <line num="41" count="1" type="stmt"/>
1446
- <line num="43" count="1" type="stmt"/>
1447
- <line num="47" count="1" type="cond" truecount="1" falsecount="1"/>
1448
- <line num="48" count="0" type="stmt"/>
1449
- <line num="50" count="1" type="stmt"/>
1450
- <line num="54" count="1" type="cond" truecount="1" falsecount="1"/>
1451
- <line num="55" count="0" type="stmt"/>
1452
- <line num="57" count="1" type="stmt"/>
1453
- <line num="61" count="1" type="cond" truecount="1" falsecount="1"/>
1454
- <line num="62" count="0" type="stmt"/>
1455
- <line num="64" count="1" type="stmt"/>
1456
- <line num="68" count="1" type="stmt"/>
1467
+ <line num="37" count="1" type="stmt"/>
1468
+ <line num="41" count="1" type="cond" truecount="1" falsecount="1"/>
1469
+ <line num="42" count="1" type="stmt"/>
1470
+ <line num="44" count="1" type="stmt"/>
1471
+ <line num="48" count="1" type="cond" truecount="1" falsecount="1"/>
1472
+ <line num="49" count="0" type="stmt"/>
1473
+ <line num="51" count="1" type="stmt"/>
1474
+ <line num="55" count="1" type="cond" truecount="1" falsecount="1"/>
1475
+ <line num="56" count="0" type="stmt"/>
1476
+ <line num="58" count="1" type="stmt"/>
1477
+ <line num="62" count="1" type="cond" truecount="1" falsecount="1"/>
1478
+ <line num="63" count="0" type="stmt"/>
1479
+ <line num="65" count="1" type="stmt"/>
1457
1480
  <line num="69" count="1" type="stmt"/>
1458
- <line num="73" count="0" type="stmt"/>
1481
+ <line num="70" count="1" type="stmt"/>
1459
1482
  <line num="74" count="0" type="stmt"/>
1460
- <line num="78" count="0" type="stmt"/>
1483
+ <line num="75" count="0" type="stmt"/>
1461
1484
  <line num="79" count="0" type="stmt"/>
1462
- <line num="83" count="0" type="stmt"/>
1485
+ <line num="80" count="0" type="stmt"/>
1463
1486
  <line num="84" count="0" type="stmt"/>
1464
- <line num="88" count="0" type="stmt"/>
1465
- <line num="92" count="0" type="stmt"/>
1466
- <line num="96" count="0" type="stmt"/>
1487
+ <line num="85" count="0" type="stmt"/>
1488
+ <line num="89" count="0" type="stmt"/>
1489
+ <line num="93" count="0" type="stmt"/>
1467
1490
  <line num="97" count="0" type="stmt"/>
1468
- <line num="101" count="0" type="stmt"/>
1491
+ <line num="98" count="0" type="stmt"/>
1469
1492
  <line num="102" count="0" type="stmt"/>
1470
- <line num="106" count="0" type="stmt"/>
1493
+ <line num="103" count="0" type="stmt"/>
1471
1494
  <line num="107" count="0" type="stmt"/>
1472
- <line num="111" count="0" type="stmt"/>
1495
+ <line num="108" count="0" type="stmt"/>
1473
1496
  <line num="112" count="0" type="stmt"/>
1474
- <line num="123" count="2" type="stmt"/>
1475
- <line num="125" count="2" type="stmt"/>
1476
- <line num="127" count="2" type="cond" truecount="4" falsecount="0"/>
1477
- <line num="128" count="1" type="cond" truecount="1" falsecount="1"/>
1478
- <line num="131" count="2" type="cond" truecount="3" falsecount="1"/>
1479
- <line num="132" count="2" type="stmt"/>
1480
- <line num="135" count="2" type="cond" truecount="2" falsecount="2"/>
1481
- <line num="136" count="0" type="cond" truecount="0" falsecount="2"/>
1497
+ <line num="113" count="0" type="stmt"/>
1498
+ <line num="117" count="0" type="stmt"/>
1499
+ <line num="118" count="0" type="stmt"/>
1500
+ <line num="129" count="2" type="stmt"/>
1501
+ <line num="131" count="2" type="stmt"/>
1502
+ <line num="133" count="2" type="cond" truecount="4" falsecount="0"/>
1503
+ <line num="134" count="1" type="cond" truecount="1" falsecount="1"/>
1504
+ <line num="137" count="2" type="cond" truecount="3" falsecount="1"/>
1482
1505
  <line num="138" count="2" type="stmt"/>
1483
- <line num="142" count="1" type="stmt"/>
1484
- <line num="143" count="1" type="stmt"/>
1485
- <line num="144" count="1" type="stmt"/>
1486
- <line num="147" count="7" type="stmt"/>
1506
+ <line num="141" count="2" type="cond" truecount="2" falsecount="2"/>
1507
+ <line num="142" count="0" type="cond" truecount="0" falsecount="2"/>
1508
+ <line num="144" count="2" type="stmt"/>
1487
1509
  <line num="148" count="1" type="stmt"/>
1488
- <line num="151" count="1" type="stmt"/>
1489
- <line num="152" count="1" type="cond" truecount="1" falsecount="1"/>
1490
- <line num="153" count="0" type="stmt"/>
1491
- <line num="155" count="1" type="stmt"/>
1492
- <line num="160" count="1" type="cond" truecount="1" falsecount="1"/>
1510
+ <line num="149" count="1" type="stmt"/>
1511
+ <line num="150" count="1" type="stmt"/>
1512
+ <line num="153" count="8" type="stmt"/>
1513
+ <line num="154" count="1" type="stmt"/>
1514
+ <line num="157" count="1" type="stmt"/>
1515
+ <line num="158" count="1" type="cond" truecount="1" falsecount="1"/>
1516
+ <line num="159" count="0" type="stmt"/>
1493
1517
  <line num="161" count="1" type="stmt"/>
1494
- <line num="162" count="0" type="cond" truecount="0" falsecount="2"/>
1495
- <line num="163" count="0" type="stmt"/>
1496
- <line num="165" count="0" type="stmt"/>
1518
+ <line num="166" count="1" type="cond" truecount="1" falsecount="1"/>
1519
+ <line num="167" count="1" type="stmt"/>
1520
+ <line num="168" count="0" type="cond" truecount="0" falsecount="2"/>
1497
1521
  <line num="169" count="0" type="stmt"/>
1498
- <line num="172" count="1" type="cond" truecount="1" falsecount="1"/>
1499
- <line num="173" count="1" type="stmt"/>
1500
- <line num="174" count="0" type="cond" truecount="0" falsecount="2"/>
1522
+ <line num="171" count="0" type="stmt"/>
1501
1523
  <line num="175" count="0" type="stmt"/>
1502
- <line num="177" count="0" type="cond" truecount="0" falsecount="4"/>
1503
- <line num="178" count="0" type="stmt"/>
1504
- <line num="180" count="0" type="cond" truecount="0" falsecount="4"/>
1524
+ <line num="178" count="1" type="cond" truecount="1" falsecount="1"/>
1525
+ <line num="179" count="1" type="stmt"/>
1526
+ <line num="180" count="0" type="cond" truecount="0" falsecount="2"/>
1505
1527
  <line num="181" count="0" type="stmt"/>
1506
- <line num="183" count="0" type="stmt"/>
1528
+ <line num="183" count="0" type="cond" truecount="0" falsecount="4"/>
1507
1529
  <line num="184" count="0" type="stmt"/>
1508
- <line num="185" count="0" type="stmt"/>
1509
- <line num="188" count="1" type="cond" truecount="1" falsecount="1"/>
1510
- <line num="189" count="1" type="stmt"/>
1511
- <line num="190" count="0" type="cond" truecount="0" falsecount="2"/>
1530
+ <line num="186" count="0" type="cond" truecount="0" falsecount="4"/>
1531
+ <line num="187" count="0" type="stmt"/>
1532
+ <line num="189" count="0" type="stmt"/>
1533
+ <line num="190" count="0" type="stmt"/>
1512
1534
  <line num="191" count="0" type="stmt"/>
1513
- <line num="193" count="0" type="stmt"/>
1535
+ <line num="194" count="1" type="cond" truecount="1" falsecount="1"/>
1536
+ <line num="195" count="1" type="stmt"/>
1537
+ <line num="196" count="0" type="cond" truecount="0" falsecount="2"/>
1514
1538
  <line num="197" count="0" type="stmt"/>
1515
- <line num="200" count="1" type="cond" truecount="1" falsecount="1"/>
1516
- <line num="201" count="1" type="stmt"/>
1517
- <line num="203" count="1" type="cond" truecount="2" falsecount="2"/>
1518
- <line num="204" count="0" type="stmt"/>
1519
- <line num="206" count="1" type="stmt"/>
1520
- <line num="209" count="1" type="cond" truecount="1" falsecount="1"/>
1521
- <line num="210" count="1" type="stmt"/>
1522
- <line num="211" count="0" type="cond" truecount="0" falsecount="2"/>
1523
- <line num="212" count="0" type="stmt"/>
1524
- <line num="214" count="0" type="stmt"/>
1525
- <line num="217" count="1" type="cond" truecount="1" falsecount="1"/>
1526
- <line num="218" count="1" type="stmt"/>
1527
- <line num="220" count="1" type="cond" truecount="1" falsecount="1"/>
1528
- <line num="221" count="1" type="stmt"/>
1529
- <line num="223" count="1" type="stmt"/>
1539
+ <line num="199" count="0" type="stmt"/>
1540
+ <line num="203" count="0" type="stmt"/>
1541
+ <line num="206" count="1" type="cond" truecount="1" falsecount="1"/>
1542
+ <line num="207" count="1" type="stmt"/>
1543
+ <line num="209" count="1" type="cond" truecount="2" falsecount="2"/>
1544
+ <line num="210" count="0" type="stmt"/>
1545
+ <line num="212" count="1" type="stmt"/>
1546
+ <line num="215" count="1" type="cond" truecount="1" falsecount="1"/>
1547
+ <line num="216" count="1" type="stmt"/>
1548
+ <line num="217" count="0" type="cond" truecount="0" falsecount="2"/>
1549
+ <line num="218" count="0" type="stmt"/>
1550
+ <line num="220" count="0" type="stmt"/>
1551
+ <line num="223" count="1" type="cond" truecount="1" falsecount="1"/>
1552
+ <line num="224" count="1" type="stmt"/>
1553
+ <line num="226" count="1" type="cond" truecount="1" falsecount="1"/>
1530
1554
  <line num="227" count="1" type="stmt"/>
1531
- <line num="232" count="1" type="cond" truecount="1" falsecount="1"/>
1555
+ <line num="229" count="1" type="cond" truecount="1" falsecount="1"/>
1556
+ <line num="230" count="1" type="stmt"/>
1557
+ <line num="231" count="0" type="cond" truecount="0" falsecount="2"/>
1558
+ <line num="232" count="0" type="cond" truecount="0" falsecount="2"/>
1532
1559
  <line num="233" count="0" type="stmt"/>
1533
- <line num="235" count="1" type="cond" truecount="1" falsecount="1"/>
1534
- <line num="236" count="0" type="cond" truecount="0" falsecount="2"/>
1535
- <line num="237" count="0" type="stmt"/>
1560
+ <line num="235" count="0" type="stmt"/>
1536
1561
  <line num="238" count="0" type="stmt"/>
1537
- <line num="240" count="1" type="stmt"/>
1538
- <line num="244" count="1" type="stmt"/>
1539
- <line num="245" count="1" type="stmt"/>
1540
- <line num="246" count="1" type="stmt"/>
1541
- <line num="247" count="1" type="stmt"/>
1542
- <line num="248" count="1" type="stmt"/>
1543
- <line num="259" count="43" type="stmt"/>
1544
- <line num="260" count="1" type="stmt"/>
1545
- <line num="267" count="1" type="stmt"/>
1546
- <line num="269" count="1" type="stmt"/>
1547
- <line num="272" count="1" type="cond" truecount="3" falsecount="1"/>
1562
+ <line num="242" count="0" type="stmt"/>
1563
+ <line num="243" count="0" type="stmt"/>
1564
+ <line num="248" count="0" type="stmt"/>
1565
+ <line num="251" count="1" type="stmt"/>
1566
+ <line num="255" count="1" type="stmt"/>
1567
+ <line num="260" count="1" type="cond" truecount="1" falsecount="1"/>
1568
+ <line num="261" count="0" type="stmt"/>
1569
+ <line num="263" count="1" type="cond" truecount="1" falsecount="1"/>
1570
+ <line num="264" count="0" type="cond" truecount="0" falsecount="2"/>
1571
+ <line num="265" count="0" type="stmt"/>
1572
+ <line num="266" count="0" type="stmt"/>
1573
+ <line num="268" count="1" type="stmt"/>
1574
+ <line num="272" count="1" type="stmt"/>
1548
1575
  <line num="273" count="1" type="stmt"/>
1549
- <line num="275" count="1" type="cond" truecount="1" falsecount="1"/>
1576
+ <line num="274" count="1" type="stmt"/>
1577
+ <line num="275" count="1" type="stmt"/>
1550
1578
  <line num="276" count="1" type="stmt"/>
1551
- <line num="278" count="1" type="stmt"/>
1552
- <line num="297" count="43" type="stmt"/>
1553
- <line num="298" count="1" type="stmt"/>
1554
- <line num="299" count="1" type="cond" truecount="2" falsecount="0"/>
1555
- <line num="300" count="1" type="cond" truecount="1" falsecount="1"/>
1556
- <line num="301" count="0" type="stmt"/>
1557
- <line num="303" count="1" type="stmt"/>
1558
- <line num="304" count="1" type="cond" truecount="1" falsecount="1"/>
1559
- <line num="305" count="0" type="stmt"/>
1560
- <line num="307" count="1" type="stmt"/>
1561
- <line num="316" count="1" type="cond" truecount="1" falsecount="1"/>
1562
- <line num="317" count="0" type="stmt"/>
1563
- <line num="319" count="1" type="cond" truecount="1" falsecount="1"/>
1564
- <line num="320" count="1" type="stmt"/>
1565
- <line num="322" count="0" type="stmt"/>
1566
- <line num="327" count="0" type="stmt"/>
1567
- <line num="345" count="43" type="stmt"/>
1568
- <line num="346" count="0" type="stmt"/>
1569
- <line num="347" count="0" type="cond" truecount="0" falsecount="5"/>
1570
- <line num="348" count="0" type="stmt"/>
1579
+ <line num="287" count="43" type="stmt"/>
1580
+ <line num="288" count="1" type="stmt"/>
1581
+ <line num="295" count="1" type="stmt"/>
1582
+ <line num="297" count="1" type="stmt"/>
1583
+ <line num="300" count="1" type="cond" truecount="3" falsecount="1"/>
1584
+ <line num="301" count="1" type="stmt"/>
1585
+ <line num="303" count="1" type="cond" truecount="1" falsecount="1"/>
1586
+ <line num="304" count="1" type="stmt"/>
1587
+ <line num="306" count="1" type="stmt"/>
1588
+ <line num="325" count="43" type="stmt"/>
1589
+ <line num="326" count="1" type="stmt"/>
1590
+ <line num="327" count="1" type="cond" truecount="2" falsecount="0"/>
1591
+ <line num="328" count="1" type="cond" truecount="1" falsecount="1"/>
1592
+ <line num="329" count="0" type="stmt"/>
1593
+ <line num="331" count="1" type="stmt"/>
1594
+ <line num="332" count="1" type="cond" truecount="1" falsecount="1"/>
1595
+ <line num="333" count="0" type="stmt"/>
1596
+ <line num="335" count="1" type="stmt"/>
1597
+ <line num="344" count="1" type="cond" truecount="1" falsecount="1"/>
1598
+ <line num="345" count="0" type="stmt"/>
1599
+ <line num="347" count="1" type="cond" truecount="1" falsecount="1"/>
1600
+ <line num="348" count="1" type="stmt"/>
1571
1601
  <line num="350" count="0" type="stmt"/>
1572
- <line num="351" count="0" type="stmt"/>
1573
- <line num="357" count="0" type="stmt"/>
1574
- <line num="364" count="0" type="stmt"/>
1575
- <line num="369" count="0" type="stmt"/>
1576
- <line num="390" count="43" type="stmt"/>
1577
- <line num="391" count="1" type="stmt"/>
1578
- <line num="392" count="1" type="cond" truecount="2" falsecount="3"/>
1579
- <line num="393" count="1" type="stmt"/>
1580
- <line num="395" count="1" type="stmt"/>
1581
- <line num="396" count="1" type="stmt"/>
1582
- <line num="397" count="1" type="stmt"/>
1602
+ <line num="355" count="0" type="stmt"/>
1603
+ <line num="373" count="43" type="stmt"/>
1604
+ <line num="374" count="0" type="stmt"/>
1605
+ <line num="375" count="0" type="cond" truecount="0" falsecount="5"/>
1606
+ <line num="376" count="0" type="stmt"/>
1607
+ <line num="378" count="0" type="stmt"/>
1608
+ <line num="379" count="0" type="stmt"/>
1609
+ <line num="385" count="0" type="stmt"/>
1610
+ <line num="392" count="0" type="stmt"/>
1611
+ <line num="397" count="0" type="stmt"/>
1612
+ <line num="418" count="43" type="stmt"/>
1613
+ <line num="419" count="1" type="stmt"/>
1614
+ <line num="420" count="1" type="cond" truecount="2" falsecount="3"/>
1615
+ <line num="421" count="1" type="stmt"/>
1616
+ <line num="423" count="1" type="stmt"/>
1617
+ <line num="424" count="1" type="stmt"/>
1618
+ <line num="425" count="1" type="stmt"/>
1583
1619
  </file>
1584
1620
  <file name="staticFormula.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/staticFormula.js">
1585
1621
  <metrics statements="63" coveredstatements="23" conditionals="31" coveredconditionals="5" methods="6" coveredmethods="2"/>
@@ -1648,7 +1684,7 @@
1648
1684
  <line num="155" count="79" type="stmt"/>
1649
1685
  </file>
1650
1686
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1651
- <metrics statements="51" coveredstatements="35" conditionals="32" coveredconditionals="13" methods="6" coveredmethods="4"/>
1687
+ <metrics statements="53" coveredstatements="35" conditionals="34" coveredconditionals="13" methods="6" coveredmethods="4"/>
1652
1688
  <line num="1" count="44" type="stmt"/>
1653
1689
  <line num="2" count="44" type="stmt"/>
1654
1690
  <line num="3" count="44" type="stmt"/>
@@ -1688,18 +1724,20 @@
1688
1724
  <line num="60" count="0" type="stmt"/>
1689
1725
  <line num="65" count="224" type="cond" truecount="2" falsecount="2"/>
1690
1726
  <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
1691
- <line num="67" count="0" type="stmt"/>
1692
- <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
1693
- <line num="72" count="0" type="stmt"/>
1694
- <line num="75" count="0" type="cond" truecount="0" falsecount="4"/>
1695
- <line num="77" count="0" type="stmt"/>
1696
- <line num="79" count="224" type="cond" truecount="2" falsecount="2"/>
1697
- <line num="81" count="0" type="stmt"/>
1698
- <line num="82" count="0" type="stmt"/>
1727
+ <line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
1728
+ <line num="68" count="0" type="stmt"/>
1729
+ <line num="70" count="0" type="stmt"/>
1730
+ <line num="71" count="0" type="cond" truecount="0" falsecount="2"/>
1731
+ <line num="75" count="0" type="stmt"/>
1732
+ <line num="78" count="0" type="cond" truecount="0" falsecount="4"/>
1733
+ <line num="80" count="0" type="stmt"/>
1734
+ <line num="82" count="224" type="cond" truecount="2" falsecount="2"/>
1699
1735
  <line num="84" count="0" type="stmt"/>
1700
- <line num="87" count="224" type="stmt"/>
1701
- <line num="89" count="224" type="cond" truecount="2" falsecount="0"/>
1702
- <line num="91" count="83" type="stmt"/>
1736
+ <line num="85" count="0" type="stmt"/>
1737
+ <line num="87" count="0" type="stmt"/>
1738
+ <line num="90" count="224" type="stmt"/>
1739
+ <line num="92" count="224" type="cond" truecount="2" falsecount="0"/>
1740
+ <line num="94" count="83" type="stmt"/>
1703
1741
  </file>
1704
1742
  </package>
1705
1743
  <package name="api.controllers.table">
@@ -2283,7 +2321,7 @@
2283
2321
  <line num="14" count="27" type="stmt"/>
2284
2322
  <line num="16" count="27" type="stmt"/>
2285
2323
  <line num="18" count="27" type="stmt"/>
2286
- <line num="75" count="27" type="stmt"/>
2324
+ <line num="85" count="27" type="stmt"/>
2287
2325
  </file>
2288
2326
  <file name="backup.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/backup.js">
2289
2327
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -2554,7 +2592,7 @@
2554
2592
  </file>
2555
2593
  </package>
2556
2594
  <package name="automations">
2557
- <metrics statements="163" coveredstatements="128" conditionals="64" coveredconditionals="46" methods="21" coveredmethods="13"/>
2595
+ <metrics statements="169" coveredstatements="128" conditionals="70" coveredconditionals="47" methods="21" coveredmethods="13"/>
2558
2596
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2559
2597
  <metrics statements="24" coveredstatements="24" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2560
2598
  <line num="1" count="44" type="stmt"/>
@@ -2583,53 +2621,59 @@
2583
2621
  <line num="74" count="44" type="stmt"/>
2584
2622
  </file>
2585
2623
  <file name="automationUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/automationUtils.js">
2586
- <metrics statements="46" coveredstatements="32" conditionals="29" coveredconditionals="21" methods="5" coveredmethods="3"/>
2624
+ <metrics statements="52" coveredstatements="32" conditionals="33" coveredconditionals="21" methods="5" coveredmethods="3"/>
2587
2625
  <line num="1" count="44" type="stmt"/>
2588
- <line num="2" count="44" type="stmt"/>
2589
- <line num="20" count="44" type="stmt"/>
2590
- <line num="21" count="14" type="cond" truecount="2" falsecount="0"/>
2591
- <line num="22" count="1" type="stmt"/>
2592
- <line num="24" count="13" type="stmt"/>
2593
- <line num="25" count="33" type="stmt"/>
2594
- <line num="26" count="33" type="cond" truecount="2" falsecount="0"/>
2595
- <line num="27" count="6" type="stmt"/>
2596
- <line num="29" count="27" type="stmt"/>
2597
- <line num="30" count="27" type="cond" truecount="2" falsecount="0"/>
2598
- <line num="31" count="11" type="stmt"/>
2599
- <line num="33" count="16" type="cond" truecount="2" falsecount="0"/>
2600
- <line num="34" count="2" type="stmt"/>
2601
- <line num="35" count="2" type="cond" truecount="2" falsecount="0"/>
2602
- <line num="36" count="1" type="stmt"/>
2603
- <line num="38" count="2" type="cond" truecount="2" falsecount="0"/>
2604
- <line num="39" count="1" type="stmt"/>
2605
- <line num="42" count="16" type="cond" truecount="2" falsecount="0"/>
2606
- <line num="43" count="1" type="stmt"/>
2607
- <line num="44" count="1" type="cond" truecount="1" falsecount="1"/>
2608
- <line num="45" count="1" type="stmt"/>
2609
- <line num="49" count="13" type="stmt"/>
2610
- <line num="61" count="44" type="stmt"/>
2611
- <line num="62" count="8" type="stmt"/>
2612
- <line num="63" count="7" type="stmt"/>
2626
+ <line num="7" count="44" type="stmt"/>
2627
+ <line num="25" count="44" type="stmt"/>
2628
+ <line num="26" count="14" type="cond" truecount="2" falsecount="0"/>
2629
+ <line num="27" count="1" type="stmt"/>
2630
+ <line num="29" count="13" type="stmt"/>
2631
+ <line num="30" count="33" type="stmt"/>
2632
+ <line num="31" count="33" type="cond" truecount="2" falsecount="0"/>
2633
+ <line num="32" count="6" type="stmt"/>
2634
+ <line num="34" count="27" type="stmt"/>
2635
+ <line num="35" count="27" type="cond" truecount="2" falsecount="0"/>
2636
+ <line num="36" count="11" type="stmt"/>
2637
+ <line num="38" count="16" type="cond" truecount="2" falsecount="0"/>
2638
+ <line num="39" count="2" type="stmt"/>
2639
+ <line num="40" count="2" type="cond" truecount="2" falsecount="0"/>
2640
+ <line num="41" count="1" type="stmt"/>
2641
+ <line num="43" count="2" type="cond" truecount="2" falsecount="0"/>
2642
+ <line num="44" count="1" type="stmt"/>
2643
+ <line num="47" count="16" type="cond" truecount="2" falsecount="0"/>
2644
+ <line num="48" count="1" type="stmt"/>
2645
+ <line num="49" count="1" type="cond" truecount="1" falsecount="1"/>
2646
+ <line num="50" count="1" type="stmt"/>
2647
+ <line num="54" count="13" type="stmt"/>
2613
2648
  <line num="66" count="44" type="stmt"/>
2614
- <line num="67" count="3" type="cond" truecount="1" falsecount="1"/>
2615
- <line num="68" count="0" type="stmt"/>
2616
- <line num="70" count="3" type="cond" truecount="1" falsecount="1"/>
2617
- <line num="74" count="0" type="stmt"/>
2618
- <line num="76" count="3" type="cond" truecount="1" falsecount="1"/>
2619
- <line num="79" count="44" type="stmt"/>
2620
- <line num="80" count="0" type="stmt"/>
2621
- <line num="81" count="0" type="stmt"/>
2622
- <line num="82" count="0" type="stmt"/>
2623
- <line num="83" count="0" type="stmt"/>
2624
- <line num="84" count="0" type="stmt"/>
2625
- <line num="87" count="0" type="stmt"/>
2626
- <line num="90" count="44" type="stmt"/>
2627
- <line num="91" count="0" type="cond" truecount="0" falsecount="2"/>
2628
- <line num="92" count="0" type="stmt"/>
2629
- <line num="94" count="0" type="cond" truecount="0" falsecount="2"/>
2630
- <line num="95" count="0" type="stmt"/>
2631
- <line num="97" count="0" type="stmt"/>
2632
- <line num="99" count="0" type="stmt"/>
2649
+ <line num="67" count="8" type="stmt"/>
2650
+ <line num="68" count="7" type="stmt"/>
2651
+ <line num="71" count="44" type="stmt"/>
2652
+ <line num="72" count="3" type="cond" truecount="1" falsecount="1"/>
2653
+ <line num="73" count="0" type="stmt"/>
2654
+ <line num="75" count="3" type="cond" truecount="1" falsecount="1"/>
2655
+ <line num="79" count="0" type="stmt"/>
2656
+ <line num="81" count="3" type="cond" truecount="1" falsecount="1"/>
2657
+ <line num="84" count="44" type="stmt"/>
2658
+ <line num="85" count="0" type="stmt"/>
2659
+ <line num="86" count="0" type="stmt"/>
2660
+ <line num="87" count="0" type="cond" truecount="0" falsecount="2"/>
2661
+ <line num="88" count="0" type="stmt"/>
2662
+ <line num="89" count="0" type="stmt"/>
2663
+ <line num="91" count="0" type="stmt"/>
2664
+ <line num="93" count="0" type="stmt"/>
2665
+ <line num="94" count="0" type="stmt"/>
2666
+ <line num="95" count="0" type="cond" truecount="0" falsecount="2"/>
2667
+ <line num="96" count="0" type="stmt"/>
2668
+ <line num="98" count="0" type="stmt"/>
2669
+ <line num="102" count="0" type="stmt"/>
2670
+ <line num="105" count="44" type="stmt"/>
2671
+ <line num="106" count="0" type="cond" truecount="0" falsecount="2"/>
2672
+ <line num="107" count="0" type="stmt"/>
2673
+ <line num="109" count="0" type="cond" truecount="0" falsecount="2"/>
2674
+ <line num="110" count="0" type="stmt"/>
2675
+ <line num="112" count="0" type="stmt"/>
2676
+ <line num="114" count="0" type="stmt"/>
2633
2677
  </file>
2634
2678
  <file name="bullboard.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/bullboard.js">
2635
2679
  <metrics statements="33" coveredstatements="16" conditionals="8" coveredconditionals="3" methods="4" coveredmethods="0"/>
@@ -2685,7 +2729,7 @@
2685
2729
  <line num="26" count="43" type="stmt"/>
2686
2730
  </file>
2687
2731
  <file name="triggers.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggers.js">
2688
- <metrics statements="46" coveredstatements="44" conditionals="25" coveredconditionals="21" methods="8" coveredmethods="8"/>
2732
+ <metrics statements="46" coveredstatements="44" conditionals="27" coveredconditionals="22" methods="8" coveredmethods="8"/>
2689
2733
  <line num="1" count="43" type="stmt"/>
2690
2734
  <line num="2" count="43" type="stmt"/>
2691
2735
  <line num="3" count="43" type="stmt"/>
@@ -2724,7 +2768,7 @@
2724
2768
  <line num="90" count="6" type="cond" truecount="2" falsecount="0"/>
2725
2769
  <line num="98" count="1" type="stmt"/>
2726
2770
  <line num="99" count="1" type="stmt"/>
2727
- <line num="100" count="1" type="stmt"/>
2771
+ <line num="100" count="1" type="cond" truecount="1" falsecount="1"/>
2728
2772
  <line num="101" count="1" type="stmt"/>
2729
2773
  <line num="103" count="1" type="stmt"/>
2730
2774
  <line num="105" count="6" type="stmt"/>
@@ -2735,7 +2779,7 @@
2735
2779
  </file>
2736
2780
  </package>
2737
2781
  <package name="automations.steps">
2738
- <metrics statements="212" coveredstatements="148" conditionals="82" coveredconditionals="52" methods="18" coveredmethods="9"/>
2782
+ <metrics statements="214" coveredstatements="149" conditionals="82" coveredconditionals="52" methods="18" coveredmethods="9"/>
2739
2783
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
2740
2784
  <metrics statements="17" coveredstatements="6" conditionals="4" coveredconditionals="0" methods="1" coveredmethods="0"/>
2741
2785
  <line num="1" count="44" type="stmt"/>
@@ -2814,33 +2858,35 @@
2814
2858
  <line num="65" count="0" type="stmt"/>
2815
2859
  </file>
2816
2860
  <file name="filter.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/filter.js">
2817
- <metrics statements="26" coveredstatements="26" conditionals="16" coveredconditionals="16" methods="1" coveredmethods="1"/>
2861
+ <metrics statements="28" coveredstatements="27" conditionals="16" coveredconditionals="16" methods="1" coveredmethods="1"/>
2818
2862
  <line num="1" count="44" type="stmt"/>
2819
2863
  <line num="8" count="44" type="stmt"/>
2820
2864
  <line num="15" count="44" type="stmt"/>
2821
2865
  <line num="16" count="44" type="stmt"/>
2822
2866
  <line num="18" count="44" type="stmt"/>
2823
- <line num="62" count="44" type="stmt"/>
2824
- <line num="63" count="11" type="stmt"/>
2825
- <line num="65" count="11" type="cond" truecount="4" falsecount="0"/>
2826
- <line num="66" count="6" type="stmt"/>
2827
- <line num="67" count="6" type="stmt"/>
2828
- <line num="68" count="5" type="cond" truecount="4" falsecount="0"/>
2829
- <line num="69" count="1" type="stmt"/>
2830
- <line num="70" count="1" type="stmt"/>
2831
- <line num="72" count="11" type="stmt"/>
2832
- <line num="73" count="11" type="cond" truecount="4" falsecount="0"/>
2833
- <line num="74" count="10" type="cond" truecount="4" falsecount="0"/>
2834
- <line num="76" count="2" type="stmt"/>
2835
- <line num="77" count="2" type="stmt"/>
2836
- <line num="79" count="2" type="stmt"/>
2837
- <line num="80" count="2" type="stmt"/>
2838
- <line num="82" count="4" type="stmt"/>
2839
- <line num="83" count="4" type="stmt"/>
2867
+ <line num="66" count="44" type="stmt"/>
2868
+ <line num="67" count="11" type="stmt"/>
2869
+ <line num="68" count="11" type="stmt"/>
2870
+ <line num="70" count="11" type="cond" truecount="4" falsecount="0"/>
2871
+ <line num="71" count="6" type="stmt"/>
2872
+ <line num="72" count="6" type="stmt"/>
2873
+ <line num="73" count="5" type="cond" truecount="4" falsecount="0"/>
2874
+ <line num="74" count="1" type="stmt"/>
2875
+ <line num="75" count="1" type="stmt"/>
2876
+ <line num="77" count="11" type="stmt"/>
2877
+ <line num="78" count="11" type="cond" truecount="4" falsecount="0"/>
2878
+ <line num="79" count="10" type="cond" truecount="4" falsecount="0"/>
2879
+ <line num="81" count="2" type="stmt"/>
2880
+ <line num="82" count="2" type="stmt"/>
2881
+ <line num="84" count="2" type="stmt"/>
2840
2882
  <line num="85" count="2" type="stmt"/>
2841
- <line num="86" count="2" type="stmt"/>
2842
- <line num="89" count="1" type="stmt"/>
2843
- <line num="91" count="11" type="stmt"/>
2883
+ <line num="87" count="4" type="stmt"/>
2884
+ <line num="88" count="4" type="stmt"/>
2885
+ <line num="90" count="2" type="stmt"/>
2886
+ <line num="91" count="2" type="stmt"/>
2887
+ <line num="94" count="1" type="stmt"/>
2888
+ <line num="96" count="11" type="stmt"/>
2889
+ <line num="98" count="0" type="stmt"/>
2844
2890
  </file>
2845
2891
  <file name="integromat.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/integromat.js">
2846
2892
  <metrics statements="8" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3083,7 +3129,7 @@
3083
3129
  </file>
3084
3130
  </package>
3085
3131
  <package name="db">
3086
- <metrics statements="140" coveredstatements="112" conditionals="58" coveredconditionals="19" methods="36" coveredmethods="27"/>
3132
+ <metrics statements="139" coveredstatements="111" conditionals="58" coveredconditionals="19" methods="35" coveredmethods="26"/>
3087
3133
  <file name="inMemoryView.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/inMemoryView.js">
3088
3134
  <metrics statements="23" coveredstatements="4" conditionals="8" coveredconditionals="0" methods="4" coveredmethods="0"/>
3089
3135
  <line num="1" count="44" type="stmt"/>
@@ -3125,20 +3171,26 @@
3125
3171
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3126
3172
  <line num="1" count="57" type="stmt"/>
3127
3173
  <line num="3" count="57" type="stmt"/>
3128
- <line num="4" count="923" type="stmt"/>
3174
+ <line num="4" count="958" type="stmt"/>
3129
3175
  </file>
3130
3176
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3131
- <metrics statements="106" coveredstatements="97" conditionals="48" coveredconditionals="18" methods="30" coveredmethods="25"/>
3177
+ <metrics statements="105" coveredstatements="96" conditionals="48" coveredconditionals="18" methods="29" coveredmethods="24"/>
3132
3178
  <line num="1" count="57" type="stmt"/>
3133
- <line num="14" count="57" type="stmt"/>
3134
3179
  <line num="16" count="57" type="stmt"/>
3135
3180
  <line num="18" count="57" type="stmt"/>
3136
- <line num="24" count="57" type="stmt"/>
3137
- <line num="48" count="57" type="stmt"/>
3138
- <line num="53" count="57" type="stmt"/>
3139
- <line num="57" count="57" type="stmt"/>
3140
- <line num="61" count="57" type="stmt"/>
3141
- <line num="63" count="57" type="stmt"/>
3181
+ <line num="20" count="57" type="stmt"/>
3182
+ <line num="26" count="57" type="stmt"/>
3183
+ <line num="46" count="57" type="stmt"/>
3184
+ <line num="50" count="57" type="stmt"/>
3185
+ <line num="54" count="57" type="stmt"/>
3186
+ <line num="56" count="57" type="stmt"/>
3187
+ <line num="64" count="57" type="stmt"/>
3188
+ <line num="65" count="57" type="stmt"/>
3189
+ <line num="66" count="57" type="stmt"/>
3190
+ <line num="67" count="57" type="stmt"/>
3191
+ <line num="68" count="57" type="stmt"/>
3192
+ <line num="69" count="57" type="stmt"/>
3193
+ <line num="70" count="57" type="stmt"/>
3142
3194
  <line num="71" count="57" type="stmt"/>
3143
3195
  <line num="72" count="57" type="stmt"/>
3144
3196
  <line num="73" count="57" type="stmt"/>
@@ -3149,96 +3201,89 @@
3149
3201
  <line num="78" count="57" type="stmt"/>
3150
3202
  <line num="79" count="57" type="stmt"/>
3151
3203
  <line num="80" count="57" type="stmt"/>
3152
- <line num="81" count="57" type="stmt"/>
3153
3204
  <line num="82" count="57" type="stmt"/>
3154
3205
  <line num="83" count="57" type="stmt"/>
3155
- <line num="84" count="57" type="stmt"/>
3156
3206
  <line num="85" count="57" type="stmt"/>
3157
- <line num="86" count="57" type="stmt"/>
3158
- <line num="88" count="57" type="stmt"/>
3159
- <line num="89" count="57" type="stmt"/>
3160
- <line num="91" count="57" type="stmt"/>
3161
- <line num="92" count="74" type="stmt"/>
3162
- <line num="108" count="1077" type="cond" truecount="2" falsecount="0"/>
3163
- <line num="109" count="1060" type="stmt"/>
3164
- <line num="111" count="1077" type="stmt"/>
3165
- <line num="118" count="57" type="stmt"/>
3166
- <line num="123" count="57" type="cond" truecount="0" falsecount="2"/>
3167
- <line num="124" count="267" type="stmt"/>
3168
- <line num="131" count="57" type="stmt"/>
3169
- <line num="132" count="128" type="stmt"/>
3170
- <line num="143" count="57" type="cond" truecount="0" falsecount="3"/>
3171
- <line num="144" count="41" type="cond" truecount="2" falsecount="0"/>
3172
- <line num="145" count="27" type="stmt"/>
3173
- <line num="148" count="14" type="cond" truecount="1" falsecount="1"/>
3174
- <line num="150" count="14" type="stmt"/>
3175
- <line num="158" count="57" type="stmt"/>
3176
- <line num="159" count="0" type="stmt"/>
3177
- <line num="162" count="0" type="stmt"/>
3178
- <line num="171" count="57" type="cond" truecount="1" falsecount="0"/>
3179
- <line num="172" count="309" type="cond" truecount="2" falsecount="0"/>
3180
- <line num="173" count="309" type="stmt"/>
3181
- <line num="179" count="57" type="cond" truecount="0" falsecount="2"/>
3182
- <line num="180" count="3" type="stmt"/>
3183
- <line num="188" count="57" type="stmt"/>
3184
- <line num="189" count="231" type="stmt"/>
3185
- <line num="195" count="57" type="stmt"/>
3186
- <line num="196" count="3" type="stmt"/>
3187
- <line num="197" count="3" type="cond" truecount="4" falsecount="0"/>
3188
- <line num="198" count="1" type="stmt"/>
3189
- <line num="200" count="2" type="stmt"/>
3190
- <line num="206" count="57" type="cond" truecount="0" falsecount="2"/>
3191
- <line num="207" count="261" type="stmt"/>
3192
- <line num="214" count="57" type="stmt"/>
3193
- <line num="215" count="27" type="stmt"/>
3194
- <line num="229" count="57" type="stmt"/>
3195
- <line num="237" count="9" type="stmt"/>
3196
- <line num="238" count="9" type="stmt"/>
3197
- <line num="239" count="9" type="stmt"/>
3198
- <line num="240" count="9" type="stmt"/>
3199
- <line num="246" count="57" type="cond" truecount="0" falsecount="1"/>
3200
- <line num="247" count="0" type="stmt"/>
3201
- <line num="254" count="57" type="stmt"/>
3202
- <line num="255" count="6" type="cond" truecount="2" falsecount="0"/>
3203
- <line num="261" count="57" type="cond" truecount="0" falsecount="2"/>
3204
- <line num="262" count="247" type="stmt"/>
3205
- <line num="269" count="57" type="stmt"/>
3206
- <line num="270" count="23" type="stmt"/>
3207
- <line num="276" count="57" type="cond" truecount="0" falsecount="2"/>
3208
- <line num="277" count="249" type="stmt"/>
3209
- <line num="284" count="57" type="stmt"/>
3210
- <line num="285" count="10" type="stmt"/>
3211
- <line num="291" count="57" type="cond" truecount="0" falsecount="2"/>
3212
- <line num="292" count="2" type="stmt"/>
3213
- <line num="299" count="57" type="cond" truecount="1" falsecount="1"/>
3214
- <line num="300" count="52" type="stmt"/>
3215
- <line num="308" count="57" type="cond" truecount="0" falsecount="2"/>
3216
- <line num="309" count="5" type="stmt"/>
3217
- <line num="316" count="57" type="stmt"/>
3218
- <line num="317" count="135" type="stmt"/>
3219
- <line num="325" count="57" type="cond" truecount="0" falsecount="2"/>
3220
- <line num="326" count="5" type="cond" truecount="2" falsecount="0"/>
3221
- <line num="327" count="4" type="stmt"/>
3222
- <line num="330" count="1" type="stmt"/>
3223
- <line num="341" count="57" type="stmt"/>
3207
+ <line num="100" count="1098" type="cond" truecount="2" falsecount="0"/>
3208
+ <line num="101" count="1081" type="stmt"/>
3209
+ <line num="103" count="1098" type="stmt"/>
3210
+ <line num="110" count="57" type="stmt"/>
3211
+ <line num="115" count="57" type="cond" truecount="0" falsecount="2"/>
3212
+ <line num="116" count="267" type="stmt"/>
3213
+ <line num="123" count="57" type="stmt"/>
3214
+ <line num="124" count="128" type="stmt"/>
3215
+ <line num="135" count="57" type="cond" truecount="0" falsecount="3"/>
3216
+ <line num="136" count="41" type="cond" truecount="2" falsecount="0"/>
3217
+ <line num="137" count="27" type="stmt"/>
3218
+ <line num="140" count="14" type="cond" truecount="1" falsecount="1"/>
3219
+ <line num="142" count="14" type="stmt"/>
3220
+ <line num="150" count="57" type="stmt"/>
3221
+ <line num="151" count="0" type="stmt"/>
3222
+ <line num="154" count="0" type="stmt"/>
3223
+ <line num="163" count="57" type="cond" truecount="1" falsecount="0"/>
3224
+ <line num="164" count="316" type="cond" truecount="2" falsecount="0"/>
3225
+ <line num="165" count="316" type="stmt"/>
3226
+ <line num="171" count="57" type="cond" truecount="0" falsecount="2"/>
3227
+ <line num="172" count="3" type="stmt"/>
3228
+ <line num="180" count="57" type="stmt"/>
3229
+ <line num="181" count="238" type="stmt"/>
3230
+ <line num="187" count="57" type="stmt"/>
3231
+ <line num="188" count="3" type="stmt"/>
3232
+ <line num="189" count="3" type="cond" truecount="4" falsecount="0"/>
3233
+ <line num="190" count="1" type="stmt"/>
3234
+ <line num="192" count="2" type="stmt"/>
3235
+ <line num="198" count="57" type="cond" truecount="0" falsecount="2"/>
3236
+ <line num="199" count="268" type="stmt"/>
3237
+ <line num="206" count="57" type="stmt"/>
3238
+ <line num="207" count="27" type="stmt"/>
3239
+ <line num="221" count="57" type="stmt"/>
3240
+ <line num="229" count="9" type="stmt"/>
3241
+ <line num="230" count="9" type="stmt"/>
3242
+ <line num="231" count="9" type="stmt"/>
3243
+ <line num="232" count="9" type="stmt"/>
3244
+ <line num="238" count="57" type="cond" truecount="0" falsecount="1"/>
3245
+ <line num="239" count="0" type="stmt"/>
3246
+ <line num="246" count="57" type="stmt"/>
3247
+ <line num="247" count="6" type="cond" truecount="2" falsecount="0"/>
3248
+ <line num="253" count="57" type="cond" truecount="0" falsecount="2"/>
3249
+ <line num="254" count="254" type="stmt"/>
3250
+ <line num="261" count="57" type="stmt"/>
3251
+ <line num="262" count="23" type="stmt"/>
3252
+ <line num="268" count="57" type="cond" truecount="0" falsecount="2"/>
3253
+ <line num="269" count="256" type="stmt"/>
3254
+ <line num="276" count="57" type="stmt"/>
3255
+ <line num="277" count="10" type="stmt"/>
3256
+ <line num="283" count="57" type="cond" truecount="0" falsecount="2"/>
3257
+ <line num="284" count="2" type="stmt"/>
3258
+ <line num="291" count="57" type="cond" truecount="1" falsecount="1"/>
3259
+ <line num="292" count="66" type="stmt"/>
3260
+ <line num="300" count="57" type="cond" truecount="0" falsecount="2"/>
3261
+ <line num="301" count="5" type="stmt"/>
3262
+ <line num="308" count="57" type="stmt"/>
3263
+ <line num="309" count="142" type="stmt"/>
3264
+ <line num="317" count="57" type="cond" truecount="0" falsecount="2"/>
3265
+ <line num="318" count="5" type="cond" truecount="2" falsecount="0"/>
3266
+ <line num="319" count="4" type="stmt"/>
3267
+ <line num="322" count="1" type="stmt"/>
3268
+ <line num="333" count="57" type="stmt"/>
3269
+ <line num="334" count="0" type="stmt"/>
3270
+ <line num="337" count="57" type="stmt"/>
3271
+ <line num="338" count="10" type="stmt"/>
3272
+ <line num="341" count="57" type="cond" truecount="0" falsecount="2"/>
3224
3273
  <line num="342" count="0" type="stmt"/>
3225
- <line num="345" count="57" type="stmt"/>
3226
- <line num="346" count="10" type="stmt"/>
3227
- <line num="349" count="57" type="cond" truecount="0" falsecount="2"/>
3228
- <line num="350" count="0" type="stmt"/>
3229
- <line num="351" count="0" type="cond" truecount="0" falsecount="2"/>
3230
- <line num="352" count="0" type="stmt"/>
3274
+ <line num="343" count="0" type="cond" truecount="0" falsecount="2"/>
3275
+ <line num="344" count="0" type="stmt"/>
3276
+ <line num="346" count="0" type="stmt"/>
3277
+ <line num="349" count="57" type="stmt"/>
3278
+ <line num="350" count="1" type="stmt"/>
3279
+ <line num="353" count="57" type="cond" truecount="0" falsecount="1"/>
3231
3280
  <line num="354" count="0" type="stmt"/>
3232
- <line num="357" count="57" type="stmt"/>
3233
- <line num="358" count="1" type="stmt"/>
3234
- <line num="361" count="57" type="cond" truecount="0" falsecount="1"/>
3235
- <line num="362" count="0" type="stmt"/>
3236
- <line num="368" count="57" type="stmt"/>
3237
- <line num="369" count="60" type="stmt"/>
3281
+ <line num="360" count="57" type="stmt"/>
3282
+ <line num="361" count="60" type="stmt"/>
3238
3283
  </file>
3239
3284
  </package>
3240
3285
  <package name="db.linkedRows">
3241
- <metrics statements="296" coveredstatements="284" conditionals="134" coveredconditionals="113" methods="60" coveredmethods="57"/>
3286
+ <metrics statements="297" coveredstatements="285" conditionals="134" coveredconditionals="113" methods="61" coveredmethods="58"/>
3242
3287
  <file name="LinkController.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/LinkController.js">
3243
3288
  <metrics statements="151" coveredstatements="146" conditionals="68" coveredconditionals="60" methods="27" coveredmethods="24"/>
3244
3289
  <line num="1" count="44" type="stmt"/>
@@ -3394,7 +3439,7 @@
3394
3439
  <line num="465" count="44" type="stmt"/>
3395
3440
  </file>
3396
3441
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/index.js">
3397
- <metrics statements="91" coveredstatements="88" conditionals="40" coveredconditionals="33" methods="20" coveredmethods="20"/>
3442
+ <metrics statements="92" coveredstatements="89" conditionals="40" coveredconditionals="33" methods="21" coveredmethods="21"/>
3398
3443
  <line num="1" count="44" type="stmt"/>
3399
3444
  <line num="10" count="44" type="stmt"/>
3400
3445
  <line num="11" count="44" type="stmt"/>
@@ -3419,73 +3464,74 @@
3419
3464
  <line num="54" count="30" type="stmt"/>
3420
3465
  <line num="57" count="30" type="stmt"/>
3421
3466
  <line num="66" count="30" type="stmt"/>
3422
- <line num="69" count="25" type="stmt"/>
3423
- <line num="76" count="30" type="stmt"/>
3467
+ <line num="68" count="25" type="stmt"/>
3468
+ <line num="70" count="25" type="stmt"/>
3424
3469
  <line num="77" count="30" type="stmt"/>
3425
3470
  <line num="78" count="30" type="stmt"/>
3426
3471
  <line num="79" count="30" type="stmt"/>
3427
- <line num="80" count="18" type="stmt"/>
3428
- <line num="83" count="30" type="stmt"/>
3429
- <line num="84" count="18" type="cond" truecount="2" falsecount="0"/>
3430
- <line num="85" count="18" type="stmt"/>
3431
- <line num="87" count="30" type="stmt"/>
3432
- <line num="88" count="18" type="stmt"/>
3433
- <line num="90" count="30" type="stmt"/>
3472
+ <line num="80" count="30" type="stmt"/>
3473
+ <line num="81" count="18" type="stmt"/>
3474
+ <line num="84" count="30" type="stmt"/>
3475
+ <line num="85" count="18" type="cond" truecount="2" falsecount="0"/>
3476
+ <line num="86" count="18" type="stmt"/>
3477
+ <line num="88" count="30" type="stmt"/>
3478
+ <line num="89" count="18" type="stmt"/>
3434
3479
  <line num="91" count="30" type="stmt"/>
3435
- <line num="105" count="44" type="stmt"/>
3436
- <line num="106" count="217" type="stmt"/>
3437
- <line num="107" count="217" type="cond" truecount="2" falsecount="0"/>
3438
- <line num="109" count="217" type="cond" truecount="4" falsecount="0"/>
3439
- <line num="110" count="131" type="stmt"/>
3440
- <line num="112" count="217" type="stmt"/>
3480
+ <line num="92" count="30" type="stmt"/>
3481
+ <line num="106" count="44" type="stmt"/>
3482
+ <line num="107" count="217" type="stmt"/>
3483
+ <line num="108" count="217" type="cond" truecount="2" falsecount="0"/>
3484
+ <line num="110" count="217" type="cond" truecount="4" falsecount="0"/>
3485
+ <line num="111" count="131" type="stmt"/>
3441
3486
  <line num="113" count="217" type="stmt"/>
3442
- <line num="114" count="217" type="cond" truecount="2" falsecount="0"/>
3443
- <line num="119" count="176" type="stmt"/>
3444
- <line num="122" count="0" type="stmt"/>
3445
- <line num="124" count="41" type="cond" truecount="5" falsecount="2"/>
3446
- <line num="127" count="21" type="stmt"/>
3447
- <line num="129" count="0" type="stmt"/>
3448
- <line num="131" count="18" type="stmt"/>
3449
- <line num="133" count="1" type="stmt"/>
3450
- <line num="135" count="1" type="stmt"/>
3451
- <line num="137" count="0" type="stmt"/>
3452
- <line num="148" count="44" type="stmt"/>
3453
- <line num="149" count="119" type="stmt"/>
3454
- <line num="150" count="119" type="cond" truecount="2" falsecount="0"/>
3455
- <line num="151" count="89" type="stmt"/>
3456
- <line num="154" count="30" type="stmt"/>
3457
- <line num="155" count="25" type="stmt"/>
3458
- <line num="158" count="30" type="stmt"/>
3459
- <line num="160" count="30" type="stmt"/>
3487
+ <line num="114" count="217" type="stmt"/>
3488
+ <line num="115" count="217" type="cond" truecount="2" falsecount="0"/>
3489
+ <line num="120" count="176" type="stmt"/>
3490
+ <line num="123" count="0" type="stmt"/>
3491
+ <line num="125" count="41" type="cond" truecount="5" falsecount="2"/>
3492
+ <line num="128" count="21" type="stmt"/>
3493
+ <line num="130" count="0" type="stmt"/>
3494
+ <line num="132" count="18" type="stmt"/>
3495
+ <line num="134" count="1" type="stmt"/>
3496
+ <line num="136" count="1" type="stmt"/>
3497
+ <line num="138" count="0" type="stmt"/>
3498
+ <line num="149" count="44" type="stmt"/>
3499
+ <line num="150" count="119" type="stmt"/>
3500
+ <line num="151" count="119" type="cond" truecount="2" falsecount="0"/>
3501
+ <line num="152" count="89" type="stmt"/>
3502
+ <line num="155" count="30" type="stmt"/>
3503
+ <line num="156" count="25" type="stmt"/>
3504
+ <line num="159" count="30" type="stmt"/>
3460
3505
  <line num="161" count="30" type="stmt"/>
3461
3506
  <line num="162" count="30" type="stmt"/>
3462
3507
  <line num="163" count="30" type="stmt"/>
3463
- <line num="164" count="18" type="cond" truecount="1" falsecount="1"/>
3464
- <line num="165" count="18" type="stmt"/>
3465
- <line num="167" count="18" type="stmt"/>
3466
- <line num="168" count="18" type="cond" truecount="1" falsecount="1"/>
3467
- <line num="170" count="18" type="cond" truecount="1" falsecount="1"/>
3468
- <line num="171" count="18" type="stmt"/>
3469
- <line num="172" count="18" type="cond" truecount="1" falsecount="1"/>
3470
- <line num="173" count="18" type="stmt"/>
3471
- <line num="178" count="30" type="stmt"/>
3472
- <line num="187" count="44" type="stmt"/>
3473
- <line num="189" count="35" type="stmt"/>
3508
+ <line num="164" count="30" type="stmt"/>
3509
+ <line num="165" count="18" type="cond" truecount="1" falsecount="1"/>
3510
+ <line num="166" count="18" type="stmt"/>
3511
+ <line num="168" count="18" type="stmt"/>
3512
+ <line num="169" count="18" type="cond" truecount="1" falsecount="1"/>
3513
+ <line num="171" count="18" type="cond" truecount="1" falsecount="1"/>
3514
+ <line num="172" count="18" type="stmt"/>
3515
+ <line num="173" count="18" type="cond" truecount="1" falsecount="1"/>
3516
+ <line num="174" count="18" type="stmt"/>
3517
+ <line num="179" count="30" type="stmt"/>
3518
+ <line num="188" count="44" type="stmt"/>
3474
3519
  <line num="190" count="35" type="stmt"/>
3475
- <line num="192" count="41" type="stmt"/>
3520
+ <line num="191" count="35" type="stmt"/>
3476
3521
  <line num="193" count="41" type="stmt"/>
3477
- <line num="194" count="121" type="cond" truecount="4" falsecount="0"/>
3478
- <line num="195" count="112" type="stmt"/>
3479
- <line num="197" count="9" type="stmt"/>
3522
+ <line num="194" count="41" type="stmt"/>
3523
+ <line num="195" count="121" type="cond" truecount="4" falsecount="0"/>
3524
+ <line num="196" count="112" type="stmt"/>
3480
3525
  <line num="198" count="9" type="stmt"/>
3481
- <line num="199" count="9" type="cond" truecount="1" falsecount="1"/>
3482
- <line num="200" count="9" type="stmt"/>
3526
+ <line num="199" count="9" type="stmt"/>
3527
+ <line num="200" count="9" type="cond" truecount="1" falsecount="1"/>
3483
3528
  <line num="201" count="9" type="stmt"/>
3484
- <line num="202" count="9" type="cond" truecount="2" falsecount="0"/>
3485
- <line num="203" count="8" type="stmt"/>
3486
- <line num="205" count="9" type="stmt"/>
3487
- <line num="207" count="9" type="stmt"/>
3488
- <line num="210" count="35" type="stmt"/>
3529
+ <line num="202" count="9" type="stmt"/>
3530
+ <line num="203" count="9" type="cond" truecount="2" falsecount="0"/>
3531
+ <line num="204" count="8" type="stmt"/>
3532
+ <line num="206" count="9" type="stmt"/>
3533
+ <line num="208" count="9" type="stmt"/>
3534
+ <line num="211" count="35" type="stmt"/>
3489
3535
  </file>
3490
3536
  <file name="linkUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/linkUtils.js">
3491
3537
  <metrics statements="54" coveredstatements="50" conditionals="26" coveredconditionals="20" methods="13" coveredmethods="13"/>
@@ -3645,19 +3691,19 @@
3645
3691
  <line num="59" count="1" type="stmt"/>
3646
3692
  <line num="61" count="1" type="stmt"/>
3647
3693
  <line num="65" count="28" type="stmt"/>
3648
- <line num="66" count="215" type="stmt"/>
3649
- <line num="68" count="215" type="cond" truecount="2" falsecount="0"/>
3694
+ <line num="66" count="222" type="stmt"/>
3695
+ <line num="68" count="222" type="cond" truecount="2" falsecount="0"/>
3650
3696
  <line num="69" count="5" type="stmt"/>
3651
- <line num="71" count="210" type="stmt"/>
3652
- <line num="72" count="210" type="stmt"/>
3653
- <line num="74" count="210" type="stmt"/>
3654
- <line num="75" count="210" type="cond" truecount="2" falsecount="0"/>
3655
- <line num="76" count="210" type="cond" truecount="1" falsecount="1"/>
3697
+ <line num="71" count="217" type="stmt"/>
3698
+ <line num="72" count="217" type="stmt"/>
3699
+ <line num="74" count="217" type="stmt"/>
3700
+ <line num="75" count="217" type="cond" truecount="2" falsecount="0"/>
3701
+ <line num="76" count="217" type="cond" truecount="1" falsecount="1"/>
3656
3702
  <line num="77" count="0" type="stmt"/>
3657
- <line num="80" count="210" type="cond" truecount="2" falsecount="0"/>
3658
- <line num="81" count="210" type="cond" truecount="2" falsecount="0"/>
3659
- <line num="83" count="210" type="cond" truecount="4" falsecount="0"/>
3660
- <line num="84" count="209" type="stmt"/>
3703
+ <line num="80" count="217" type="cond" truecount="2" falsecount="0"/>
3704
+ <line num="81" count="217" type="cond" truecount="2" falsecount="0"/>
3705
+ <line num="83" count="217" type="cond" truecount="4" falsecount="0"/>
3706
+ <line num="84" count="216" type="stmt"/>
3661
3707
  <line num="87" count="1" type="stmt"/>
3662
3708
  <line num="89" count="1" type="stmt"/>
3663
3709
  </file>
@@ -3675,75 +3721,75 @@
3675
3721
  <line num="15" count="32" type="stmt"/>
3676
3722
  <line num="16" count="32" type="stmt"/>
3677
3723
  <line num="18" count="32" type="stmt"/>
3678
- <line num="20" count="231" type="stmt"/>
3679
- <line num="22" count="231" type="stmt"/>
3680
- <line num="23" count="231" type="stmt"/>
3681
- <line num="24" count="231" type="stmt"/>
3724
+ <line num="20" count="238" type="stmt"/>
3725
+ <line num="22" count="238" type="stmt"/>
3726
+ <line num="23" count="238" type="stmt"/>
3727
+ <line num="24" count="238" type="stmt"/>
3682
3728
  <line num="26" count="0" type="stmt"/>
3683
- <line num="28" count="231" type="cond" truecount="4" falsecount="0"/>
3729
+ <line num="28" count="238" type="cond" truecount="4" falsecount="0"/>
3684
3730
  <line num="29" count="1" type="stmt"/>
3685
- <line num="32" count="230" type="cond" truecount="2" falsecount="0"/>
3686
- <line num="33" count="224" type="stmt"/>
3687
- <line num="34" count="224" type="stmt"/>
3688
- <line num="35" count="224" type="cond" truecount="1" falsecount="1"/>
3731
+ <line num="32" count="237" type="cond" truecount="2" falsecount="0"/>
3732
+ <line num="33" count="231" type="stmt"/>
3733
+ <line num="34" count="231" type="stmt"/>
3734
+ <line num="35" count="231" type="cond" truecount="1" falsecount="1"/>
3689
3735
  <line num="36" count="0" type="stmt"/>
3690
3736
  <line num="37" count="0" type="stmt"/>
3691
- <line num="40" count="224" type="cond" truecount="1" falsecount="1"/>
3692
- <line num="44" count="230" type="cond" truecount="2" falsecount="0"/>
3737
+ <line num="40" count="231" type="cond" truecount="1" falsecount="1"/>
3738
+ <line num="44" count="237" type="cond" truecount="2" falsecount="0"/>
3693
3739
  <line num="45" count="2" type="cond" truecount="1" falsecount="1"/>
3694
3740
  <line num="50" count="2" type="stmt"/>
3695
3741
  <line num="51" count="2" type="stmt"/>
3696
- <line num="56" count="228" type="stmt"/>
3697
- <line num="57" count="228" type="cond" truecount="2" falsecount="0"/>
3742
+ <line num="56" count="235" type="stmt"/>
3743
+ <line num="57" count="235" type="cond" truecount="2" falsecount="0"/>
3698
3744
  <line num="59" count="5" type="stmt"/>
3699
- <line num="60" count="223" type="cond" truecount="1" falsecount="1"/>
3700
- <line num="62" count="223" type="stmt"/>
3701
- <line num="63" count="223" type="stmt"/>
3702
- <line num="65" count="223" type="cond" truecount="2" falsecount="0"/>
3703
- <line num="69" count="223" type="cond" truecount="3" falsecount="0"/>
3704
- <line num="70" count="223" type="cond" truecount="2" falsecount="0"/>
3705
- <line num="71" count="223" type="cond" truecount="2" falsecount="0"/>
3706
- <line num="72" count="223" type="cond" truecount="4" falsecount="1"/>
3745
+ <line num="60" count="230" type="cond" truecount="1" falsecount="1"/>
3746
+ <line num="62" count="230" type="stmt"/>
3747
+ <line num="63" count="230" type="stmt"/>
3748
+ <line num="65" count="230" type="cond" truecount="2" falsecount="0"/>
3749
+ <line num="69" count="230" type="cond" truecount="3" falsecount="0"/>
3750
+ <line num="70" count="230" type="cond" truecount="2" falsecount="0"/>
3751
+ <line num="71" count="230" type="cond" truecount="2" falsecount="0"/>
3752
+ <line num="72" count="230" type="cond" truecount="4" falsecount="1"/>
3707
3753
  <line num="74" count="0" type="stmt"/>
3708
3754
  <line num="75" count="0" type="stmt"/>
3709
3755
  <line num="76" count="0" type="stmt"/>
3710
- <line num="84" count="228" type="cond" truecount="1" falsecount="1"/>
3756
+ <line num="84" count="235" type="cond" truecount="1" falsecount="1"/>
3711
3757
  <line num="85" count="0" type="stmt"/>
3712
- <line num="88" count="228" type="stmt"/>
3713
- <line num="89" count="228" type="stmt"/>
3714
- <line num="92" count="228" type="cond" truecount="1" falsecount="1"/>
3758
+ <line num="88" count="235" type="stmt"/>
3759
+ <line num="89" count="235" type="stmt"/>
3760
+ <line num="92" count="235" type="cond" truecount="1" falsecount="1"/>
3715
3761
  <line num="99" count="0" type="stmt"/>
3716
3762
  <line num="100" count="0" type="stmt"/>
3717
3763
  <line num="101" count="0" type="stmt"/>
3718
3764
  <line num="102" count="0" type="stmt"/>
3719
3765
  <line num="103" count="0" type="stmt"/>
3720
3766
  <line num="104" count="0" type="stmt"/>
3721
- <line num="107" count="228" type="stmt"/>
3722
- <line num="108" count="228" type="cond" truecount="1" falsecount="1"/>
3723
- <line num="109" count="228" type="stmt"/>
3724
- <line num="110" count="228" type="cond" truecount="2" falsecount="0"/>
3725
- <line num="111" count="228" type="stmt"/>
3726
- <line num="120" count="228" type="cond" truecount="2" falsecount="0"/>
3767
+ <line num="107" count="235" type="stmt"/>
3768
+ <line num="108" count="235" type="cond" truecount="1" falsecount="1"/>
3769
+ <line num="109" count="235" type="stmt"/>
3770
+ <line num="110" count="235" type="cond" truecount="2" falsecount="0"/>
3771
+ <line num="111" count="235" type="stmt"/>
3772
+ <line num="120" count="235" type="cond" truecount="2" falsecount="0"/>
3727
3773
  <line num="126" count="9" type="stmt"/>
3728
- <line num="129" count="228" type="stmt"/>
3774
+ <line num="129" count="235" type="stmt"/>
3729
3775
  </file>
3730
3776
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
3731
3777
  <metrics statements="19" coveredstatements="16" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
3732
3778
  <line num="1" count="44" type="stmt"/>
3733
3779
  <line num="5" count="594" type="stmt"/>
3734
- <line num="6" count="45" type="cond" truecount="1" falsecount="1"/>
3780
+ <line num="6" count="52" type="cond" truecount="1" falsecount="1"/>
3735
3781
  <line num="7" count="0" type="stmt"/>
3736
- <line num="9" count="45" type="stmt"/>
3737
- <line num="10" count="45" type="cond" truecount="2" falsecount="0"/>
3782
+ <line num="9" count="52" type="stmt"/>
3783
+ <line num="10" count="52" type="cond" truecount="2" falsecount="0"/>
3738
3784
  <line num="11" count="1" type="stmt"/>
3739
- <line num="12" count="44" type="cond" truecount="1" falsecount="1"/>
3740
- <line num="13" count="44" type="stmt"/>
3741
- <line num="16" count="45" type="stmt"/>
3742
- <line num="21" count="45" type="stmt"/>
3743
- <line num="22" count="45" type="cond" truecount="1" falsecount="1"/>
3785
+ <line num="12" count="51" type="cond" truecount="1" falsecount="1"/>
3786
+ <line num="13" count="51" type="stmt"/>
3787
+ <line num="16" count="52" type="stmt"/>
3788
+ <line num="21" count="52" type="stmt"/>
3789
+ <line num="22" count="52" type="cond" truecount="1" falsecount="1"/>
3744
3790
  <line num="23" count="0" type="stmt"/>
3745
3791
  <line num="24" count="0" type="stmt"/>
3746
- <line num="26" count="45" type="stmt"/>
3792
+ <line num="26" count="52" type="stmt"/>
3747
3793
  <line num="30" count="44" type="stmt"/>
3748
3794
  <line num="31" count="540" type="stmt"/>
3749
3795
  <line num="34" count="44" type="stmt"/>
@@ -3776,14 +3822,14 @@
3776
3822
  <line num="21" count="897" type="stmt"/>
3777
3823
  <line num="22" count="897" type="stmt"/>
3778
3824
  <line num="23" count="897" type="stmt"/>
3779
- <line num="24" count="95" type="cond" truecount="2" falsecount="0"/>
3780
- <line num="25" count="95" type="cond" truecount="2" falsecount="0"/>
3825
+ <line num="24" count="102" type="cond" truecount="2" falsecount="0"/>
3826
+ <line num="25" count="102" type="cond" truecount="2" falsecount="0"/>
3781
3827
  <line num="26" count="1" type="stmt"/>
3782
- <line num="28" count="94" type="cond" truecount="4" falsecount="0"/>
3783
- <line num="29" count="82" type="stmt"/>
3784
- <line num="31" count="94" type="cond" truecount="4" falsecount="0"/>
3828
+ <line num="28" count="101" type="cond" truecount="4" falsecount="0"/>
3829
+ <line num="29" count="89" type="stmt"/>
3830
+ <line num="31" count="101" type="cond" truecount="4" falsecount="0"/>
3785
3831
  <line num="32" count="15" type="stmt"/>
3786
- <line num="34" count="94" type="stmt"/>
3832
+ <line num="34" count="101" type="stmt"/>
3787
3833
  <line num="39" count="28" type="stmt"/>
3788
3834
  <line num="41" count="28" type="stmt"/>
3789
3835
  <line num="42" count="704" type="stmt"/>
@@ -3807,13 +3853,13 @@
3807
3853
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3808
3854
  <line num="1" count="33" type="stmt"/>
3809
3855
  <line num="5" count="33" type="stmt"/>
3810
- <line num="6" count="219" type="stmt"/>
3856
+ <line num="6" count="226" type="stmt"/>
3811
3857
  </file>
3812
3858
  </package>
3813
3859
  <package name="threads">
3814
- <metrics statements="299" coveredstatements="204" conditionals="133" coveredconditionals="64" methods="33" coveredmethods="27"/>
3860
+ <metrics statements="327" coveredstatements="216" conditionals="151" coveredconditionals="68" methods="35" coveredmethods="27"/>
3815
3861
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
3816
- <metrics statements="163" coveredstatements="82" conditionals="75" coveredconditionals="20" methods="13" coveredmethods="9"/>
3862
+ <metrics statements="165" coveredstatements="84" conditionals="75" coveredconditionals="20" methods="13" coveredmethods="9"/>
3817
3863
  <line num="1" count="3" type="stmt"/>
3818
3864
  <line num="2" count="3" type="stmt"/>
3819
3865
  <line num="3" count="3" type="stmt"/>
@@ -3827,259 +3873,287 @@
3827
3873
  <line num="11" count="3" type="stmt"/>
3828
3874
  <line num="12" count="3" type="stmt"/>
3829
3875
  <line num="13" count="3" type="stmt"/>
3830
- <line num="15" count="3" type="stmt"/>
3876
+ <line num="14" count="3" type="stmt"/>
3831
3877
  <line num="16" count="3" type="stmt"/>
3832
3878
  <line num="17" count="3" type="stmt"/>
3833
3879
  <line num="18" count="3" type="stmt"/>
3834
- <line num="21" count="0" type="cond" truecount="0" falsecount="4"/>
3835
- <line num="22" count="0" type="stmt"/>
3836
- <line num="24" count="0" type="stmt"/>
3880
+ <line num="19" count="3" type="stmt"/>
3881
+ <line num="22" count="0" type="cond" truecount="0" falsecount="4"/>
3882
+ <line num="23" count="0" type="stmt"/>
3837
3883
  <line num="25" count="0" type="stmt"/>
3838
3884
  <line num="26" count="0" type="stmt"/>
3839
- <line num="27" count="0" type="cond" truecount="0" falsecount="2"/>
3840
- <line num="29" count="0" type="cond" truecount="0" falsecount="2"/>
3841
- <line num="30" count="0" type="stmt"/>
3842
- <line num="32" count="0" type="stmt"/>
3843
- <line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
3844
- <line num="35" count="0" type="stmt"/>
3845
- <line num="37" count="0" type="stmt"/>
3846
- <line num="40" count="0" type="stmt"/>
3847
- <line num="42" count="0" type="stmt"/>
3848
- <line num="46" count="0" type="stmt"/>
3849
- <line num="47" count="0" type="cond" truecount="0" falsecount="4"/>
3850
- <line num="48" count="0" type="stmt"/>
3851
- <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
3852
- <line num="62" count="6" type="stmt"/>
3853
- <line num="63" count="6" type="cond" truecount="2" falsecount="0"/>
3854
- <line num="64" count="6" type="stmt"/>
3885
+ <line num="27" count="0" type="stmt"/>
3886
+ <line num="28" count="0" type="cond" truecount="0" falsecount="2"/>
3887
+ <line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
3888
+ <line num="31" count="0" type="stmt"/>
3889
+ <line num="33" count="0" type="stmt"/>
3890
+ <line num="35" count="0" type="cond" truecount="0" falsecount="2"/>
3891
+ <line num="36" count="0" type="stmt"/>
3892
+ <line num="38" count="0" type="stmt"/>
3893
+ <line num="41" count="0" type="stmt"/>
3894
+ <line num="43" count="0" type="stmt"/>
3895
+ <line num="47" count="0" type="stmt"/>
3896
+ <line num="48" count="0" type="cond" truecount="0" falsecount="4"/>
3897
+ <line num="49" count="0" type="stmt"/>
3898
+ <line num="51" count="0" type="cond" truecount="0" falsecount="2"/>
3899
+ <line num="63" count="6" type="stmt"/>
3900
+ <line num="64" count="6" type="cond" truecount="2" falsecount="0"/>
3855
3901
  <line num="65" count="6" type="stmt"/>
3856
3902
  <line num="66" count="6" type="stmt"/>
3857
3903
  <line num="67" count="6" type="stmt"/>
3858
- <line num="69" count="6" type="stmt"/>
3904
+ <line num="68" count="6" type="stmt"/>
3859
3905
  <line num="70" count="6" type="stmt"/>
3860
- <line num="72" count="6" type="stmt"/>
3906
+ <line num="71" count="6" type="stmt"/>
3861
3907
  <line num="73" count="6" type="stmt"/>
3862
- <line num="76" count="6" type="stmt"/>
3908
+ <line num="74" count="6" type="stmt"/>
3863
3909
  <line num="77" count="6" type="stmt"/>
3864
- <line num="79" count="6" type="stmt"/>
3910
+ <line num="78" count="6" type="stmt"/>
3865
3911
  <line num="80" count="6" type="stmt"/>
3866
- <line num="84" count="6" type="cond" truecount="1" falsecount="1"/>
3867
- <line num="85" count="0" type="stmt"/>
3868
- <line num="87" count="6" type="stmt"/>
3869
- <line num="91" count="5" type="stmt"/>
3870
- <line num="92" count="5" type="cond" truecount="1" falsecount="1"/>
3871
- <line num="93" count="0" type="stmt"/>
3872
- <line num="95" count="5" type="stmt"/>
3873
- <line num="99" count="6" type="cond" truecount="1" falsecount="1"/>
3874
- <line num="100" count="0" type="stmt"/>
3875
- <line num="102" count="6" type="stmt"/>
3912
+ <line num="81" count="6" type="stmt"/>
3913
+ <line num="85" count="6" type="cond" truecount="1" falsecount="1"/>
3914
+ <line num="86" count="0" type="stmt"/>
3915
+ <line num="88" count="6" type="stmt"/>
3916
+ <line num="92" count="5" type="stmt"/>
3917
+ <line num="93" count="5" type="cond" truecount="1" falsecount="1"/>
3918
+ <line num="94" count="0" type="stmt"/>
3919
+ <line num="96" count="5" type="stmt"/>
3920
+ <line num="100" count="6" type="cond" truecount="1" falsecount="1"/>
3921
+ <line num="101" count="0" type="stmt"/>
3876
3922
  <line num="103" count="6" type="stmt"/>
3877
3923
  <line num="104" count="6" type="stmt"/>
3878
- <line num="108" count="11" type="stmt"/>
3879
- <line num="110" count="11" type="cond" truecount="2" falsecount="0"/>
3880
- <line num="111" count="6" type="stmt"/>
3881
- <line num="113" count="11" type="stmt"/>
3882
- <line num="117" count="0" type="stmt"/>
3883
- <line num="127" count="0" type="stmt"/>
3884
- <line num="135" count="6" type="stmt"/>
3924
+ <line num="105" count="6" type="stmt"/>
3925
+ <line num="109" count="11" type="stmt"/>
3926
+ <line num="111" count="11" type="cond" truecount="2" falsecount="0"/>
3927
+ <line num="112" count="6" type="stmt"/>
3928
+ <line num="114" count="11" type="stmt"/>
3929
+ <line num="118" count="0" type="stmt"/>
3930
+ <line num="128" count="0" type="stmt"/>
3885
3931
  <line num="136" count="6" type="stmt"/>
3886
3932
  <line num="137" count="6" type="stmt"/>
3887
3933
  <line num="138" count="6" type="stmt"/>
3888
- <line num="140" count="6" type="stmt"/>
3934
+ <line num="139" count="6" type="stmt"/>
3889
3935
  <line num="141" count="6" type="stmt"/>
3890
3936
  <line num="142" count="6" type="stmt"/>
3891
3937
  <line num="143" count="6" type="stmt"/>
3892
- <line num="144" count="5" type="stmt"/>
3893
- <line num="146" count="5" type="stmt"/>
3938
+ <line num="144" count="6" type="stmt"/>
3939
+ <line num="145" count="5" type="stmt"/>
3894
3940
  <line num="147" count="5" type="stmt"/>
3895
- <line num="148" count="5" type="cond" truecount="1" falsecount="1"/>
3896
- <line num="149" count="0" type="stmt"/>
3941
+ <line num="148" count="5" type="stmt"/>
3942
+ <line num="149" count="5" type="cond" truecount="1" falsecount="1"/>
3897
3943
  <line num="150" count="0" type="stmt"/>
3898
3944
  <line num="151" count="0" type="stmt"/>
3899
- <line num="154" count="5" type="cond" truecount="1" falsecount="1"/>
3900
- <line num="155" count="0" type="stmt"/>
3945
+ <line num="152" count="0" type="stmt"/>
3946
+ <line num="155" count="5" type="cond" truecount="1" falsecount="1"/>
3901
3947
  <line num="156" count="0" type="stmt"/>
3902
- <line num="159" count="5" type="stmt"/>
3948
+ <line num="157" count="0" type="stmt"/>
3903
3949
  <line num="160" count="5" type="stmt"/>
3904
- <line num="163" count="5" type="cond" truecount="1" falsecount="1"/>
3905
- <line num="164" count="0" type="stmt"/>
3906
- <line num="169" count="0" type="stmt"/>
3950
+ <line num="161" count="5" type="stmt"/>
3951
+ <line num="164" count="5" type="cond" truecount="1" falsecount="1"/>
3952
+ <line num="165" count="0" type="stmt"/>
3907
3953
  <line num="170" count="0" type="stmt"/>
3908
3954
  <line num="171" count="0" type="stmt"/>
3909
- <line num="173" count="0" type="stmt"/>
3910
- <line num="177" count="0" type="stmt"/>
3955
+ <line num="172" count="0" type="stmt"/>
3956
+ <line num="174" count="0" type="stmt"/>
3911
3957
  <line num="178" count="0" type="stmt"/>
3912
3958
  <line num="179" count="0" type="stmt"/>
3913
- <line num="183" count="0" type="cond" truecount="0" falsecount="2"/>
3914
- <line num="187" count="0" type="stmt"/>
3915
- <line num="189" count="0" type="stmt"/>
3916
- <line num="192" count="0" type="stmt"/>
3917
- <line num="198" count="0" type="stmt"/>
3918
- <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
3919
- <line num="200" count="0" type="stmt"/>
3920
- <line num="203" count="0" type="cond" truecount="0" falsecount="2"/>
3921
- <line num="204" count="0" type="stmt"/>
3922
- <line num="212" count="0" type="cond" truecount="0" falsecount="2"/>
3923
- <line num="213" count="0" type="stmt"/>
3924
- <line num="220" count="0" type="cond" truecount="0" falsecount="2"/>
3925
- <line num="224" count="0" type="stmt"/>
3926
- <line num="228" count="0" type="stmt"/>
3959
+ <line num="180" count="0" type="stmt"/>
3960
+ <line num="184" count="0" type="cond" truecount="0" falsecount="2"/>
3961
+ <line num="188" count="0" type="stmt"/>
3962
+ <line num="190" count="0" type="stmt"/>
3963
+ <line num="193" count="0" type="stmt"/>
3964
+ <line num="199" count="0" type="stmt"/>
3965
+ <line num="200" count="0" type="cond" truecount="0" falsecount="2"/>
3966
+ <line num="201" count="0" type="stmt"/>
3967
+ <line num="204" count="0" type="cond" truecount="0" falsecount="2"/>
3968
+ <line num="205" count="0" type="stmt"/>
3969
+ <line num="213" count="0" type="cond" truecount="0" falsecount="2"/>
3970
+ <line num="214" count="0" type="stmt"/>
3971
+ <line num="221" count="0" type="cond" truecount="0" falsecount="2"/>
3972
+ <line num="225" count="0" type="stmt"/>
3927
3973
  <line num="229" count="0" type="stmt"/>
3928
3974
  <line num="230" count="0" type="stmt"/>
3929
- <line num="233" count="0" type="stmt"/>
3975
+ <line num="231" count="0" type="stmt"/>
3930
3976
  <line num="234" count="0" type="stmt"/>
3931
- <line num="235" count="0" type="cond" truecount="0" falsecount="4"/>
3932
- <line num="236" count="0" type="stmt"/>
3977
+ <line num="235" count="0" type="stmt"/>
3978
+ <line num="236" count="0" type="cond" truecount="0" falsecount="4"/>
3933
3979
  <line num="237" count="0" type="stmt"/>
3934
- <line num="240" count="0" type="cond" truecount="0" falsecount="2"/>
3935
- <line num="243" count="0" type="cond" truecount="0" falsecount="2"/>
3936
- <line num="244" count="0" type="stmt"/>
3937
- <line num="248" count="0" type="stmt"/>
3980
+ <line num="238" count="0" type="stmt"/>
3981
+ <line num="241" count="0" type="cond" truecount="0" falsecount="2"/>
3982
+ <line num="244" count="0" type="cond" truecount="0" falsecount="2"/>
3983
+ <line num="245" count="0" type="stmt"/>
3938
3984
  <line num="249" count="0" type="stmt"/>
3939
3985
  <line num="250" count="0" type="stmt"/>
3940
- <line num="255" count="5" type="cond" truecount="1" falsecount="1"/>
3941
- <line num="256" count="0" type="stmt"/>
3986
+ <line num="251" count="0" type="stmt"/>
3987
+ <line num="256" count="5" type="cond" truecount="1" falsecount="1"/>
3942
3988
  <line num="257" count="0" type="stmt"/>
3943
- <line num="261" count="5" type="stmt"/>
3989
+ <line num="258" count="0" type="stmt"/>
3944
3990
  <line num="262" count="5" type="stmt"/>
3945
3991
  <line num="263" count="5" type="stmt"/>
3946
3992
  <line num="264" count="5" type="stmt"/>
3947
- <line num="266" count="5" type="cond" truecount="1" falsecount="1"/>
3948
- <line num="267" count="5" type="stmt"/>
3993
+ <line num="265" count="5" type="stmt"/>
3994
+ <line num="267" count="5" type="cond" truecount="1" falsecount="1"/>
3949
3995
  <line num="268" count="5" type="stmt"/>
3950
- <line num="275" count="5" type="stmt"/>
3951
- <line num="278" count="5" type="cond" truecount="2" falsecount="2"/>
3952
- <line num="279" count="0" type="stmt"/>
3996
+ <line num="269" count="5" type="stmt"/>
3997
+ <line num="276" count="5" type="stmt"/>
3998
+ <line num="279" count="5" type="cond" truecount="2" falsecount="2"/>
3953
3999
  <line num="280" count="0" type="stmt"/>
3954
- <line num="284" count="0" type="stmt"/>
3955
- <line num="286" count="5" type="cond" truecount="2" falsecount="2"/>
3956
- <line num="287" count="0" type="stmt"/>
3957
- <line num="289" count="5" type="stmt"/>
3958
- <line num="297" count="0" type="stmt"/>
4000
+ <line num="281" count="0" type="stmt"/>
4001
+ <line num="285" count="0" type="stmt"/>
4002
+ <line num="287" count="5" type="cond" truecount="2" falsecount="2"/>
4003
+ <line num="288" count="0" type="stmt"/>
4004
+ <line num="290" count="5" type="stmt"/>
3959
4005
  <line num="298" count="0" type="stmt"/>
3960
- <line num="300" count="5" type="cond" truecount="1" falsecount="1"/>
3961
- <line num="301" count="0" type="stmt"/>
3962
- <line num="302" count="0" type="cond" truecount="0" falsecount="2"/>
3963
- <line num="303" count="0" type="stmt"/>
4006
+ <line num="299" count="0" type="stmt"/>
4007
+ <line num="301" count="5" type="cond" truecount="1" falsecount="1"/>
4008
+ <line num="302" count="0" type="stmt"/>
4009
+ <line num="303" count="0" type="cond" truecount="0" falsecount="2"/>
3964
4010
  <line num="304" count="0" type="stmt"/>
3965
4011
  <line num="305" count="0" type="stmt"/>
3966
- <line num="310" count="5" type="cond" truecount="3" falsecount="1"/>
3967
- <line num="311" count="0" type="stmt"/>
3968
- <line num="316" count="0" type="stmt"/>
3969
- <line num="323" count="0" type="stmt"/>
4012
+ <line num="306" count="0" type="stmt"/>
4013
+ <line num="311" count="5" type="cond" truecount="3" falsecount="1"/>
4014
+ <line num="312" count="0" type="stmt"/>
4015
+ <line num="317" count="0" type="stmt"/>
3970
4016
  <line num="324" count="0" type="stmt"/>
3971
- <line num="328" count="6" type="stmt"/>
3972
- <line num="332" count="3" type="stmt"/>
3973
- <line num="333" count="6" type="stmt"/>
3974
- <line num="334" count="6" type="stmt"/>
3975
- <line num="335" count="6" type="stmt"/>
3976
- <line num="339" count="6" type="stmt"/>
3977
- <line num="340" count="6" type="stmt"/>
3978
- <line num="341" count="6" type="stmt"/>
3979
- <line num="343" count="0" type="stmt"/>
4017
+ <line num="325" count="0" type="stmt"/>
4018
+ <line num="330" count="6" type="stmt"/>
4019
+ <line num="331" count="6" type="stmt"/>
4020
+ <line num="335" count="3" type="stmt"/>
4021
+ <line num="336" count="6" type="stmt"/>
4022
+ <line num="337" count="6" type="stmt"/>
4023
+ <line num="338" count="6" type="stmt"/>
4024
+ <line num="342" count="6" type="stmt"/>
4025
+ <line num="343" count="6" type="stmt"/>
4026
+ <line num="344" count="6" type="stmt"/>
4027
+ <line num="346" count="0" type="stmt"/>
3980
4028
  </file>
3981
4029
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
3982
- <metrics statements="100" coveredstatements="92" conditionals="43" coveredconditionals="34" methods="11" coveredmethods="10"/>
4030
+ <metrics statements="126" coveredstatements="102" conditionals="61" coveredconditionals="38" methods="13" coveredmethods="10"/>
3983
4031
  <line num="1" count="2" type="stmt"/>
3984
4032
  <line num="2" count="2" type="stmt"/>
3985
4033
  <line num="3" count="2" type="stmt"/>
3986
4034
  <line num="4" count="2" type="stmt"/>
3987
4035
  <line num="5" count="2" type="stmt"/>
3988
4036
  <line num="6" count="2" type="stmt"/>
3989
- <line num="7" count="2" type="stmt"/>
4037
+ <line num="10" count="2" type="stmt"/>
3990
4038
  <line num="11" count="2" type="stmt"/>
3991
- <line num="15" count="15" type="stmt"/>
3992
- <line num="16" count="15" type="stmt"/>
3993
- <line num="17" count="15" type="stmt"/>
3994
- <line num="18" count="15" type="stmt"/>
3995
- <line num="19" count="15" type="stmt"/>
3996
- <line num="20" count="15" type="stmt"/>
3997
- <line num="21" count="15" type="stmt"/>
3998
- <line num="22" count="15" type="stmt"/>
3999
- <line num="23" count="15" type="stmt"/>
4000
- <line num="27" count="15" type="stmt"/>
4001
- <line num="28" count="15" type="stmt"/>
4002
- <line num="32" count="16" type="stmt"/>
4003
- <line num="33" count="16" type="stmt"/>
4004
- <line num="34" count="16" type="cond" truecount="2" falsecount="0"/>
4005
- <line num="35" count="2" type="stmt"/>
4006
- <line num="37" count="14" type="stmt"/>
4007
- <line num="40" count="14" type="stmt"/>
4008
- <line num="43" count="14" type="cond" truecount="2" falsecount="0"/>
4009
- <line num="44" count="2" type="stmt"/>
4010
- <line num="46" count="12" type="stmt"/>
4011
- <line num="50" count="14" type="cond" truecount="1" falsecount="1"/>
4039
+ <line num="13" count="2" type="stmt"/>
4040
+ <line num="17" count="2" type="stmt"/>
4041
+ <line num="21" count="22" type="stmt"/>
4042
+ <line num="22" count="22" type="stmt"/>
4043
+ <line num="23" count="22" type="stmt"/>
4044
+ <line num="24" count="22" type="stmt"/>
4045
+ <line num="25" count="22" type="stmt"/>
4046
+ <line num="26" count="22" type="stmt"/>
4047
+ <line num="27" count="22" type="stmt"/>
4048
+ <line num="28" count="22" type="stmt"/>
4049
+ <line num="29" count="22" type="stmt"/>
4050
+ <line num="31" count="22" type="stmt"/>
4051
+ <line num="35" count="22" type="stmt"/>
4052
+ <line num="36" count="22" type="stmt"/>
4053
+ <line num="37" count="22" type="stmt"/>
4054
+ <line num="41" count="23" type="stmt"/>
4055
+ <line num="43" count="23" type="stmt"/>
4056
+ <line num="44" count="23" type="cond" truecount="2" falsecount="0"/>
4057
+ <line num="45" count="2" type="stmt"/>
4058
+ <line num="48" count="21" type="cond" truecount="1" falsecount="1"/>
4059
+ <line num="49" count="0" type="stmt"/>
4012
4060
  <line num="51" count="0" type="stmt"/>
4013
- <line num="54" count="14" type="stmt"/>
4014
- <line num="55" count="14" type="stmt"/>
4015
- <line num="56" count="14" type="stmt"/>
4016
- <line num="57" count="14" type="stmt"/>
4017
- <line num="58" count="14" type="stmt"/>
4018
- <line num="59" count="14" type="cond" truecount="2" falsecount="0"/>
4019
- <line num="60" count="12" type="stmt"/>
4020
- <line num="61" count="12" type="stmt"/>
4021
- <line num="62" count="12" type="stmt"/>
4022
- <line num="63" count="12" type="stmt"/>
4023
- <line num="67" count="14" type="cond" truecount="1" falsecount="1"/>
4024
- <line num="68" count="0" type="stmt"/>
4025
- <line num="72" count="0" type="stmt"/>
4026
- <line num="76" count="14" type="cond" truecount="2" falsecount="0"/>
4027
- <line num="82" count="1" type="stmt"/>
4028
- <line num="84" count="1" type="stmt"/>
4029
- <line num="85" count="1" type="stmt"/>
4030
- <line num="89" count="13" type="cond" truecount="1" falsecount="1"/>
4031
- <line num="90" count="0" type="stmt"/>
4032
- <line num="94" count="13" type="cond" truecount="2" falsecount="0"/>
4033
- <line num="95" count="11" type="stmt"/>
4034
- <line num="99" count="13" type="cond" truecount="1" falsecount="1"/>
4035
- <line num="100" count="0" type="stmt"/>
4036
- <line num="104" count="13" type="stmt"/>
4037
- <line num="106" count="13" type="cond" truecount="1" falsecount="1"/>
4038
- <line num="107" count="0" type="stmt"/>
4039
- <line num="110" count="13" type="stmt"/>
4040
- <line num="114" count="5" type="stmt"/>
4041
- <line num="115" count="5" type="stmt"/>
4042
- <line num="116" count="5" type="stmt"/>
4043
- <line num="117" count="5" type="stmt"/>
4044
- <line num="130" count="6" type="stmt"/>
4045
- <line num="131" count="6" type="stmt"/>
4046
- <line num="132" count="6" type="stmt"/>
4047
- <line num="133" count="6" type="stmt"/>
4048
- <line num="134" count="6" type="cond" truecount="2" falsecount="0"/>
4049
- <line num="135" count="5" type="cond" truecount="1" falsecount="1"/>
4050
- <line num="139" count="5" type="stmt"/>
4051
- <line num="140" count="5" type="stmt"/>
4052
- <line num="142" count="1" type="stmt"/>
4053
- <line num="144" count="6" type="stmt"/>
4054
- <line num="148" count="14" type="stmt"/>
4055
- <line num="149" count="14" type="cond" truecount="3" falsecount="1"/>
4061
+ <line num="56" count="21" type="stmt"/>
4062
+ <line num="59" count="21" type="stmt"/>
4063
+ <line num="63" count="21" type="stmt"/>
4064
+ <line num="64" count="21" type="stmt"/>
4065
+ <line num="67" count="21" type="cond" truecount="2" falsecount="0"/>
4066
+ <line num="68" count="1" type="stmt"/>
4067
+ <line num="76" count="21" type="cond" truecount="2" falsecount="0"/>
4068
+ <line num="77" count="2" type="stmt"/>
4069
+ <line num="79" count="19" type="stmt"/>
4070
+ <line num="83" count="21" type="cond" truecount="1" falsecount="1"/>
4071
+ <line num="84" count="0" type="stmt"/>
4072
+ <line num="87" count="21" type="stmt"/>
4073
+ <line num="88" count="21" type="stmt"/>
4074
+ <line num="89" count="21" type="stmt"/>
4075
+ <line num="90" count="21" type="stmt"/>
4076
+ <line num="91" count="21" type="stmt"/>
4077
+ <line num="92" count="21" type="cond" truecount="2" falsecount="0"/>
4078
+ <line num="93" count="19" type="stmt"/>
4079
+ <line num="94" count="19" type="stmt"/>
4080
+ <line num="95" count="19" type="stmt"/>
4081
+ <line num="96" count="19" type="stmt"/>
4082
+ <line num="100" count="21" type="cond" truecount="1" falsecount="1"/>
4083
+ <line num="101" count="0" type="stmt"/>
4084
+ <line num="105" count="0" type="stmt"/>
4085
+ <line num="109" count="21" type="cond" truecount="5" falsecount="0"/>
4086
+ <line num="110" count="1" type="cond" truecount="1" falsecount="1"/>
4087
+ <line num="116" count="0" type="stmt"/>
4088
+ <line num="117" count="0" type="stmt"/>
4089
+ <line num="119" count="0" type="cond" truecount="0" falsecount="4"/>
4090
+ <line num="122" count="0" type="stmt"/>
4091
+ <line num="126" count="1" type="stmt"/>
4092
+ <line num="127" count="1" type="stmt"/>
4093
+ <line num="128" count="1" type="stmt"/>
4094
+ <line num="132" count="20" type="cond" truecount="1" falsecount="1"/>
4095
+ <line num="133" count="0" type="stmt"/>
4096
+ <line num="137" count="20" type="cond" truecount="2" falsecount="0"/>
4097
+ <line num="138" count="18" type="stmt"/>
4098
+ <line num="142" count="20" type="cond" truecount="1" falsecount="1"/>
4099
+ <line num="143" count="0" type="stmt"/>
4100
+ <line num="147" count="20" type="stmt"/>
4101
+ <line num="149" count="20" type="cond" truecount="1" falsecount="1"/>
4056
4102
  <line num="150" count="0" type="stmt"/>
4057
- <line num="152" count="14" type="cond" truecount="2" falsecount="0"/>
4058
- <line num="153" count="14" type="cond" truecount="2" falsecount="0"/>
4059
- <line num="154" count="14" type="stmt"/>
4060
- <line num="155" count="2" type="cond" truecount="1" falsecount="1"/>
4061
- <line num="156" count="2" type="stmt"/>
4062
- <line num="159" count="14" type="cond" truecount="2" falsecount="0"/>
4063
- <line num="161" count="9" type="stmt"/>
4064
- <line num="162" count="9" type="stmt"/>
4065
- <line num="164" count="6" type="cond" truecount="1" falsecount="1"/>
4066
- <line num="165" count="0" type="stmt"/>
4067
- <line num="168" count="6" type="stmt"/>
4068
- <line num="169" count="6" type="stmt"/>
4069
- <line num="171" count="9" type="stmt"/>
4070
- <line num="172" count="9" type="stmt"/>
4071
- <line num="173" count="9" type="stmt"/>
4072
- <line num="174" count="6" type="stmt"/>
4073
- <line num="175" count="6" type="stmt"/>
4074
- <line num="186" count="6" type="stmt"/>
4075
- <line num="189" count="14" type="stmt"/>
4076
- <line num="193" count="2" type="stmt"/>
4077
- <line num="194" count="10" type="stmt"/>
4078
- <line num="195" count="10" type="stmt"/>
4079
- <line num="196" count="10" type="stmt"/>
4080
- <line num="197" count="10" type="stmt"/>
4081
- <line num="198" count="8" type="stmt"/>
4082
- <line num="200" count="2" type="stmt"/>
4103
+ <line num="153" count="20" type="stmt"/>
4104
+ <line num="157" count="5" type="stmt"/>
4105
+ <line num="158" count="5" type="stmt"/>
4106
+ <line num="159" count="5" type="stmt"/>
4107
+ <line num="160" count="5" type="stmt"/>
4108
+ <line num="173" count="0" type="stmt"/>
4109
+ <line num="174" count="0" type="stmt"/>
4110
+ <line num="176" count="0" type="cond" truecount="0" falsecount="4"/>
4111
+ <line num="177" count="0" type="stmt"/>
4112
+ <line num="178" count="0" type="stmt"/>
4113
+ <line num="181" count="0" type="stmt"/>
4114
+ <line num="189" count="0" type="cond" truecount="0" falsecount="2"/>
4115
+ <line num="190" count="0" type="stmt"/>
4116
+ <line num="191" count="0" type="stmt"/>
4117
+ <line num="194" count="0" type="stmt"/>
4118
+ <line num="198" count="6" type="stmt"/>
4119
+ <line num="199" count="6" type="stmt"/>
4120
+ <line num="200" count="6" type="stmt"/>
4121
+ <line num="201" count="6" type="stmt"/>
4122
+ <line num="202" count="6" type="cond" truecount="2" falsecount="0"/>
4123
+ <line num="203" count="5" type="cond" truecount="1" falsecount="1"/>
4124
+ <line num="207" count="5" type="stmt"/>
4125
+ <line num="208" count="5" type="stmt"/>
4126
+ <line num="210" count="1" type="stmt"/>
4127
+ <line num="212" count="6" type="stmt"/>
4128
+ <line num="216" count="21" type="stmt"/>
4129
+ <line num="217" count="21" type="cond" truecount="3" falsecount="1"/>
4130
+ <line num="218" count="0" type="stmt"/>
4131
+ <line num="220" count="21" type="cond" truecount="2" falsecount="0"/>
4132
+ <line num="221" count="21" type="cond" truecount="2" falsecount="0"/>
4133
+ <line num="222" count="21" type="stmt"/>
4134
+ <line num="223" count="2" type="cond" truecount="1" falsecount="1"/>
4135
+ <line num="224" count="2" type="stmt"/>
4136
+ <line num="227" count="21" type="cond" truecount="2" falsecount="0"/>
4137
+ <line num="229" count="16" type="stmt"/>
4138
+ <line num="230" count="16" type="stmt"/>
4139
+ <line num="232" count="6" type="cond" truecount="1" falsecount="1"/>
4140
+ <line num="233" count="0" type="stmt"/>
4141
+ <line num="236" count="6" type="stmt"/>
4142
+ <line num="237" count="6" type="stmt"/>
4143
+ <line num="239" count="16" type="stmt"/>
4144
+ <line num="240" count="16" type="stmt"/>
4145
+ <line num="241" count="16" type="stmt"/>
4146
+ <line num="242" count="6" type="stmt"/>
4147
+ <line num="243" count="6" type="stmt"/>
4148
+ <line num="254" count="6" type="stmt"/>
4149
+ <line num="257" count="21" type="stmt"/>
4150
+ <line num="261" count="2" type="stmt"/>
4151
+ <line num="262" count="17" type="stmt"/>
4152
+ <line num="263" count="17" type="stmt"/>
4153
+ <line num="264" count="17" type="stmt"/>
4154
+ <line num="265" count="17" type="stmt"/>
4155
+ <line num="266" count="15" type="stmt"/>
4156
+ <line num="268" count="2" type="stmt"/>
4083
4157
  </file>
4084
4158
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4085
4159
  <metrics statements="36" coveredstatements="30" conditionals="15" coveredconditionals="10" methods="9" coveredmethods="8"/>
@@ -4112,13 +4186,13 @@
4112
4186
  <line num="51" count="5" type="stmt"/>
4113
4187
  <line num="52" count="5" type="stmt"/>
4114
4188
  <line num="59" count="44" type="stmt"/>
4115
- <line num="60" count="14" type="cond" truecount="1" falsecount="1"/>
4189
+ <line num="60" count="21" type="cond" truecount="1" falsecount="1"/>
4116
4190
  <line num="61" count="0" type="stmt"/>
4117
4191
  <line num="62" count="0" type="stmt"/>
4118
4192
  <line num="64" count="0" type="stmt"/>
4119
- <line num="67" count="14" type="stmt"/>
4193
+ <line num="67" count="21" type="stmt"/>
4120
4194
  <line num="70" count="44" type="stmt"/>
4121
- <line num="71" count="14" type="stmt"/>
4195
+ <line num="71" count="21" type="stmt"/>
4122
4196
  </file>
4123
4197
  </package>
4124
4198
  <package name="utilities">
@@ -4222,27 +4296,27 @@
4222
4296
  <line num="13" count="49" type="stmt"/>
4223
4297
  <line num="14" count="49" type="stmt"/>
4224
4298
  <line num="16" count="49" type="cond" truecount="1" falsecount="0"/>
4225
- <line num="17" count="232" type="cond" truecount="2" falsecount="0"/>
4226
- <line num="18" count="232" type="cond" truecount="4" falsecount="0"/>
4299
+ <line num="17" count="239" type="cond" truecount="2" falsecount="0"/>
4300
+ <line num="18" count="239" type="cond" truecount="4" falsecount="0"/>
4227
4301
  <line num="19" count="3" type="stmt"/>
4228
- <line num="22" count="229" type="cond" truecount="2" falsecount="2"/>
4302
+ <line num="22" count="236" type="cond" truecount="2" falsecount="2"/>
4229
4303
  <line num="23" count="0" type="stmt"/>
4230
4304
  <line num="24" count="0" type="stmt"/>
4231
4305
  <line num="25" count="0" type="stmt"/>
4232
4306
  <line num="26" count="0" type="stmt"/>
4233
- <line num="29" count="229" type="stmt"/>
4234
- <line num="31" count="229" type="cond" truecount="5" falsecount="0"/>
4235
- <line num="32" count="197" type="stmt"/>
4307
+ <line num="29" count="236" type="stmt"/>
4308
+ <line num="31" count="236" type="cond" truecount="5" falsecount="0"/>
4309
+ <line num="32" count="204" type="stmt"/>
4236
4310
  <line num="33" count="32" type="cond" truecount="2" falsecount="0"/>
4237
4311
  <line num="34" count="27" type="stmt"/>
4238
- <line num="36" count="229" type="stmt"/>
4239
- <line num="37" count="229" type="stmt"/>
4240
- <line num="41" count="225" type="cond" truecount="1" falsecount="1"/>
4241
- <line num="42" count="225" type="stmt"/>
4242
- <line num="44" count="225" type="stmt"/>
4312
+ <line num="36" count="236" type="stmt"/>
4313
+ <line num="37" count="236" type="stmt"/>
4314
+ <line num="41" count="232" type="cond" truecount="1" falsecount="1"/>
4315
+ <line num="42" count="232" type="stmt"/>
4316
+ <line num="44" count="232" type="stmt"/>
4243
4317
  <line num="47" count="49" type="stmt"/>
4244
- <line num="50" count="223" type="stmt"/>
4245
- <line num="51" count="223" type="stmt"/>
4318
+ <line num="50" count="230" type="stmt"/>
4319
+ <line num="51" count="230" type="stmt"/>
4246
4320
  <line num="54" count="49" type="stmt"/>
4247
4321
  <line num="55" count="2" type="stmt"/>
4248
4322
  <line num="56" count="2" type="stmt"/>
@@ -4297,14 +4371,14 @@
4297
4371
  <line num="41" count="2" type="stmt"/>
4298
4372
  <line num="43" count="0" type="stmt"/>
4299
4373
  <line num="57" count="47" type="stmt"/>
4300
- <line num="58" count="245" type="cond" truecount="1" falsecount="1"/>
4374
+ <line num="58" count="252" type="cond" truecount="1" falsecount="1"/>
4301
4375
  <line num="60" count="0" type="cond" truecount="0" falsecount="4"/>
4302
4376
  <line num="61" count="0" type="stmt"/>
4303
4377
  <line num="64" count="0" type="stmt"/>
4304
4378
  <line num="69" count="0" type="cond" truecount="0" falsecount="2"/>
4305
4379
  <line num="70" count="0" type="stmt"/>
4306
4380
  <line num="72" count="0" type="stmt"/>
4307
- <line num="74" count="245" type="stmt"/>
4381
+ <line num="74" count="252" type="stmt"/>
4308
4382
  <line num="78" count="47" type="stmt"/>
4309
4383
  <line num="79" count="2" type="stmt"/>
4310
4384
  <line num="84" count="47" type="stmt"/>
@@ -4341,13 +4415,13 @@
4341
4415
  <line num="146" count="1" type="stmt"/>
4342
4416
  <line num="147" count="1" type="stmt"/>
4343
4417
  <line num="152" count="47" type="stmt"/>
4344
- <line num="153" count="29" type="stmt"/>
4345
- <line num="154" count="29" type="stmt"/>
4346
- <line num="155" count="29" type="stmt"/>
4347
- <line num="156" count="29" type="cond" truecount="2" falsecount="0"/>
4348
- <line num="157" count="29" type="cond" truecount="1" falsecount="1"/>
4418
+ <line num="153" count="36" type="stmt"/>
4419
+ <line num="154" count="36" type="stmt"/>
4420
+ <line num="155" count="36" type="stmt"/>
4421
+ <line num="156" count="36" type="cond" truecount="2" falsecount="0"/>
4422
+ <line num="157" count="36" type="cond" truecount="1" falsecount="1"/>
4349
4423
  <line num="158" count="0" type="stmt"/>
4350
- <line num="160" count="29" type="cond" truecount="3" falsecount="1"/>
4424
+ <line num="160" count="36" type="cond" truecount="3" falsecount="1"/>
4351
4425
  <line num="163" count="47" type="stmt"/>
4352
4426
  <line num="164" count="1" type="stmt"/>
4353
4427
  <line num="165" count="1" type="cond" truecount="2" falsecount="2"/>
@@ -4378,7 +4452,7 @@
4378
4452
  <line num="13" count="43" type="stmt"/>
4379
4453
  <line num="18" count="43" type="stmt"/>
4380
4454
  <line num="19" count="4" type="stmt"/>
4381
- <line num="20" count="84" type="stmt"/>
4455
+ <line num="20" count="108" type="stmt"/>
4382
4456
  <line num="22" count="4" type="cond" truecount="2" falsecount="5"/>
4383
4457
  <line num="25" count="4" type="stmt"/>
4384
4458
  <line num="27" count="0" type="stmt"/>
@@ -4515,7 +4589,7 @@
4515
4589
  <line num="75" count="8" type="stmt"/>
4516
4590
  <line num="82" count="0" type="stmt"/>
4517
4591
  <line num="91" count="0" type="stmt"/>
4518
- <line num="98" count="241" type="stmt"/>
4592
+ <line num="98" count="248" type="stmt"/>
4519
4593
  <line num="110" count="0" type="stmt"/>
4520
4594
  <line num="114" count="43" type="stmt"/>
4521
4595
  </file>