@budibase/server 1.0.212-alpha.11 → 1.0.212-alpha.14

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 (202) hide show
  1. package/__mocks__/node-fetch.ts +9 -0
  2. package/builder/assets/index.1f366fcc.js +977 -0
  3. package/builder/assets/{index.969c2236.css → index.7786f497.css} +2 -2
  4. package/builder/assets/{vendor.9bf2fcb4.js → vendor.001dcf8c.js} +163 -163
  5. package/builder/index.html +3 -3
  6. package/coverage/clover.xml +616 -588
  7. package/coverage/coverage-final.json +20 -20
  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 +1 -1
  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 +19 -19
  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 +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  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 +1 -1
  78. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  79. package/coverage/lcov-report/automations/index.html +1 -1
  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 +1 -1
  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 +25 -52
  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 +56 -56
  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 +17 -8
  137. package/coverage/lcov-report/threads/index.html +25 -25
  138. package/coverage/lcov-report/threads/query.js.html +143 -68
  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 +1094 -1046
  162. package/dist/api/controllers/application.js +18 -15
  163. package/dist/api/controllers/automation.js +28 -2
  164. package/dist/api/controllers/query/index.js +6 -0
  165. package/dist/api/index.js +4 -1
  166. package/dist/api/routes/automation.js +2 -0
  167. package/dist/automations/logging/index.js +70 -0
  168. package/dist/automations/steps/filter.js +38 -29
  169. package/dist/db/linkedRows/index.js +1 -0
  170. package/dist/db/utils.js +3 -31
  171. package/dist/environment.js +1 -0
  172. package/dist/integrations/queries/sql.js +3 -0
  173. package/dist/integrations/rest.js +1 -1
  174. package/dist/package.json +6 -6
  175. package/dist/tests/utilities/TestConfiguration.js +19 -6
  176. package/dist/threads/automation.js +5 -2
  177. package/dist/threads/index.js +15 -1
  178. package/dist/threads/query.js +18 -3
  179. package/dist/tsconfig.build.tsbuildinfo +1 -1
  180. package/package.json +7 -7
  181. package/src/api/controllers/application.ts +18 -14
  182. package/src/api/controllers/automation.js +35 -2
  183. package/src/api/controllers/query/index.ts +6 -0
  184. package/src/api/index.js +4 -1
  185. package/src/api/routes/automation.js +10 -0
  186. package/src/api/routes/tests/query.spec.js +166 -0
  187. package/src/automations/logging/index.ts +35 -0
  188. package/src/automations/steps/filter.js +36 -28
  189. package/src/automations/tests/filter.spec.js +2 -1
  190. package/src/db/linkedRows/index.js +1 -0
  191. package/src/db/utils.js +4 -13
  192. package/src/environment.js +1 -0
  193. package/src/integrations/queries/sql.ts +3 -1
  194. package/src/integrations/rest.ts +1 -1
  195. package/src/integrations/tests/rest.spec.js +16 -1
  196. package/src/migrations/tests/index.spec.ts +18 -2
  197. package/src/module.d.ts +1 -0
  198. package/src/tests/utilities/TestConfiguration.js +22 -3
  199. package/src/threads/automation.js +5 -2
  200. package/src/threads/index.ts +5 -1
  201. package/src/threads/query.js +28 -3
  202. package/builder/assets/index.a7550206.js +0 -978
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1656924314231" clover="3.2.0">
3
- <project timestamp="1656924314231" name="All files">
4
- <metrics statements="4336" coveredstatements="3131" conditionals="1805" coveredconditionals="952" methods="627" coveredmethods="446" elements="6768" coveredelements="4529" complexity="0" loc="4336" ncloc="4336" packages="23" files="129" classes="129"/>
2
+ <coverage generated="1657009885231" clover="3.2.0">
3
+ <project timestamp="1657009885231" name="All files">
4
+ <metrics statements="4364" coveredstatements="3143" conditionals="1817" coveredconditionals="956" methods="631" coveredmethods="446" elements="6812" coveredelements="4545" complexity="0" loc="4364" ncloc="4364" 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="975" coveredstatements="695" 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,122 +104,138 @@
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
241
  <metrics statements="14" coveredstatements="14" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
@@ -379,26 +396,26 @@
379
396
  <line num="124" count="6" type="stmt"/>
380
397
  <line num="125" count="6" type="stmt"/>
381
398
  <line num="128" count="44" type="stmt"/>
382
- <line num="129" count="52" type="stmt"/>
383
- <line num="130" count="52" type="stmt"/>
384
- <line num="131" count="52" type="stmt"/>
385
- <line num="133" count="52" type="stmt"/>
386
- <line num="139" count="52" type="stmt"/>
387
- <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"/>
388
405
  <line num="141" count="0" type="stmt"/>
389
406
  <line num="142" count="0" type="stmt"/>
390
407
  <line num="143" count="0" type="stmt"/>
391
- <line num="146" count="52" type="stmt"/>
392
- <line num="147" count="52" type="stmt"/>
393
- <line num="148" count="52" type="stmt"/>
394
- <line num="151" count="52" type="cond" truecount="1" falsecount="1"/>
395
- <line num="152" count="52" type="stmt"/>
396
- <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"/>
397
414
  <line num="154" count="0" type="stmt"/>
398
- <line num="158" count="52" type="stmt"/>
399
- <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"/>
400
417
  <line num="160" count="0" type="stmt"/>
401
- <line num="162" count="52" type="stmt"/>
418
+ <line num="162" count="66" type="stmt"/>
402
419
  <line num="165" count="44" type="stmt"/>
403
420
  <line num="166" count="1" type="stmt"/>
404
421
  <line num="167" count="1" type="stmt"/>
@@ -2304,7 +2321,7 @@
2304
2321
  <line num="14" count="27" type="stmt"/>
2305
2322
  <line num="16" count="27" type="stmt"/>
2306
2323
  <line num="18" count="27" type="stmt"/>
2307
- <line num="75" count="27" type="stmt"/>
2324
+ <line num="85" count="27" type="stmt"/>
2308
2325
  </file>
2309
2326
  <file name="backup.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/backup.js">
2310
2327
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -2762,7 +2779,7 @@
2762
2779
  </file>
2763
2780
  </package>
2764
2781
  <package name="automations.steps">
2765
- <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"/>
2766
2783
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
2767
2784
  <metrics statements="17" coveredstatements="6" conditionals="4" coveredconditionals="0" methods="1" coveredmethods="0"/>
2768
2785
  <line num="1" count="44" type="stmt"/>
@@ -2841,33 +2858,35 @@
2841
2858
  <line num="65" count="0" type="stmt"/>
2842
2859
  </file>
2843
2860
  <file name="filter.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/filter.js">
2844
- <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"/>
2845
2862
  <line num="1" count="44" type="stmt"/>
2846
2863
  <line num="8" count="44" type="stmt"/>
2847
2864
  <line num="15" count="44" type="stmt"/>
2848
2865
  <line num="16" count="44" type="stmt"/>
2849
2866
  <line num="18" count="44" type="stmt"/>
2850
- <line num="62" count="44" type="stmt"/>
2851
- <line num="63" count="11" type="stmt"/>
2852
- <line num="65" count="11" type="cond" truecount="4" falsecount="0"/>
2853
- <line num="66" count="6" type="stmt"/>
2854
- <line num="67" count="6" type="stmt"/>
2855
- <line num="68" count="5" type="cond" truecount="4" falsecount="0"/>
2856
- <line num="69" count="1" type="stmt"/>
2857
- <line num="70" count="1" type="stmt"/>
2858
- <line num="72" count="11" type="stmt"/>
2859
- <line num="73" count="11" type="cond" truecount="4" falsecount="0"/>
2860
- <line num="74" count="10" type="cond" truecount="4" falsecount="0"/>
2861
- <line num="76" count="2" type="stmt"/>
2862
- <line num="77" count="2" type="stmt"/>
2863
- <line num="79" count="2" type="stmt"/>
2864
- <line num="80" count="2" type="stmt"/>
2865
- <line num="82" count="4" type="stmt"/>
2866
- <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"/>
2867
2882
  <line num="85" count="2" type="stmt"/>
