@budibase/server 1.0.27-alpha.0 → 1.0.27-alpha.4

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 (199) hide show
  1. package/__mocks__/node-fetch.ts +18 -0
  2. package/builder/assets/{index.4a13c4cb.css → index.431d69df.css} +1 -1
  3. package/builder/assets/index.d849c3ee.js +1348 -0
  4. package/builder/index.html +2 -2
  5. package/coverage/clover.xml +576 -476
  6. package/coverage/coverage-final.json +26 -26
  7. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/application.js.html +54 -54
  10. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/component.js.html +4 -4
  15. package/coverage/lcov-report/api/controllers/datasource.js.html +49 -49
  16. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/index.html +20 -20
  19. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/query/index.html +19 -19
  24. package/coverage/lcov-report/api/controllers/query/index.js.html +66 -150
  25. package/coverage/lcov-report/api/controllers/query/validation.js.html +6 -3
  26. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/index.html +16 -16
  30. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +7 -4
  33. package/coverage/lcov-report/api/controllers/row/utils.js.html +29 -20
  34. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  48. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  49. package/coverage/lcov-report/api/index.html +1 -1
  50. package/coverage/lcov-report/api/index.js.html +5 -5
  51. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/index.html +1 -1
  64. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/query.js.html +24 -3
  70. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  80. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  81. package/coverage/lcov-report/automations/actions.js.html +1 -1
  82. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  83. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  84. package/coverage/lcov-report/automations/index.html +1 -1
  85. package/coverage/lcov-report/automations/index.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/executeQuery.js.html +31 -7
  92. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/index.html +11 -11
  95. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  103. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  111. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  112. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  113. package/coverage/lcov-report/automations/utils.js.html +5 -5
  114. package/coverage/lcov-report/constants/index.html +1 -1
  115. package/coverage/lcov-report/constants/index.js.html +1 -1
  116. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  117. package/coverage/lcov-report/constants/screens.js.html +1 -1
  118. package/coverage/lcov-report/db/client.js.html +1 -1
  119. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  120. package/coverage/lcov-report/db/index.html +1 -1
  121. package/coverage/lcov-report/db/index.js.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  124. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  125. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  126. package/coverage/lcov-report/db/newid.js.html +2 -2
  127. package/coverage/lcov-report/db/utils.js.html +18 -18
  128. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  129. package/coverage/lcov-report/events/index.html +1 -1
  130. package/coverage/lcov-report/events/index.js.html +1 -1
  131. package/coverage/lcov-report/events/utils.js.html +1 -1
  132. package/coverage/lcov-report/index.html +63 -63
  133. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  134. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  135. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  136. package/coverage/lcov-report/middleware/authorized.js.html +10 -10
  137. package/coverage/lcov-report/middleware/builder.js.html +8 -8
  138. package/coverage/lcov-report/middleware/currentapp.js.html +28 -28
  139. package/coverage/lcov-report/middleware/index.html +1 -1
  140. package/coverage/lcov-report/middleware/joi-validator.js.html +9 -9
  141. package/coverage/lcov-report/middleware/resourceId.js.html +17 -17
  142. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  143. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  144. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  145. package/coverage/lcov-report/threads/automation.js.html +1 -1
  146. package/coverage/lcov-report/threads/index.html +30 -30
  147. package/coverage/lcov-report/threads/index.js.html +11 -11
  148. package/coverage/lcov-report/threads/query.js.html +358 -91
  149. package/coverage/lcov-report/threads/utils.js.html +352 -10
  150. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  151. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  152. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  153. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  154. package/coverage/lcov-report/utilities/global.js.html +13 -13
  155. package/coverage/lcov-report/utilities/index.html +1 -1
  156. package/coverage/lcov-report/utilities/index.js.html +9 -9
  157. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  158. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  159. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  160. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  161. package/coverage/lcov-report/utilities/rowProcessor/index.html +19 -19
  162. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +46 -10
  163. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  164. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  165. package/coverage/lcov-report/utilities/security.js.html +1 -1
  166. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  167. package/coverage/lcov-report/utilities/users.js.html +1 -1
  168. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  169. package/coverage/lcov.info +1001 -826
  170. package/dist/api/controllers/query/import/sources/curl.js +5 -1
  171. package/dist/api/controllers/query/index.js +29 -47
  172. package/dist/api/controllers/query/validation.js +2 -1
  173. package/dist/api/controllers/row/internalSearch.js +2 -1
  174. package/dist/api/controllers/row/utils.js +13 -6
  175. package/dist/api/routes/query.js +3 -1
  176. package/dist/automations/steps/executeQuery.js +8 -1
  177. package/dist/integrations/rest.js +2 -2
  178. package/dist/package.json +5 -4
  179. package/dist/tests/utilities/TestConfiguration.js +7 -0
  180. package/dist/threads/query.js +145 -52
  181. package/dist/threads/utils.js +104 -0
  182. package/dist/tsconfig.tsbuildinfo +1 -1
  183. package/dist/utilities/rowProcessor/index.js +13 -0
  184. package/package.json +6 -5
  185. package/src/api/controllers/query/import/sources/curl.ts +5 -1
  186. package/src/api/controllers/query/index.js +27 -55
  187. package/src/api/controllers/query/validation.js +2 -1
  188. package/src/api/controllers/row/internalSearch.js +2 -1
  189. package/src/api/controllers/row/utils.js +11 -8
  190. package/src/api/routes/query.js +8 -1
  191. package/src/api/routes/tests/query.spec.js +88 -0
  192. package/src/automations/steps/executeQuery.js +9 -1
  193. package/src/definitions/datasource.ts +10 -0
  194. package/src/integrations/rest.ts +5 -2
  195. package/src/tests/utilities/TestConfiguration.js +10 -0
  196. package/src/threads/query.js +145 -56
  197. package/src/threads/utils.js +114 -0
  198. package/src/utilities/rowProcessor/index.js +12 -0
  199. package/builder/assets/index.e2f56628.js +0 -1320
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1639992097324" clover="3.2.0">
3
- <project timestamp="1639992097324" name="All files">
4
- <metrics statements="4464" coveredstatements="3277" conditionals="1774" coveredconditionals="962" methods="632" coveredmethods="446" elements="6870" coveredelements="4685" complexity="0" loc="4464" ncloc="4464" packages="21" files="140" classes="140"/>
2
+ <coverage generated="1641396528329" clover="3.2.0">
3
+ <project timestamp="1641396528329" name="All files">
4
+ <metrics statements="4564" coveredstatements="3382" conditionals="1819" coveredconditionals="1003" methods="647" coveredmethods="459" elements="7030" coveredelements="4844" complexity="0" loc="4564" ncloc="4564" packages="21" files="140" classes="140"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -16,13 +16,13 @@
16
16
  <line num="13" count="23" type="stmt"/>
17
17
  <line num="15" count="23" type="stmt"/>
18
18
  <line num="17" count="23" type="stmt"/>
19
- <line num="31" count="158" type="stmt"/>
20
- <line num="35" count="158" type="stmt"/>
19
+ <line num="31" count="162" type="stmt"/>
20
+ <line num="35" count="162" type="stmt"/>
21
21
  <line num="37" count="1" type="stmt"/>
22
22
  <line num="38" count="1" type="stmt"/>
23
23
  <line num="60" count="23" type="stmt"/>
24
- <line num="61" count="154" type="stmt"/>
25
- <line num="62" count="154" type="stmt"/>
24
+ <line num="61" count="158" type="stmt"/>
25
+ <line num="62" count="158" type="stmt"/>
26
26
  <line num="64" count="37" type="cond" truecount="1" falsecount="2"/>
27
27
  <line num="65" count="37" type="stmt"/>
28
28
  <line num="70" count="37" type="cond" truecount="1" falsecount="1"/>
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1064" coveredstatements="743" conditionals="348" coveredconditionals="157" methods="146" coveredmethods="100"/>
41
+ <metrics statements="1064" coveredstatements="755" conditionals="348" coveredconditionals="161" methods="146" coveredmethods="101"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -105,40 +105,40 @@
105
105
  <line num="46" count="33" type="stmt"/>
106
106
  <line num="47" count="33" type="stmt"/>
107
107
  <line num="49" count="33" type="stmt"/>
108
- <line num="53" count="189" type="stmt"/>
109
- <line num="59" count="378" type="stmt"/>
110
- <line num="63" count="189" type="stmt"/>
108
+ <line num="53" count="192" type="stmt"/>
109
+ <line num="59" count="384" type="stmt"/>
110
+ <line num="63" count="192" type="stmt"/>
111
111
  <line num="69" count="12" type="stmt"/>
112
- <line num="73" count="187" type="cond" truecount="4" falsecount="0"/>
113
- <line num="80" count="184" type="cond" truecount="1" falsecount="1"/>
112
+ <line num="73" count="190" type="cond" truecount="4" falsecount="0"/>
113
+ <line num="80" count="187" type="cond" truecount="1" falsecount="1"/>
114
114
  <line num="81" count="0" type="stmt"/>
115
- <line num="82" count="184" type="cond" truecount="2" falsecount="0"/>
116
- <line num="83" count="181" type="stmt"/>
117
- <line num="85" count="184" type="cond" truecount="2" falsecount="0"/>
118
- <line num="86" count="181" type="stmt"/>
119
- <line num="88" count="184" type="cond" truecount="2" falsecount="0"/>
120
- <line num="89" count="11" type="stmt"/>
115
+ <line num="82" count="187" type="cond" truecount="2" falsecount="0"/>
116
+ <line num="83" count="184" type="stmt"/>
117
+ <line num="85" count="187" type="cond" truecount="2" falsecount="0"/>
118
+ <line num="86" count="184" type="stmt"/>
119
+ <line num="88" count="187" type="cond" truecount="2" falsecount="0"/>
120
+ <line num="89" count="14" type="stmt"/>
121
121
  <line num="91" count="173" type="stmt"/>
122
122
  <line num="92" count="173" type="cond" truecount="1" falsecount="1"/>
123
123
  <line num="98" count="0" type="stmt"/>
124
124
  <line num="100" count="173" type="stmt"/>
125
- <line num="104" count="179" type="cond" truecount="1" falsecount="1"/>
126
- <line num="105" count="179" type="stmt"/>
127
- <line num="106" count="179" type="stmt"/>
128
- <line num="108" count="179" type="stmt"/>
129
- <line num="109" count="179" type="stmt"/>
130
- <line num="118" count="179" type="stmt"/>
131
- <line num="119" count="179" type="stmt"/>
132
- <line num="120" count="179" type="stmt"/>
133
- <line num="124" count="179" type="cond" truecount="3" falsecount="1"/>
125
+ <line num="104" count="182" type="cond" truecount="1" falsecount="1"/>
126
+ <line num="105" count="182" type="stmt"/>
127
+ <line num="106" count="182" type="stmt"/>
128
+ <line num="108" count="182" type="stmt"/>
129
+ <line num="109" count="182" type="stmt"/>
130
+ <line num="118" count="182" type="stmt"/>
131
+ <line num="119" count="182" type="stmt"/>
132
+ <line num="120" count="182" type="stmt"/>
133
+ <line num="124" count="182" type="cond" truecount="3" falsecount="1"/>
134
134
  <line num="125" count="0" type="stmt"/>
135
135
  <line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
136
136
  <line num="127" count="0" type="stmt"/>
137
- <line num="129" count="179" type="cond" truecount="3" falsecount="1"/>
137
+ <line num="129" count="182" type="cond" truecount="3" falsecount="1"/>
138
138
  <line num="132" count="0" type="cond" truecount="0" falsecount="2"/>
139
139
  <line num="133" count="0" type="stmt"/>
140
- <line num="137" count="179" type="stmt"/>
141
- <line num="140" count="179" type="stmt"/>
140
+ <line num="137" count="182" type="stmt"/>
141
+ <line num="140" count="182" type="stmt"/>
142
142
  <line num="143" count="33" type="stmt"/>
143
143
  <line num="144" count="10" type="cond" truecount="2" falsecount="0"/>
144
144
  <line num="145" count="10" type="cond" truecount="2" falsecount="0"/>
@@ -161,35 +161,35 @@
161
161
  <line num="173" count="1" type="stmt"/>
162
162
  <line num="177" count="1" type="stmt"/>
163
163
  <line num="184" count="33" type="stmt"/>
