@budibase/server 1.0.212-alpha.12 → 1.0.212-alpha.13

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 (187) hide show
  1. package/builder/assets/{index.a895b27f.js → index.8653aa05.js} +164 -165
  2. package/builder/assets/{index.969c2236.css → index.92958011.css} +2 -2
  3. package/builder/assets/{vendor.9bf2fcb4.js → vendor.b4361801.js} +163 -163
  4. package/builder/index.html +3 -3
  5. package/coverage/clover.xml +414 -394
  6. package/coverage/coverage-final.json +8 -8
  7. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/automation.js.html +111 -12
  10. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/index.html +19 -19
  16. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/migrations.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/index.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  45. package/coverage/lcov-report/api/index.html +15 -15
  46. package/coverage/lcov-report/api/index.js.html +18 -9
  47. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/automation.js.html +32 -2
  51. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/index.html +1 -1
  58. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/migrations.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/utils/index.html +1 -1
  72. package/coverage/lcov-report/api/routes/utils/validators.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  75. package/coverage/lcov-report/automations/actions.js.html +1 -1
  76. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  77. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  78. package/coverage/lcov-report/automations/index.html +1 -1
  79. package/coverage/lcov-report/automations/index.js.html +1 -1
  80. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/filter.js.html +58 -34
  86. package/coverage/lcov-report/automations/steps/index.html +11 -11
  87. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/loop.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  97. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  98. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  99. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  106. package/coverage/lcov-report/constants/index.html +1 -1
  107. package/coverage/lcov-report/constants/index.js.html +1 -1
  108. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  109. package/coverage/lcov-report/constants/screens.js.html +1 -1
  110. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  111. package/coverage/lcov-report/db/index.html +14 -14
  112. package/coverage/lcov-report/db/index.js.html +1 -1
  113. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  114. package/coverage/lcov-report/db/linkedRows/index.html +13 -13
  115. package/coverage/lcov-report/db/linkedRows/index.js.html +10 -7
  116. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  117. package/coverage/lcov-report/db/newid.js.html +1 -1
  118. package/coverage/lcov-report/db/utils.js.html +14 -41
  119. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  120. package/coverage/lcov-report/events/index.html +1 -1
  121. package/coverage/lcov-report/events/index.js.html +1 -1
  122. package/coverage/lcov-report/events/utils.js.html +1 -1
  123. package/coverage/lcov-report/index.html +52 -52
  124. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  125. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  126. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  127. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  128. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  129. package/coverage/lcov-report/middleware/index.html +1 -1
  130. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  131. package/coverage/lcov-report/middleware/publicApi.js.html +1 -1
  132. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  133. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  134. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  135. package/coverage/lcov-report/threads/automation.js.html +17 -8
  136. package/coverage/lcov-report/threads/index.html +11 -11
  137. package/coverage/lcov-report/threads/query.js.html +1 -1
  138. package/coverage/lcov-report/threads/utils.js.html +1 -1
  139. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  140. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  141. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  142. package/coverage/lcov-report/utilities/global.js.html +1 -1
  143. package/coverage/lcov-report/utilities/index.html +1 -1
  144. package/coverage/lcov-report/utilities/index.js.html +1 -1
  145. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  146. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  147. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  148. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  149. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  150. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  151. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  152. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  153. package/coverage/lcov-report/utilities/security.js.html +2 -2
  154. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  155. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  156. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  157. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  158. package/coverage/lcov-report/utilities/users.js.html +1 -1
  159. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  160. package/coverage/lcov.info +721 -687
  161. package/dist/api/controllers/application.js +2 -1
  162. package/dist/api/controllers/automation.js +28 -2
  163. package/dist/api/index.js +4 -1
  164. package/dist/api/routes/automation.js +2 -0
  165. package/dist/automations/logging/index.js +70 -0
  166. package/dist/automations/steps/filter.js +38 -29
  167. package/dist/db/linkedRows/index.js +1 -0
  168. package/dist/db/utils.js +3 -31
  169. package/dist/environment.js +1 -0
  170. package/dist/package.json +6 -6
  171. package/dist/threads/automation.js +5 -2
  172. package/dist/threads/index.js +15 -1
  173. package/dist/tsconfig.build.tsbuildinfo +1 -1
  174. package/package.json +7 -7
  175. package/src/api/controllers/application.ts +2 -1
  176. package/src/api/controllers/automation.js +35 -2
  177. package/src/api/index.js +4 -1
  178. package/src/api/routes/automation.js +10 -0
  179. package/src/automations/logging/index.ts +35 -0
  180. package/src/automations/steps/filter.js +36 -28
  181. package/src/automations/tests/filter.spec.js +2 -1
  182. package/src/db/linkedRows/index.js +1 -0
  183. package/src/db/utils.js +4 -13
  184. package/src/environment.js +1 -0
  185. package/src/module.d.ts +1 -0
  186. package/src/threads/automation.js +5 -2
  187. package/src/threads/index.ts +5 -1
@@ -1,11 +1,11 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1656933737641" clover="3.2.0">
3
- <project timestamp="1656933737641" name="All files">
4
- <metrics statements="4336" coveredstatements="3131" conditionals="1805" coveredconditionals="952" methods="627" coveredmethods="446" elements="6768" coveredelements="4529" complexity="0" loc="4336" ncloc="4336" packages="23" files="129" classes="129"/>
2
+ <coverage generated="1656953790626" clover="3.2.0">
3
+ <project timestamp="1656953790626" name="All files">
4
+ <metrics statements="4356" coveredstatements="3137" conditionals="1813" coveredconditionals="953" methods="630" coveredmethods="446" elements="6799" coveredelements="4536" complexity="0" loc="4356" ncloc="4356" packages="23" files="129" classes="129"/>
5
5
  <package name="api">
6
- <metrics statements="34" coveredstatements="34" conditionals="3" coveredconditionals="1" methods="4" coveredmethods="4"/>
6
+ <metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
8
- <metrics statements="34" coveredstatements="34" conditionals="3" coveredconditionals="1" methods="4" coveredmethods="4"/>
8
+ <metrics statements="35" coveredstatements="34" conditionals="5" coveredconditionals="2" methods="4" coveredmethods="4"/>
9
9
  <line num="1" count="27" type="stmt"/>
10
10
  <line num="6" count="27" type="stmt"/>
11
11
  <line num="7" count="27" type="stmt"/>
@@ -30,20 +30,21 @@
30
30
  <line num="67" count="39" type="stmt"/>
31
31
  <line num="68" count="39" type="stmt"/>
32
32
  <line num="74" count="39" type="stmt"/>
33
- <line num="75" count="39" type="stmt"/>
34
- <line num="80" count="27" type="stmt"/>
35
- <line num="81" count="702" type="stmt"/>
36
- <line num="82" count="702" type="stmt"/>
37
- <line num="85" count="27" type="stmt"/>
38
- <line num="86" count="27" type="stmt"/>
33
+ <line num="76" count="39" type="cond" truecount="1" falsecount="1"/>
34
+ <line num="77" count="0" type="stmt"/>
35
+ <line num="83" count="27" type="stmt"/>
36
+ <line num="84" count="702" type="stmt"/>
37
+ <line num="85" count="702" type="stmt"/>
38
+ <line num="88" count="27" type="stmt"/>
39
39
  <line num="89" count="27" type="stmt"/>
40
- <line num="90" count="27" type="stmt"/>
41
40
  <line num="92" count="27" type="stmt"/>
42
41
  <line num="93" count="27" type="stmt"/>
42
+ <line num="95" count="27" type="stmt"/>
43
+ <line num="96" count="27" type="stmt"/>
43
44
  </file>
44
45
  </package>
45
46
  <package name="api.controllers">
46
- <metrics statements="975" coveredstatements="695" conditionals="290" coveredconditionals="136" methods="138" coveredmethods="94"/>
47
+ <metrics statements="991" coveredstatements="699" conditionals="296" coveredconditionals="136" methods="141" coveredmethods="94"/>
47
48
  <file name="apikeys.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/apikeys.js">
48
49
  <metrics statements="24" coveredstatements="24" conditionals="4" coveredconditionals="2" methods="4" coveredmethods="4"/>
49
50
  <line num="1" count="27" type="stmt"/>
@@ -103,122 +104,138 @@
103
104
  <line num="56" count="0" type="stmt"/>
104
105
  </file>
105
106
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/automation.js">
106
- <metrics statements="115" coveredstatements="106" conditionals="34" coveredconditionals="25" methods="21" coveredmethods="20"/>
107
+ <metrics statements="131" coveredstatements="110" conditionals="40" coveredconditionals="25" methods="24" coveredmethods="20"/>
107
108
  <line num="1" count="43" type="stmt"/>