2868
- <line num="86" count="2" type="stmt"/>
2869
- <line num="89" count="1" type="stmt"/>
2870
- <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"/>
2871
2890
  </file>
2872
2891
  <file name="integromat.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/integromat.js">
2873
2892
  <metrics statements="8" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3110,7 +3129,7 @@
3110
3129
  </file>
3111
3130
  </package>
3112
3131
  <package name="db">
3113
- <metrics statements="141" coveredstatements="113" conditionals="58" coveredconditionals="19" methods="36" coveredmethods="27"/>
3132
+ <metrics statements="139" coveredstatements="111" conditionals="58" coveredconditionals="19" methods="35" coveredmethods="26"/>
3114
3133
  <file name="inMemoryView.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/inMemoryView.js">
3115
3134
  <metrics statements="23" coveredstatements="4" conditionals="8" coveredconditionals="0" methods="4" coveredmethods="0"/>
3116
3135
  <line num="1" count="44" type="stmt"/>
@@ -3152,20 +3171,26 @@
3152
3171
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3153
3172
  <line num="1" count="57" type="stmt"/>
3154
3173
  <line num="3" count="57" type="stmt"/>
3155
- <line num="4" count="923" type="stmt"/>
3174
+ <line num="4" count="958" type="stmt"/>
3156
3175
  </file>
3157
3176
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3158
- <metrics statements="107" coveredstatements="98" conditionals="48" coveredconditionals="18" methods="30" coveredmethods="25"/>
3177
+ <metrics statements="105" coveredstatements="96" conditionals="48" coveredconditionals="18" methods="29" coveredmethods="24"/>
3159
3178
  <line num="1" count="57" type="stmt"/>
3160
- <line num="14" count="57" type="stmt"/>
3161
3179
  <line num="16" count="57" type="stmt"/>
3162
3180
  <line num="18" count="57" type="stmt"/>
3163
- <line num="24" count="57" type="stmt"/>
3164
- <line num="48" count="57" type="stmt"/>
3165
- <line num="53" count="57" type="stmt"/>
3166
- <line num="57" count="57" type="stmt"/>
3167
- <line num="61" count="57" type="stmt"/>
3168
- <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"/>
3169
3194
  <line num="71" count="57" type="stmt"/>
3170
3195
  <line num="72" count="57" type="stmt"/>
3171
3196
  <line num="73" count="57" type="stmt"/>
@@ -3176,97 +3201,89 @@
3176
3201
  <line num="78" count="57" type="stmt"/>
3177
3202
  <line num="79" count="57" type="stmt"/>
3178
3203
  <line num="80" count="57" type="stmt"/>
3179
- <line num="81" count="57" type="stmt"/>
3180
3204
  <line num="82" count="57" type="stmt"/>
3181
3205
  <line num="83" count="57" type="stmt"/>
3182
- <line num="84" count="57" type="stmt"/>
3183
3206
  <line num="85" count="57" type="stmt"/>
3184
- <line num="86" count="57" type="stmt"/>
3185
- <line num="87" count="57" type="stmt"/>
3186
- <line num="89" count="57" type="stmt"/>
3187
- <line num="90" count="57" type="stmt"/>
3188
- <line num="92" count="57" type="stmt"/>
3189
- <line num="93" count="74" type="stmt"/>
3190
- <line num="109" count="1077" type="cond" truecount="2" falsecount="0"/>
3191
- <line num="110" count="1060" type="stmt"/>
3192
- <line num="112" count="1077" type="stmt"/>
3193
- <line num="119" count="57" type="stmt"/>
3194
- <line num="124" count="57" type="cond" truecount="0" falsecount="2"/>
3195
- <line num="125" count="267" type="stmt"/>
3196
- <line num="132" count="57" type="stmt"/>
3197
- <line num="133" count="128" type="stmt"/>
3198
- <line num="144" count="57" type="cond" truecount="0" falsecount="3"/>
3199
- <line num="145" count="41" type="cond" truecount="2" falsecount="0"/>
3200
- <line num="146" count="27" type="stmt"/>
3201
- <line num="149" count="14" type="cond" truecount="1" falsecount="1"/>
3202
- <line num="151" count="14" type="stmt"/>
3203
- <line num="159" count="57" type="stmt"/>
3204
- <line num="160" count="0" type="stmt"/>
3205
- <line num="163" count="0" type="stmt"/>
3206
- <line num="172" count="57" type="cond" truecount="1" falsecount="0"/>
3207
- <line num="173" count="309" type="cond" truecount="2" falsecount="0"/>
3208
- <line num="174" count="309" type="stmt"/>
3209
- <line num="180" count="57" type="cond" truecount="0" falsecount="2"/>
3210
- <line num="181" count="3" type="stmt"/>
3211
- <line num="189" count="57" type="stmt"/>
3212
- <line num="190" count="231" type="stmt"/>
3213
- <line num="196" count="57" type="stmt"/>
3214
- <line num="197" count="3" type="stmt"/>
3215
- <line num="198" count="3" type="cond" truecount="4" falsecount="0"/>
3216
- <line num="199" count="1" type="stmt"/>
3217
- <line num="201" count="2" type="stmt"/>
3218
- <line num="207" count="57" type="cond" truecount="0" falsecount="2"/>
3219
- <line num="208" count="261" type="stmt"/>
3220
- <line num="215" count="57" type="stmt"/>
3221
- <line num="216" count="27" type="stmt"/>
3222
- <line num="230" count="57" type="stmt"/>
3223
- <line num="238" count="9" type="stmt"/>
3224
- <line num="239" count="9" type="stmt"/>
3225
- <line num="240" count="9" type="stmt"/>
3226
- <line num="241" count="9" type="stmt"/>
3227
- <line num="247" count="57" type="cond" truecount="0" falsecount="1"/>
3228
- <line num="248" count="0" type="stmt"/>
3229
- <line num="255" count="57" type="stmt"/>
3230
- <line num="256" count="6" type="cond" truecount="2" falsecount="0"/>
3231
- <line num="262" count="57" type="cond" truecount="0" falsecount="2"/>
3232
- <line num="263" count="247" type="stmt"/>
3233
- <line num="270" count="57" type="stmt"/>
3234
- <line num="271" count="23" type="stmt"/>
3235
- <line num="277" count="57" type="cond" truecount="0" falsecount="2"/>
3236
- <line num="278" count="249" type="stmt"/>
3237
- <line num="285" count="57" type="stmt"/>
3238
- <line num="286" count="10" type="stmt"/>
3239
- <line num="292" count="57" type="cond" truecount="0" falsecount="2"/>
3240
- <line num="293" count="2" type="stmt"/>
3241
- <line num="300" count="57" type="cond" truecount="1" falsecount="1"/>
3242
- <line num="301" count="52" type="stmt"/>
3243
- <line num="309" count="57" type="cond" truecount="0" falsecount="2"/>
3244
- <line num="310" count="5" type="stmt"/>
3245
- <line num="317" count="57" type="stmt"/>
3246
- <line num="318" count="135" type="stmt"/>
3247
- <line num="326" count="57" type="cond" truecount="0" falsecount="2"/>
3248
- <line num="327" count="5" type="cond" truecount="2" falsecount="0"/>
3249
- <line num="328" count="4" type="stmt"/>
3250
- <line num="331" count="1" type="stmt"/>
3251
- <line num="342" count="57" type="stmt"/>
3252
- <line num="343" count="0" type="stmt"/>
3253
- <line num="346" count="57" type="stmt"/>
3254
- <line num="347" count="10" type="stmt"/>
3255
- <line num="350" count="57" type="cond" truecount="0" falsecount="2"/>
3256
- <line num="351" count="0" type="stmt"/>
3257
- <line num="352" count="0" type="cond" truecount="0" falsecount="2"/>
3258
- <line num="353" count="0" type="stmt"/>
3259
- <line num="355" count="0" type="stmt"/>
3260
- <line num="358" count="57" type="stmt"/>
3261
- <line num="359" count="1" type="stmt"/>
3262
- <line num="362" count="57" type="cond" truecount="0" falsecount="1"/>
3263
- <line num="363" count="0" type="stmt"/>
3264
- <line num="369" count="57" type="stmt"/>
3265
- <line num="370" count="60" 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"/>
3273
+ <line num="342" 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"/>
3280
+ <line num="354" count="0" type="stmt"/>
3281
+ <line num="360" count="57" type="stmt"/>
3282
+ <line num="361" count="60" type="stmt"/>
3266
3283
  </file>