164
- <line num="185" count="188" type="stmt"/>
165
- <line num="186" count="188" type="stmt"/>
166
- <line num="187" count="188" type="stmt"/>
167
- <line num="188" count="188" type="stmt"/>
168
- <line num="191" count="188" type="cond" truecount="4" falsecount="0"/>
169
- <line num="192" count="186" type="stmt"/>
170
- <line num="193" count="186" type="stmt"/>
171
- <line num="194" count="186" type="stmt"/>
172
- <line num="197" count="188" type="stmt"/>
164
+ <line num="185" count="191" type="stmt"/>
165
+ <line num="186" count="191" type="stmt"/>
166
+ <line num="187" count="191" type="stmt"/>
167
+ <line num="188" count="191" type="stmt"/>
168
+ <line num="191" count="191" type="cond" truecount="4" falsecount="0"/>
169
+ <line num="192" count="189" type="stmt"/>
170
+ <line num="193" count="189" type="stmt"/>
171
+ <line num="194" count="189" type="stmt"/>
172
+ <line num="197" count="191" type="stmt"/>
173
173
  <line num="205" count="33" type="stmt"/>
174
- <line num="206" count="179" type="stmt"/>
175
- <line num="207" count="179" type="stmt"/>
176
- <line num="212" count="179" type="cond" truecount="2" falsecount="2"/>
174
+ <line num="206" count="182" type="stmt"/>
175
+ <line num="207" count="182" type="stmt"/>
176
+ <line num="212" count="182" type="cond" truecount="2" falsecount="2"/>
177
177
  <line num="213" count="0" type="stmt"/>
178
- <line num="215" count="179" type="stmt"/>
179
- <line num="216" count="179" type="stmt"/>
180
- <line num="218" count="179" type="stmt"/>
181
- <line num="219" count="179" type="stmt"/>
182
- <line num="221" count="179" type="stmt"/>
183
- <line num="223" count="179" type="stmt"/>
178
+ <line num="215" count="182" type="stmt"/>
179
+ <line num="216" count="182" type="stmt"/>
180
+ <line num="218" count="182" type="stmt"/>
181
+ <line num="219" count="182" type="stmt"/>
182
+ <line num="221" count="182" type="stmt"/>
183
+ <line num="223" count="182" type="stmt"/>
184
184
  <line num="224" count="0" type="stmt"/>
185
- <line num="228" count="179" type="stmt"/>
186
- <line num="243" count="179" type="stmt"/>
187
- <line num="244" count="179" type="stmt"/>
188
- <line num="248" count="179" type="cond" truecount="1" falsecount="1"/>
189
- <line num="249" count="179" type="stmt"/>
190
- <line num="257" count="179" type="stmt"/>
191
- <line num="258" count="179" type="stmt"/>
192
- <line num="259" count="179" type="stmt"/>
185
+ <line num="228" count="182" type="stmt"/>
186
+ <line num="243" count="182" type="stmt"/>
187
+ <line num="244" count="182" type="stmt"/>
188
+ <line num="248" count="182" type="cond" truecount="1" falsecount="1"/>
189
+ <line num="249" count="182" type="stmt"/>
190
+ <line num="257" count="182" type="stmt"/>
191
+ <line num="258" count="182" type="stmt"/>
192
+ <line num="259" count="182" type="stmt"/>
193
193
  <line num="262" count="33" type="stmt"/>
194
194
  <line num="263" count="2" type="stmt"/>
195
195
  <line num="264" count="2" type="stmt"/>
@@ -258,12 +258,12 @@
258
258
  <line num="397" count="5" type="stmt"/>
259
259
  <line num="398" count="5" type="stmt"/>
260
260
  <line num="401" count="33" type="stmt"/>
261
- <line num="402" count="179" type="stmt"/>
262
- <line num="404" count="179" type="stmt"/>
263
- <line num="405" count="179" type="stmt"/>
264
- <line num="406" count="358" type="stmt"/>
265
- <line num="407" count="358" type="stmt"/>
266
- <line num="410" count="179" type="stmt"/>
261
+ <line num="402" count="182" type="stmt"/>
262
+ <line num="404" count="182" type="stmt"/>
263
+ <line num="405" count="182" type="stmt"/>
264
+ <line num="406" count="364" type="stmt"/>
265
+ <line num="407" count="364" type="stmt"/>
266
+ <line num="410" count="182" type="stmt"/>
267
267
  </file>
268
268
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
269
269
  <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
@@ -477,14 +477,14 @@
477
477
  <line num="20" count="1" type="stmt"/>
478
478
  <line num="21" count="1" type="stmt"/>
479
479
  <line num="22" count="1" type="stmt"/>
480
- <line num="23" count="47" type="cond" truecount="2" falsecount="0"/>
480
+ <line num="23" count="49" type="cond" truecount="2" falsecount="0"/>
481
481
  <line num="24" count="1" type="stmt"/>
482
- <line num="26" count="46" type="stmt"/>
483
- <line num="27" count="46" type="stmt"/>
482
+ <line num="26" count="48" type="stmt"/>
483
+ <line num="27" count="48" type="stmt"/>
484
484
  <line num="34" count="1" type="stmt"/>
485
485
  </file>
486
486
  <file name="datasource.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/datasource.js">
487
- <metrics statements="107" coveredstatements="47" conditionals="36" coveredconditionals="7" methods="16" coveredmethods="8"/>
487
+ <metrics statements="107" coveredstatements="59" conditionals="36" coveredconditionals="11" methods="16" coveredmethods="9"/>
488
488
  <line num="1" count="34" type="stmt"/>
489
489
  <line num="9" count="34" type="stmt"/>
490
490
  <line num="10" count="34" type="stmt"/>
@@ -511,39 +511,39 @@
511
511
  <line num="55" count="0" type="stmt"/>
512
512
  <line num="57" count="0" type="stmt"/>
513
513
  <line num="60" count="34" type="stmt"/>
514
- <line num="61" count="0" type="stmt"/>
515
- <line num="62" count="0" type="stmt"/>
516
- <line num="63" count="0" type="stmt"/>
517
- <line num="64" count="0" type="stmt"/>
518
- <line num="66" count="0" type="stmt"/>
519
- <line num="67" count="0" type="stmt"/>
520
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
521
- <line num="71" count="0" type="stmt"/>
522
- <line num="72" count="0" type="cond" truecount="0" falsecount="4"/>
514
+ <line num="61" count="2" type="stmt"/>
515
+ <line num="62" count="2" type="stmt"/>
516
+ <line num="63" count="2" type="stmt"/>
517
+ <line num="64" count="2" type="stmt"/>
518
+ <line num="66" count="2" type="stmt"/>
519
+ <line num="67" count="2" type="stmt"/>
520
+ <line num="70" count="2" type="cond" truecount="1" falsecount="1"/>
521
+ <line num="71" count="2" type="stmt"/>
522
+ <line num="72" count="2" type="cond" truecount="3" falsecount="1"/>
523
523
  <line num="73" count="0" type="stmt"/>
524
- <line num="77" count="0" type="stmt"/>
525
- <line num="78" count="0" type="stmt"/>
526
- <line num="79" count="0" type="stmt"/>
524
+ <line num="77" count="2" type="stmt"/>
525
+ <line num="78" count="2" type="stmt"/>
526
+ <line num="79" count="2" type="stmt"/>
527
527
  <line num="82" count="34" type="stmt"/>
528
- <line num="83" count="24" type="stmt"/>
529
- <line num="84" count="24" type="stmt"/>
530
- <line num="85" count="24" type="stmt"/>
531
- <line num="87" count="24" type="stmt"/>
532
- <line num="93" count="24" type="stmt"/>
533
- <line num="94" count="24" type="cond" truecount="1" falsecount="1"/>
528
+ <line num="83" count="30" type="stmt"/>
529
+ <line num="84" count="30" type="stmt"/>
530
+ <line num="85" count="30" type="stmt"/>
531
+ <line num="87" count="30" type="stmt"/>
532
+ <line num="93" count="30" type="stmt"/>
533
+ <line num="94" count="30" type="cond" truecount="1" falsecount="1"/>
534
534
  <line num="95" count="0" type="stmt"/>
535
535
  <line num="96" count="0" type="stmt"/>
536
536
  <line num="97" count="0" type="stmt"/>
537
- <line num="100" count="24" type="stmt"/>
538
- <line num="101" count="24" type="stmt"/>
539
- <line num="104" count="24" type="cond" truecount="1" falsecount="1"/>
540
- <line num="105" count="24" type="stmt"/>
541
- <line num="106" count="24" type="cond" truecount="3" falsecount="1"/>
537
+ <line num="100" count="30" type="stmt"/>
538
+ <line num="101" count="30" type="stmt"/>
539
+ <line num="104" count="30" type="cond" truecount="1" falsecount="1"/>
540
+ <line num="105" count="30" type="stmt"/>
541
+ <line num="106" count="30" type="cond" truecount="3" falsecount="1"/>
542
542
  <line num="107" count="0" type="stmt"/>
543
- <line num="111" count="24" type="stmt"/>
544
- <line num="112" count="24" type="cond" truecount="1" falsecount="1"/>
543
+ <line num="111" count="30" type="stmt"/>
544
+ <line num="112" count="30" type="cond" truecount="1" falsecount="1"/>
545
545
  <line num="113" count="0" type="stmt"/>
546
- <line num="115" count="24" type="stmt"/>
546
+ <line num="115" count="30" type="stmt"/>
547
547
  <line num="118" count="34" type="stmt"/>
548
548
  <line num="119" count="1" type="stmt"/>
549
549
  <line num="122" count="1" type="stmt"/>
@@ -1171,96 +1171,84 @@
1171
1171
  </file>
1172
1172
  </package>
1173
1173
  <package name="api.controllers.query">
1174
- <metrics statements="95" coveredstatements="70" conditionals="27" coveredconditionals="12" methods="13" coveredmethods="12"/>
1174
+ <metrics statements="83" coveredstatements="66" conditionals="17" coveredconditionals="11" methods="14" coveredmethods="12"/>
1175
1175
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
1176
- <metrics statements="87" coveredstatements="62" conditionals="27" coveredconditionals="12" methods="10" coveredmethods="9"/>
1176
+ <metrics statements="75" coveredstatements="58" conditionals="17" coveredconditionals="11" methods="11" coveredmethods="9"/>
1177
1177
  <line num="1" count="34" type="stmt"/>
1178
- <line num="2" count="34" type="stmt"/>
1178
+ <line num="6" count="34" type="stmt"/>
1179
1179
  <line num="7" count="34" type="stmt"/>
1180
1180
  <line num="8" count="34" type="stmt"/>
1181
1181
  <line num="9" count="34" type="stmt"/>
1182
1182
  <line num="10" count="34" type="stmt"/>
1183
- <line num="11" count="34" type="stmt"/>
1184
- <line num="13" count="34" type="stmt"/>
1185
- <line num="17" count="5" type="stmt"/>
1186
- <line num="18" count="5" type="cond" truecount="2" falsecount="0"/>
1187
- <line num="19" count="5" type="stmt"/>
1188
- <line num="20" count="4" type="cond" truecount="1" falsecount="1"/>
1189
- <line num="21" count="4" type="stmt"/>
1190
- <line num="24" count="5" type="cond" truecount="2" falsecount="0"/>
1191
- <line num="27" count="34" type="stmt"/>
1192
- <line num="28" count="2" type="stmt"/>
1193
- <line num="30" count="2" type="stmt"/>
1194
- <line num="36" count="2" type="stmt"/>
1195
- <line num="39" count="34" type="stmt"/>
1183
+ <line num="12" count="34" type="stmt"/>
1184
+ <line num="16" count="5" type="stmt"/>
1185
+ <line num="17" count="5" type="cond" truecount="2" falsecount="0"/>
1186
+ <line num="18" count="5" type="stmt"/>
1187
+ <line num="19" count="4" type="cond" truecount="1" falsecount="1"/>
1188
+ <line num="20" count="4" type="stmt"/>
1189
+ <line num="23" count="5" type="cond" truecount="2" falsecount="0"/>
1190
+ <line num="26" count="34" type="stmt"/>
1191
+ <line num="27" count="2" type="stmt"/>
1192
+ <line num="29" count="2" type="stmt"/>
1193
+ <line num="35" count="2" type="stmt"/>
1194
+ <line num="38" count="34" type="stmt"/>
1195
+ <line num="39" count="0" type="stmt"/>
1196
1196
  <line num="40" count="0" type="stmt"/>