108
109
  <line num="2" count="43" type="stmt"/>
109
- <line num="3" count="43" type="stmt"/>
110
- <line num="8" count="43" type="stmt"/>
111
- <line num="9" count="43" type="stmt"/>
112
- <line num="10" count="43" type="stmt"/>
113
- <line num="11" count="43" type="stmt"/>
110
+ <line num="7" count="43" type="stmt"/>
114
111
  <line num="12" count="43" type="stmt"/>
115
112
  <line num="13" count="43" type="stmt"/>
113
+ <line num="14" count="43" type="stmt"/>
116
114
  <line num="15" count="43" type="stmt"/>
117
- <line num="16" count="43" type="stmt"/>
118
- <line num="25" count="1" type="stmt"/>
119
- <line num="26" count="1" type="stmt"/>
120
- <line num="33" count="33" type="cond" truecount="1" falsecount="1"/>
121
- <line num="34" count="0" type="stmt"/>
122
- <line num="36" count="33" type="stmt"/>
123
- <line num="37" count="33" type="stmt"/>
124
- <line num="38" count="33" type="stmt"/>
125
- <line num="40" count="33" type="cond" truecount="2" falsecount="0"/>
126
- <line num="41" count="27" type="stmt"/>
127
- <line num="43" count="33" type="stmt"/>
128
- <line num="44" count="52" type="cond" truecount="1" falsecount="1"/>
129
- <line num="45" count="0" type="stmt"/>
130
- <line num="47" count="52" type="stmt"/>
131
- <line num="48" count="13" type="cond" truecount="3" falsecount="1"/>
132
- <line num="49" count="0" type="stmt"/>
115
+ <line num="20" count="43" type="stmt"/>
116
+ <line num="21" count="43" type="stmt"/>
117
+ <line num="22" count="43" type="stmt"/>
118
+ <line num="23" count="43" type="stmt"/>
119
+ <line num="25" count="43" type="stmt"/>
120
+ <line num="26" count="43" type="stmt"/>
121
+ <line num="35" count="1" type="stmt"/>
122
+ <line num="36" count="1" type="stmt"/>
123
+ <line num="43" count="33" type="cond" truecount="1" falsecount="1"/>
124
+ <line num="44" count="0" type="stmt"/>
125
+ <line num="46" count="33" type="stmt"/>
126
+ <line num="47" count="33" type="stmt"/>
127
+ <line num="48" count="33" type="stmt"/>
128
+ <line num="50" count="33" type="cond" truecount="2" falsecount="0"/>
129
+ <line num="51" count="27" type="stmt"/>
133
130
  <line num="53" count="33" type="stmt"/>
134
- <line num="56" count="43" type="stmt"/>
135
- <line num="57" count="28" type="stmt"/>
136
- <line num="58" count="28" type="stmt"/>
137
- <line num="59" count="28" type="stmt"/>
138
- <line num="62" count="28" type="cond" truecount="4" falsecount="0"/>
139
- <line num="63" count="1" type="stmt"/>
140
- <line num="66" count="27" type="stmt"/>
141
- <line num="68" count="27" type="stmt"/>
142
- <line num="69" count="27" type="stmt"/>
143
- <line num="70" count="27" type="stmt"/>
144
- <line num="73" count="27" type="stmt"/>
145
- <line num="74" count="27" type="stmt"/>
146
- <line num="75" count="27" type="stmt"/>
147
- <line num="76" count="11" type="stmt"/>
131
+ <line num="54" count="52" type="cond" truecount="1" falsecount="1"/>
132
+ <line num="55" count="0" type="stmt"/>
133
+ <line num="57" count="52" type="stmt"/>
134
+ <line num="58" count="13" type="cond" truecount="3" falsecount="1"/>
135
+ <line num="59" count="0" type="stmt"/>
136
+ <line num="63" count="33" type="stmt"/>
137
+ <line num="66" count="43" type="stmt"/>
138
+ <line num="67" count="28" type="stmt"/>
139
+ <line num="68" count="28" type="stmt"/>
140
+ <line num="69" count="28" type="stmt"/>
141
+ <line num="72" count="28" type="cond" truecount="4" falsecount="0"/>
142
+ <line num="73" count="1" type="stmt"/>
143
+ <line num="76" count="27" type="stmt"/>
148
144
  <line num="78" count="27" type="stmt"/>
145
+ <line num="79" count="27" type="stmt"/>
149
146
  <line num="80" count="27" type="stmt"/>
150
- <line num="81" count="27" type="stmt"/>
151
- <line num="90" count="43" type="stmt"/>
152
- <line num="91" count="7" type="stmt"/>
153
- <line num="92" count="8" type="stmt"/>
154
- <line num="95" count="43" type="stmt"/>
155
- <line num="96" count="8" type="stmt"/>
156
- <line num="97" count="7" type="stmt"/>
147
+ <line num="83" count="27" type="stmt"/>
148
+ <line num="84" count="27" type="stmt"/>
149
+ <line num="85" count="27" type="stmt"/>
150
+ <line num="86" count="11" type="stmt"/>
151
+ <line num="88" count="27" type="stmt"/>
152
+ <line num="90" count="27" type="stmt"/>
153
+ <line num="91" count="27" type="stmt"/>
157
154
  <line num="100" count="43" type="stmt"/>
158
- <line num="102" count="6" type="stmt"/>
159
- <line num="103" count="6" type="stmt"/>
160
- <line num="104" count="4" type="stmt"/>
161
- <line num="108" count="6" type="stmt"/>
162
- <line num="109" count="6" type="stmt"/>
163
- <line num="110" count="3" type="stmt"/>
164
- <line num="114" count="43" type="stmt"/>
165
- <line num="115" count="6" type="stmt"/>
166
- <line num="116" count="6" type="stmt"/>
167
- <line num="117" count="6" type="stmt"/>
155
+ <line num="101" count="7" type="stmt"/>
156
+ <line num="102" count="8" type="stmt"/>
157
+ <line num="105" count="43" type="stmt"/>
158
+ <line num="106" count="8" type="stmt"/>
159
+ <line num="107" count="7" type="stmt"/>
160
+ <line num="110" count="43" type="stmt"/>
161
+ <line num="112" count="6" type="stmt"/>
162
+ <line num="113" count="6" type="stmt"/>
163
+ <line num="114" count="4" type="stmt"/>
168
164
  <line num="118" count="6" type="stmt"/>
169
165
  <line num="119" count="6" type="stmt"/>
170
- <line num="120" count="6" type="stmt"/>
171
- <line num="124" count="6" type="stmt"/>
166
+ <line num="120" count="3" type="stmt"/>
167
+ <line num="124" count="43" type="stmt"/>
172
168
  <line num="125" count="6" type="stmt"/>
173
- <line num="128" count="6" type="cond" truecount="3" falsecount="1"/>
174
- <line num="132" count="6" type="cond" truecount="3" falsecount="1"/>
175
- <line num="136" count="6" type="cond" truecount="4" falsecount="0"/>
176
- <line num="137" count="1" type="stmt"/>
177
- <line num="138" count="1" type="stmt"/>
178
- <line num="145" count="6" type="stmt"/>
179
- <line num="147" count="6" type="stmt"/>
180
- <line num="148" count="6" type="stmt"/>
181
- <line num="158" count="43" type="stmt"/>
182
- <line num="159" count="2" type="stmt"/>
183
- <line num="160" count="2" type="stmt"/>
184
- <line num="165" count="2" type="stmt"/>
169
+ <line num="126" count="6" type="stmt"/>
170
+ <line num="127" count="6" type="stmt"/>
171
+ <line num="128" count="6" type="stmt"/>
172
+ <line num="129" count="6" type="stmt"/>
173
+ <line num="130" count="6" type="stmt"/>
174
+ <line num="134" count="6" type="stmt"/>
175
+ <line num="135" count="6" type="stmt"/>
176
+ <line num="138" count="6" type="cond" truecount="3" falsecount="1"/>
177
+ <line num="142" count="6" type="cond" truecount="3" falsecount="1"/>
178
+ <line num="146" count="6" type="cond" truecount="4" falsecount="0"/>
179
+ <line num="147" count="1" type="stmt"/>
180
+ <line num="148" count="1" type="stmt"/>
181
+ <line num="155" count="6" type="stmt"/>
182
+ <line num="157" count="6" type="stmt"/>
183
+ <line num="158" count="6" type="stmt"/>
185
184
  <line num="168" count="43" type="stmt"/>