3267
3284
  </package>
3268
3285
  <package name="db.linkedRows">
3269
- <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"/>
3270
3287
  <file name="LinkController.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/LinkController.js">
3271
3288
  <metrics statements="151" coveredstatements="146" conditionals="68" coveredconditionals="60" methods="27" coveredmethods="24"/>
3272
3289
  <line num="1" count="44" type="stmt"/>
@@ -3422,7 +3439,7 @@
3422
3439
  <line num="465" count="44" type="stmt"/>
3423
3440
  </file>
3424
3441
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/index.js">
3425
- <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"/>
3426
3443
  <line num="1" count="44" type="stmt"/>
3427
3444
  <line num="10" count="44" type="stmt"/>
3428
3445
  <line num="11" count="44" type="stmt"/>
@@ -3447,73 +3464,74 @@
3447
3464
  <line num="54" count="30" type="stmt"/>
3448
3465
  <line num="57" count="30" type="stmt"/>
3449
3466
  <line num="66" count="30" type="stmt"/>
3450
- <line num="69" count="25" type="stmt"/>
3451
- <line num="76" count="30" type="stmt"/>
3467
+ <line num="68" count="25" type="stmt"/>
3468
+ <line num="70" count="25" type="stmt"/>
3452
3469
  <line num="77" count="30" type="stmt"/>
3453
3470
  <line num="78" count="30" type="stmt"/>
3454
3471
  <line num="79" count="30" type="stmt"/>
3455
- <line num="80" count="18" type="stmt"/>
3456
- <line num="83" count="30" type="stmt"/>
3457
- <line num="84" count="18" type="cond" truecount="2" falsecount="0"/>
3458
- <line num="85" count="18" type="stmt"/>
3459
- <line num="87" count="30" type="stmt"/>
3460
- <line num="88" count="18" type="stmt"/>
3461
- <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"/>
3462
3479
  <line num="91" count="30" type="stmt"/>
3463
- <line num="105" count="44" type="stmt"/>
3464
- <line num="106" count="217" type="stmt"/>
3465
- <line num="107" count="217" type="cond" truecount="2" falsecount="0"/>
3466
- <line num="109" count="217" type="cond" truecount="4" falsecount="0"/>
3467
- <line num="110" count="131" type="stmt"/>
3468
- <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"/>
3469
3486
  <line num="113" count="217" type="stmt"/>
3470
- <line num="114" count="217" type="cond" truecount="2" falsecount="0"/>
3471
- <line num="119" count="176" type="stmt"/>
3472
- <line num="122" count="0" type="stmt"/>
3473
- <line num="124" count="41" type="cond" truecount="5" falsecount="2"/>
3474
- <line num="127" count="21" type="stmt"/>
3475
- <line num="129" count="0" type="stmt"/>
3476
- <line num="131" count="18" type="stmt"/>
3477
- <line num="133" count="1" type="stmt"/>
3478
- <line num="135" count="1" type="stmt"/>
3479
- <line num="137" count="0" type="stmt"/>
3480
- <line num="148" count="44" type="stmt"/>
3481
- <line num="149" count="119" type="stmt"/>
3482
- <line num="150" count="119" type="cond" truecount="2" falsecount="0"/>
3483
- <line num="151" count="89" type="stmt"/>
3484
- <line num="154" count="30" type="stmt"/>
3485
- <line num="155" count="25" type="stmt"/>
3486
- <line num="158" count="30" type="stmt"/>
3487
- <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"/>
3488
3505
  <line num="161" count="30" type="stmt"/>
3489
3506
  <line num="162" count="30" type="stmt"/>
3490
3507
  <line num="163" count="30" type="stmt"/>
3491
- <line num="164" count="18" type="cond" truecount="1" falsecount="1"/>
3492
- <line num="165" count="18" type="stmt"/>
3493
- <line num="167" count="18" type="stmt"/>
3494
- <line num="168" count="18" type="cond" truecount="1" falsecount="1"/>
3495
- <line num="170" count="18" type="cond" truecount="1" falsecount="1"/>
3496
- <line num="171" count="18" type="stmt"/>
3497
- <line num="172" count="18" type="cond" truecount="1" falsecount="1"/>
3498
- <line num="173" count="18" type="stmt"/>
3499
- <line num="178" count="30" type="stmt"/>
3500
- <line num="187" count="44" type="stmt"/>
3501
- <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"/>
3502
3519
  <line num="190" count="35" type="stmt"/>
3503
- <line num="192" count="41" type="stmt"/>
3520
+ <line num="191" count="35" type="stmt"/>
3504
3521
  <line num="193" count="41" type="stmt"/>
3505
- <line num="194" count="121" type="cond" truecount="4" falsecount="0"/>
3506
- <line num="195" count="112" type="stmt"/>
3507
- <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"/>
3508
3525
  <line num="198" count="9" type="stmt"/>
3509
- <line num="199" count="9" type="cond" truecount="1" falsecount="1"/>
3510
- <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"/>
3511
3528
  <line num="201" count="9" type="stmt"/>
3512
- <line num="202" count="9" type="cond" truecount="2" falsecount="0"/>
3513
- <line num="203" count="8" type="stmt"/>
3514
- <line num="205" count="9" type="stmt"/>
3515
- <line num="207" count="9" type="stmt"/>
3516
- <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"/>
3517
3535
  </file>
3518
3536
  <file name="linkUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/linkUtils.js">
3519
3537
  <metrics statements="54" coveredstatements="50" conditionals="26" coveredconditionals="20" methods="13" coveredmethods="13"/>
@@ -3673,19 +3691,19 @@
3673
3691
  <line num="59" count="1" type="stmt"/>
3674
3692
  <line num="61" count="1" type="stmt"/>
3675
3693
  <line num="65" count="28" type="stmt"/>
3676
- <line num="66" count="215" type="stmt"/>
3677
- <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"/>
3678
3696
  <line num="69" count="5" type="stmt"/>
3679
- <line num="71" count="210" type="stmt"/>
3680
- <line num="72" count="210" type="stmt"/>
3681
- <line num="74" count="210" type="stmt"/>
3682
- <line num="75" count="210" type="cond" truecount="2" falsecount="0"/>
3683
- <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"/>
3684
3702
  <line num="77" count="0" type="stmt"/>