1197
- <line num="41" count="0" type="stmt"/>
1197
+ <line num="42" count="0" type="stmt"/>
1198
1198
  <line num="43" count="0" type="stmt"/>
1199
- <line num="44" count="0" type="stmt"/>
1200
- <line num="47" count="0" type="cond" truecount="0" falsecount="2"/>
1199
+ <line num="46" count="0" type="cond" truecount="0" falsecount="2"/>
1200
+ <line num="48" count="0" type="stmt"/>
1201
1201
  <line num="49" count="0" type="stmt"/>
1202
- <line num="50" count="0" type="stmt"/>
1202
+ <line num="59" count="0" type="stmt"/>
1203
1203
  <line num="60" count="0" type="stmt"/>
1204
1204
  <line num="61" count="0" type="stmt"/>
1205
1205
  <line num="62" count="0" type="stmt"/>
1206
- <line num="63" count="0" type="stmt"/>
1207
- <line num="66" count="0" type="stmt"/>
1208
- <line num="69" count="0" type="stmt"/>
1209
- <line num="71" count="0" type="stmt"/>
1210
- <line num="75" count="0" type="stmt"/>
1211
- <line num="78" count="34" type="stmt"/>
1212
- <line num="79" count="20" type="stmt"/>
1213
- <line num="80" count="20" type="stmt"/>
1214
- <line num="82" count="20" type="cond" truecount="1" falsecount="1"/>
1215
- <line num="83" count="20" type="stmt"/>
1216
- <line num="86" count="20" type="stmt"/>
1217
- <line num="87" count="20" type="stmt"/>
1218
- <line num="89" count="20" type="stmt"/>
1219
- <line num="90" count="20" type="stmt"/>
1220
- <line num="94" count="4" type="stmt"/>
1221
- <line num="97" count="4" type="stmt"/>
1222
- <line num="98" count="0" type="cond" truecount="0" falsecount="2"/>
1223
- <line num="99" count="0" type="stmt"/>
1224
- <line num="101" count="0" type="cond" truecount="0" falsecount="2"/>
1225
- <line num="103" count="0" type="stmt"/>
1226
- <line num="104" count="0" type="cond" truecount="0" falsecount="2"/>
1227
- <line num="106" count="0" type="stmt"/>
1228
- <line num="110" count="0" type="stmt"/>
1229
- <line num="114" count="4" type="cond" truecount="1" falsecount="1"/>
1230
- <line num="119" count="0" type="stmt"/>
1231
- <line num="120" count="0" type="stmt"/>
1232
- <line num="128" count="0" type="stmt"/>
1233
- <line num="131" count="4" type="stmt"/>
1234
- <line num="134" count="34" type="stmt"/>
1235
- <line num="135" count="3" type="stmt"/>
1236
- <line num="136" count="3" type="stmt"/>
1237
- <line num="138" count="3" type="cond" truecount="2" falsecount="0"/>
1238
- <line num="139" count="1" type="stmt"/>
1239
- <line num="140" count="1" type="stmt"/>
1240
- <line num="142" count="3" type="stmt"/>
1241
- <line num="145" count="34" type="stmt"/>
1242
- <line num="146" count="2" type="stmt"/>
1243
- <line num="148" count="2" type="stmt"/>
1244
- <line num="150" count="2" type="stmt"/>
1245
- <line num="151" count="2" type="stmt"/>
1246
- <line num="153" count="2" type="stmt"/>
1247
- <line num="154" count="2" type="stmt"/>
1248
- <line num="161" count="1" type="stmt"/>
1249
- <line num="168" count="1" type="stmt"/>
1250
- <line num="172" count="34" type="stmt"/>
1251
- <line num="173" count="2" type="stmt"/>
1252
- <line num="175" count="2" type="stmt"/>
1253
- <line num="176" count="2" type="stmt"/>
1254
- <line num="178" count="2" type="stmt"/>
1255
- <line num="184" count="2" type="stmt"/>
1256
- <line num="185" count="2" type="stmt"/>
1257
- <line num="191" count="1" type="stmt"/>
1258
- <line num="193" count="1" type="stmt"/>
1259
- <line num="197" count="34" type="stmt"/>
1260
- <line num="198" count="1" type="stmt"/>
1261
- <line num="199" count="1" type="stmt"/>
1262
- <line num="200" count="1" type="stmt"/>
1263
- <line num="201" count="1" type="stmt"/>
1206
+ <line num="65" count="0" type="stmt"/>
1207
+ <line num="68" count="0" type="stmt"/>
1208
+ <line num="70" count="0" type="stmt"/>
1209
+ <line num="74" count="0" type="stmt"/>
1210
+ <line num="77" count="34" type="stmt"/>
1211
+ <line num="78" count="25" type="stmt"/>
1212
+ <line num="79" count="25" type="stmt"/>
1213
+ <line num="81" count="25" type="cond" truecount="1" falsecount="1"/>
1214
+ <line num="82" count="25" type="stmt"/>
1215
+ <line num="85" count="25" type="stmt"/>
1216
+ <line num="86" count="25" type="stmt"/>
1217
+ <line num="88" count="25" type="stmt"/>
1218
+ <line num="89" count="25" type="stmt"/>
1219
+ <line num="92" count="34" type="stmt"/>
1220
+ <line num="93" count="3" type="stmt"/>
1221
+ <line num="94" count="3" type="stmt"/>
1222
+ <line num="96" count="3" type="cond" truecount="2" falsecount="0"/>
1223
+ <line num="97" count="1" type="stmt"/>
1224
+ <line num="98" count="1" type="stmt"/>
1225
+ <line num="100" count="3" type="stmt"/>
1226
+ <line num="103" count="34" type="stmt"/>
1227
+ <line num="104" count="6" type="stmt"/>
1228
+ <line num="106" count="6" type="stmt"/>
1229
+ <line num="110" count="6" type="stmt"/>
1230
+ <line num="112" count="6" type="stmt"/>
1231
+ <line num="113" count="6" type="stmt"/>
1232
+ <line num="123" count="5" type="stmt"/>
1233
+ <line num="130" count="1" type="stmt"/>
1234
+ <line num="135" count="2" type="stmt"/>
1235
+ <line num="137" count="2" type="stmt"/>
1236
+ <line num="138" count="2" type="stmt"/>
1237
+ <line num="141" count="2" type="stmt"/>
1238
+ <line num="142" count="2" type="stmt"/>
1239
+ <line num="151" count="1" type="cond" truecount="3" falsecount="1"/>
1240
+ <line num="152" count="1" type="stmt"/>
1241
+ <line num="154" count="0" type="stmt"/>
1242
+ <line num="157" count="1" type="stmt"/>
1243
+ <line num="161" count="34" type="stmt"/>
1244
+ <line num="162" count="2" type="stmt"/>
1245
+ <line num="165" count="34" type="stmt"/>
1246
+ <line num="166" count="0" type="stmt"/>
1247
+ <line num="169" count="34" type="stmt"/>
1248
+ <line num="170" count="1" type="stmt"/>
1249
+ <line num="171" count="1" type="stmt"/>
1250
+ <line num="172" count="1" type="stmt"/>
1251
+ <line num="173" count="1" type="stmt"/>
1264
1252
  </file>
1265
1253
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1266
1254
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
@@ -1275,7 +1263,7 @@
1275
1263
  </file>
1276
1264
  </package>
1277
1265
  <package name="api.controllers.row">
1278
- <metrics statements="583" coveredstatements="307" conditionals="248" coveredconditionals="83" methods="88" coveredmethods="38"/>
1266
+ <metrics statements="588" coveredstatements="309" conditionals="253" coveredconditionals="85" methods="88" coveredmethods="38"/>
1279
1267
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1280
1268
  <metrics statements="99" coveredstatements="15" conditionals="42" coveredconditionals="0" methods="13" coveredmethods="0"/>
1281
1269
  <line num="6" count="34" type="stmt"/>
@@ -1679,7 +1667,7 @@
1679
1667
  <line num="446" count="1" type="stmt"/>
1680
1668
  </file>
1681
1669
  <file name="internalSearch.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internalSearch.js">
1682
- <metrics statements="147" coveredstatements="7" conditionals="85" coveredconditionals="0" methods="33" coveredmethods="0"/>
1670
+ <metrics statements="147" coveredstatements="7" conditionals="87" coveredconditionals="0" methods="33" coveredmethods="0"/>
1683
1671
  <line num="1" count="33" type="stmt"/>
1684
1672
  <line num="2" count="33" type="stmt"/>
1685
1673
  <line num="3" count="33" type="stmt"/>
@@ -1763,73 +1751,73 @@
1763
1751
  <line num="189" count="0" type="stmt"/>
1764
1752
  <line num="192" count="0" type="cond" truecount="0" falsecount="2"/>
1765
1753
  <line num="193" count="0" type="stmt"/>
1766
- <line num="194" count="0" type="cond" truecount="0" falsecount="2"/>
1767
- <line num="195" count="0" type="stmt"/>
1768
- <line num="197" count="0" type="stmt"/>
1769
- <line num="200" count="0" type="cond" truecount="0" falsecount="2"/>
1770
- <line num="201" count="0" type="stmt"/>
1771
- <line num="202" count="0" type="cond" truecount="0" falsecount="2"/>
1772
- <line num="203" count="0" type="stmt"/>
1773
- <line num="205" count="0" type="stmt"/>
1774
- <line num="208" count="0" type="cond" truecount="0" falsecount="2"/>
1775
- <line num="209" count="0" type="stmt"/>
1776
- <line num="211" count="0" type="cond" truecount="0" falsecount="2"/>
1777
- <line num="212" count="0" type="stmt"/>
1778
- <line num="214" count="0" type="stmt"/>
1779
- <line num="218" count="0" type="stmt"/>
1780
- <line num="223" count="0" type="cond" truecount="0" falsecount="2"/>
1781
- <line num="224" count="0" type="stmt"/>
1782
- <line num="226" count="0" type="cond" truecount="0" falsecount="2"/>
1754
+ <line num="195" count="0" type="cond" truecount="0" falsecount="4"/>
1755
+ <line num="196" count="0" type="stmt"/>
1756
+ <line num="198" count="0" type="stmt"/>
1757
+ <line num="201" count="0" type="cond" truecount="0" falsecount="2"/>
1758
+ <line num="202" count="0" type="stmt"/>
1759
+ <line num="203" count="0" type="cond" truecount="0" falsecount="2"/>
1760
+ <line num="204" count="0" type="stmt"/>
1761
+ <line num="206" count="0" type="stmt"/>
1762
+ <line num="209" count="0" type="cond" truecount="0" falsecount="2"/>
1763
+ <line num="210" count="0" type="stmt"/>
1764
+ <line num="212" count="0" type="cond" truecount="0" falsecount="2"/>
1765
+ <line num="213" count="0" type="stmt"/>
1766
+ <line num="215" count="0" type="stmt"/>
1767
+ <line num="219" count="0" type="stmt"/>
1768
+ <line num="224" count="0" type="cond" truecount="0" falsecount="2"/>
1769
+ <line num="225" count="0" type="stmt"/>
1783
1770
  <line num="227" count="0" type="cond" truecount="0" falsecount="2"/>
1784
- <line num="228" count="0" type="stmt"/>
1771
+ <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
1785
1772
  <line num="229" count="0" type="stmt"/>
1786
- <line num="231" count="0" type="stmt"/>
1787
- <line num="235" count="0" type="stmt"/>
1788
- <line num="238" count="0" type="stmt"/>
1773
+ <line num="230" count="0" type="stmt"/>
1774
+ <line num="232" count="0" type="stmt"/>
1775
+ <line num="236" count="0" type="stmt"/>
1789
1776
  <line num="239" count="0" type="stmt"/>