186
- <line num="169" count="1" type="stmt"/>
187
- <line num="170" count="1" type="stmt"/>
188
- <line num="173" count="43" type="stmt"/>
189
- <line num="174" count="1" type="stmt"/>
190
- <line num="175" count="1" type="stmt"/>
191
- <line num="176" count="1" type="stmt"/>
192
- <line num="177" count="1" type="stmt"/>
193
- <line num="181" count="1" type="stmt"/>
194
- <line num="182" count="1" type="stmt"/>
195
- <line num="183" count="1" type="stmt"/>
196
- <line num="186" count="43" type="stmt"/>
185
+ <line num="169" count="2" type="stmt"/>
186
+ <line num="170" count="2" type="stmt"/>
187
+ <line num="175" count="2" type="stmt"/>
188
+ <line num="178" count="43" type="stmt"/>
189
+ <line num="179" count="1" type="stmt"/>
190
+ <line num="180" count="1" type="stmt"/>
191
+ <line num="183" count="43" type="stmt"/>
192
+ <line num="184" count="1" type="stmt"/>
193
+ <line num="185" count="1" type="stmt"/>
194
+ <line num="186" count="1" type="stmt"/>
197
195
  <line num="187" count="1" type="stmt"/>
198
- <line num="190" count="43" type="stmt"/>
199
196
  <line num="191" count="1" type="stmt"/>
200
- <line num="194" count="43" type="stmt"/>
201
- <line num="195" count="1" type="stmt"/>
202
- <line num="207" count="43" type="stmt"/>
203
- <line num="208" count="0" type="stmt"/>
204
- <line num="209" count="0" type="stmt"/>
205
- <line num="210" count="0" type="stmt"/>
197
+ <line num="192" count="1" type="stmt"/>
198
+ <line num="193" count="1" type="stmt"/>
199
+ <line num="196" count="43" type="stmt"/>
200
+ <line num="197" count="0" type="stmt"/>
201
+ <line num="200" count="43" type="stmt"/>
202
+ <line num="201" count="0" type="stmt"/>
203
+ <line num="202" count="0" type="stmt"/>
204
+ <line num="203" count="0" type="stmt"/>
205
+ <line num="204" count="0" type="stmt"/>
206
+ <line num="205" count="0" type="cond" truecount="0" falsecount="2"/>
207
+ <line num="206" count="0" type="stmt"/>
208
+ <line num="207" count="0" type="cond" truecount="0" falsecount="2"/>
209
+ <line num="211" count="0" type="stmt"/>
210
+ <line num="213" count="0" type="stmt"/>
206
211
  <line num="214" count="0" type="stmt"/>
207
- <line num="222" count="2" type="cond" truecount="2" falsecount="2"/>
208
- <line num="223" count="0" type="stmt"/>
209
- <line num="225" count="2" type="cond" truecount="2" falsecount="2"/>
210
- <line num="226" count="0" type="stmt"/>
211
- <line num="228" count="2" type="stmt"/>
212
- <line num="231" count="43" type="stmt"/>
213
- <line num="232" count="2" type="stmt"/>
214
- <line num="233" count="2" type="stmt"/>
215
- <line num="234" count="2" type="stmt"/>
216
- <line num="235" count="2" type="stmt"/>
217
- <line num="236" count="2" type="stmt"/>
218
- <line num="245" count="2" type="stmt"/>
219
- <line num="249" count="2" type="stmt"/>
220
- <line num="250" count="2" type="stmt"/>
221
- <line num="251" count="2" type="stmt"/>
212
+ <line num="215" count="0" type="stmt"/>
213
+ <line num="219" count="43" type="stmt"/>
214
+ <line num="220" count="1" type="stmt"/>
215
+ <line num="223" count="43" type="stmt"/>
216
+ <line num="224" count="1" type="stmt"/>
217
+ <line num="227" count="43" type="stmt"/>
218
+ <line num="228" count="1" type="stmt"/>
219
+ <line num="240" count="43" type="stmt"/>
220
+ <line num="241" count="0" type="stmt"/>
221
+ <line num="242" count="0" type="stmt"/>
222
+ <line num="243" count="0" type="stmt"/>
223
+ <line num="247" count="0" type="stmt"/>
224
+ <line num="255" count="2" type="cond" truecount="2" falsecount="2"/>
225
+ <line num="256" count="0" type="stmt"/>
226
+ <line num="258" count="2" type="cond" truecount="2" falsecount="2"/>
227
+ <line num="259" count="0" type="stmt"/>
228
+ <line num="261" count="2" type="stmt"/>
229
+ <line num="264" count="43" type="stmt"/>
230
+ <line num="265" count="2" type="stmt"/>
231
+ <line num="266" count="2" type="stmt"/>
232
+ <line num="267" count="2" type="stmt"/>
233
+ <line num="268" count="2" type="stmt"/>
234
+ <line num="269" count="2" type="stmt"/>
235
+ <line num="278" count="2" type="stmt"/>
236
+ <line num="282" count="2" type="stmt"/>
237
+ <line num="283" count="2" type="stmt"/>
238
+ <line num="284" count="2" type="stmt"/>
222
239
  </file>
223
240
  <file name="backup.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/backup.js">
224
241
  <metrics statements="14" coveredstatements="14" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
@@ -2304,7 +2321,7 @@
2304
2321
  <line num="14" count="27" type="stmt"/>
2305
2322
  <line num="16" count="27" type="stmt"/>
2306
2323
  <line num="18" count="27" type="stmt"/>
2307
- <line num="75" count="27" type="stmt"/>
2324
+ <line num="85" count="27" type="stmt"/>
2308
2325
  </file>
2309
2326
  <file name="backup.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/backup.js">
2310
2327
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -2762,7 +2779,7 @@
2762
2779
  </file>
2763
2780
  </package>
2764
2781
  <package name="automations.steps">
2765
- <metrics statements="212" coveredstatements="148" conditionals="82" coveredconditionals="52" methods="18" coveredmethods="9"/>
2782
+ <metrics statements="214" coveredstatements="149" conditionals="82" coveredconditionals="52" methods="18" coveredmethods="9"/>
2766
2783
  <file name="bash.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/bash.js">
2767
2784
  <metrics statements="17" coveredstatements="6" conditionals="4" coveredconditionals="0" methods="1" coveredmethods="0"/>
2768
2785
  <line num="1" count="44" type="stmt"/>
@@ -2841,33 +2858,35 @@
2841
2858
  <line num="65" count="0" type="stmt"/>
2842
2859
  </file>
2843
2860
  <file name="filter.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/filter.js">
2844
- <metrics statements="26" coveredstatements="26" conditionals="16" coveredconditionals="16" methods="1" coveredmethods="1"/>
2861
+ <metrics statements="28" coveredstatements="27" conditionals="16" coveredconditionals="16" methods="1" coveredmethods="1"/>
2845
2862
  <line num="1" count="44" type="stmt"/>
2846
2863
  <line num="8" count="44" type="stmt"/>
2847
2864
  <line num="15" count="44" type="stmt"/>
2848
2865
  <line num="16" count="44" type="stmt"/>
2849
2866
  <line num="18" count="44" type="stmt"/>
2850
- <line num="62" count="44" type="stmt"/>
2851
- <line num="63" count="11" type="stmt"/>
2852
- <line num="65" count="11" type="cond" truecount="4" falsecount="0"/>
2853
- <line num="66" count="6" type="stmt"/>
2854
- <line num="67" count="6" type="stmt"/>
2855
- <line num="68" count="5" type="cond" truecount="4" falsecount="0"/>
2856
- <line num="69" count="1" type="stmt"/>
2857
- <line num="70" count="1" type="stmt"/>
2858
- <line num="72" count="11" type="stmt"/>
2859
- <line num="73" count="11" type="cond" truecount="4" falsecount="0"/>
2860
- <line num="74" count="10" type="cond" truecount="4" falsecount="0"/>
2861
- <line num="76" count="2" type="stmt"/>
2862
- <line num="77" count="2" type="stmt"/>
2863
- <line num="79" count="2" type="stmt"/>
2864
- <line num="80" count="2" type="stmt"/>
2865
- <line num="82" count="4" type="stmt"/>
2866
- <line num="83" count="4" type="stmt"/>
2867
+ <line num="66" count="44" type="stmt"/>
2868
+ <line num="67" count="11" type="stmt"/>
2869
+ <line num="68" count="11" type="stmt"/>
2870
+ <line num="70" count="11" type="cond" truecount="4" falsecount="0"/>
2871
+ <line num="71" count="6" type="stmt"/>
2872
+ <line num="72" count="6" type="stmt"/>
2873
+ <line num="73" count="5" type="cond" truecount="4" falsecount="0"/>
2874
+ <line num="74" count="1" type="stmt"/>
2875
+ <line num="75" count="1" type="stmt"/>
2876
+ <line num="77" count="11" type="stmt"/>
2877
+ <line num="78" count="11" type="cond" truecount="4" falsecount="0"/>
2878
+ <line num="79" count="10" type="cond" truecount="4" falsecount="0"/>
2879
+ <line num="81" count="2" type="stmt"/>
2880
+ <line num="82" count="2" type="stmt"/>
2881
+ <line num="84" count="2" type="stmt"/>
2867
2882
  <line num="85" count="2" type="stmt"/>