3685
- <line num="80" count="210" type="cond" truecount="2" falsecount="0"/>
3686
- <line num="81" count="210" type="cond" truecount="2" falsecount="0"/>
3687
- <line num="83" count="210" type="cond" truecount="4" falsecount="0"/>
3688
- <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"/>
3689
3707
  <line num="87" count="1" type="stmt"/>
3690
3708
  <line num="89" count="1" type="stmt"/>
3691
3709
  </file>
@@ -3703,75 +3721,75 @@
3703
3721
  <line num="15" count="32" type="stmt"/>
3704
3722
  <line num="16" count="32" type="stmt"/>
3705
3723
  <line num="18" count="32" type="stmt"/>
3706
- <line num="20" count="231" type="stmt"/>
3707
- <line num="22" count="231" type="stmt"/>
3708
- <line num="23" count="231" type="stmt"/>
3709
- <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"/>
3710
3728
  <line num="26" count="0" type="stmt"/>
3711
- <line num="28" count="231" type="cond" truecount="4" falsecount="0"/>
3729
+ <line num="28" count="238" type="cond" truecount="4" falsecount="0"/>
3712
3730
  <line num="29" count="1" type="stmt"/>
3713
- <line num="32" count="230" type="cond" truecount="2" falsecount="0"/>
3714
- <line num="33" count="224" type="stmt"/>
3715
- <line num="34" count="224" type="stmt"/>
3716
- <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"/>
3717
3735
  <line num="36" count="0" type="stmt"/>
3718
3736
  <line num="37" count="0" type="stmt"/>
3719
- <line num="40" count="224" type="cond" truecount="1" falsecount="1"/>
3720
- <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"/>
3721
3739
  <line num="45" count="2" type="cond" truecount="1" falsecount="1"/>
3722
3740
  <line num="50" count="2" type="stmt"/>
3723
3741
  <line num="51" count="2" type="stmt"/>
3724
- <line num="56" count="228" type="stmt"/>
3725
- <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"/>
3726
3744
  <line num="59" count="5" type="stmt"/>
3727
- <line num="60" count="223" type="cond" truecount="1" falsecount="1"/>
3728
- <line num="62" count="223" type="stmt"/>
3729
- <line num="63" count="223" type="stmt"/>
3730
- <line num="65" count="223" type="cond" truecount="2" falsecount="0"/>
3731
- <line num="69" count="223" type="cond" truecount="3" falsecount="0"/>
3732
- <line num="70" count="223" type="cond" truecount="2" falsecount="0"/>
3733
- <line num="71" count="223" type="cond" truecount="2" falsecount="0"/>
3734
- <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"/>
3735
3753
  <line num="74" count="0" type="stmt"/>
3736
3754
  <line num="75" count="0" type="stmt"/>
3737
3755
  <line num="76" count="0" type="stmt"/>
3738
- <line num="84" count="228" type="cond" truecount="1" falsecount="1"/>
3756
+ <line num="84" count="235" type="cond" truecount="1" falsecount="1"/>
3739
3757
  <line num="85" count="0" type="stmt"/>
3740
- <line num="88" count="228" type="stmt"/>
3741
- <line num="89" count="228" type="stmt"/>
3742
- <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"/>
3743
3761
  <line num="99" count="0" type="stmt"/>
3744
3762
  <line num="100" count="0" type="stmt"/>
3745
3763
  <line num="101" count="0" type="stmt"/>
3746
3764
  <line num="102" count="0" type="stmt"/>
3747
3765
  <line num="103" count="0" type="stmt"/>
3748
3766
  <line num="104" count="0" type="stmt"/>
3749
- <line num="107" count="228" type="stmt"/>
3750
- <line num="108" count="228" type="cond" truecount="1" falsecount="1"/>
3751
- <line num="109" count="228" type="stmt"/>
3752
- <line num="110" count="228" type="cond" truecount="2" falsecount="0"/>
3753
- <line num="111" count="228" type="stmt"/>
3754
- <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"/>
3755
3773
  <line num="126" count="9" type="stmt"/>
3756
- <line num="129" count="228" type="stmt"/>
3774
+ <line num="129" count="235" type="stmt"/>
3757
3775
  </file>
3758
3776
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
3759
3777
  <metrics statements="19" coveredstatements="16" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
3760
3778
  <line num="1" count="44" type="stmt"/>
3761
3779
  <line num="5" count="594" type="stmt"/>
3762
- <line num="6" count="45" type="cond" truecount="1" falsecount="1"/>
3780
+ <line num="6" count="52" type="cond" truecount="1" falsecount="1"/>
3763
3781
  <line num="7" count="0" type="stmt"/>
3764
- <line num="9" count="45" type="stmt"/>
3765
- <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"/>
3766
3784
  <line num="11" count="1" type="stmt"/>
3767
- <line num="12" count="44" type="cond" truecount="1" falsecount="1"/>
3768
- <line num="13" count="44" type="stmt"/>
3769
- <line num="16" count="45" type="stmt"/>
3770
- <line num="21" count="45" type="stmt"/>
3771
- <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"/>
3772
3790
  <line num="23" count="0" type="stmt"/>
3773
3791
  <line num="24" count="0" type="stmt"/>
3774
- <line num="26" count="45" type="stmt"/>
3792
+ <line num="26" count="52" type="stmt"/>
3775
3793
  <line num="30" count="44" type="stmt"/>
3776
3794
  <line num="31" count="540" type="stmt"/>
3777
3795
  <line num="34" count="44" type="stmt"/>
@@ -3804,14 +3822,14 @@
3804
3822
  <line num="21" count="897" type="stmt"/>
3805
3823
  <line num="22" count="897" type="stmt"/>
3806
3824
  <line num="23" count="897" type="stmt"/>
3807
- <line num="24" count="95" type="cond" truecount="2" falsecount="0"/>
3808
- <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"/>
3809
3827
  <line num="26" count="1" type="stmt"/>
3810
- <line num="28" count="94" type="cond" truecount="4" falsecount="0"/>
3811
- <line num="29" count="82" type="stmt"/>
3812
- <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"/>
3813
3831
  <line num="32" count="15" type="stmt"/>
3814
- <line num="34" count="94" type="stmt"/>
3832
+ <line num="34" count="101" type="stmt"/>
3815
3833
  <line num="39" count="28" type="stmt"/>
3816
3834
  <line num="41" count="28" type="stmt"/>
3817
3835
  <line num="42" count="704" type="stmt"/>
@@ -3835,13 +3853,13 @@
3835
3853
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3836
3854
  <line num="1" count="33" type="stmt"/>
3837
3855
  <line num="5" count="33" type="stmt"/>
3838
- <line num="6" count="219" type="stmt"/>
3856
+ <line num="6" count="226" type="stmt"/>
3839
3857
  </file>
3840
3858
  </package>
3841
3859
  <package name="threads">
3842
- <metrics statements="299" coveredstatements="204" conditionals="133" coveredconditionals="64" methods="33" coveredmethods="27"/>
3860
+ <metrics statements="309" coveredstatements="212" conditionals="137" coveredconditionals="67" methods="34" coveredmethods="27"/>
3843
3861
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
3844
- <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"/>
3845
3863
  <line num="1" count="3" type="stmt"/>
3846
3864
  <line num="2" count="3" type="stmt"/>
3847
3865
  <line num="3" count="3" type="stmt"/>
@@ -3855,159 +3873,161 @@
3855
3873
  <line num="11" count="3" type="stmt"/>
3856
3874
  <line num="12" count="3" type="stmt"/>
3857
3875
  <line num="13" count="3" type="stmt"/>