1790
- <line num="249" count="33" type="stmt"/>
1791
- <line num="250" count="0" type="stmt"/>
1792
- <line num="254" count="0" type="stmt"/>
1793
- <line num="256" count="0" type="stmt"/>
1794
- <line num="259" count="0" type="cond" truecount="0" falsecount="4"/>
1795
- <line num="260" count="0" type="stmt"/>
1796
- <line num="262" count="0" type="cond" truecount="0" falsecount="2"/>
1797
- <line num="263" count="0" type="stmt"/>
1798
- <line num="265" count="0" type="stmt"/>
1799
- <line num="285" count="33" type="stmt"/>
1800
- <line num="286" count="0" type="stmt"/>
1801
- <line num="287" count="0" type="cond" truecount="0" falsecount="2"/>
1777
+ <line num="240" count="0" type="stmt"/>
1778
+ <line num="250" count="33" type="stmt"/>
1779
+ <line num="251" count="0" type="stmt"/>
1780
+ <line num="255" count="0" type="stmt"/>
1781
+ <line num="257" count="0" type="stmt"/>
1782
+ <line num="260" count="0" type="cond" truecount="0" falsecount="4"/>
1783
+ <line num="261" count="0" type="stmt"/>
1784
+ <line num="263" count="0" type="cond" truecount="0" falsecount="2"/>
1785
+ <line num="264" count="0" type="stmt"/>
1786
+ <line num="266" count="0" type="stmt"/>
1787
+ <line num="286" count="33" type="stmt"/>
1788
+ <line num="287" count="0" type="stmt"/>
1802
1789
  <line num="288" count="0" type="cond" truecount="0" falsecount="2"/>
1803
- <line num="289" count="0" type="stmt"/>
1804
- <line num="291" count="0" type="stmt"/>
1805
- <line num="292" count="0" type="cond" truecount="0" falsecount="2"/>
1806
- <line num="293" count="0" type="stmt"/>
1807
- <line num="295" count="0" type="stmt"/>
1808
- <line num="304" count="0" type="cond" truecount="0" falsecount="2"/>
1809
- <line num="305" count="0" type="stmt"/>
1810
- <line num="307" count="0" type="cond" truecount="0" falsecount="2"/>
1811
- <line num="308" count="0" type="stmt"/>
1812
- <line num="310" count="0" type="stmt"/>
1813
- <line num="315" count="0" type="stmt"/>
1814
- <line num="334" count="33" type="stmt"/>
1815
- <line num="335" count="0" type="stmt"/>
1816
- <line num="336" count="0" type="cond" truecount="0" falsecount="5"/>
1817
- <line num="337" count="0" type="stmt"/>
1818
- <line num="339" count="0" type="stmt"/>
1790
+ <line num="289" count="0" type="cond" truecount="0" falsecount="2"/>
1791
+ <line num="290" count="0" type="stmt"/>
1792
+ <line num="292" count="0" type="stmt"/>
1793
+ <line num="293" count="0" type="cond" truecount="0" falsecount="2"/>
1794
+ <line num="294" count="0" type="stmt"/>
1795
+ <line num="296" count="0" type="stmt"/>
1796
+ <line num="305" count="0" type="cond" truecount="0" falsecount="2"/>
1797
+ <line num="306" count="0" type="stmt"/>
1798
+ <line num="308" count="0" type="cond" truecount="0" falsecount="2"/>
1799
+ <line num="309" count="0" type="stmt"/>
1800
+ <line num="311" count="0" type="stmt"/>
1801
+ <line num="316" count="0" type="stmt"/>
1802
+ <line num="335" count="33" type="stmt"/>
1803
+ <line num="336" count="0" type="stmt"/>
1804
+ <line num="337" count="0" type="cond" truecount="0" falsecount="5"/>
1805
+ <line num="338" count="0" type="stmt"/>
1819
1806
  <line num="340" count="0" type="stmt"/>
1820
- <line num="346" count="0" type="stmt"/>
1821
- <line num="353" count="0" type="stmt"/>
1822
- <line num="358" count="0" type="stmt"/>
1823
- <line num="380" count="33" type="stmt"/>
1824
- <line num="381" count="0" type="stmt"/>
1825
- <line num="382" count="0" type="cond" truecount="0" falsecount="5"/>
1826
- <line num="383" count="0" type="stmt"/>
1827
- <line num="385" count="0" type="stmt"/>
1807
+ <line num="341" count="0" type="stmt"/>
1808
+ <line num="347" count="0" type="stmt"/>
1809
+ <line num="354" count="0" type="stmt"/>
1810
+ <line num="359" count="0" type="stmt"/>
1811
+ <line num="381" count="33" type="stmt"/>
1812
+ <line num="382" count="0" type="stmt"/>
1813
+ <line num="383" count="0" type="cond" truecount="0" falsecount="5"/>
1814
+ <line num="384" count="0" type="stmt"/>
1828
1815
  <line num="386" count="0" type="stmt"/>
1829
1816
  <line num="387" count="0" type="stmt"/>
1817
+ <line num="388" count="0" type="stmt"/>
1830
1818
  </file>
1831
1819
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1832
- <metrics statements="43" coveredstatements="33" conditionals="23" coveredconditionals="12" methods="6" coveredmethods="4"/>
1820
+ <metrics statements="48" coveredstatements="35" conditionals="26" coveredconditionals="14" methods="6" coveredmethods="4"/>
1833
1821
  <line num="1" count="34" type="stmt"/>
1834
1822
  <line num="2" count="34" type="stmt"/>
1835
1823
  <line num="3" count="34" type="stmt"/>
@@ -1862,17 +1850,22 @@
1862
1850
  <line num="50" count="74" type="stmt"/>
1863
1851
  <line num="51" count="74" type="stmt"/>
1864
1852
  <line num="52" count="206" type="stmt"/>
1865
- <line num="54" count="206" type="cond" truecount="1" falsecount="1"/>
1853
+ <line num="53" count="206" type="stmt"/>
1854
+ <line num="55" count="206" type="cond" truecount="1" falsecount="1"/>
1866
1855
  <line num="59" count="0" type="stmt"/>
1867
- <line num="64" count="206" type="cond" truecount="1" falsecount="1"/>
1868
- <line num="69" count="0" type="stmt"/>
1869
- <line num="70" count="0" type="cond" truecount="0" falsecount="2"/>
1870
- <line num="71" count="0" type="stmt"/>
1871
- <line num="74" count="206" type="cond" truecount="1" falsecount="1"/>
1856
+ <line num="64" count="206" type="cond" truecount="2" falsecount="3"/>
1857
+ <line num="65" count="0" type="stmt"/>
1858
+ <line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
1859
+ <line num="67" count="0" type="stmt"/>
1860
+ <line num="70" count="206" type="cond" truecount="2" falsecount="2"/>
1861
+ <line num="72" count="0" type="stmt"/>
1862
+ <line num="73" count="0" type="stmt"/>
1872
1863
  <line num="75" count="0" type="stmt"/>
1873
- <line num="80" count="206" type="stmt"/>
1874
- <line num="82" count="206" type="cond" truecount="2" falsecount="0"/>
1875
- <line num="84" count="74" type="stmt"/>
1864
+ <line num="77" count="206" type="cond" truecount="1" falsecount="1"/>
1865
+ <line num="78" count="0" type="stmt"/>
1866
+ <line num="83" count="206" type="stmt"/>
1867
+ <line num="85" count="206" type="cond" truecount="2" falsecount="0"/>
1868
+ <line num="87" count="74" type="stmt"/>
1876
1869
  </file>
1877
1870
  </package>
1878
1871
  <package name="api.controllers.table">
@@ -2739,7 +2732,7 @@
2739
2732
  <line num="17" count="23" type="stmt"/>
2740
2733
  <line num="19" count="23" type="stmt"/>
2741
2734
  <line num="21" count="23" type="stmt"/>
2742
- <line num="57" count="23" type="stmt"/>
2735
+ <line num="64" count="23" type="stmt"/>
2743
2736
  </file>
2744
2737
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/role.js">
2745
2738
  <metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -3060,13 +3053,13 @@
3060
3053
  <line num="50" count="33" type="stmt"/>
3061
3054
  <line num="53" count="66" type="stmt"/>
3062
3055
  <line num="57" count="33" type="stmt"/>
3063
- <line num="58" count="186" type="stmt"/>
3064
- <line num="59" count="186" type="stmt"/>
3065
- <line num="60" count="186" type="stmt"/>
3056
+ <line num="58" count="189" type="stmt"/>
3057
+ <line num="59" count="189" type="stmt"/>
3058
+ <line num="60" count="189" type="stmt"/>
3066
3059
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
3067
3060
  <line num="62" count="0" type="stmt"/>
3068
3061
  <line num="63" count="0" type="stmt"/>
3069
- <line num="66" count="186" type="stmt"/>
3062
+ <line num="66" count="189" type="stmt"/>
3070
3063
  <line num="74" count="33" type="stmt"/>
3071
3064
  <line num="75" count="1" type="cond" truecount="1" falsecount="1"/>
3072
3065
  <line num="77" count="1" type="stmt"/>
@@ -3106,7 +3099,7 @@
3106
3099
  </file>
3107
3100
  </package>
3108
3101
  <package name="automations.steps">
3109
- <metrics statements="241" coveredstatements="179" conditionals="89" coveredconditionals="63" methods="20" coveredmethods="11"/>
3102
+ <metrics statements="242" coveredstatements="179" conditionals="89" coveredconditionals="63" methods="20" coveredmethods="11"/>
3110
3103
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
3111
3104
  <metrics statements="16" coveredstatements="5" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
3112
3105
  <line num="1" count="34" type="stmt"/>
@@ -3191,20 +3184,21 @@
3191
3184
  <line num="78" count="0" type="stmt"/>
3192
3185
  </file>
3193
3186
  <file name="executeQuery.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/executeQuery.js">
3194
- <metrics statements="13" coveredstatements="5" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
3187
+ <metrics statements="14" coveredstatements="5" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
3195
3188
  <line num="1" count="34" type="stmt"/>
3196
3189
  <line num="2" count="34" type="stmt"/>
3197
3190
  <line num="3" count="34" type="stmt"/>
3198
3191
  <line num="5" count="34" type="stmt"/>
3199
- <line num="48" count="34" type="stmt"/>
3200
- <line num="49" count="0" type="cond" truecount="0" falsecount="2"/>
3201
- <line num="50" count="0" type="stmt"/>
3202
- <line num="58" count="0" type="stmt"/>
3203
- <line num="60" count="0" type="stmt"/>
3204
- <line num="69" count="0" type="stmt"/>
3205
- <line num="70" count="0" type="stmt"/>
3206
- <line num="71" count="0" type="stmt"/>
3192
+ <line num="53" count="34" type="stmt"/>
3193
+ <line num="54" count="0" type="cond" truecount="0" falsecount="2"/>
3194
+ <line num="55" count="0" type="stmt"/>
3195
+ <line num="63" count="0" type="stmt"/>
3196
+ <line num="65" count="0" type="stmt"/>
3197
+ <line num="74" count="0" type="stmt"/>
3198
+ <line num="75" count="0" type="stmt"/>
3207
3199
  <line num="76" count="0" type="stmt"/>
3200
+ <line num="77" count="0" type="stmt"/>
3201
+ <line num="83" count="0" type="stmt"/>
3208
3202
  </file>
3209
3203
  <file name="executeScript.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/executeScript.js">
3210
3204
  <metrics statements="12" coveredstatements="5" conditionals="2" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3534,7 +3528,7 @@
3534
3528
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3535
3529
  <line num="1" count="49" type="stmt"/>
3536
3530
  <line num="3" count="49" type="stmt"/>
3537
- <line num="4" count="683" type="stmt"/>
3531
+ <line num="4" count="700" type="stmt"/>
3538
3532
  </file>
3539
3533
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3540
3534
  <metrics statements="110" coveredstatements="101" conditionals="51" coveredconditionals="18" methods="31" coveredmethods="27"/>
@@ -3566,9 +3560,9 @@
3566
3560
  <line num="85" count="49" type="stmt"/>
3567
3561
  <line num="87" count="49" type="stmt"/>
3568
3562
  <line num="88" count="74" type="stmt"/>
3569
- <line num="104" count="606" type="cond" truecount="2" falsecount="0"/>
3570
- <line num="105" count="593" type="stmt"/>
3571
- <line num="107" count="606" type="stmt"/>
3563
+ <line num="104" count="615" type="cond" truecount="2" falsecount="0"/>
3564
+ <line num="105" count="602" type="stmt"/>
3565
+ <line num="107" count="615" type="stmt"/>
3572
3566
  <line num="114" count="49" type="stmt"/>
3573
3567
  <line num="119" count="49" type="cond" truecount="0" falsecount="2"/>