2868
- <line num="86" count="2" type="stmt"/>
2869
- <line num="89" count="1" type="stmt"/>
2870
- <line num="91" count="11" type="stmt"/>
2883
+ <line num="87" count="4" type="stmt"/>
2884
+ <line num="88" count="4" type="stmt"/>
2885
+ <line num="90" count="2" type="stmt"/>
2886
+ <line num="91" count="2" type="stmt"/>
2887
+ <line num="94" count="1" type="stmt"/>
2888
+ <line num="96" count="11" type="stmt"/>
2889
+ <line num="98" count="0" type="stmt"/>
2871
2890
  </file>
2872
2891
  <file name="integromat.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/steps/integromat.js">
2873
2892
  <metrics statements="8" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
@@ -3110,7 +3129,7 @@
3110
3129
  </file>
3111
3130
  </package>
3112
3131
  <package name="db">
3113
- <metrics statements="141" coveredstatements="113" conditionals="58" coveredconditionals="19" methods="36" coveredmethods="27"/>
3132
+ <metrics statements="139" coveredstatements="111" conditionals="58" coveredconditionals="19" methods="35" coveredmethods="26"/>
3114
3133
  <file name="inMemoryView.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/inMemoryView.js">
3115
3134
  <metrics statements="23" coveredstatements="4" conditionals="8" coveredconditionals="0" methods="4" coveredmethods="0"/>
3116
3135
  <line num="1" count="44" type="stmt"/>
@@ -3155,17 +3174,23 @@
3155
3174
  <line num="4" count="923" type="stmt"/>
3156
3175
  </file>
3157
3176
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3158
- <metrics statements="107" coveredstatements="98" conditionals="48" coveredconditionals="18" methods="30" coveredmethods="25"/>
3177
+ <metrics statements="105" coveredstatements="96" conditionals="48" coveredconditionals="18" methods="29" coveredmethods="24"/>
3159
3178
  <line num="1" count="57" type="stmt"/>
3160
- <line num="14" count="57" type="stmt"/>
3161
3179
  <line num="16" count="57" type="stmt"/>
3162
3180
  <line num="18" count="57" type="stmt"/>
3163
- <line num="24" count="57" type="stmt"/>
3164
- <line num="48" count="57" type="stmt"/>
3165
- <line num="53" count="57" type="stmt"/>
3166
- <line num="57" count="57" type="stmt"/>
3167
- <line num="61" count="57" type="stmt"/>
3168
- <line num="63" count="57" type="stmt"/>
3181
+ <line num="20" count="57" type="stmt"/>
3182
+ <line num="26" count="57" type="stmt"/>
3183
+ <line num="46" count="57" type="stmt"/>
3184
+ <line num="50" count="57" type="stmt"/>
3185
+ <line num="54" count="57" type="stmt"/>
3186
+ <line num="56" count="57" type="stmt"/>
3187
+ <line num="64" count="57" type="stmt"/>
3188
+ <line num="65" count="57" type="stmt"/>
3189
+ <line num="66" count="57" type="stmt"/>
3190
+ <line num="67" count="57" type="stmt"/>
3191
+ <line num="68" count="57" type="stmt"/>
3192
+ <line num="69" count="57" type="stmt"/>
3193
+ <line num="70" count="57" type="stmt"/>
3169
3194
  <line num="71" count="57" type="stmt"/>
3170
3195
  <line num="72" count="57" type="stmt"/>
3171
3196
  <line num="73" count="57" type="stmt"/>
@@ -3176,97 +3201,89 @@
3176
3201
  <line num="78" count="57" type="stmt"/>
3177
3202
  <line num="79" count="57" type="stmt"/>
3178
3203
  <line num="80" count="57" type="stmt"/>
3179
- <line num="81" count="57" type="stmt"/>
3180
3204
  <line num="82" count="57" type="stmt"/>
3181
3205
  <line num="83" count="57" type="stmt"/>
3182
- <line num="84" count="57" type="stmt"/>
3183
3206
  <line num="85" count="57" type="stmt"/>