3858
- <line num="15" count="3" type="stmt"/>
3876
+ <line num="14" count="3" type="stmt"/>
3859
3877
  <line num="16" count="3" type="stmt"/>
3860
3878
  <line num="17" count="3" type="stmt"/>
3861
3879
  <line num="18" count="3" type="stmt"/>
3862
- <line num="21" count="0" type="cond" truecount="0" falsecount="4"/>
3863
- <line num="22" count="0" type="stmt"/>
3864
- <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"/>
3865
3883
  <line num="25" count="0" type="stmt"/>
3866
3884
  <line num="26" count="0" type="stmt"/>
3867
- <line num="27" count="0" type="cond" truecount="0" falsecount="2"/>
3868
- <line num="29" count="0" type="cond" truecount="0" falsecount="2"/>
3869
- <line num="30" count="0" type="stmt"/>
3870
- <line num="32" count="0" type="stmt"/>
3871
- <line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
3872
- <line num="35" count="0" type="stmt"/>
3873
- <line num="37" count="0" type="stmt"/>
3874
- <line num="40" count="0" type="stmt"/>
3875
- <line num="42" count="0" type="stmt"/>
3876
- <line num="46" count="0" type="stmt"/>
3877
- <line num="47" count="0" type="cond" truecount="0" falsecount="4"/>
3878
- <line num="48" count="0" type="stmt"/>
3879
- <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
3880
- <line num="62" count="6" type="stmt"/>
3881
- <line num="63" count="6" type="cond" truecount="2" falsecount="0"/>
3882
- <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"/>
3883
3901
  <line num="65" count="6" type="stmt"/>
3884
3902
  <line num="66" count="6" type="stmt"/>
3885
3903
  <line num="67" count="6" type="stmt"/>
3886
- <line num="69" count="6" type="stmt"/>
3904
+ <line num="68" count="6" type="stmt"/>
3887
3905
  <line num="70" count="6" type="stmt"/>
3888
- <line num="72" count="6" type="stmt"/>
3906
+ <line num="71" count="6" type="stmt"/>
3889
3907
  <line num="73" count="6" type="stmt"/>
3890
- <line num="76" count="6" type="stmt"/>
3908
+ <line num="74" count="6" type="stmt"/>
3891
3909
  <line num="77" count="6" type="stmt"/>
3892
- <line num="79" count="6" type="stmt"/>
3910
+ <line num="78" count="6" type="stmt"/>
3893
3911
  <line num="80" count="6" type="stmt"/>
3894
- <line num="84" count="6" type="cond" truecount="1" falsecount="1"/>
3895
- <line num="85" count="0" type="stmt"/>
3896
- <line num="87" count="6" type="stmt"/>
3897
- <line num="91" count="5" type="stmt"/>
3898
- <line num="92" count="5" type="cond" truecount="1" falsecount="1"/>
3899
- <line num="93" count="0" type="stmt"/>
3900
- <line num="95" count="5" type="stmt"/>
3901
- <line num="99" count="6" type="cond" truecount="1" falsecount="1"/>
3902
- <line num="100" count="0" type="stmt"/>
3903
- <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"/>
3904
3922
  <line num="103" count="6" type="stmt"/>
3905
3923
  <line num="104" count="6" type="stmt"/>
3906
- <line num="108" count="11" type="stmt"/>
3907
- <line num="110" count="11" type="cond" truecount="2" falsecount="0"/>
3908
- <line num="111" count="6" type="stmt"/>
3909
- <line num="113" count="11" type="stmt"/>
3910
- <line num="117" count="0" type="stmt"/>
3911
- <line num="127" count="0" type="stmt"/>
3912
- <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"/>
3913
3931
  <line num="136" count="6" type="stmt"/>
3914
3932
  <line num="137" count="6" type="stmt"/>
3915
3933
  <line num="138" count="6" type="stmt"/>
3916
- <line num="140" count="6" type="stmt"/>
3934
+ <line num="139" count="6" type="stmt"/>
3917
3935
  <line num="141" count="6" type="stmt"/>
3918
3936
  <line num="142" count="6" type="stmt"/>
3919
3937
  <line num="143" count="6" type="stmt"/>
3920
- <line num="144" count="5" type="stmt"/>
3921
- <line num="146" count="5" type="stmt"/>
3938
+ <line num="144" count="6" type="stmt"/>
3939
+ <line num="145" count="5" type="stmt"/>
3922
3940
  <line num="147" count="5" type="stmt"/>
3923
- <line num="148" count="5" type="cond" truecount="1" falsecount="1"/>
3924
- <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"/>
3925
3943
  <line num="150" count="0" type="stmt"/>
3926
3944
  <line num="151" count="0" type="stmt"/>
3927
- <line num="154" count="5" type="cond" truecount="1" falsecount="1"/>
3928
- <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"/>
3929
3947
  <line num="156" count="0" type="stmt"/>
3930
- <line num="159" count="5" type="stmt"/>
3948
+ <line num="157" count="0" type="stmt"/>
3931
3949
  <line num="160" count="5" type="stmt"/>
3932
- <line num="163" count="5" type="cond" truecount="1" falsecount="1"/>
3933
- <line num="164" count="0" type="stmt"/>
3934
- <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"/>
3935
3953
  <line num="170" count="0" type="stmt"/>
3936
3954
  <line num="171" count="0" type="stmt"/>
3937
- <line num="173" count="0" type="stmt"/>
3938
- <line num="177" count="0" type="stmt"/>
3955
+ <line num="172" count="0" type="stmt"/>
3956
+ <line num="174" count="0" type="stmt"/>
3939
3957
  <line num="178" count="0" type="stmt"/>
3940
3958
  <line num="179" count="0" type="stmt"/>
3941
- <line num="183" count="0" type="cond" truecount="0" falsecount="2"/>
3942
- <line num="187" count="0" type="stmt"/>
3943
- <line num="189" count="0" type="stmt"/>
3944
- <line num="192" count="0" type="stmt"/>
3945
- <line num="198" count="0" type="stmt"/>
3946
- <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
3947
- <line num="200" count="0" type="stmt"/>
3948
- <line num="203" count="0" type="cond" truecount="0" falsecount="2"/>
3949
- <line num="204" count="0" type="stmt"/>
3950
- <line num="212" count="0" type="cond" truecount="0" falsecount="2"/>
3951
- <line num="213" count="0" type="stmt"/>
3952
- <line num="220" count="0" type="cond" truecount="0" falsecount="2"/>
3953
- <line num="224" count="0" type="stmt"/>
3954
- <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"/>
3955
3973
  <line num="229" count="0" type="stmt"/>
3956
3974
  <line num="230" count="0" type="stmt"/>
3957
- <line num="233" count="0" type="stmt"/>
3975
+ <line num="231" count="0" type="stmt"/>
3958
3976
  <line num="234" count="0" type="stmt"/>
3959
- <line num="235" count="0" type="cond" truecount="0" falsecount="4"/>
3960
- <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"/>
3961
3979
  <line num="237" count="0" type="stmt"/>
3962
- <line num="240" count="0" type="cond" truecount="0" falsecount="2"/>
3963
- <line num="243" count="0" type="cond" truecount="0" falsecount="2"/>
3964
- <line num="244" count="0" type="stmt"/>
3965
- <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"/>
3966
3984
  <line num="249" count="0" type="stmt"/>
3967
3985
  <line num="250" count="0" type="stmt"/>
3968
- <line num="255" count="5" type="cond" truecount="1" falsecount="1"/>
3969
- <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"/>
3970
3988
  <line num="257" count="0" type="stmt"/>