3574
3568
  <line num="120" count="3" type="stmt"/>
@@ -3580,19 +3574,19 @@
3580
3574
  <line num="144" count="11" type="cond" truecount="1" falsecount="1"/>
3581
3575
  <line num="146" count="11" type="stmt"/>
3582
3576
  <line num="155" count="49" type="cond" truecount="1" falsecount="0"/>
3583
- <line num="156" count="201" type="cond" truecount="2" falsecount="0"/>
3584
- <line num="157" count="201" type="stmt"/>
3577
+ <line num="156" count="205" type="cond" truecount="2" falsecount="0"/>
3578
+ <line num="157" count="205" type="stmt"/>
3585
3579
  <line num="163" count="49" type="cond" truecount="0" falsecount="2"/>
3586
3580
  <line num="164" count="3" type="stmt"/>
3587
3581
  <line num="172" count="49" type="stmt"/>
3588
- <line num="173" count="133" type="stmt"/>
3582
+ <line num="173" count="137" type="stmt"/>
3589
3583
  <line num="179" count="49" type="stmt"/>
3590
3584
  <line num="180" count="2" type="stmt"/>
3591
3585
  <line num="181" count="2" type="cond" truecount="4" falsecount="0"/>
3592
3586
  <line num="182" count="1" type="stmt"/>
3593
3587
  <line num="184" count="1" type="stmt"/>
3594
3588
  <line num="190" count="49" type="cond" truecount="0" falsecount="2"/>
3595
- <line num="191" count="204" type="stmt"/>
3589
+ <line num="191" count="207" type="stmt"/>
3596
3590
  <line num="198" count="49" type="stmt"/>
3597
3591
  <line num="199" count="20" type="stmt"/>
3598
3592
  <line num="213" count="49" type="stmt"/>
@@ -3603,32 +3597,32 @@
3603
3597
  <line num="230" count="49" type="cond" truecount="0" falsecount="1"/>
3604
3598
  <line num="231" count="0" type="stmt"/>
3605
3599
  <line num="238" count="49" type="cond" truecount="0" falsecount="1"/>
3606
- <line num="239" count="179" type="stmt"/>
3607
- <line num="240" count="179" type="cond" truecount="1" falsecount="1"/>
3600
+ <line num="239" count="182" type="stmt"/>
3601
+ <line num="240" count="182" type="cond" truecount="1" falsecount="1"/>
3608
3602
  <line num="241" count="0" type="stmt"/>
3609
- <line num="243" count="179" type="stmt"/>
3603
+ <line num="243" count="182" type="stmt"/>
3610
3604
  <line num="250" count="49" type="stmt"/>
3611
- <line num="251" count="179" type="stmt"/>
3612
- <line num="252" count="179" type="stmt"/>
3613
- <line num="253" count="179" type="stmt"/>
3605
+ <line num="251" count="182" type="stmt"/>
3606
+ <line num="252" count="182" type="stmt"/>
3607
+ <line num="253" count="182" type="stmt"/>
3614
3608
  <line num="260" count="49" type="stmt"/>
3615
3609
  <line num="261" count="5" type="cond" truecount="2" falsecount="0"/>
3616
3610
  <line num="267" count="49" type="cond" truecount="0" falsecount="2"/>
3617
- <line num="268" count="189" type="stmt"/>
3611
+ <line num="268" count="192" type="stmt"/>
3618
3612
  <line num="275" count="49" type="stmt"/>
3619
3613
  <line num="276" count="19" type="stmt"/>
3620
3614
  <line num="282" count="49" type="cond" truecount="0" falsecount="2"/>
3621
- <line num="283" count="191" type="stmt"/>
3615
+ <line num="283" count="194" type="stmt"/>
3622
3616
  <line num="290" count="49" type="stmt"/>
3623
3617
  <line num="291" count="10" type="stmt"/>
3624
3618
  <line num="297" count="49" type="cond" truecount="0" falsecount="2"/>
3625
3619
  <line num="298" count="2" type="stmt"/>
3626
3620
  <line num="305" count="49" type="cond" truecount="1" falsecount="1"/>
3627
- <line num="306" count="24" type="stmt"/>
3621
+ <line num="306" count="30" type="stmt"/>
3628
3622
  <line num="314" count="49" type="cond" truecount="0" falsecount="2"/>
3629
3623
  <line num="315" count="3" type="stmt"/>
3630
3624
  <line num="322" count="49" type="stmt"/>
3631
- <line num="323" count="73" type="stmt"/>
3625
+ <line num="323" count="78" type="stmt"/>
3632
3626
  <line num="331" count="49" type="cond" truecount="0" falsecount="2"/>
3633
3627
  <line num="332" count="3" type="cond" truecount="2" falsecount="0"/>
3634
3628
  <line num="333" count="2" type="stmt"/>
@@ -4041,17 +4035,17 @@
4041
4035
  <line num="11" count="24" type="stmt"/>
4042
4036
  <line num="14" count="7" type="stmt"/>
4043
4037
  <line num="17" count="24" type="stmt"/>
4044
- <line num="19" count="2315" type="stmt"/>
4045
- <line num="22" count="151" type="cond" truecount="4" falsecount="0"/>
4038
+ <line num="19" count="2338" type="stmt"/>
4039
+ <line num="22" count="155" type="cond" truecount="4" falsecount="0"/>
4046
4040
  <line num="23" count="1" type="stmt"/>
4047
- <line num="26" count="150" type="cond" truecount="2" falsecount="0"/>
4041
+ <line num="26" count="154" type="cond" truecount="2" falsecount="0"/>
4048
4042
  <line num="27" count="1" type="stmt"/>
4049
- <line num="32" count="149" type="stmt"/>
4050
- <line num="34" count="149" type="stmt"/>
4051
- <line num="36" count="149" type="cond" truecount="3" falsecount="0"/>
4052
- <line num="37" count="149" type="stmt"/>
4053
- <line num="38" count="149" type="cond" truecount="2" falsecount="0"/>
4054
- <line num="39" count="113" type="stmt"/>
4043
+ <line num="32" count="153" type="stmt"/>
4044
+ <line num="34" count="153" type="stmt"/>
4045
+ <line num="36" count="153" type="cond" truecount="3" falsecount="0"/>
4046
+ <line num="37" count="153" type="stmt"/>
4047
+ <line num="38" count="153" type="cond" truecount="2" falsecount="0"/>
4048
+ <line num="39" count="117" type="stmt"/>
4055
4049
  <line num="40" count="36" type="cond" truecount="4" falsecount="0"/>
4056
4050
  <line num="41" count="29" type="stmt"/>
4057
4051
  <line num="45" count="7" type="cond" truecount="2" falsecount="0"/>
@@ -4098,14 +4092,14 @@
4098
4092
  <line num="56" count="1" type="stmt"/>
4099
4093
  <line num="58" count="1" type="stmt"/>
4100
4094
  <line num="61" count="24" type="stmt"/>
4101
- <line num="62" count="149" type="stmt"/>
4102
- <line num="64" count="149" type="cond" truecount="2" falsecount="0"/>
4095
+ <line num="62" count="153" type="stmt"/>
4096
+ <line num="64" count="153" type="cond" truecount="2" falsecount="0"/>
4103
4097
  <line num="65" count="5" type="stmt"/>
4104
- <line num="67" count="144" type="stmt"/>
4105
- <line num="68" count="144" type="stmt"/>
4106
- <line num="69" count="144" type="cond" truecount="2" falsecount="0"/>
4107
- <line num="71" count="144" type="cond" truecount="4" falsecount="0"/>
4108
- <line num="72" count="143" type="stmt"/>
4098
+ <line num="67" count="148" type="stmt"/>
4099
+ <line num="68" count="148" type="stmt"/>
4100
+ <line num="69" count="148" type="cond" truecount="2" falsecount="0"/>
4101
+ <line num="71" count="148" type="cond" truecount="4" falsecount="0"/>
4102
+ <line num="72" count="147" type="stmt"/>
4109
4103
  <line num="75" count="1" type="stmt"/>
4110
4104
  <line num="77" count="1" type="stmt"/>
4111
4105
  </file>
@@ -4123,63 +4117,63 @@
4123
4117
  <line num="11" count="28" type="stmt"/>
4124
4118
  <line num="12" count="28" type="stmt"/>
4125
4119
  <line num="14" count="28" type="stmt"/>
4126
- <line num="16" count="161" type="stmt"/>
4127
- <line num="18" count="161" type="stmt"/>
4128
- <line num="19" count="161" type="stmt"/>
4129
- <line num="20" count="161" type="stmt"/>
4120
+ <line num="16" count="165" type="stmt"/>
4121
+ <line num="18" count="165" type="stmt"/>
4122
+ <line num="19" count="165" type="stmt"/>
4123
+ <line num="20" count="165" type="stmt"/>
4130
4124
  <line num="22" count="0" type="stmt"/>
4131
- <line num="24" count="161" type="cond" truecount="4" falsecount="0"/>
4125
+ <line num="24" count="165" type="cond" truecount="4" falsecount="0"/>
4132
4126
  <line num="25" count="1" type="stmt"/>
4133
- <line num="28" count="160" type="cond" truecount="2" falsecount="0"/>
4134
- <line num="29" count="154" type="stmt"/>
4135
- <line num="30" count="154" type="stmt"/>
4136
- <line num="31" count="154" type="cond" truecount="1" falsecount="1"/>
4127
+ <line num="28" count="164" type="cond" truecount="2" falsecount="0"/>
4128
+ <line num="29" count="158" type="stmt"/>
4129
+ <line num="30" count="158" type="stmt"/>
4130
+ <line num="31" count="158" type="cond" truecount="1" falsecount="1"/>
4137
4131
  <line num="32" count="0" type="stmt"/>
4138
4132
  <line num="33" count="0" type="stmt"/>
4139
- <line num="36" count="154" type="cond" truecount="1" falsecount="1"/>
4140
- <line num="40" count="160" type="cond" truecount="2" falsecount="0"/>
4133
+ <line num="36" count="158" type="cond" truecount="1" falsecount="1"/>
4134
+ <line num="40" count="164" type="cond" truecount="2" falsecount="0"/>
4141
4135
  <line num="45" count="2" type="stmt"/>
4142
4136
  <line num="46" count="2" type="stmt"/>
4143
- <line num="50" count="158" type="stmt"/>
4144
- <line num="51" count="158" type="cond" truecount="2" falsecount="0"/>
4137
+ <line num="50" count="162" type="stmt"/>
4138
+ <line num="51" count="162" type="cond" truecount="2" falsecount="0"/>
4145
4139
  <line num="53" count="33" type="stmt"/>
4146
- <line num="54" count="125" type="cond" truecount="1" falsecount="1"/>
4147
- <line num="56" count="125" type="stmt"/>
4148
- <line num="57" count="125" type="stmt"/>
4149
- <line num="59" count="125" type="cond" truecount="2" falsecount="0"/>
4150
- <line num="63" count="158" type="cond" truecount="1" falsecount="1"/>
4140
+ <line num="54" count="129" type="cond" truecount="1" falsecount="1"/>
4141
+ <line num="56" count="129" type="stmt"/>
4142
+ <line num="57" count="129" type="stmt"/>
4143
+ <line num="59" count="129" type="cond" truecount="2" falsecount="0"/>
4144
+ <line num="63" count="162" type="cond" truecount="1" falsecount="1"/>
4151
4145
  <line num="64" count="0" type="stmt"/>
4152
- <line num="67" count="158" type="stmt"/>
4153
- <line num="70" count="158" type="cond" truecount="1" falsecount="1"/>
4146
+ <line num="67" count="162" type="stmt"/>
4147
+ <line num="70" count="162" type="cond" truecount="1" falsecount="1"/>
4154
4148
  <line num="77" count="0" type="stmt"/>
4155
4149
  <line num="78" count="0" type="stmt"/>
4156
4150
  <line num="79" count="0" type="stmt"/>
4157
4151
  <line num="80" count="0" type="stmt"/>
4158
4152
  <line num="81" count="0" type="stmt"/>