3184
- <line num="86" count="57" type="stmt"/>
3185
- <line num="87" count="57" type="stmt"/>
3186
- <line num="89" count="57" type="stmt"/>
3187
- <line num="90" count="57" type="stmt"/>
3188
- <line num="92" count="57" type="stmt"/>
3189
- <line num="93" count="74" type="stmt"/>
3190
- <line num="109" count="1077" type="cond" truecount="2" falsecount="0"/>
3191
- <line num="110" count="1060" type="stmt"/>
3192
- <line num="112" count="1077" type="stmt"/>
3193
- <line num="119" count="57" type="stmt"/>
3194
- <line num="124" count="57" type="cond" truecount="0" falsecount="2"/>
3195
- <line num="125" count="267" type="stmt"/>
3196
- <line num="132" count="57" type="stmt"/>
3197
- <line num="133" count="128" type="stmt"/>
3198
- <line num="144" count="57" type="cond" truecount="0" falsecount="3"/>
3199
- <line num="145" count="41" type="cond" truecount="2" falsecount="0"/>
3200
- <line num="146" count="27" type="stmt"/>
3201
- <line num="149" count="14" type="cond" truecount="1" falsecount="1"/>
3202
- <line num="151" count="14" type="stmt"/>
3203
- <line num="159" count="57" type="stmt"/>
3204
- <line num="160" count="0" type="stmt"/>
3205
- <line num="163" count="0" type="stmt"/>
3206
- <line num="172" count="57" type="cond" truecount="1" falsecount="0"/>
3207
- <line num="173" count="309" type="cond" truecount="2" falsecount="0"/>
3208
- <line num="174" count="309" type="stmt"/>
3209
- <line num="180" count="57" type="cond" truecount="0" falsecount="2"/>
3210
- <line num="181" count="3" type="stmt"/>
3211
- <line num="189" count="57" type="stmt"/>
3212
- <line num="190" count="231" type="stmt"/>
3213
- <line num="196" count="57" type="stmt"/>
3214
- <line num="197" count="3" type="stmt"/>
3215
- <line num="198" count="3" type="cond" truecount="4" falsecount="0"/>
3216
- <line num="199" count="1" type="stmt"/>
3217
- <line num="201" count="2" type="stmt"/>
3218
- <line num="207" count="57" type="cond" truecount="0" falsecount="2"/>
3219
- <line num="208" count="261" type="stmt"/>
3220
- <line num="215" count="57" type="stmt"/>
3221
- <line num="216" count="27" type="stmt"/>
3222
- <line num="230" count="57" type="stmt"/>
3223
- <line num="238" count="9" type="stmt"/>
3224
- <line num="239" count="9" type="stmt"/>
3225
- <line num="240" count="9" type="stmt"/>
3226
- <line num="241" count="9" type="stmt"/>
3227
- <line num="247" count="57" type="cond" truecount="0" falsecount="1"/>
3228
- <line num="248" count="0" type="stmt"/>
3229
- <line num="255" count="57" type="stmt"/>
3230
- <line num="256" count="6" type="cond" truecount="2" falsecount="0"/>
3231
- <line num="262" count="57" type="cond" truecount="0" falsecount="2"/>
3232
- <line num="263" count="247" type="stmt"/>
3233
- <line num="270" count="57" type="stmt"/>
3234
- <line num="271" count="23" type="stmt"/>
3235
- <line num="277" count="57" type="cond" truecount="0" falsecount="2"/>
3236
- <line num="278" count="249" type="stmt"/>
3237
- <line num="285" count="57" type="stmt"/>
3238
- <line num="286" count="10" type="stmt"/>
3239
- <line num="292" count="57" type="cond" truecount="0" falsecount="2"/>
3240
- <line num="293" count="2" type="stmt"/>
3241
- <line num="300" count="57" type="cond" truecount="1" falsecount="1"/>
3242
- <line num="301" count="52" type="stmt"/>
3243
- <line num="309" count="57" type="cond" truecount="0" falsecount="2"/>
3244
- <line num="310" count="5" type="stmt"/>
3245
- <line num="317" count="57" type="stmt"/>
3246
- <line num="318" count="135" type="stmt"/>
3247
- <line num="326" count="57" type="cond" truecount="0" falsecount="2"/>
3248
- <line num="327" count="5" type="cond" truecount="2" falsecount="0"/>
3249
- <line num="328" count="4" type="stmt"/>
3250
- <line num="331" count="1" type="stmt"/>
3251
- <line num="342" count="57" type="stmt"/>
3252
- <line num="343" count="0" type="stmt"/>
3253
- <line num="346" count="57" type="stmt"/>
3254
- <line num="347" count="10" type="stmt"/>
3255
- <line num="350" count="57" type="cond" truecount="0" falsecount="2"/>
3256
- <line num="351" count="0" type="stmt"/>
3257
- <line num="352" count="0" type="cond" truecount="0" falsecount="2"/>
3258
- <line num="353" count="0" type="stmt"/>
3259
- <line num="355" count="0" type="stmt"/>
3260
- <line num="358" count="57" type="stmt"/>
3261
- <line num="359" count="1" type="stmt"/>
3262
- <line num="362" count="57" type="cond" truecount="0" falsecount="1"/>
3263
- <line num="363" count="0" type="stmt"/>
3264
- <line num="369" count="57" type="stmt"/>
3265
- <line num="370" count="60" type="stmt"/>
3207
+ <line num="100" count="1077" type="cond" truecount="2" falsecount="0"/>
3208
+ <line num="101" count="1060" type="stmt"/>
3209
+ <line num="103" count="1077" type="stmt"/>
3210
+ <line num="110" count="57" type="stmt"/>
3211
+ <line num="115" count="57" type="cond" truecount="0" falsecount="2"/>
3212
+ <line num="116" count="267" type="stmt"/>
3213
+ <line num="123" count="57" type="stmt"/>
3214
+ <line num="124" count="128" type="stmt"/>
3215
+ <line num="135" count="57" type="cond" truecount="0" falsecount="3"/>
3216
+ <line num="136" count="41" type="cond" truecount="2" falsecount="0"/>
3217
+ <line num="137" count="27" type="stmt"/>
3218
+ <line num="140" count="14" type="cond" truecount="1" falsecount="1"/>
3219
+ <line num="142" count="14" type="stmt"/>
3220
+ <line num="150" count="57" type="stmt"/>
3221
+ <line num="151" count="0" type="stmt"/>
3222
+ <line num="154" count="0" type="stmt"/>
3223
+ <line num="163" count="57" type="cond" truecount="1" falsecount="0"/>
3224
+ <line num="164" count="309" type="cond" truecount="2" falsecount="0"/>
3225
+ <line num="165" count="309" type="stmt"/>
3226
+ <line num="171" count="57" type="cond" truecount="0" falsecount="2"/>
3227
+ <line num="172" count="3" type="stmt"/>
3228
+ <line num="180" count="57" type="stmt"/>
3229
+ <line num="181" count="231" type="stmt"/>
3230
+ <line num="187" count="57" type="stmt"/>
3231
+ <line num="188" count="3" type="stmt"/>
3232
+ <line num="189" count="3" type="cond" truecount="4" falsecount="0"/>
3233
+ <line num="190" count="1" type="stmt"/>
3234
+ <line num="192" count="2" type="stmt"/>
3235
+ <line num="198" count="57" type="cond" truecount="0" falsecount="2"/>
3236
+ <line num="199" count="261" type="stmt"/>
3237
+ <line num="206" count="57" type="stmt"/>
3238
+ <line num="207" count="27" type="stmt"/>
3239
+ <line num="221" count="57" type="stmt"/>
3240
+ <line num="229" count="9" type="stmt"/>
3241
+ <line num="230" count="9" type="stmt"/>
3242
+ <line num="231" count="9" type="stmt"/>
3243
+ <line num="232" count="9" type="stmt"/>
3244
+ <line num="238" count="57" type="cond" truecount="0" falsecount="1"/>
3245
+ <line num="239" count="0" type="stmt"/>
3246
+ <line num="246" count="57" type="stmt"/>
3247
+ <line num="247" count="6" type="cond" truecount="2" falsecount="0"/>
3248
+ <line num="253" count="57" type="cond" truecount="0" falsecount="2"/>
3249
+ <line num="254" count="247" type="stmt"/>
3250
+ <line num="261" count="57" type="stmt"/>
3251
+ <line num="262" count="23" type="stmt"/>
3252
+ <line num="268" count="57" type="cond" truecount="0" falsecount="2"/>
3253
+ <line num="269" count="249" type="stmt"/>
3254
+ <line num="276" count="57" type="stmt"/>
3255
+ <line num="277" count="10" type="stmt"/>
3256
+ <line num="283" count="57" type="cond" truecount="0" falsecount="2"/>
3257
+ <line num="284" count="2" type="stmt"/>
3258
+ <line num="291" count="57" type="cond" truecount="1" falsecount="1"/>
3259
+ <line num="292" count="52" type="stmt"/>
3260
+ <line num="300" count="57" type="cond" truecount="0" falsecount="2"/>
3261
+ <line num="301" count="5" type="stmt"/>
3262
+ <line num="308" count="57" type="stmt"/>
3263
+ <line num="309" count="135" type="stmt"/>
3264
+ <line num="317" count="57" type="cond" truecount="0" falsecount="2"/>
3265
+ <line num="318" count="5" type="cond" truecount="2" falsecount="0"/>
3266
+ <line num="319" count="4" type="stmt"/>
3267
+ <line num="322" count="1" type="stmt"/>
3268
+ <line num="333" count="57" type="stmt"/>
3269
+ <line num="334" count="0" type="stmt"/>
3270
+ <line num="337" count="57" type="stmt"/>
3271
+ <line num="338" count="10" type="stmt"/>
3272
+ <line num="341" count="57" type="cond" truecount="0" falsecount="2"/>
3273
+ <line num="342" count="0" type="stmt"/>
3274
+ <line num="343" count="0" type="cond" truecount="0" falsecount="2"/>
3275
+ <line num="344" count="0" type="stmt"/>
3276
+ <line num="346" count="0" type="stmt"/>
3277
+ <line num="349" count="57" type="stmt"/>
3278
+ <line num="350" count="1" type="stmt"/>
3279
+ <line num="353" count="57" type="cond" truecount="0" falsecount="1"/>
3280
+ <line num="354" count="0" type="stmt"/>
3281
+ <line num="360" count="57" type="stmt"/>
3282
+ <line num="361" count="60" type="stmt"/>
3266
3283
  </file>
3267
3284
  </package>
3268
3285
  <package name="db.linkedRows">
3269
- <metrics statements="296" coveredstatements="284" conditionals="134" coveredconditionals="113" methods="60" coveredmethods="57"/>
3286
+ <metrics statements="297" coveredstatements="285" conditionals="134" coveredconditionals="113" methods="61" coveredmethods="58"/>
3270
3287
  <file name="LinkController.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/LinkController.js">
3271
3288
  <metrics statements="151" coveredstatements="146" conditionals="68" coveredconditionals="60" methods="27" coveredmethods="24"/>
3272
3289
  <line num="1" count="44" type="stmt"/>
@@ -3422,7 +3439,7 @@
3422
3439
  <line num="465" count="44" type="stmt"/>
3423
3440
  </file>
3424
3441
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/index.js">
3425
- <metrics statements="91" coveredstatements="88" conditionals="40" coveredconditionals="33" methods="20" coveredmethods="20"/>
3442
+ <metrics statements="92" coveredstatements="89" conditionals="40" coveredconditionals="33" methods="21" coveredmethods="21"/>
3426
3443
  <line num="1" count="44" type="stmt"/>
3427
3444
  <line num="10" count="44" type="stmt"/>
3428
3445
  <line num="11" count="44" type="stmt"/>
@@ -3447,73 +3464,74 @@
3447
3464
  <line num="54" count="30" type="stmt"/>
3448
3465
  <line num="57" count="30" type="stmt"/>
3449
3466
  <line num="66" count="30" type="stmt"/>
3450
- <line num="69" count="25" type="stmt"/>
3451
- <line num="76" count="30" type="stmt"/>
3467
+ <line num="68" count="25" type="stmt"/>
3468
+ <line num="70" count="25" type="stmt"/>
3452
3469
  <line num="77" count="30" type="stmt"/>
3453
3470
  <line num="78" count="30" type="stmt"/>
3454
3471
  <line num="79" count="30" type="stmt"/>