3971
- <line num="261" count="5" type="stmt"/>
3989
+ <line num="258" count="0" type="stmt"/>
3972
3990
  <line num="262" count="5" type="stmt"/>
3973
3991
  <line num="263" count="5" type="stmt"/>
3974
3992
  <line num="264" count="5" type="stmt"/>
3975
- <line num="266" count="5" type="cond" truecount="1" falsecount="1"/>
3976
- <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"/>
3977
3995
  <line num="268" count="5" type="stmt"/>
3978
- <line num="275" count="5" type="stmt"/>
3979
- <line num="278" count="5" type="cond" truecount="2" falsecount="2"/>
3980
- <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"/>
3981
3999
  <line num="280" count="0" type="stmt"/>
3982
- <line num="284" count="0" type="stmt"/>
3983
- <line num="286" count="5" type="cond" truecount="2" falsecount="2"/>
3984
- <line num="287" count="0" type="stmt"/>
3985
- <line num="289" count="5" type="stmt"/>
3986
- <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"/>
3987
4005
  <line num="298" count="0" type="stmt"/>
3988
- <line num="300" count="5" type="cond" truecount="1" falsecount="1"/>
3989
- <line num="301" count="0" type="stmt"/>
3990
- <line num="302" count="0" type="cond" truecount="0" falsecount="2"/>
3991
- <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"/>
3992
4010
  <line num="304" count="0" type="stmt"/>
3993
4011
  <line num="305" count="0" type="stmt"/>
3994
- <line num="310" count="5" type="cond" truecount="3" falsecount="1"/>
3995
- <line num="311" count="0" type="stmt"/>
3996
- <line num="316" count="0" type="stmt"/>
3997
- <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"/>
3998
4016
  <line num="324" count="0" type="stmt"/>
3999
- <line num="328" count="6" type="stmt"/>
4000
- <line num="332" count="3" type="stmt"/>
4001
- <line num="333" count="6" type="stmt"/>
4002
- <line num="334" count="6" type="stmt"/>
4003
- <line num="335" count="6" type="stmt"/>
4004
- <line num="339" count="6" type="stmt"/>
4005
- <line num="340" count="6" type="stmt"/>
4006
- <line num="341" count="6" type="stmt"/>
4007
- <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"/>
4008
4028
  </file>
4009
4029
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4010
- <metrics statements="100" coveredstatements="92" conditionals="43" coveredconditionals="34" methods="11" coveredmethods="10"/>
4030
+ <metrics statements="108" coveredstatements="98" conditionals="47" coveredconditionals="37" methods="12" coveredmethods="10"/>
4011
4031
  <line num="1" count="2" type="stmt"/>
4012
4032
  <line num="2" count="2" type="stmt"/>
4013
4033
  <line num="3" count="2" type="stmt"/>
@@ -4016,98 +4036,106 @@
4016
4036
  <line num="6" count="2" type="stmt"/>
4017
4037
  <line num="7" count="2" type="stmt"/>
4018
4038
  <line num="11" count="2" type="stmt"/>
4019
- <line num="15" count="15" type="stmt"/>
4020
- <line num="16" count="15" type="stmt"/>
4021
- <line num="17" count="15" type="stmt"/>
4022
- <line num="18" count="15" type="stmt"/>
4023
- <line num="19" count="15" type="stmt"/>
4024
- <line num="20" count="15" type="stmt"/>
4025
- <line num="21" count="15" type="stmt"/>
4026
- <line num="22" count="15" type="stmt"/>
4027
- <line num="23" count="15" type="stmt"/>
4028
- <line num="27" count="15" type="stmt"/>
4029
- <line num="28" count="15" type="stmt"/>
4030
- <line num="32" count="16" type="stmt"/>
4031
- <line num="33" count="16" type="stmt"/>
4032
- <line num="34" count="16" type="cond" truecount="2" falsecount="0"/>
4033
- <line num="35" count="2" type="stmt"/>
4034
- <line num="37" count="14" type="stmt"/>
4035
- <line num="40" count="14" type="stmt"/>
4036
- <line num="43" count="14" type="cond" truecount="2" falsecount="0"/>
4037
- <line num="44" count="2" type="stmt"/>
4038
- <line num="46" count="12" type="stmt"/>
4039
- <line num="50" count="14" type="cond" truecount="1" falsecount="1"/>
4040
- <line num="51" count="0" type="stmt"/>
4041
- <line num="54" count="14" type="stmt"/>
4042
- <line num="55" count="14" type="stmt"/>
4043
- <line num="56" count="14" type="stmt"/>
4044
- <line num="57" count="14" type="stmt"/>
4045
- <line num="58" count="14" type="stmt"/>
4046
- <line num="59" count="14" type="cond" truecount="2" falsecount="0"/>
4047
- <line num="60" count="12" type="stmt"/>
4048
- <line num="61" count="12" type="stmt"/>
4049
- <line num="62" count="12" type="stmt"/>
4050
- <line num="63" count="12" type="stmt"/>
4051
- <line num="67" count="14" type="cond" truecount="1" falsecount="1"/>
4052
- <line num="68" count="0" type="stmt"/>
4053
- <line num="72" count="0" type="stmt"/>
4054
- <line num="76" count="14" type="cond" truecount="2" falsecount="0"/>
4055
- <line num="82" count="1" type="stmt"/>
4056
- <line num="84" count="1" type="stmt"/>
4057
- <line num="85" count="1" type="stmt"/>
4058
- <line num="89" count="13" type="cond" truecount="1" falsecount="1"/>
4059
- <line num="90" count="0" type="stmt"/>
4060
- <line num="94" count="13" type="cond" truecount="2" falsecount="0"/>
4061
- <line num="95" count="11" type="stmt"/>
4062
- <line num="99" count="13" type="cond" truecount="1" falsecount="1"/>
4063
- <line num="100" count="0" type="stmt"/>
4064
- <line num="104" count="13" type="stmt"/>
4065
- <line num="106" count="13" type="cond" truecount="1" falsecount="1"/>
4066
- <line num="107" count="0" type="stmt"/>
4067
- <line num="110" count="13" type="stmt"/>
4068
- <line num="114" count="5" type="stmt"/>
4069
- <line num="115" count="5" type="stmt"/>
4070
- <line num="116" count="5" type="stmt"/>
4071
- <line num="117" count="5" type="stmt"/>
4072
- <line num="130" count="6" type="stmt"/>
4073
- <line num="131" count="6" type="stmt"/>
4074
- <line num="132" count="6" type="stmt"/>
4075
- <line num="133" count="6" type="stmt"/>
4076
- <line num="134" count="6" type="cond" truecount="2" falsecount="0"/>
4077
- <line num="135" count="5" type="cond" truecount="1" falsecount="1"/>
4039
+ <line num="15" count="22" type="stmt"/>
4040
+ <line num="16" count="22" type="stmt"/>
4041
+ <line num="17" count="22" type="stmt"/>
4042
+ <line num="18" count="22" type="stmt"/>
4043
+ <line num="19" count="22" type="stmt"/>
4044
+ <line num="20" count="22" type="stmt"/>
4045
+ <line num="21" count="22" type="stmt"/>
4046
+ <line num="22" count="22" type="stmt"/>
4047
+ <line num="23" count="22" type="stmt"/>
4048
+ <line num="25" count="22" type="stmt"/>
4049
+ <line num="29" count="22" type="stmt"/>
4050
+ <line num="30" count="22" type="stmt"/>
4051
+ <line num="34" count="23" type="stmt"/>
4052
+ <line num="35" count="23" type="stmt"/>
4053
+ <line num="36" count="23" type="cond" truecount="2" falsecount="0"/>
4054
+ <line num="37" count="2" type="stmt"/>
4055
+ <line num="40" count="21" type="cond" truecount="1" falsecount="1"/>
4056
+ <line num="41" count="0" type="stmt"/>
4057
+ <line num="43" count="0" type="stmt"/>
4058
+ <line num="48" count="21" type="stmt"/>
4059
+ <line num="51" count="21" type="stmt"/>
4060
+ <line num="55" count="21" type="stmt"/>
4061
+ <line num="56" count="21" type="stmt"/>
4062
+ <line num="59" count="21" type="cond" truecount="2" falsecount="0"/>
4063
+ <line num="60" count="1" type="stmt"/>
4064
+ <line num="68" count="21" type="cond" truecount="2" falsecount="0"/>
4065
+ <line num="69" count="2" type="stmt"/>
4066
+ <line num="71" count="19" type="stmt"/>
4067
+ <line num="75" count="21" type="cond" truecount="1" falsecount="1"/>
4068
+ <line num="76" count="0" type="stmt"/>
4069
+ <line num="79" count="21" type="stmt"/>
4070
+ <line num="80" count="21" type="stmt"/>
4071
+ <line num="81" count="21" type="stmt"/>
4072
+ <line num="82" count="21" type="stmt"/>
4073
+ <line num="83" count="21" type="stmt"/>
4074
+ <line num="84" count="21" type="cond" truecount="2" falsecount="0"/>
4075
+ <line num="85" count="19" type="stmt"/>
4076
+ <line num="86" count="19" type="stmt"/>
4077
+ <line num="87" count="19" type="stmt"/>
4078
+ <line num="88" count="19" type="stmt"/>
4079
+ <line num="92" count="21" type="cond" truecount="1" falsecount="1"/>
4080
+ <line num="93" count="0" type="stmt"/>
4081
+ <line num="97" count="0" type="stmt"/>
4082
+ <line num="101" count="21" type="cond" truecount="2" falsecount="0"/>
4083
+ <line num="107" count="1" type="stmt"/>
4084
+ <line num="109" count="1" type="stmt"/>
4085
+ <line num="110" count="1" type="stmt"/>
4086
+ <line num="114" count="20" type="cond" truecount="1" falsecount="1"/>
4087
+ <line num="115" count="0" type="stmt"/>
4088
+ <line num="119" count="20" type="cond" truecount="2" falsecount="0"/>
4089
+ <line num="120" count="18" type="stmt"/>
4090
+ <line num="124" count="20" type="cond" truecount="1" falsecount="1"/>
4091
+ <line num="125" count="0" type="stmt"/>
4092
+ <line num="129" count="20" type="stmt"/>
4093
+ <line num="131" count="20" type="cond" truecount="1" falsecount="1"/>
4094
+ <line num="132" count="0" type="stmt"/>
4095
+ <line num="135" count="20" type="stmt"/>
4078
4096
  <line num="139" count="5" type="stmt"/>