4159
- <line num="84" count="158" type="stmt"/>
4160
- <line num="85" count="158" type="cond" truecount="1" falsecount="1"/>
4161
- <line num="86" count="158" type="stmt"/>
4162
- <line num="87" count="158" type="cond" truecount="2" falsecount="0"/>
4163
- <line num="88" count="158" type="stmt"/>
4164
- <line num="97" count="158" type="cond" truecount="2" falsecount="0"/>
4153
+ <line num="84" count="162" type="stmt"/>
4154
+ <line num="85" count="162" type="cond" truecount="1" falsecount="1"/>
4155
+ <line num="86" count="162" type="stmt"/>
4156
+ <line num="87" count="162" type="cond" truecount="2" falsecount="0"/>
4157
+ <line num="88" count="162" type="stmt"/>
4158
+ <line num="97" count="162" type="cond" truecount="2" falsecount="0"/>
4165
4159
  <line num="103" count="7" type="stmt"/>
4166
- <line num="106" count="158" type="stmt"/>
4160
+ <line num="106" count="162" type="stmt"/>
4167
4161
  </file>
4168
4162
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
4169
4163
  <metrics statements="17" coveredstatements="14" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
4170
4164
  <line num="3" count="276" type="stmt"/>
4171
- <line num="4" count="18" type="cond" truecount="1" falsecount="1"/>
4165
+ <line num="4" count="22" type="cond" truecount="1" falsecount="1"/>
4172
4166
  <line num="5" count="0" type="stmt"/>
4173
- <line num="7" count="18" type="stmt"/>
4174
- <line num="8" count="18" type="cond" truecount="2" falsecount="0"/>
4167
+ <line num="7" count="22" type="stmt"/>
4168
+ <line num="8" count="22" type="cond" truecount="2" falsecount="0"/>
4175
4169
  <line num="9" count="1" type="stmt"/>
4176
- <line num="10" count="17" type="cond" truecount="1" falsecount="1"/>
4177
- <line num="11" count="17" type="stmt"/>
4178
- <line num="13" count="18" type="stmt"/>
4179
- <line num="14" count="18" type="cond" truecount="1" falsecount="1"/>
4170
+ <line num="10" count="21" type="cond" truecount="1" falsecount="1"/>
4171
+ <line num="11" count="21" type="stmt"/>
4172
+ <line num="13" count="22" type="stmt"/>
4173
+ <line num="14" count="22" type="cond" truecount="1" falsecount="1"/>
4180
4174
  <line num="15" count="0" type="stmt"/>
4181
4175
  <line num="16" count="0" type="stmt"/>
4182
- <line num="18" count="18" type="stmt"/>
4176
+ <line num="18" count="22" type="stmt"/>
4183
4177
  <line num="22" count="35" type="stmt"/>
4184
4178
  <line num="23" count="230" type="stmt"/>
4185
4179
  <line num="26" count="35" type="stmt"/>
@@ -4187,29 +4181,29 @@
4187
4181
  </file>
4188
4182
  <file name="resourceId.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/resourceId.js">
4189
4183
  <metrics statements="29" coveredstatements="29" conditionals="12" coveredconditionals="12" methods="9" coveredmethods="9"/>
4190
- <line num="3" count="604" type="stmt"/>
4191
- <line num="4" count="604" type="stmt"/>
4192
- <line num="5" count="604" type="stmt"/>
4193
- <line num="6" count="604" type="stmt"/>
4194
- <line num="10" count="604" type="stmt"/>
4195
- <line num="11" count="604" type="stmt"/>
4184
+ <line num="3" count="627" type="stmt"/>
4185
+ <line num="4" count="627" type="stmt"/>
4186
+ <line num="5" count="627" type="stmt"/>
4187
+ <line num="6" count="627" type="stmt"/>
4188
+ <line num="10" count="627" type="stmt"/>
4189
+ <line num="11" count="627" type="stmt"/>
4196
4190
  <line num="15" count="72" type="stmt"/>
4197
4191
  <line num="16" count="72" type="stmt"/>
4198
- <line num="20" count="604" type="stmt"/>
4199
- <line num="21" count="604" type="stmt"/>
4200
- <line num="22" count="604" type="stmt"/>
4201
- <line num="23" count="604" type="stmt"/>
4202
- <line num="24" count="58" type="cond" truecount="2" falsecount="0"/>
4203
- <line num="25" count="58" type="cond" truecount="2" falsecount="0"/>
4192
+ <line num="20" count="627" type="stmt"/>
4193
+ <line num="21" count="627" type="stmt"/>
4194
+ <line num="22" count="627" type="stmt"/>
4195
+ <line num="23" count="627" type="stmt"/>
4196
+ <line num="24" count="62" type="cond" truecount="2" falsecount="0"/>
4197
+ <line num="25" count="62" type="cond" truecount="2" falsecount="0"/>
4204
4198
  <line num="26" count="1" type="stmt"/>
4205
- <line num="28" count="57" type="cond" truecount="4" falsecount="0"/>
4206
- <line num="29" count="53" type="stmt"/>
4207
- <line num="31" count="57" type="cond" truecount="4" falsecount="0"/>
4199
+ <line num="28" count="61" type="cond" truecount="4" falsecount="0"/>
4200
+ <line num="29" count="57" type="stmt"/>
4201
+ <line num="31" count="61" type="cond" truecount="4" falsecount="0"/>
4208
4202
  <line num="32" count="11" type="stmt"/>
4209
- <line num="34" count="57" type="stmt"/>
4203
+ <line num="34" count="61" type="stmt"/>
4210
4204
  <line num="39" count="24" type="stmt"/>
4211
4205
  <line num="41" count="24" type="stmt"/>
4212
- <line num="42" count="462" type="stmt"/>
4206
+ <line num="42" count="485" type="stmt"/>
4213
4207
  <line num="45" count="24" type="stmt"/>
4214
4208
  <line num="46" count="47" type="stmt"/>
4215
4209
  <line num="52" count="24" type="stmt"/>
@@ -4269,11 +4263,11 @@
4269
4263
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4270
4264
  <line num="1" count="29" type="stmt"/>
4271
4265
  <line num="5" count="29" type="stmt"/>
4272
- <line num="6" count="271" type="stmt"/>
4266
+ <line num="6" count="279" type="stmt"/>
4273
4267
  </file>
4274
4268
  </package>
4275
4269
  <package name="threads">
4276
- <metrics statements="149" coveredstatements="118" conditionals="63" coveredconditionals="35" methods="24" coveredmethods="22"/>
4270
+ <metrics statements="250" coveredstatements="213" conditionals="111" coveredconditionals="71" methods="37" coveredmethods="34"/>
4277
4271
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4278
4272
  <metrics statements="76" coveredstatements="64" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4279
4273
  <line num="1" count="4" type="stmt"/>
@@ -4358,14 +4352,14 @@
4358
4352
  <line num="1" count="34" type="stmt"/>
4359
4353
  <line num="2" count="34" type="stmt"/>
4360
4354
  <line num="4" count="34" type="stmt"/>
4361
- <line num="10" count="14" type="stmt"/>
4362
- <line num="11" count="14" type="cond" truecount="2" falsecount="1"/>
4363
- <line num="13" count="4" type="stmt"/>
4364
- <line num="14" count="4" type="stmt"/>
4355
+ <line num="10" count="18" type="stmt"/>
4356
+ <line num="11" count="18" type="cond" truecount="2" falsecount="1"/>
4357
+ <line num="13" count="8" type="stmt"/>
4358
+ <line num="14" count="8" type="stmt"/>
4365
4359
  <line num="16" count="10" type="stmt"/>
4366
4360
  <line num="17" count="10" type="stmt"/>
4367
4361
  <line num="19" count="0" type="stmt"/>
4368
- <line num="21" count="14" type="stmt"/>
4362
+ <line num="21" count="18" type="stmt"/>
4369
4363
  <line num="26" count="67" type="stmt"/>
4370
4364
  <line num="27" count="67" type="cond" truecount="2" falsecount="0"/>
4371
4365
  <line num="28" count="67" type="stmt"/>
@@ -4374,66 +4368,167 @@
4374
4368
  <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4375
4369
  <line num="39" count="0" type="stmt"/>
4376
4370
  <line num="41" count="0" type="stmt"/>
4377
- <line num="46" count="14" type="stmt"/>
4378
- <line num="49" count="14" type="cond" truecount="1" falsecount="1"/>
4379
- <line num="50" count="14" type="stmt"/>
4371
+ <line num="46" count="18" type="stmt"/>
4372
+ <line num="49" count="18" type="cond" truecount="1" falsecount="1"/>
4373
+ <line num="50" count="18" type="stmt"/>
4380
4374
  <line num="52" count="0" type="stmt"/>
4381
- <line num="54" count="14" type="stmt"/>
4382
- <line num="55" count="10" type="cond" truecount="2" falsecount="0"/>
4375
+ <line num="54" count="18" type="stmt"/>
4376
+ <line num="55" count="14" type="cond" truecount="2" falsecount="0"/>
4383
4377
  <line num="56" count="2" type="stmt"/>
4384
- <line num="58" count="8" type="stmt"/>
4378
+ <line num="58" count="12" type="stmt"/>
4385
4379
  <line num="65" count="34" type="stmt"/>
4386
4380
  <line num="66" count="34" type="stmt"/>
4387
4381
  </file>
4388
4382
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4389
- <metrics statements="36" coveredstatements="25" conditionals="18" coveredconditionals="10" methods="8" coveredmethods="7"/>
4383
+ <metrics statements="88" coveredstatements="82" conditionals="37" coveredconditionals="30" methods="12" coveredmethods="11"/>
4390
4384
  <line num="1" count="1" type="stmt"/>
4391
4385
  <line num="2" count="1" type="stmt"/>
4392
4386
  <line num="3" count="1" type="stmt"/>
4393
- <line num="6" count="2" type="cond" truecount="1" falsecount="1"/>
4394
- <line num="7" count="0" type="stmt"/>
4395
- <line num="8" count="0" type="stmt"/>
4396
- <line num="10" count="0" type="stmt"/>
4397
- <line num="13" count="2" type="stmt"/>
4398
- <line num="17" count="2" type="stmt"/>
4399
- <line num="26" count="4" type="stmt"/>
4400
- <line num="27" count="4" type="cond" truecount="2" falsecount="0"/>
4401
- <line num="28" count="2" type="stmt"/>
4402
- <line num="30" count="2" type="stmt"/>
4403
- <line num="32" count="2" type="stmt"/>
4387
+ <line num="4" count="1" type="stmt"/>
4388
+ <line num="5" count="1" type="stmt"/>
4389
+ <line num="6" count="1" type="stmt"/>
4390
+ <line num="10" count="11" type="stmt"/>
4391
+ <line num="11" count="11" type="stmt"/>
4392
+ <line num="12" count="11" type="stmt"/>
4393
+ <line num="13" count="11" type="stmt"/>
4394
+ <line num="14" count="11" type="stmt"/>
4395
+ <line num="15" count="11" type="stmt"/>
4396
+ <line num="16" count="11" type="stmt"/>
4397
+ <line num="17" count="11" type="stmt"/>
4398
+ <line num="18" count="11" type="stmt"/>
4399
+ <line num="22" count="11" type="stmt"/>
4400
+ <line num="23" count="11" type="stmt"/>
4401
+ <line num="27" count="12" type="stmt"/>
4402
+ <line num="29" count="12" type="stmt"/>
4403
+ <line num="30" count="12" type="stmt"/>
4404
+ <line num="31" count="12" type="stmt"/>
4405
+ <line num="32" count="12" type="cond" truecount="2" falsecount="0"/>
4404
4406
  <line num="33" count="2" type="stmt"/>
4405
- <line num="34" count="2" type="stmt"/>
4406
- <line num="35" count="2" type="stmt"/>
4407
- <line num="36" count="2" type="cond" truecount="1" falsecount="1"/>
4408
- <line num="37" count="0" type="stmt"/>
4409
- <line num="38" count="0" type="stmt"/>
4410
- <line num="39" count="0" type="stmt"/>
4411
- <line num="43" count="2" type="cond" truecount="1" falsecount="1"/>
4412
- <line num="44" count="0" type="stmt"/>
4413
- <line num="45" count="0" type="stmt"/>
4414
- <line num="49" count="2" type="cond" truecount="1" falsecount="1"/>
4407
+ <line num="35" count="10" type="stmt"/>
4408
+ <line num="37" count="10" type="stmt"/>
4409
+ <line num="38" count="10" type="stmt"/>
4410
+ <line num="39" count="10" type="stmt"/>
4411
+ <line num="40" count="10" type="stmt"/>
4412
+ <line num="41" count="10" type="cond" truecount="2" falsecount="0"/>
4413
+ <line num="42" count="8" type="stmt"/>
4414
+ <line num="43" count="8" type="stmt"/>
4415
+ <line num="44" count="8" type="stmt"/>
4416
+ <line num="48" count="10" type="cond" truecount="1" falsecount="1"/>
4417
+ <line num="49" count="0" type="stmt"/>
4415
4418
  <line num="50" count="0" type="stmt"/>