3455
- <line num="80" count="18" type="stmt"/>
3456
- <line num="83" count="30" type="stmt"/>
3457
- <line num="84" count="18" type="cond" truecount="2" falsecount="0"/>
3458
- <line num="85" count="18" type="stmt"/>
3459
- <line num="87" count="30" type="stmt"/>
3460
- <line num="88" count="18" type="stmt"/>
3461
- <line num="90" count="30" type="stmt"/>
3472
+ <line num="80" count="30" type="stmt"/>
3473
+ <line num="81" count="18" type="stmt"/>
3474
+ <line num="84" count="30" type="stmt"/>
3475
+ <line num="85" count="18" type="cond" truecount="2" falsecount="0"/>
3476
+ <line num="86" count="18" type="stmt"/>
3477
+ <line num="88" count="30" type="stmt"/>
3478
+ <line num="89" count="18" type="stmt"/>
3462
3479
  <line num="91" count="30" type="stmt"/>
3463
- <line num="105" count="44" type="stmt"/>
3464
- <line num="106" count="217" type="stmt"/>
3465
- <line num="107" count="217" type="cond" truecount="2" falsecount="0"/>
3466
- <line num="109" count="217" type="cond" truecount="4" falsecount="0"/>
3467
- <line num="110" count="131" type="stmt"/>
3468
- <line num="112" count="217" type="stmt"/>
3480
+ <line num="92" count="30" type="stmt"/>
3481
+ <line num="106" count="44" type="stmt"/>
3482
+ <line num="107" count="217" type="stmt"/>
3483
+ <line num="108" count="217" type="cond" truecount="2" falsecount="0"/>
3484
+ <line num="110" count="217" type="cond" truecount="4" falsecount="0"/>
3485
+ <line num="111" count="131" type="stmt"/>
3469
3486
  <line num="113" count="217" type="stmt"/>
3470
- <line num="114" count="217" type="cond" truecount="2" falsecount="0"/>
3471
- <line num="119" count="176" type="stmt"/>
3472
- <line num="122" count="0" type="stmt"/>
3473
- <line num="124" count="41" type="cond" truecount="5" falsecount="2"/>
3474
- <line num="127" count="21" type="stmt"/>
3475
- <line num="129" count="0" type="stmt"/>
3476
- <line num="131" count="18" type="stmt"/>
3477
- <line num="133" count="1" type="stmt"/>
3478
- <line num="135" count="1" type="stmt"/>
3479
- <line num="137" count="0" type="stmt"/>
3480
- <line num="148" count="44" type="stmt"/>
3481
- <line num="149" count="119" type="stmt"/>
3482
- <line num="150" count="119" type="cond" truecount="2" falsecount="0"/>
3483
- <line num="151" count="89" type="stmt"/>
3484
- <line num="154" count="30" type="stmt"/>
3485
- <line num="155" count="25" type="stmt"/>
3486
- <line num="158" count="30" type="stmt"/>
3487
- <line num="160" count="30" type="stmt"/>
3487
+ <line num="114" count="217" type="stmt"/>
3488
+ <line num="115" count="217" type="cond" truecount="2" falsecount="0"/>
3489
+ <line num="120" count="176" type="stmt"/>
3490
+ <line num="123" count="0" type="stmt"/>
3491
+ <line num="125" count="41" type="cond" truecount="5" falsecount="2"/>
3492
+ <line num="128" count="21" type="stmt"/>
3493
+ <line num="130" count="0" type="stmt"/>
3494
+ <line num="132" count="18" type="stmt"/>
3495
+ <line num="134" count="1" type="stmt"/>
3496
+ <line num="136" count="1" type="stmt"/>
3497
+ <line num="138" count="0" type="stmt"/>
3498
+ <line num="149" count="44" type="stmt"/>
3499
+ <line num="150" count="119" type="stmt"/>
3500
+ <line num="151" count="119" type="cond" truecount="2" falsecount="0"/>
3501
+ <line num="152" count="89" type="stmt"/>
3502
+ <line num="155" count="30" type="stmt"/>
3503
+ <line num="156" count="25" type="stmt"/>
3504
+ <line num="159" count="30" type="stmt"/>
3488
3505
  <line num="161" count="30" type="stmt"/>
3489
3506
  <line num="162" count="30" type="stmt"/>
3490
3507
  <line num="163" count="30" type="stmt"/>
3491
- <line num="164" count="18" type="cond" truecount="1" falsecount="1"/>
3492
- <line num="165" count="18" type="stmt"/>
3493
- <line num="167" count="18" type="stmt"/>
3494
- <line num="168" count="18" type="cond" truecount="1" falsecount="1"/>
3495
- <line num="170" count="18" type="cond" truecount="1" falsecount="1"/>
3496
- <line num="171" count="18" type="stmt"/>
3497
- <line num="172" count="18" type="cond" truecount="1" falsecount="1"/>
3498
- <line num="173" count="18" type="stmt"/>
3499
- <line num="178" count="30" type="stmt"/>
3500
- <line num="187" count="44" type="stmt"/>
3501
- <line num="189" count="35" type="stmt"/>
3508
+ <line num="164" count="30" type="stmt"/>
3509
+ <line num="165" count="18" type="cond" truecount="1" falsecount="1"/>
3510
+ <line num="166" count="18" type="stmt"/>
3511
+ <line num="168" count="18" type="stmt"/>
3512
+ <line num="169" count="18" type="cond" truecount="1" falsecount="1"/>
3513
+ <line num="171" count="18" type="cond" truecount="1" falsecount="1"/>
3514
+ <line num="172" count="18" type="stmt"/>
3515
+ <line num="173" count="18" type="cond" truecount="1" falsecount="1"/>
3516
+ <line num="174" count="18" type="stmt"/>
3517
+ <line num="179" count="30" type="stmt"/>
3518
+ <line num="188" count="44" type="stmt"/>
3502
3519
  <line num="190" count="35" type="stmt"/>
3503
- <line num="192" count="41" type="stmt"/>
3520
+ <line num="191" count="35" type="stmt"/>
3504
3521
  <line num="193" count="41" type="stmt"/>
3505
- <line num="194" count="121" type="cond" truecount="4" falsecount="0"/>
3506
- <line num="195" count="112" type="stmt"/>
3507
- <line num="197" count="9" type="stmt"/>
3522
+ <line num="194" count="41" type="stmt"/>
3523
+ <line num="195" count="121" type="cond" truecount="4" falsecount="0"/>
3524
+ <line num="196" count="112" type="stmt"/>
3508
3525
  <line num="198" count="9" type="stmt"/>
3509
- <line num="199" count="9" type="cond" truecount="1" falsecount="1"/>
3510
- <line num="200" count="9" type="stmt"/>
3526
+ <line num="199" count="9" type="stmt"/>
3527
+ <line num="200" count="9" type="cond" truecount="1" falsecount="1"/>
3511
3528
  <line num="201" count="9" type="stmt"/>
3512
- <line num="202" count="9" type="cond" truecount="2" falsecount="0"/>
3513
- <line num="203" count="8" type="stmt"/>
3514
- <line num="205" count="9" type="stmt"/>
3515
- <line num="207" count="9" type="stmt"/>
3516
- <line num="210" count="35" type="stmt"/>
3529
+ <line num="202" count="9" type="stmt"/>
3530
+ <line num="203" count="9" type="cond" truecount="2" falsecount="0"/>
3531
+ <line num="204" count="8" type="stmt"/>
3532
+ <line num="206" count="9" type="stmt"/>
3533
+ <line num="208" count="9" type="stmt"/>
3534
+ <line num="211" count="35" type="stmt"/>
3517
3535
  </file>
3518
3536
  <file name="linkUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/linkedRows/linkUtils.js">
3519
3537
  <metrics statements="54" coveredstatements="50" conditionals="26" coveredconditionals="20" methods="13" coveredmethods="13"/>
@@ -3839,9 +3857,9 @@
3839
3857
  </file>
3840
3858
  </package>
3841
3859
  <package name="threads">
3842
- <metrics statements="299" coveredstatements="204" conditionals="133" coveredconditionals="64" methods="33" coveredmethods="27"/>
3860
+ <metrics statements="301" coveredstatements="206" conditionals="133" coveredconditionals="64" methods="33" coveredmethods="27"/>
3843
3861
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
3844
- <metrics statements="163" coveredstatements="82" conditionals="75" coveredconditionals="20" methods="13" coveredmethods="9"/>
3862
+ <metrics statements="165" coveredstatements="84" conditionals="75" coveredconditionals="20" methods="13" coveredmethods="9"/>
3845
3863
  <line num="1" count="3" type="stmt"/>
3846
3864
  <line num="2" count="3" type="stmt"/>
3847
3865
  <line num="3" count="3" type="stmt"/>
@@ -3855,156 +3873,158 @@
3855
3873
  <line num="11" count="3" type="stmt"/>
3856
3874
  <line num="12" count="3" type="stmt"/>
3857
3875
  <line num="13" count="3" type="stmt"/>
3858
- <line num="15" count="3" type="stmt"/>
3876
+ <line num="14" count="3" type="stmt"/>
3859
3877
  <line num="16" count="3" type="stmt"/>