4079
4097
  <line num="140" count="5" type="stmt"/>
4080
- <line num="142" count="1" type="stmt"/>
4081
- <line num="144" count="6" type="stmt"/>
4082
- <line num="148" count="14" type="stmt"/>
4083
- <line num="149" count="14" type="cond" truecount="3" falsecount="1"/>
4084
- <line num="150" count="0" type="stmt"/>
4085
- <line num="152" count="14" type="cond" truecount="2" falsecount="0"/>
4086
- <line num="153" count="14" type="cond" truecount="2" falsecount="0"/>
4087
- <line num="154" count="14" type="stmt"/>
4088
- <line num="155" count="2" type="cond" truecount="1" falsecount="1"/>
4089
- <line num="156" count="2" type="stmt"/>
4090
- <line num="159" count="14" type="cond" truecount="2" falsecount="0"/>
4091
- <line num="161" count="9" type="stmt"/>
4092
- <line num="162" count="9" type="stmt"/>
4093
- <line num="164" count="6" type="cond" truecount="1" falsecount="1"/>
4094
- <line num="165" count="0" type="stmt"/>
4095
- <line num="168" count="6" type="stmt"/>
4098
+ <line num="141" count="5" type="stmt"/>
4099
+ <line num="142" count="5" type="stmt"/>
4100
+ <line num="155" count="6" type="stmt"/>
4101
+ <line num="156" count="6" type="stmt"/>
4102
+ <line num="157" count="6" type="stmt"/>
4103
+ <line num="158" count="6" type="stmt"/>
4104
+ <line num="159" count="6" type="cond" truecount="2" falsecount="0"/>
4105
+ <line num="160" count="5" type="cond" truecount="1" falsecount="1"/>
4106
+ <line num="164" count="5" type="stmt"/>
4107
+ <line num="165" count="5" type="stmt"/>
4108
+ <line num="167" count="1" type="stmt"/>
4096
4109
  <line num="169" count="6" type="stmt"/>
4097
- <line num="171" count="9" type="stmt"/>
4098
- <line num="172" count="9" type="stmt"/>
4099
- <line num="173" count="9" type="stmt"/>
4100
- <line num="174" count="6" type="stmt"/>
4101
- <line num="175" count="6" type="stmt"/>
4102
- <line num="186" count="6" type="stmt"/>
4103
- <line num="189" count="14" type="stmt"/>
4104
- <line num="193" count="2" type="stmt"/>
4105
- <line num="194" count="10" type="stmt"/>
4106
- <line num="195" count="10" type="stmt"/>
4107
- <line num="196" count="10" type="stmt"/>
4108
- <line num="197" count="10" type="stmt"/>
4109
- <line num="198" count="8" type="stmt"/>
4110
- <line num="200" count="2" type="stmt"/>
4110
+ <line num="173" count="21" type="stmt"/>
4111
+ <line num="174" count="21" type="cond" truecount="3" falsecount="1"/>
4112
+ <line num="175" count="0" type="stmt"/>
4113
+ <line num="177" count="21" type="cond" truecount="2" falsecount="0"/>
4114
+ <line num="178" count="21" type="cond" truecount="2" falsecount="0"/>
4115
+ <line num="179" count="21" type="stmt"/>
4116
+ <line num="180" count="2" type="cond" truecount="1" falsecount="1"/>
4117
+ <line num="181" count="2" type="stmt"/>
4118
+ <line num="184" count="21" type="cond" truecount="2" falsecount="0"/>
4119
+ <line num="186" count="16" type="stmt"/>
4120
+ <line num="187" count="16" type="stmt"/>
4121
+ <line num="189" count="6" type="cond" truecount="1" falsecount="1"/>
4122
+ <line num="190" count="0" type="stmt"/>
4123
+ <line num="193" count="6" type="stmt"/>
4124
+ <line num="194" count="6" type="stmt"/>
4125
+ <line num="196" count="16" type="stmt"/>
4126
+ <line num="197" count="16" type="stmt"/>
4127
+ <line num="198" count="16" type="stmt"/>
4128
+ <line num="199" count="6" type="stmt"/>
4129
+ <line num="200" count="6" type="stmt"/>
4130
+ <line num="211" count="6" type="stmt"/>
4131
+ <line num="214" count="21" type="stmt"/>
4132
+ <line num="218" count="2" type="stmt"/>
4133
+ <line num="219" count="17" type="stmt"/>
4134
+ <line num="220" count="17" type="stmt"/>
4135
+ <line num="221" count="17" type="stmt"/>
4136
+ <line num="222" count="17" type="stmt"/>
4137
+ <line num="223" count="15" type="stmt"/>
4138
+ <line num="225" count="2" type="stmt"/>
4111
4139
  </file>