4416
- <line num="54" count="2" type="cond" truecount="1" falsecount="1"/>
4417
- <line num="55" count="0" type="stmt"/>
4418
- <line num="59" count="2" type="stmt"/>
4419
- <line num="61" count="2" type="cond" truecount="1" falsecount="1"/>
4420
- <line num="62" count="0" type="stmt"/>
4421
- <line num="65" count="2" type="stmt"/>
4422
- <line num="68" count="1" type="stmt"/>
4423
- <line num="69" count="4" type="stmt"/>
4424
- <line num="76" count="2" type="stmt"/>
4425
- <line num="79" count="2" type="stmt"/>
4419
+ <line num="54" count="10" type="cond" truecount="2" falsecount="0"/>
4420
+ <line num="60" count="1" type="stmt"/>
4421
+ <line num="62" count="1" type="stmt"/>
4422
+ <line num="63" count="1" type="stmt"/>
4423
+ <line num="67" count="9" type="cond" truecount="2" falsecount="0"/>
4424
+ <line num="68" count="7" type="stmt"/>
4425
+ <line num="72" count="9" type="cond" truecount="1" falsecount="1"/>
4426
+ <line num="73" count="0" type="stmt"/>
4427
+ <line num="77" count="9" type="stmt"/>
4428
+ <line num="79" count="9" type="cond" truecount="1" falsecount="1"/>
4429
+ <line num="80" count="0" type="stmt"/>
4430
+ <line num="83" count="9" type="stmt"/>
4431
+ <line num="87" count="3" type="stmt"/>
4432
+ <line num="88" count="3" type="stmt"/>
4433
+ <line num="89" count="3" type="stmt"/>
4434
+ <line num="90" count="3" type="stmt"/>
4435
+ <line num="104" count="4" type="stmt"/>
4436
+ <line num="105" count="4" type="stmt"/>
4437
+ <line num="106" count="4" type="stmt"/>
4438
+ <line num="107" count="4" type="stmt"/>
4439
+ <line num="108" count="4" type="cond" truecount="2" falsecount="0"/>
4440
+ <line num="109" count="3" type="cond" truecount="1" falsecount="1"/>
4441
+ <line num="113" count="3" type="stmt"/>
4442
+ <line num="114" count="3" type="stmt"/>
4443
+ <line num="116" count="1" type="stmt"/>
4444
+ <line num="118" count="4" type="stmt"/>
4445
+ <line num="122" count="12" type="stmt"/>
4446
+ <line num="123" count="12" type="cond" truecount="3" falsecount="1"/>
4447
+ <line num="124" count="0" type="stmt"/>
4448
+ <line num="126" count="12" type="cond" truecount="2" falsecount="0"/>
4449
+ <line num="127" count="12" type="cond" truecount="2" falsecount="0"/>
4450
+ <line num="128" count="12" type="stmt"/>
4451
+ <line num="129" count="2" type="cond" truecount="1" falsecount="1"/>
4452
+ <line num="130" count="2" type="stmt"/>
4453
+ <line num="133" count="12" type="cond" truecount="2" falsecount="0"/>
4454
+ <line num="135" count="9" type="stmt"/>
4455
+ <line num="136" count="9" type="stmt"/>
4456
+ <line num="138" count="4" type="cond" truecount="1" falsecount="1"/>
4457
+ <line num="139" count="0" type="stmt"/>
4458
+ <line num="142" count="4" type="stmt"/>
4459
+ <line num="143" count="4" type="stmt"/>
4460
+ <line num="145" count="9" type="stmt"/>
4461
+ <line num="146" count="9" type="stmt"/>
4462
+ <line num="147" count="9" type="stmt"/>
4463
+ <line num="148" count="4" type="stmt"/>
4464
+ <line num="149" count="4" type="stmt"/>
4465
+ <line num="154" count="4" type="stmt"/>
4466
+ <line num="157" count="12" type="stmt"/>
4467
+ <line num="161" count="1" type="stmt"/>
4468
+ <line num="162" count="8" type="stmt"/>
4469
+ <line num="163" count="8" type="stmt"/>
4470
+ <line num="165" count="6" type="stmt"/>
4471
+ <line num="168" count="2" type="stmt"/>
4426
4472
  </file>
4427
4473
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4428
- <metrics statements="8" coveredstatements="6" conditionals="4" coveredconditionals="2" methods="1" coveredmethods="1"/>
4474
+ <metrics statements="57" coveredstatements="44" conditionals="33" coveredconditionals="18" methods="10" coveredmethods="9"/>
4429
4475
  <line num="1" count="5" type="stmt"/>
4430
4476
  <line num="2" count="5" type="stmt"/>
4431
4477
  <line num="3" count="5" type="stmt"/>
4478
+ <line num="4" count="5" type="stmt"/>
4432
4479
  <line num="5" count="5" type="stmt"/>
4433
- <line num="7" count="5" type="cond" truecount="2" falsecount="2"/>
4480
+ <line num="6" count="5" type="stmt"/>
4434
4481
  <line num="8" count="5" type="stmt"/>
4435
- <line num="11" count="0" type="stmt"/>
4436
- <line num="12" count="0" type="stmt"/>
4482
+ <line num="11" count="5" type="stmt"/>
4483
+ <line num="12" count="5" type="stmt"/>
4484
+ <line num="15" count="8" type="cond" truecount="2" falsecount="0"/>
4485
+ <line num="16" count="1" type="stmt"/>
4486
+ <line num="18" count="8" type="stmt"/>
4487
+ <line num="21" count="5" type="stmt"/>
4488
+ <line num="22" count="0" type="cond" truecount="0" falsecount="2"/>
4489
+ <line num="25" count="5" type="stmt"/>
4490
+ <line num="27" count="5" type="cond" truecount="2" falsecount="2"/>
4491
+ <line num="28" count="5" type="stmt"/>
4492
+ <line num="31" count="0" type="stmt"/>
4493
+ <line num="32" count="0" type="stmt"/>
4494
+ <line num="36" count="9" type="stmt"/>
4495
+ <line num="39" count="5" type="stmt"/>
4496
+ <line num="40" count="5" type="stmt"/>
4497
+ <line num="41" count="5" type="stmt"/>
4498
+ <line num="44" count="5" type="stmt"/>
4499
+ <line num="45" count="1" type="stmt"/>
4500
+ <line num="46" count="1" type="stmt"/>
4501
+ <line num="47" count="1" type="stmt"/>
4502
+ <line num="51" count="1" type="stmt"/>
4503
+ <line num="54" count="5" type="stmt"/>
4504
+ <line num="55" count="3" type="stmt"/>
4505
+ <line num="56" count="3" type="stmt"/>
4506
+ <line num="63" count="5" type="stmt"/>
4507
+ <line num="64" count="10" type="cond" truecount="1" falsecount="1"/>
4508
+ <line num="65" count="0" type="stmt"/>
4509
+ <line num="66" count="0" type="stmt"/>
4510
+ <line num="68" count="0" type="stmt"/>
4511
+ <line num="71" count="10" type="stmt"/>
4512
+ <line num="74" count="5" type="stmt"/>
4513
+ <line num="75" count="10" type="stmt"/>
4514
+ <line num="83" count="5" type="cond" truecount="0" falsecount="1"/>
4515
+ <line num="84" count="12" type="stmt"/>
4516
+ <line num="87" count="12" type="stmt"/>
4517
+ <line num="88" count="13" type="cond" truecount="1" falsecount="1"/>
4518
+ <line num="89" count="0" type="stmt"/>
4519
+ <line num="91" count="13" type="cond" truecount="1" falsecount="1"/>
4520
+ <line num="93" count="0" type="stmt"/>
4521
+ <line num="94" count="13" type="cond" truecount="1" falsecount="1"/>
4522
+ <line num="96" count="13" type="stmt"/>
4523
+ <line num="98" count="13" type="cond" truecount="2" falsecount="2"/>
4524
+ <line num="99" count="0" type="stmt"/>
4525
+ <line num="101" count="13" type="stmt"/>
4526
+ <line num="105" count="0" type="stmt"/>
4527
+ <line num="109" count="12" type="cond" truecount="1" falsecount="1"/>
4528
+ <line num="114" count="0" type="stmt"/>
4529
+ <line num="115" count="0" type="stmt"/>
4530
+ <line num="123" count="0" type="stmt"/>
4531
+ <line num="126" count="12" type="stmt"/>
4437
4532
  </file>
4438
4533
  </package>
4439
4534
  <package name="utilities">
@@ -4553,26 +4648,26 @@
4553
4648
  <line num="9" count="39" type="stmt"/>
4554
4649
  <line num="10" count="39" type="stmt"/>
4555
4650
  <line num="12" count="39" type="stmt"/>
4556
- <line num="13" count="134" type="cond" truecount="4" falsecount="0"/>
4651
+ <line num="13" count="138" type="cond" truecount="4" falsecount="0"/>
4557
4652
  <line num="14" count="3" type="stmt"/>
4558
- <line num="17" count="131" type="cond" truecount="2" falsecount="2"/>
4653
+ <line num="17" count="135" type="cond" truecount="2" falsecount="2"/>
4559
4654
  <line num="18" count="0" type="stmt"/>
4560
4655
  <line num="19" count="0" type="stmt"/>
4561
4656
  <line num="20" count="0" type="stmt"/>
4562
4657
  <line num="21" count="0" type="stmt"/>
4563
- <line num="24" count="131" type="stmt"/>
4564
- <line num="26" count="131" type="cond" truecount="5" falsecount="0"/>
4565
- <line num="27" count="126" type="stmt"/>
4658
+ <line num="24" count="135" type="stmt"/>
4659
+ <line num="26" count="135" type="cond" truecount="5" falsecount="0"/>
4660
+ <line num="27" count="130" type="stmt"/>
4566
4661
  <line num="28" count="5" type="cond" truecount="1" falsecount="1"/>
4567
4662
  <line num="29" count="0" type="stmt"/>
4568
- <line num="31" count="131" type="stmt"/>
4569
- <line num="32" count="131" type="stmt"/>
4570
- <line num="36" count="127" type="cond" truecount="1" falsecount="1"/>
4571
- <line num="37" count="127" type="stmt"/>
4572
- <line num="39" count="127" type="stmt"/>
4663
+ <line num="31" count="135" type="stmt"/>
4664
+ <line num="32" count="135" type="stmt"/>
4665
+ <line num="36" count="131" type="cond" truecount="1" falsecount="1"/>
4666
+ <line num="37" count="131" type="stmt"/>
4667
+ <line num="39" count="131" type="stmt"/>
4573
4668
  <line num="42" count="39" type="stmt"/>
4574
- <line num="45" count="125" type="stmt"/>
4575
- <line num="46" count="125" type="stmt"/>
4669
+ <line num="45" count="129" type="stmt"/>
4670
+ <line num="46" count="129" type="stmt"/>
4576
4671
  <line num="49" count="39" type="stmt"/>
4577
4672
  <line num="50" count="2" type="stmt"/>
4578
4673
  <line num="51" count="2" type="stmt"/>
@@ -4625,12 +4720,12 @@
4625
4720
  <line num="39" count="2" type="stmt"/>
4626
4721
  <line num="41" count="0" type="stmt"/>
4627
4722
  <line num="55" count="37" type="stmt"/>
4628
- <line num="56" count="188" type="cond" truecount="1" falsecount="1"/>
4723
+ <line num="56" count="191" type="cond" truecount="1" falsecount="1"/>
4629
4724
  <line num="57" count="0" type="stmt"/>
4630
4725
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
4631
4726
  <line num="62" count="0" type="stmt"/>
4632
4727
  <line num="64" count="0" type="stmt"/>
4633
- <line num="66" count="188" type="stmt"/>
4728
+ <line num="66" count="191" type="stmt"/>
4634
4729
  <line num="70" count="37" type="stmt"/>