3860
3878
  <line num="17" count="3" type="stmt"/>
3861
3879
  <line num="18" count="3" type="stmt"/>
3862
- <line num="21" count="0" type="cond" truecount="0" falsecount="4"/>
3863
- <line num="22" count="0" type="stmt"/>
3864
- <line num="24" count="0" type="stmt"/>
3880
+ <line num="19" count="3" type="stmt"/>
3881
+ <line num="22" count="0" type="cond" truecount="0" falsecount="4"/>
3882
+ <line num="23" count="0" type="stmt"/>
3865
3883
  <line num="25" count="0" type="stmt"/>
3866
3884
  <line num="26" count="0" type="stmt"/>
3867
- <line num="27" count="0" type="cond" truecount="0" falsecount="2"/>
3868
- <line num="29" count="0" type="cond" truecount="0" falsecount="2"/>
3869
- <line num="30" count="0" type="stmt"/>
3870
- <line num="32" count="0" type="stmt"/>
3871
- <line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
3872
- <line num="35" count="0" type="stmt"/>
3873
- <line num="37" count="0" type="stmt"/>
3874
- <line num="40" count="0" type="stmt"/>
3875
- <line num="42" count="0" type="stmt"/>
3876
- <line num="46" count="0" type="stmt"/>
3877
- <line num="47" count="0" type="cond" truecount="0" falsecount="4"/>
3878
- <line num="48" count="0" type="stmt"/>
3879
- <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
3880
- <line num="62" count="6" type="stmt"/>
3881
- <line num="63" count="6" type="cond" truecount="2" falsecount="0"/>
3882
- <line num="64" count="6" type="stmt"/>
3885
+ <line num="27" count="0" type="stmt"/>
3886
+ <line num="28" count="0" type="cond" truecount="0" falsecount="2"/>
3887
+ <line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
3888
+ <line num="31" count="0" type="stmt"/>
3889
+ <line num="33" count="0" type="stmt"/>
3890
+ <line num="35" count="0" type="cond" truecount="0" falsecount="2"/>
3891
+ <line num="36" count="0" type="stmt"/>
3892
+ <line num="38" count="0" type="stmt"/>
3893
+ <line num="41" count="0" type="stmt"/>
3894
+ <line num="43" count="0" type="stmt"/>
3895
+ <line num="47" count="0" type="stmt"/>
3896
+ <line num="48" count="0" type="cond" truecount="0" falsecount="4"/>
3897
+ <line num="49" count="0" type="stmt"/>
3898
+ <line num="51" count="0" type="cond" truecount="0" falsecount="2"/>
3899
+ <line num="63" count="6" type="stmt"/>
3900
+ <line num="64" count="6" type="cond" truecount="2" falsecount="0"/>
3883
3901
  <line num="65" count="6" type="stmt"/>
3884
3902
  <line num="66" count="6" type="stmt"/>
3885
3903
  <line num="67" count="6" type="stmt"/>
3886
- <line num="69" count="6" type="stmt"/>
3904
+ <line num="68" count="6" type="stmt"/>
3887
3905
  <line num="70" count="6" type="stmt"/>
3888
- <line num="72" count="6" type="stmt"/>
3906
+ <line num="71" count="6" type="stmt"/>
3889
3907
  <line num="73" count="6" type="stmt"/>
3890
- <line num="76" count="6" type="stmt"/>
3908
+ <line num="74" count="6" type="stmt"/>
3891
3909
  <line num="77" count="6" type="stmt"/>
3892
- <line num="79" count="6" type="stmt"/>
3910
+ <line num="78" count="6" type="stmt"/>
3893
3911
  <line num="80" count="6" type="stmt"/>
3894
- <line num="84" count="6" type="cond" truecount="1" falsecount="1"/>
3895
- <line num="85" count="0" type="stmt"/>
3896
- <line num="87" count="6" type="stmt"/>
3897
- <line num="91" count="5" type="stmt"/>
3898
- <line num="92" count="5" type="cond" truecount="1" falsecount="1"/>
3899
- <line num="93" count="0" type="stmt"/>
3900
- <line num="95" count="5" type="stmt"/>
3901
- <line num="99" count="6" type="cond" truecount="1" falsecount="1"/>
3902
- <line num="100" count="0" type="stmt"/>
3903
- <line num="102" count="6" type="stmt"/>
3912
+ <line num="81" count="6" type="stmt"/>
3913
+ <line num="85" count="6" type="cond" truecount="1" falsecount="1"/>
3914
+ <line num="86" count="0" type="stmt"/>
3915
+ <line num="88" count="6" type="stmt"/>
3916
+ <line num="92" count="5" type="stmt"/>
3917
+ <line num="93" count="5" type="cond" truecount="1" falsecount="1"/>
3918
+ <line num="94" count="0" type="stmt"/>
3919
+ <line num="96" count="5" type="stmt"/>
3920
+ <line num="100" count="6" type="cond" truecount="1" falsecount="1"/>
3921
+ <line num="101" count="0" type="stmt"/>
3904
3922
  <line num="103" count="6" type="stmt"/>
3905
3923
  <line num="104" count="6" type="stmt"/>
3906
- <line num="108" count="11" type="stmt"/>
3907
- <line num="110" count="11" type="cond" truecount="2" falsecount="0"/>
3908
- <line num="111" count="6" type="stmt"/>
3909
- <line num="113" count="11" type="stmt"/>
3910
- <line num="117" count="0" type="stmt"/>
3911
- <line num="127" count="0" type="stmt"/>
3912
- <line num="135" count="6" type="stmt"/>
3924
+ <line num="105" count="6" type="stmt"/>
3925
+ <line num="109" count="11" type="stmt"/>
3926
+ <line num="111" count="11" type="cond" truecount="2" falsecount="0"/>
3927
+ <line num="112" count="6" type="stmt"/>
3928
+ <line num="114" count="11" type="stmt"/>
3929
+ <line num="118" count="0" type="stmt"/>
3930
+ <line num="128" count="0" type="stmt"/>
3913
3931
  <line num="136" count="6" type="stmt"/>
3914
3932
  <line num="137" count="6" type="stmt"/>
3915
3933
  <line num="138" count="6" type="stmt"/>
3916
- <line num="140" count="6" type="stmt"/>
3934
+ <line num="139" count="6" type="stmt"/>
3917
3935
  <line num="141" count="6" type="stmt"/>
3918
3936
  <line num="142" count="6" type="stmt"/>
3919
3937
  <line num="143" count="6" type="stmt"/>
3920
- <line num="144" count="5" type="stmt"/>
3921
- <line num="146" count="5" type="stmt"/>
3938
+ <line num="144" count="6" type="stmt"/>
3939
+ <line num="145" count="5" type="stmt"/>
3922
3940
  <line num="147" count="5" type="stmt"/>
3923
- <line num="148" count="5" type="cond" truecount="1" falsecount="1"/>
3924
- <line num="149" count="0" type="stmt"/>
3941
+ <line num="148" count="5" type="stmt"/>
3942
+ <line num="149" count="5" type="cond" truecount="1" falsecount="1"/>
3925
3943
  <line num="150" count="0" type="stmt"/>
3926
3944
  <line num="151" count="0" type="stmt"/>
3927
- <line num="154" count="5" type="cond" truecount="1" falsecount="1"/>
3928
- <line num="155" count="0" type="stmt"/>
3945
+ <line num="152" count="0" type="stmt"/>
3946
+ <line num="155" count="5" type="cond" truecount="1" falsecount="1"/>
3929
3947
  <line num="156" count="0" type="stmt"/>
3930
- <line num="159" count="5" type="stmt"/>
3948
+ <line num="157" count="0" type="stmt"/>
3931
3949
  <line num="160" count="5" type="stmt"/>
3932
- <line num="163" count="5" type="cond" truecount="1" falsecount="1"/>
3933
- <line num="164" count="0" type="stmt"/>
3934
- <line num="169" count="0" type="stmt"/>
3950
+ <line num="161" count="5" type="stmt"/>
3951
+ <line num="164" count="5" type="cond" truecount="1" falsecount="1"/>
3952
+ <line num="165" count="0" type="stmt"/>
3935
3953
  <line num="170" count="0" type="stmt"/>
3936
3954
  <line num="171" count="0" type="stmt"/>
3937
- <line num="173" count="0" type="stmt"/>
3938
- <line num="177" count="0" type="stmt"/>
3955
+ <line num="172" count="0" type="stmt"/>
3956
+ <line num="174" count="0" type="stmt"/>
3939
3957
  <line num="178" count="0" type="stmt"/>
3940
3958
  <line num="179" count="0" type="stmt"/>