4112
4140
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4113
4141
  <metrics statements="36" coveredstatements="30" conditionals="15" coveredconditionals="10" methods="9" coveredmethods="8"/>
@@ -4140,13 +4168,13 @@
4140
4168
  <line num="51" count="5" type="stmt"/>
4141
4169
  <line num="52" count="5" type="stmt"/>
4142
4170
  <line num="59" count="44" type="stmt"/>
4143
- <line num="60" count="14" type="cond" truecount="1" falsecount="1"/>
4171
+ <line num="60" count="21" type="cond" truecount="1" falsecount="1"/>
4144
4172
  <line num="61" count="0" type="stmt"/>
4145
4173
  <line num="62" count="0" type="stmt"/>
4146
4174
  <line num="64" count="0" type="stmt"/>
4147
- <line num="67" count="14" type="stmt"/>
4175
+ <line num="67" count="21" type="stmt"/>
4148
4176
  <line num="70" count="44" type="stmt"/>
4149
- <line num="71" count="14" type="stmt"/>
4177
+ <line num="71" count="21" type="stmt"/>
4150
4178
  </file>
4151
4179
  </package>
4152
4180
  <package name="utilities">
@@ -4250,27 +4278,27 @@
4250
4278
  <line num="13" count="49" type="stmt"/>
4251
4279
  <line num="14" count="49" type="stmt"/>
4252
4280
  <line num="16" count="49" type="cond" truecount="1" falsecount="0"/>
4253
- <line num="17" count="232" type="cond" truecount="2" falsecount="0"/>
4254
- <line num="18" count="232" type="cond" truecount="4" falsecount="0"/>
4281
+ <line num="17" count="239" type="cond" truecount="2" falsecount="0"/>
4282
+ <line num="18" count="239" type="cond" truecount="4" falsecount="0"/>
4255
4283
  <line num="19" count="3" type="stmt"/>
4256
- <line num="22" count="229" type="cond" truecount="2" falsecount="2"/>
4284
+ <line num="22" count="236" type="cond" truecount="2" falsecount="2"/>
4257
4285
  <line num="23" count="0" type="stmt"/>
4258
4286
  <line num="24" count="0" type="stmt"/>
4259
4287
  <line num="25" count="0" type="stmt"/>
4260
4288
  <line num="26" count="0" type="stmt"/>
4261
- <line num="29" count="229" type="stmt"/>
4262
- <line num="31" count="229" type="cond" truecount="5" falsecount="0"/>
4263
- <line num="32" count="197" type="stmt"/>
4289
+ <line num="29" count="236" type="stmt"/>
4290
+ <line num="31" count="236" type="cond" truecount="5" falsecount="0"/>
4291
+ <line num="32" count="204" type="stmt"/>
4264
4292
  <line num="33" count="32" type="cond" truecount="2" falsecount="0"/>
4265
4293
  <line num="34" count="27" type="stmt"/>
4266
- <line num="36" count="229" type="stmt"/>
4267
- <line num="37" count="229" type="stmt"/>
4268
- <line num="41" count="225" type="cond" truecount="1" falsecount="1"/>
4269
- <line num="42" count="225" type="stmt"/>
4270
- <line num="44" count="225" type="stmt"/>
4294
+ <line num="36" count="236" type="stmt"/>
4295
+ <line num="37" count="236" type="stmt"/>
4296
+ <line num="41" count="232" type="cond" truecount="1" falsecount="1"/>
4297
+ <line num="42" count="232" type="stmt"/>
4298
+ <line num="44" count="232" type="stmt"/>
4271
4299
  <line num="47" count="49" type="stmt"/>
4272
- <line num="50" count="223" type="stmt"/>
4273
- <line num="51" count="223" type="stmt"/>
4300
+ <line num="50" count="230" type="stmt"/>
4301
+ <line num="51" count="230" type="stmt"/>
4274
4302
  <line num="54" count="49" type="stmt"/>
4275
4303
  <line num="55" count="2" type="stmt"/>
4276
4304
  <line num="56" count="2" type="stmt"/>
@@ -4325,14 +4353,14 @@
4325
4353
  <line num="41" count="2" type="stmt"/>
4326
4354
  <line num="43" count="0" type="stmt"/>
4327
4355
  <line num="57" count="47" type="stmt"/>
4328
- <line num="58" count="245" type="cond" truecount="1" falsecount="1"/>
4356
+ <line num="58" count="252" type="cond" truecount="1" falsecount="1"/>
4329
4357
  <line num="60" count="0" type="cond" truecount="0" falsecount="4"/>
4330
4358
  <line num="61" count="0" type="stmt"/>
4331
4359
  <line num="64" count="0" type="stmt"/>
4332
4360
  <line num="69" count="0" type="cond" truecount="0" falsecount="2"/>
4333
4361
  <line num="70" count="0" type="stmt"/>
4334
4362
  <line num="72" count="0" type="stmt"/>
4335
- <line num="74" count="245" type="stmt"/>
4363
+ <line num="74" count="252" type="stmt"/>
4336
4364
  <line num="78" count="47" type="stmt"/>
4337
4365
  <line num="79" count="2" type="stmt"/>
4338
4366
  <line num="84" count="47" type="stmt"/>
@@ -4369,13 +4397,13 @@
4369
4397
  <line num="146" count="1" type="stmt"/>
4370
4398
  <line num="147" count="1" type="stmt"/>
4371
4399
  <line num="152" count="47" type="stmt"/>
4372
- <line num="153" count="29" type="stmt"/>
4373
- <line num="154" count="29" type="stmt"/>
4374
- <line num="155" count="29" type="stmt"/>
4375
- <line num="156" count="29" type="cond" truecount="2" falsecount="0"/>
4376
- <line num="157" count="29" type="cond" truecount="1" falsecount="1"/>
4400
+ <line num="153" count="36" type="stmt"/>
4401
+ <line num="154" count="36" type="stmt"/>
4402
+ <line num="155" count="36" type="stmt"/>
4403
+ <line num="156" count="36" type="cond" truecount="2" falsecount="0"/>
4404
+ <line num="157" count="36" type="cond" truecount="1" falsecount="1"/>
4377
4405
  <line num="158" count="0" type="stmt"/>
4378
- <line num="160" count="29" type="cond" truecount="3" falsecount="1"/>
4406
+ <line num="160" count="36" type="cond" truecount="3" falsecount="1"/>
4379
4407
  <line num="163" count="47" type="stmt"/>
4380
4408
  <line num="164" count="1" type="stmt"/>
4381
4409
  <line num="165" count="1" type="cond" truecount="2" falsecount="2"/>
@@ -4406,7 +4434,7 @@
4406
4434
  <line num="13" count="43" type="stmt"/>
4407
4435
  <line num="18" count="43" type="stmt"/>
4408
4436
  <line num="19" count="4" type="stmt"/>
4409
- <line num="20" count="84" type="stmt"/>
4437
+ <line num="20" count="108" type="stmt"/>
4410
4438
  <line num="22" count="4" type="cond" truecount="2" falsecount="5"/>
4411
4439
  <line num="25" count="4" type="stmt"/>
4412
4440
  <line num="27" count="0" type="stmt"/>
@@ -4543,7 +4571,7 @@
4543
4571
  <line num="75" count="8" type="stmt"/>
4544
4572
  <line num="82" count="0" type="stmt"/>
4545
4573
  <line num="91" count="0" type="stmt"/>
4546
- <line num="98" count="241" type="stmt"/>
4574
+ <line num="98" count="248" type="stmt"/>
4547
4575
  <line num="110" count="0" type="stmt"/>
4548
4576
  <line num="114" count="43" type="stmt"/>
4549
4577
  </file>