4635
4730
  <line num="71" count="2" type="stmt"/>
4636
4731
  <line num="76" count="37" type="stmt"/>
@@ -4673,13 +4768,13 @@
4673
4768
  <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
4674
4769
  <line num="150" count="0" type="stmt"/>
4675
4770
  <line num="154" count="37" type="stmt"/>
4676
- <line num="155" count="9" type="stmt"/>
4677
- <line num="156" count="9" type="stmt"/>
4678
- <line num="157" count="9" type="stmt"/>
4679
- <line num="158" count="9" type="cond" truecount="2" falsecount="0"/>
4680
- <line num="159" count="9" type="cond" truecount="1" falsecount="1"/>
4771
+ <line num="155" count="17" type="stmt"/>
4772
+ <line num="156" count="17" type="stmt"/>
4773
+ <line num="157" count="17" type="stmt"/>
4774
+ <line num="158" count="17" type="cond" truecount="2" falsecount="0"/>
4775
+ <line num="159" count="17" type="cond" truecount="1" falsecount="1"/>
4681
4776
  <line num="160" count="0" type="stmt"/>
4682
- <line num="162" count="9" type="cond" truecount="3" falsecount="1"/>
4777
+ <line num="162" count="17" type="cond" truecount="3" falsecount="1"/>
4683
4778
  </file>
4684
4779
  <file name="scriptRunner.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/scriptRunner.js">
4685
4780
  <metrics statements="13" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
@@ -4825,7 +4920,7 @@
4825
4920
  <line num="73" count="8" type="stmt"/>
4826
4921
  <line num="74" count="8" type="stmt"/>
4827
4922
  <line num="83" count="0" type="stmt"/>
4828
- <line num="90" count="186" type="stmt"/>
4923
+ <line num="90" count="189" type="stmt"/>
4829
4924
  <line num="97" count="0" type="stmt"/>
4830
4925
  <line num="101" count="33" type="stmt"/>
4831
4926
  </file>
@@ -4846,9 +4941,9 @@
4846
4941
  </file>
4847
4942
  </package>
4848
4943
  <package name="utilities.rowProcessor">
4849
- <metrics statements="95" coveredstatements="74" conditionals="76" coveredconditionals="46" methods="12" coveredmethods="10"/>
4944
+ <metrics statements="100" coveredstatements="74" conditionals="78" coveredconditionals="46" methods="13" coveredmethods="10"/>
4850
4945
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/rowProcessor/index.js">
4851
- <metrics statements="84" coveredstatements="64" conditionals="70" coveredconditionals="41" methods="10" coveredmethods="9"/>
4946
+ <metrics statements="89" coveredstatements="64" conditionals="72" coveredconditionals="41" methods="11" coveredmethods="9"/>
4852
4947
  <line num="1" count="34" type="stmt"/>
4853
4948
  <line num="2" count="34" type="stmt"/>
4854
4949
  <line num="3" count="34" type="stmt"/>
@@ -4866,73 +4961,78 @@
4866
4961
  <line num="64" count="1" type="stmt"/>
4867
4962
  <line num="66" count="1" type="stmt"/>
4868
4963
  <line num="82" count="0" type="stmt"/>
4869
- <line num="102" count="73" type="cond" truecount="2" falsecount="0"/>
4870
- <line num="103" count="73" type="stmt"/>
4871
- <line num="105" count="73" type="stmt"/>
4872
- <line num="106" count="73" type="stmt"/>
4873
- <line num="107" count="206" type="cond" truecount="1" falsecount="1"/>
4874
- <line num="108" count="206" type="stmt"/>
4875
- <line num="110" count="0" type="cond" truecount="0" falsecount="5"/>
4876
- <line num="112" count="0" type="cond" truecount="0" falsecount="2"/>
4877
- <line num="118" count="0" type="stmt"/>
4878
- <line num="120" count="0" type="stmt"/>
4879
- <line num="122" count="0" type="cond" truecount="0" falsecount="2"/>
4880
- <line num="123" count="0" type="stmt"/>
4881
- <line num="125" count="0" type="stmt"/>
4882
- <line num="127" count="0" type="cond" truecount="0" falsecount="5"/>
4883
- <line num="128" count="0" type="stmt"/>
4964
+ <line num="86" count="0" type="stmt"/>
4965
+ <line num="87" count="0" type="cond" truecount="0" falsecount="2"/>
4966
+ <line num="88" count="0" type="stmt"/>
4967
+ <line num="90" count="0" type="stmt"/>
4968
+ <line num="92" count="0" type="stmt"/>
4969
+ <line num="114" count="73" type="cond" truecount="2" falsecount="0"/>
4970
+ <line num="115" count="73" type="stmt"/>
4971
+ <line num="117" count="73" type="stmt"/>
4972
+ <line num="118" count="73" type="stmt"/>
4973
+ <line num="119" count="206" type="cond" truecount="1" falsecount="1"/>
4974
+ <line num="120" count="206" type="stmt"/>
4975
+ <line num="122" count="0" type="cond" truecount="0" falsecount="5"/>
4976
+ <line num="124" count="0" type="cond" truecount="0" falsecount="2"/>
4884
4977
  <line num="130" count="0" type="stmt"/>
4885
4978
  <line num="132" count="0" type="stmt"/>
4886
- <line num="133" count="0" type="stmt"/>
4887
- <line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
4888
- <line num="136" count="0" type="cond" truecount="0" falsecount="2"/>
4979
+ <line num="134" count="0" type="cond" truecount="0" falsecount="2"/>
4980
+ <line num="135" count="0" type="stmt"/>
4889
4981
  <line num="137" count="0" type="stmt"/>
4890
- <line num="139" count="0" type="stmt"/>
4891
- <line num="142" count="73" type="stmt"/>
4892
- <line num="144" count="34" type="stmt"/>
4893
- <line num="152" count="34" type="stmt"/>
4894
- <line num="154" count="174" type="cond" truecount="1" falsecount="1"/>
4895
- <line num="155" count="0" type="stmt"/>
4896
- <line num="158" count="174" type="cond" truecount="2" falsecount="0"/>
4897
- <line num="159" count="16" type="stmt"/>
4898
- <line num="160" count="158" type="cond" truecount="2" falsecount="0"/>
4899
- <line num="161" count="22" type="stmt"/>
4900
- <line num="164" count="136" type="stmt"/>
4901
- <line num="176" count="34" type="stmt"/>
4902
- <line num="182" count="73" type="stmt"/>
4903
- <line num="184" count="73" type="stmt"/>
4904
- <line num="185" count="73" type="stmt"/>
4905
- <line num="186" count="73" type="stmt"/>
4906
- <line num="187" count="332" type="stmt"/>
4907
- <line num="189" count="332" type="cond" truecount="2" falsecount="0"/>
4908
- <line num="190" count="159" type="cond" truecount="2" falsecount="0"/>
4909
- <line num="191" count="3" type="stmt"/>
4910
- <line num="193" count="159" type="stmt"/>
4911
- <line num="197" count="173" type="cond" truecount="1" falsecount="1"/>
4912
- <line num="198" count="0" type="stmt"/>
4913
- <line num="200" count="173" type="stmt"/>
4914
- <line num="204" count="73" type="cond" truecount="4" falsecount="0"/>
4915
- <line num="205" count="68" type="stmt"/>
4916
- <line num="206" count="68" type="stmt"/>
4917
- <line num="210" count="73" type="stmt"/>
4918
- <line num="223" count="34" type="stmt"/>
4919
- <line num="229" count="100" type="stmt"/>
4920
- <line num="230" count="100" type="stmt"/>
4921
- <line num="231" count="100" type="cond" truecount="2" falsecount="0"/>
4922
- <line num="232" count="87" type="stmt"/>
4923
- <line num="233" count="87" type="stmt"/>
4924
- <line num="236" count="100" type="stmt"/>
4925
- <line num="239" count="100" type="stmt"/>
4982
+ <line num="139" count="0" type="cond" truecount="0" falsecount="5"/>
4983
+ <line num="140" count="0" type="stmt"/>
4984
+ <line num="142" count="0" type="stmt"/>
4985
+ <line num="144" count="0" type="stmt"/>
4986
+ <line num="145" count="0" type="stmt"/>
4987
+ <line num="147" count="0" type="cond" truecount="0" falsecount="2"/>
4988
+ <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
4989
+ <line num="149" count="0" type="stmt"/>
4990
+ <line num="151" count="0" type="stmt"/>
4991
+ <line num="154" count="73" type="stmt"/>
4992
+ <line num="156" count="34" type="stmt"/>
4993
+ <line num="164" count="34" type="stmt"/>
4994
+ <line num="166" count="174" type="cond" truecount="1" falsecount="1"/>
4995
+ <line num="167" count="0" type="stmt"/>
4996
+ <line num="170" count="174" type="cond" truecount="2" falsecount="0"/>
4997
+ <line num="171" count="16" type="stmt"/>
4998
+ <line num="172" count="158" type="cond" truecount="2" falsecount="0"/>
4999
+ <line num="173" count="22" type="stmt"/>
5000
+ <line num="176" count="136" type="stmt"/>
5001
+ <line num="188" count="34" type="stmt"/>
5002
+ <line num="194" count="73" type="stmt"/>
5003
+ <line num="196" count="73" type="stmt"/>
5004
+ <line num="197" count="73" type="stmt"/>
5005
+ <line num="198" count="73" type="stmt"/>
5006
+ <line num="199" count="332" type="stmt"/>
5007
+ <line num="201" count="332" type="cond" truecount="2" falsecount="0"/>
5008
+ <line num="202" count="159" type="cond" truecount="2" falsecount="0"/>
5009
+ <line num="203" count="3" type="stmt"/>
5010
+ <line num="205" count="159" type="stmt"/>
5011
+ <line num="209" count="173" type="cond" truecount="1" falsecount="1"/>
5012
+ <line num="210" count="0" type="stmt"/>
5013
+ <line num="212" count="173" type="stmt"/>
5014
+ <line num="216" count="73" type="cond" truecount="4" falsecount="0"/>
5015
+ <line num="217" count="68" type="stmt"/>
5016
+ <line num="218" count="68" type="stmt"/>
5017
+ <line num="222" count="73" type="stmt"/>
5018
+ <line num="235" count="34" type="stmt"/>
5019
+ <line num="241" count="100" type="stmt"/>
4926
5020
  <line num="242" count="100" type="stmt"/>
4927
- <line num="243" count="296" type="cond" truecount="2" falsecount="0"/>
4928
- <line num="244" count="8" type="stmt"/>
4929
- <line num="245" count="8" type="cond" truecount="4" falsecount="0"/>
4930
- <line num="246" count="6" type="stmt"/>
4931
- <line num="248" count="2" type="stmt"/>
4932
- <line num="249" count="2" type="stmt"/>
4933
- <line num="254" count="100" type="cond" truecount="2" falsecount="0"/>
4934
- <line num="255" count="26" type="stmt"/>
4935
- <line num="261" count="100" type="cond" truecount="2" falsecount="0"/>
5021
+ <line num="243" count="100" type="cond" truecount="2" falsecount="0"/>
5022
+ <line num="244" count="87" type="stmt"/>
5023
+ <line num="245" count="87" type="stmt"/>
5024
+ <line num="248" count="100" type="stmt"/>
5025
+ <line num="251" count="100" type="stmt"/>
5026
+ <line num="254" count="100" type="stmt"/>
5027
+ <line num="255" count="296" type="cond" truecount="2" falsecount="0"/>
5028
+ <line num="256" count="8" type="stmt"/>
5029
+ <line num="257" count="8" type="cond" truecount="4" falsecount="0"/>
5030
+ <line num="258" count="6" type="stmt"/>
5031
+ <line num="260" count="2" type="stmt"/>
5032
+ <line num="261" count="2" type="stmt"/>
5033
+ <line num="266" count="100" type="cond" truecount="2" falsecount="0"/>
5034
+ <line num="267" count="26" type="stmt"/>
5035
+ <line num="273" count="100" type="cond" truecount="2" falsecount="0"/>
4936
5036
  </file>
4937
5037
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/rowProcessor/utils.js">
4938
5038
  <metrics statements="11" coveredstatements="10" conditionals="6" coveredconditionals="5" methods="2" coveredmethods="1"/>