3941
- <line num="183" count="0" type="cond" truecount="0" falsecount="2"/>
3942
- <line num="187" count="0" type="stmt"/>
3943
- <line num="189" count="0" type="stmt"/>
3944
- <line num="192" count="0" type="stmt"/>
3945
- <line num="198" count="0" type="stmt"/>
3946
- <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
3947
- <line num="200" count="0" type="stmt"/>
3948
- <line num="203" count="0" type="cond" truecount="0" falsecount="2"/>
3949
- <line num="204" count="0" type="stmt"/>
3950
- <line num="212" count="0" type="cond" truecount="0" falsecount="2"/>
3951
- <line num="213" count="0" type="stmt"/>
3952
- <line num="220" count="0" type="cond" truecount="0" falsecount="2"/>
3953
- <line num="224" count="0" type="stmt"/>
3954
- <line num="228" count="0" type="stmt"/>
3959
+ <line num="180" count="0" type="stmt"/>
3960
+ <line num="184" count="0" type="cond" truecount="0" falsecount="2"/>
3961
+ <line num="188" count="0" type="stmt"/>
3962
+ <line num="190" count="0" type="stmt"/>
3963
+ <line num="193" count="0" type="stmt"/>
3964
+ <line num="199" count="0" type="stmt"/>
3965
+ <line num="200" count="0" type="cond" truecount="0" falsecount="2"/>
3966
+ <line num="201" count="0" type="stmt"/>
3967
+ <line num="204" count="0" type="cond" truecount="0" falsecount="2"/>
3968
+ <line num="205" count="0" type="stmt"/>
3969
+ <line num="213" count="0" type="cond" truecount="0" falsecount="2"/>
3970
+ <line num="214" count="0" type="stmt"/>
3971
+ <line num="221" count="0" type="cond" truecount="0" falsecount="2"/>
3972
+ <line num="225" count="0" type="stmt"/>
3955
3973
  <line num="229" count="0" type="stmt"/>
3956
3974
  <line num="230" count="0" type="stmt"/>
3957
- <line num="233" count="0" type="stmt"/>
3975
+ <line num="231" count="0" type="stmt"/>
3958
3976
  <line num="234" count="0" type="stmt"/>
3959
- <line num="235" count="0" type="cond" truecount="0" falsecount="4"/>
3960
- <line num="236" count="0" type="stmt"/>
3977
+ <line num="235" count="0" type="stmt"/>
3978
+ <line num="236" count="0" type="cond" truecount="0" falsecount="4"/>
3961
3979
  <line num="237" count="0" type="stmt"/>
3962
- <line num="240" count="0" type="cond" truecount="0" falsecount="2"/>
3963
- <line num="243" count="0" type="cond" truecount="0" falsecount="2"/>
3964
- <line num="244" count="0" type="stmt"/>
3965
- <line num="248" count="0" type="stmt"/>
3980
+ <line num="238" count="0" type="stmt"/>
3981
+ <line num="241" count="0" type="cond" truecount="0" falsecount="2"/>
3982
+ <line num="244" count="0" type="cond" truecount="0" falsecount="2"/>
3983
+ <line num="245" count="0" type="stmt"/>
3966
3984
  <line num="249" count="0" type="stmt"/>
3967
3985
  <line num="250" count="0" type="stmt"/>
3968
- <line num="255" count="5" type="cond" truecount="1" falsecount="1"/>
3969
- <line num="256" count="0" type="stmt"/>
3986
+ <line num="251" count="0" type="stmt"/>
3987
+ <line num="256" count="5" type="cond" truecount="1" falsecount="1"/>
3970
3988
  <line num="257" count="0" type="stmt"/>
3971
- <line num="261" count="5" type="stmt"/>
3989
+ <line num="258" count="0" type="stmt"/>
3972
3990
  <line num="262" count="5" type="stmt"/>
3973
3991
  <line num="263" count="5" type="stmt"/>
3974
3992
  <line num="264" count="5" type="stmt"/>
3975
- <line num="266" count="5" type="cond" truecount="1" falsecount="1"/>
3976
- <line num="267" count="5" type="stmt"/>
3993
+ <line num="265" count="5" type="stmt"/>
3994
+ <line num="267" count="5" type="cond" truecount="1" falsecount="1"/>
3977
3995
  <line num="268" count="5" type="stmt"/>
3978
- <line num="275" count="5" type="stmt"/>
3979
- <line num="278" count="5" type="cond" truecount="2" falsecount="2"/>
3980
- <line num="279" count="0" type="stmt"/>
3996
+ <line num="269" count="5" type="stmt"/>
3997
+ <line num="276" count="5" type="stmt"/>
3998
+ <line num="279" count="5" type="cond" truecount="2" falsecount="2"/>
3981
3999
  <line num="280" count="0" type="stmt"/>
3982
- <line num="284" count="0" type="stmt"/>
3983
- <line num="286" count="5" type="cond" truecount="2" falsecount="2"/>
3984
- <line num="287" count="0" type="stmt"/>
3985
- <line num="289" count="5" type="stmt"/>
3986
- <line num="297" count="0" type="stmt"/>
4000
+ <line num="281" count="0" type="stmt"/>
4001
+ <line num="285" count="0" type="stmt"/>
4002
+ <line num="287" count="5" type="cond" truecount="2" falsecount="2"/>
4003
+ <line num="288" count="0" type="stmt"/>
4004
+ <line num="290" count="5" type="stmt"/>
3987
4005
  <line num="298" count="0" type="stmt"/>
3988
- <line num="300" count="5" type="cond" truecount="1" falsecount="1"/>
3989
- <line num="301" count="0" type="stmt"/>
3990
- <line num="302" count="0" type="cond" truecount="0" falsecount="2"/>
3991
- <line num="303" count="0" type="stmt"/>
4006
+ <line num="299" count="0" type="stmt"/>
4007
+ <line num="301" count="5" type="cond" truecount="1" falsecount="1"/>
4008
+ <line num="302" count="0" type="stmt"/>
4009
+ <line num="303" count="0" type="cond" truecount="0" falsecount="2"/>
3992
4010
  <line num="304" count="0" type="stmt"/>
3993
4011
  <line num="305" count="0" type="stmt"/>
3994
- <line num="310" count="5" type="cond" truecount="3" falsecount="1"/>
3995
- <line num="311" count="0" type="stmt"/>
3996
- <line num="316" count="0" type="stmt"/>
3997
- <line num="323" count="0" type="stmt"/>
4012
+ <line num="306" count="0" type="stmt"/>
4013
+ <line num="311" count="5" type="cond" truecount="3" falsecount="1"/>
4014
+ <line num="312" count="0" type="stmt"/>
4015
+ <line num="317" count="0" type="stmt"/>
3998
4016
  <line num="324" count="0" type="stmt"/>
3999
- <line num="328" count="6" type="stmt"/>
4000
- <line num="332" count="3" type="stmt"/>
4001
- <line num="333" count="6" type="stmt"/>
4002
- <line num="334" count="6" type="stmt"/>
4003
- <line num="335" count="6" type="stmt"/>
4004
- <line num="339" count="6" type="stmt"/>
4005
- <line num="340" count="6" type="stmt"/>
4006
- <line num="341" count="6" type="stmt"/>
4007
- <line num="343" count="0" type="stmt"/>
4017
+ <line num="325" count="0" type="stmt"/>
4018
+ <line num="330" count="6" type="stmt"/>
4019
+ <line num="331" count="6" type="stmt"/>
4020
+ <line num="335" count="3" type="stmt"/>
4021
+ <line num="336" count="6" type="stmt"/>
4022
+ <line num="337" count="6" type="stmt"/>
4023
+ <line num="338" count="6" type="stmt"/>
4024
+ <line num="342" count="6" type="stmt"/>
4025
+ <line num="343" count="6" type="stmt"/>
4026
+ <line num="344" count="6" type="stmt"/>
4027
+ <line num="346" count="0" type="stmt"/>
4008
4028
  </file>
4009
4029
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4010
4030
  <metrics statements="100" coveredstatements="92" conditionals="43" coveredconditionals="34" methods="11" coveredmethods="10"/>
@@ -4406,7 +4426,7 @@
4406
4426
  <line num="13" count="43" type="stmt"/>
4407
4427
  <line num="18" count="43" type="stmt"/>
4408
4428
  <line num="19" count="4" type="stmt"/>
4409
- <line num="20" count="84" type="stmt"/>
4429
+ <line num="20" count="108" type="stmt"/>
4410
4430
  <line num="22" count="4" type="cond" truecount="2" falsecount="5"/>
4411
4431
  <line num="25" count="4" type="stmt"/>
4412
4432
  <line num="27" count="0" type="stmt"/>