@budibase/server 1.0.46-alpha.3 → 1.0.46-alpha.7

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 (221) hide show
  1. package/builder/assets/{index.6eae2fa0.js → index.af9e71d8.js} +243 -243
  2. package/builder/assets/{index.0df4f7ab.css → index.dd9e386f.css} +1 -1
  3. package/builder/assets/{vendor.10e2ad1b.js → vendor.3bd2f661.js} +1 -1
  4. package/builder/index.html +3 -3
  5. package/coverage/clover.xml +542 -551
  6. package/coverage/coverage-final.json +21 -23
  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 +179 -95
  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 +58 -22
  16. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/index.html +27 -42
  18. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query/index.html +15 -15
  23. package/coverage/lcov-report/api/controllers/query/index.js.html +44 -11
  24. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/index.html +5 -5
  29. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/utils.js.html +5 -14
  33. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  48. package/coverage/lcov-report/api/index.html +1 -1
  49. package/coverage/lcov-report/api/index.js.html +10 -10
  50. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/index.html +7 -22
  62. package/coverage/lcov-report/api/routes/index.js.html +4 -10
  63. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/static.js.html +17 -2
  74. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  79. package/coverage/lcov-report/automations/actions.js.html +1 -1
  80. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  81. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  82. package/coverage/lcov-report/automations/index.html +1 -1
  83. package/coverage/lcov-report/automations/index.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/index.html +1 -1
  93. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  111. package/coverage/lcov-report/automations/utils.js.html +5 -5
  112. package/coverage/lcov-report/constants/index.html +5 -5
  113. package/coverage/lcov-report/constants/index.js.html +16 -4
  114. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  115. package/coverage/lcov-report/constants/screens.js.html +1 -1
  116. package/coverage/lcov-report/db/client.js.html +1 -1
  117. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  118. package/coverage/lcov-report/db/index.html +1 -1
  119. package/coverage/lcov-report/db/index.js.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  124. package/coverage/lcov-report/db/newid.js.html +2 -2
  125. package/coverage/lcov-report/db/utils.js.html +17 -17
  126. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  127. package/coverage/lcov-report/events/index.html +1 -1
  128. package/coverage/lcov-report/events/index.js.html +1 -1
  129. package/coverage/lcov-report/events/utils.js.html +1 -1
  130. package/coverage/lcov-report/index.html +58 -58
  131. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  132. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  133. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  134. package/coverage/lcov-report/middleware/authorized.js.html +11 -11
  135. package/coverage/lcov-report/middleware/builder.js.html +8 -8
  136. package/coverage/lcov-report/middleware/currentapp.js.html +34 -61
  137. package/coverage/lcov-report/middleware/index.html +10 -10
  138. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  139. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  140. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  141. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  142. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  143. package/coverage/lcov-report/migrations/usageQuotas/index.html +1 -1
  144. package/coverage/lcov-report/migrations/usageQuotas/index.js.html +1 -1
  145. package/coverage/lcov-report/migrations/usageQuotas/syncApps.js.html +1 -1
  146. package/coverage/lcov-report/migrations/usageQuotas/syncRows.js.html +1 -1
  147. package/coverage/lcov-report/threads/automation.js.html +1 -1
  148. package/coverage/lcov-report/threads/index.html +15 -15
  149. package/coverage/lcov-report/threads/index.js.html +1 -1
  150. package/coverage/lcov-report/threads/query.js.html +23 -8
  151. package/coverage/lcov-report/threads/utils.js.html +1 -1
  152. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  153. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  154. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  155. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  156. package/coverage/lcov-report/utilities/global.js.html +13 -13
  157. package/coverage/lcov-report/utilities/index.html +19 -19
  158. package/coverage/lcov-report/utilities/index.js.html +4 -4
  159. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  160. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  161. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  162. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  163. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  164. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  165. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  166. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  167. package/coverage/lcov-report/utilities/security.js.html +1 -1
  168. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  169. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  170. package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
  171. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  172. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  173. package/coverage/lcov-report/utilities/users.js.html +1 -1
  174. package/coverage/lcov-report/utilities/workerRequests.js.html +24 -93
  175. package/coverage/lcov.info +937 -935
  176. package/dist/api/controllers/application.js +49 -20
  177. package/dist/api/controllers/datasource.js +11 -0
  178. package/dist/api/controllers/query/index.js +11 -3
  179. package/dist/api/controllers/row/utils.js +1 -2
  180. package/dist/api/controllers/static/index.js +59 -10
  181. package/dist/api/routes/index.js +0 -2
  182. package/dist/api/routes/static.js +2 -1
  183. package/dist/constants/index.js +3 -0
  184. package/dist/definitions/datasource.js +1 -0
  185. package/dist/integrations/googlesheets.js +340 -0
  186. package/dist/integrations/index.js +3 -0
  187. package/dist/integrations/utils.js +6 -3
  188. package/dist/middleware/currentapp.js +0 -9
  189. package/dist/package.json +8 -5
  190. package/dist/tests/utilities/TestConfiguration.js +3 -1
  191. package/dist/threads/query.js +4 -0
  192. package/dist/tsconfig.tsbuildinfo +1 -1
  193. package/dist/utilities/workerRequests.js +0 -20
  194. package/nodemon.json +1 -1
  195. package/package.json +9 -6
  196. package/src/api/controllers/application.js +52 -24
  197. package/src/api/controllers/datasource.js +12 -0
  198. package/src/api/controllers/query/index.js +14 -3
  199. package/src/api/controllers/row/utils.js +1 -4
  200. package/src/api/controllers/static/index.js +63 -10
  201. package/src/api/routes/index.js +0 -2
  202. package/src/api/routes/static.js +5 -0
  203. package/src/api/routes/tests/application.spec.js +2 -2
  204. package/src/api/routes/tests/static.spec.js +98 -0
  205. package/src/constants/index.js +4 -0
  206. package/src/definitions/datasource.ts +3 -0
  207. package/src/integrations/googlesheets.ts +353 -0
  208. package/src/integrations/index.ts +3 -0
  209. package/src/integrations/utils.ts +18 -5
  210. package/src/middleware/currentapp.js +0 -9
  211. package/src/migrations/tests/usageQuotas/syncRows.spec.js +1 -1
  212. package/src/tests/utilities/TestConfiguration.js +3 -1
  213. package/src/threads/query.js +5 -0
  214. package/src/utilities/workerRequests.js +0 -23
  215. package/coverage/lcov-report/api/controllers/hosting.js.html +0 -146
  216. package/coverage/lcov-report/api/routes/hosting.js.html +0 -119
  217. package/dist/api/controllers/hosting.js +0 -30
  218. package/dist/api/routes/hosting.js +0 -11
  219. package/src/api/controllers/hosting.js +0 -22
  220. package/src/api/routes/hosting.js +0 -13
  221. package/src/api/routes/tests/hosting.spec.js +0 -36
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1642764419753" clover="3.2.0">
3
- <project timestamp="1642764419753" name="All files">
4
- <metrics statements="4795" coveredstatements="3551" conditionals="1917" coveredconditionals="1039" methods="680" coveredmethods="478" elements="7392" coveredelements="5068" complexity="0" loc="4795" ncloc="4795" packages="23" files="146" classes="146"/>
2
+ <coverage generated="1643382733216" clover="3.2.0">
3
+ <project timestamp="1643382733216" name="All files">
4
+ <metrics statements="4792" coveredstatements="3540" conditionals="1934" coveredconditionals="1043" methods="683" coveredmethods="482" elements="7409" coveredelements="5065" complexity="0" loc="4792" ncloc="4792" packages="23" files="144" classes="144"/>
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,29 +16,29 @@
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="167" type="stmt"/>
20
- <line num="35" count="167" type="stmt"/>
19
+ <line num="31" count="169" type="stmt"/>
20
+ <line num="35" count="169" 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="163" type="stmt"/>
25
- <line num="62" count="163" type="stmt"/>
26
- <line num="64" count="37" type="cond" truecount="1" falsecount="2"/>
27
- <line num="65" count="37" type="stmt"/>
28
- <line num="70" count="37" type="cond" truecount="1" falsecount="1"/>
24
+ <line num="61" count="165" type="stmt"/>
25
+ <line num="62" count="165" type="stmt"/>
26
+ <line num="64" count="39" type="cond" truecount="1" falsecount="2"/>
27
+ <line num="65" count="39" type="stmt"/>
28
+ <line num="70" count="39" type="cond" truecount="1" falsecount="1"/>
29
29
  <line num="71" count="0" type="stmt"/>
30
30
  <line num="72" count="0" type="stmt"/>
31
31
  <line num="77" count="23" type="stmt"/>
32
32
  <line num="80" count="23" type="stmt"/>
33
- <line num="81" count="598" type="stmt"/>
34
- <line num="82" count="598" type="stmt"/>
33
+ <line num="81" count="575" type="stmt"/>
34
+ <line num="82" count="575" type="stmt"/>
35
35
  <line num="86" count="23" type="stmt"/>
36
36
  <line num="87" count="23" type="stmt"/>
37
37
  <line num="89" count="23" type="stmt"/>
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1080" coveredstatements="769" conditionals="357" coveredconditionals="165" methods="149" coveredmethods="103"/>
41
+ <metrics statements="1089" coveredstatements="775" conditionals="367" coveredconditionals="169" methods="153" coveredmethods="108"/>
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"/>
@@ -83,7 +83,7 @@
83
83
  <line num="46" count="1" type="stmt"/>
84
84
  </file>
85
85
  <file name="application.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/application.js">
86
- <metrics statements="180" coveredstatements="142" conditionals="72" coveredconditionals="41" methods="20" coveredmethods="17"/>
86
+ <metrics statements="198" coveredstatements="158" conditionals="78" coveredconditionals="43" methods="26" coveredmethods="23"/>
87
87
  <line num="1" count="36" type="stmt"/>
88
88
  <line num="2" count="36" type="stmt"/>
89
89
  <line num="3" count="36" type="stmt"/>
@@ -96,174 +96,192 @@
96
96
  <line num="28" count="36" type="stmt"/>
97
97
  <line num="34" count="36" type="stmt"/>
98
98
  <line num="35" count="36" type="stmt"/>
99
- <line num="39" count="36" type="stmt"/>
100
- <line num="40" count="36" type="stmt"/>
101
- <line num="41" count="36" type="stmt"/>
99
+ <line num="36" count="36" type="stmt"/>
100
+ <line num="37" count="36" type="stmt"/>
101
+ <line num="38" count="36" type="stmt"/>
102
+ <line num="43" count="36" type="stmt"/>
103
+ <line num="44" count="36" type="stmt"/>
104
+ <line num="45" count="36" type="stmt"/>
102
105
  <line num="46" count="36" type="stmt"/>
103
106
  <line num="47" count="36" type="stmt"/>
104
- <line num="48" count="36" type="stmt"/>
105
107
  <line num="49" count="36" type="stmt"/>
106
- <line num="50" count="36" type="stmt"/>
107
- <line num="52" count="36" type="stmt"/>
108
- <line num="56" count="200" type="stmt"/>
109
- <line num="62" count="400" type="stmt"/>
110
- <line num="66" count="200" type="stmt"/>
111
- <line num="72" count="12" type="stmt"/>
112
- <line num="76" count="198" type="cond" truecount="4" falsecount="0"/>
113
- <line num="83" count="195" type="cond" truecount="1" falsecount="1"/>
114
- <line num="84" count="0" type="stmt"/>
115
- <line num="85" count="195" type="cond" truecount="2" falsecount="0"/>
116
- <line num="86" count="191" type="stmt"/>
117
- <line num="88" count="195" type="cond" truecount="2" falsecount="0"/>
118
- <line num="89" count="191" type="stmt"/>
119
- <line num="91" count="195" type="cond" truecount="2" falsecount="0"/>
120
- <line num="92" count="15" type="stmt"/>
121
- <line num="94" count="180" type="stmt"/>
122
- <line num="95" count="180" type="cond" truecount="1" falsecount="1"/>
123
- <line num="101" count="0" type="stmt"/>
124
- <line num="103" count="180" type="stmt"/>
125
- <line num="107" count="190" type="cond" truecount="1" falsecount="1"/>
126
- <line num="108" count="190" type="stmt"/>
127
- <line num="109" count="190" type="stmt"/>
128
- <line num="111" count="190" type="stmt"/>
129
- <line num="112" count="190" type="stmt"/>
130
- <line num="121" count="190" type="stmt"/>
131
- <line num="122" count="190" type="stmt"/>
132
- <line num="123" count="190" type="stmt"/>
133
- <line num="127" count="190" type="cond" truecount="3" falsecount="1"/>
134
- <line num="128" count="0" type="stmt"/>
135
- <line num="129" count="0" type="cond" truecount="0" falsecount="2"/>
136
- <line num="130" count="0" type="stmt"/>
137
- <line num="132" count="190" type="cond" truecount="3" falsecount="1"/>
138
- <line num="135" count="0" type="cond" truecount="0" falsecount="2"/>
139
- <line num="136" count="0" type="stmt"/>
140
- <line num="140" count="190" type="stmt"/>
141
- <line num="143" count="190" type="stmt"/>
142
- <line num="146" count="36" type="stmt"/>
143
- <line num="147" count="10" type="cond" truecount="2" falsecount="0"/>
144
- <line num="148" count="10" type="cond" truecount="2" falsecount="0"/>
145
- <line num="149" count="10" type="stmt"/>
146
- <line num="152" count="10" type="cond" truecount="2" falsecount="2"/>
147
- <line num="153" count="10" type="stmt"/>
148
- <line num="154" count="10" type="stmt"/>
149
- <line num="155" count="14" type="cond" truecount="1" falsecount="1"/>
150
- <line num="156" count="14" type="stmt"/>
151
- <line num="158" count="0" type="stmt"/>
152
- <line num="159" count="0" type="cond" truecount="0" falsecount="2"/>
153
- <line num="160" count="0" type="stmt"/>
154
- <line num="163" count="0" type="stmt"/>
155
- <line num="168" count="10" type="stmt"/>
156
- <line num="171" count="36" type="stmt"/>
157
- <line num="172" count="1" type="stmt"/>
158
- <line num="173" count="1" type="stmt"/>
159
- <line num="174" count="1" type="stmt"/>
160
- <line num="175" count="1" type="stmt"/>
161
- <line num="176" count="1" type="stmt"/>
162
- <line num="180" count="1" type="stmt"/>
163
- <line num="187" count="36" type="stmt"/>
164
- <line num="188" count="199" type="stmt"/>
165
- <line num="189" count="199" type="stmt"/>
166
- <line num="190" count="199" type="stmt"/>
167
- <line num="191" count="199" type="stmt"/>
168
- <line num="194" count="199" type="cond" truecount="4" falsecount="0"/>
169
- <line num="195" count="197" type="stmt"/>
170
- <line num="196" count="197" type="stmt"/>
171
- <line num="197" count="197" type="stmt"/>
172
- <line num="200" count="199" type="stmt"/>
173
- <line num="208" count="36" type="stmt"/>
174
- <line num="209" count="190" type="stmt"/>
175
- <line num="210" count="190" type="stmt"/>
176
- <line num="215" count="190" type="cond" truecount="2" falsecount="2"/>
177
- <line num="216" count="0" type="stmt"/>
178
- <line num="218" count="190" type="stmt"/>
179
- <line num="219" count="190" type="stmt"/>
180
- <line num="221" count="190" type="stmt"/>
181
- <line num="222" count="190" type="stmt"/>
182
- <line num="224" count="190" type="stmt"/>
183
- <line num="226" count="190" type="stmt"/>
184
- <line num="227" count="0" type="stmt"/>
185
- <line num="231" count="190" type="stmt"/>
186
- <line num="246" count="190" type="stmt"/>
187
- <line num="247" count="190" type="stmt"/>
188
- <line num="251" count="190" type="cond" truecount="1" falsecount="1"/>
189
- <line num="252" count="190" type="stmt"/>
190
- <line num="260" count="190" type="stmt"/>
191
- <line num="261" count="190" type="stmt"/>
192
- <line num="262" count="190" type="stmt"/>
193
- <line num="265" count="36" type="stmt"/>
194
- <line num="266" count="2" type="stmt"/>
195
- <line num="267" count="2" type="stmt"/>
196
- <line num="268" count="2" type="stmt"/>
197
- <line num="271" count="36" type="stmt"/>
198
- <line num="273" count="2" type="stmt"/>
199
- <line num="274" count="2" type="stmt"/>
200
- <line num="275" count="2" type="stmt"/>
201
- <line num="278" count="2" type="cond" truecount="1" falsecount="1"/>
202
- <line num="279" count="0" type="stmt"/>
203
- <line num="280" count="0" type="stmt"/>
204
- <line num="284" count="2" type="stmt"/>
205
- <line num="288" count="2" type="stmt"/>
108
+ <line num="53" count="202" type="stmt"/>
109
+ <line num="59" count="404" type="stmt"/>
110
+ <line num="63" count="202" type="stmt"/>
111
+ <line num="69" count="12" type="stmt"/>
112
+ <line num="73" count="200" type="cond" truecount="4" falsecount="0"/>
113
+ <line num="81" count="194" type="cond" truecount="1" falsecount="1"/>
114
+ <line num="83" count="0" type="stmt"/>
115
+ <line num="84" count="194" type="cond" truecount="1" falsecount="1"/>
116
+ <line num="86" count="194" type="stmt"/>
117
+ <line num="88" count="194" type="cond" truecount="1" falsecount="1"/>
118
+ <line num="89" count="194" type="stmt"/>
119
+ <line num="91" count="194" type="stmt"/>
120
+ <line num="94" count="36" type="stmt"/>
121
+ <line num="95" count="194" type="cond" truecount="2" falsecount="0"/>
122
+ <line num="96" count="2" type="stmt"/>
123
+ <line num="98" count="732" type="cond" truecount="1" falsecount="1"/>
124
+ <line num="99" count="0" type="stmt"/>
125
+ <line num="103" count="36" type="stmt"/>
126
+ <line num="105" count="194" type="cond" truecount="1" falsecount="1"/>
127
+ <line num="106" count="0" type="stmt"/>
128
+ <line num="108" count="194" type="cond" truecount="2" falsecount="0"/>
129
+ <line num="109" count="2" type="stmt"/>
130
+ <line num="111" count="732" type="cond" truecount="1" falsecount="1"/>
131
+ <line num="112" count="0" type="stmt"/>
132
+ <line num="117" count="192" type="cond" truecount="1" falsecount="1"/>
133
+ <line num="118" count="192" type="stmt"/>
134
+ <line num="119" count="192" type="stmt"/>
135
+ <line num="121" count="192" type="stmt"/>
136
+ <line num="122" count="192" type="stmt"/>
137
+ <line num="131" count="192" type="stmt"/>
138
+ <line num="132" count="192" type="stmt"/>
139
+ <line num="133" count="192" type="stmt"/>
140
+ <line num="137" count="192" type="cond" truecount="3" falsecount="1"/>
141
+ <line num="138" count="0" type="stmt"/>
142
+ <line num="139" count="0" type="cond" truecount="0" falsecount="2"/>
143
+ <line num="140" count="0" type="stmt"/>
144
+ <line num="142" count="192" type="cond" truecount="3" falsecount="1"/>
145
+ <line num="145" count="0" type="cond" truecount="0" falsecount="2"/>
146
+ <line num="146" count="0" type="stmt"/>
147
+ <line num="150" count="192" type="stmt"/>
148
+ <line num="153" count="192" type="stmt"/>
149
+ <line num="156" count="36" type="stmt"/>
150
+ <line num="157" count="10" type="cond" truecount="2" falsecount="0"/>
151
+ <line num="158" count="10" type="cond" truecount="2" falsecount="0"/>
152
+ <line num="159" count="10" type="stmt"/>
153
+ <line num="162" count="10" type="cond" truecount="2" falsecount="2"/>
154
+ <line num="163" count="10" type="stmt"/>
155
+ <line num="164" count="10" type="stmt"/>
156
+ <line num="165" count="14" type="cond" truecount="1" falsecount="1"/>
157
+ <line num="166" count="14" type="stmt"/>
158
+ <line num="168" count="0" type="stmt"/>
159
+ <line num="169" count="0" type="cond" truecount="0" falsecount="2"/>
160
+ <line num="170" count="0" type="stmt"/>
161
+ <line num="173" count="0" type="stmt"/>
162
+ <line num="178" count="10" type="stmt"/>
163
+ <line num="181" count="36" type="stmt"/>
164
+ <line num="182" count="1" type="stmt"/>
165
+ <line num="183" count="1" type="stmt"/>
166
+ <line num="184" count="1" type="stmt"/>
167
+ <line num="185" count="1" type="stmt"/>
168
+ <line num="186" count="1" type="stmt"/>
169
+ <line num="190" count="1" type="stmt"/>
170
+ <line num="197" count="36" type="stmt"/>
171
+ <line num="198" count="201" type="stmt"/>
172
+ <line num="199" count="201" type="stmt"/>
173
+ <line num="200" count="201" type="stmt"/>
174
+ <line num="201" count="201" type="stmt"/>
175
+ <line num="204" count="201" type="cond" truecount="4" falsecount="0"/>
176
+ <line num="205" count="199" type="stmt"/>
177
+ <line num="206" count="199" type="stmt"/>
178
+ <line num="207" count="199" type="stmt"/>
179
+ <line num="210" count="201" type="stmt"/>
180
+ <line num="218" count="36" type="stmt"/>
181
+ <line num="219" count="192" type="stmt"/>
182
+ <line num="220" count="192" type="stmt"/>
183
+ <line num="221" count="192" type="stmt"/>
184
+ <line num="222" count="192" type="stmt"/>
185
+ <line num="223" count="192" type="stmt"/>
186
+ <line num="225" count="192" type="stmt"/>
187
+ <line num="226" count="192" type="stmt"/>
188
+ <line num="231" count="192" type="cond" truecount="2" falsecount="2"/>
189
+ <line num="232" count="0" type="stmt"/>
190
+ <line num="234" count="192" type="stmt"/>
191
+ <line num="235" count="192" type="stmt"/>
192
+ <line num="237" count="192" type="stmt"/>
193
+ <line num="239" count="192" type="stmt"/>
194
+ <line num="241" count="192" type="stmt"/>
195
+ <line num="242" count="0" type="stmt"/>
196
+ <line num="246" count="192" type="stmt"/>
197
+ <line num="261" count="192" type="stmt"/>
198
+ <line num="262" count="192" type="stmt"/>
199
+ <line num="266" count="192" type="cond" truecount="1" falsecount="1"/>
200
+ <line num="267" count="192" type="stmt"/>
201
+ <line num="275" count="192" type="stmt"/>
202
+ <line num="276" count="192" type="stmt"/>
203
+ <line num="277" count="192" type="stmt"/>
204
+ <line num="282" count="36" type="stmt"/>
205
+ <line num="283" count="2" type="stmt"/>
206
+ <line num="285" count="2" type="stmt"/>
207
+ <line num="286" count="2" type="cond" truecount="1" falsecount="1"/>
208
+ <line num="287" count="2" type="stmt"/>
206
209
  <line num="289" count="2" type="stmt"/>
207
- <line num="290" count="2" type="stmt"/>
208
- <line num="293" count="36" type="stmt"/>
209
- <line num="295" count="1" type="stmt"/>
210
- <line num="296" count="1" type="stmt"/>
211
- <line num="297" count="1" type="cond" truecount="1" falsecount="1"/>
212
- <line num="298" count="0" type="stmt"/>
213
- <line num="302" count="1" type="cond" truecount="1" falsecount="1"/>
214
- <line num="303" count="0" type="stmt"/>
215
- <line num="307" count="1" type="stmt"/>
216
- <line num="311" count="1" type="stmt"/>
217
- <line num="312" count="1" type="stmt"/>
218
- <line num="313" count="1" type="stmt"/>
219
- <line num="316" count="36" type="stmt"/>
220
- <line num="317" count="11" type="stmt"/>
221
- <line num="319" count="11" type="stmt"/>
222
- <line num="324" count="11" type="cond" truecount="2" falsecount="2"/>
223
- <line num="325" count="0" type="stmt"/>
224
- <line num="328" count="11" type="stmt"/>
225
- <line num="329" count="11" type="stmt"/>
226
- <line num="331" count="11" type="stmt"/>
227
- <line num="332" count="11" type="stmt"/>
228
- <line num="335" count="36" type="stmt"/>
229
- <line num="336" count="0" type="stmt"/>
230
- <line num="337" count="0" type="cond" truecount="0" falsecount="2"/>
231
- <line num="338" count="0" type="stmt"/>
232
- <line num="342" count="0" type="stmt"/>
233
- <line num="344" count="0" type="stmt"/>
234
- <line num="345" count="0" type="stmt"/>
235
- <line num="346" count="0" type="stmt"/>
236
- <line num="347" count="0" type="cond" truecount="0" falsecount="2"/>
237
- <line num="350" count="0" type="stmt"/>
238
- <line num="351" count="0" type="stmt"/>
210
+ <line num="290" count="2" type="cond" truecount="1" falsecount="1"/>
211
+ <line num="291" count="2" type="stmt"/>
212
+ <line num="292" count="2" type="stmt"/>
213
+ <line num="295" count="2" type="stmt"/>
214
+ <line num="296" count="2" type="stmt"/>
215
+ <line num="297" count="2" type="stmt"/>
216
+ <line num="300" count="36" type="stmt"/>
217
+ <line num="302" count="2" type="stmt"/>
218
+ <line num="303" count="2" type="stmt"/>
219
+ <line num="304" count="2" type="stmt"/>
220
+ <line num="307" count="2" type="cond" truecount="1" falsecount="1"/>
221
+ <line num="308" count="0" type="stmt"/>
222
+ <line num="309" count="0" type="stmt"/>
223
+ <line num="313" count="2" type="stmt"/>
224
+ <line num="317" count="2" type="stmt"/>
225
+ <line num="318" count="2" type="stmt"/>
226
+ <line num="319" count="2" type="stmt"/>
227
+ <line num="322" count="36" type="stmt"/>
228
+ <line num="324" count="1" type="stmt"/>
229
+ <line num="325" count="1" type="stmt"/>
230
+ <line num="326" count="1" type="cond" truecount="1" falsecount="1"/>
231
+ <line num="327" count="0" type="stmt"/>
232
+ <line num="331" count="1" type="cond" truecount="1" falsecount="1"/>
233
+ <line num="332" count="0" type="stmt"/>
234
+ <line num="336" count="1" type="stmt"/>
235
+ <line num="340" count="1" type="stmt"/>
236
+ <line num="341" count="1" type="stmt"/>
237
+ <line num="342" count="1" type="stmt"/>
238
+ <line num="345" count="36" type="stmt"/>
239
+ <line num="346" count="11" type="stmt"/>
240
+ <line num="348" count="11" type="stmt"/>
241
+ <line num="353" count="11" type="cond" truecount="2" falsecount="2"/>
239
242
  <line num="354" count="0" type="stmt"/>
240
- <line num="357" count="0" type="stmt"/>
241
- <line num="362" count="0" type="stmt"/>
242
- <line num="363" count="0" type="stmt"/>
243
+ <line num="357" count="11" type="stmt"/>
244
+ <line num="358" count="11" type="stmt"/>
245
+ <line num="360" count="11" type="stmt"/>
246
+ <line num="361" count="11" type="stmt"/>
247
+ <line num="364" count="36" type="stmt"/>
243
248
  <line num="365" count="0" type="stmt"/>
244
- <line num="369" count="0" type="stmt"/>
249
+ <line num="366" count="0" type="cond" truecount="0" falsecount="2"/>
250
+ <line num="367" count="0" type="stmt"/>
251
+ <line num="371" count="0" type="stmt"/>
245
252
  <line num="373" count="0" type="stmt"/>
246
- <line num="375" count="0" type="cond" truecount="0" falsecount="2"/>
247
- <line num="376" count="0" type="stmt"/>
248
- <line num="378" count="0" type="stmt"/>
249
- <line num="384" count="36" type="stmt"/>
250
- <line num="385" count="5" type="stmt"/>
251
- <line num="386" count="5" type="stmt"/>
252
- <line num="387" count="5" type="stmt"/>
253
- <line num="389" count="5" type="stmt"/>
254
- <line num="390" count="5" type="cond" truecount="1" falsecount="1"/>
255
- <line num="391" count="5" type="stmt"/>
256
- <line num="396" count="5" type="stmt"/>
257
- <line num="398" count="5" type="stmt"/>
258
- <line num="400" count="5" type="stmt"/>
259
- <line num="401" count="5" type="stmt"/>
260
- <line num="404" count="36" type="stmt"/>
261
- <line num="405" count="190" type="stmt"/>
262
- <line num="407" count="190" type="stmt"/>
263
- <line num="408" count="190" type="stmt"/>
264
- <line num="409" count="380" type="stmt"/>
265
- <line num="410" count="380" type="stmt"/>
266
- <line num="413" count="190" type="stmt"/>
253
+ <line num="374" count="0" type="stmt"/>
254
+ <line num="375" count="0" type="stmt"/>
255
+ <line num="376" count="0" type="cond" truecount="0" falsecount="2"/>
256
+ <line num="379" count="0" type="stmt"/>
257
+ <line num="380" count="0" type="stmt"/>
258
+ <line num="383" count="0" type="stmt"/>
259
+ <line num="386" count="0" type="stmt"/>
260
+ <line num="391" count="0" type="stmt"/>
261
+ <line num="392" count="0" type="stmt"/>
262
+ <line num="394" count="0" type="stmt"/>
263
+ <line num="398" count="0" type="stmt"/>
264
+ <line num="402" count="0" type="stmt"/>
265
+ <line num="404" count="0" type="cond" truecount="0" falsecount="2"/>
266
+ <line num="405" count="0" type="stmt"/>
267
+ <line num="407" count="0" type="stmt"/>
268
+ <line num="413" count="36" type="stmt"/>
269
+ <line num="414" count="5" type="stmt"/>
270
+ <line num="415" count="5" type="stmt"/>
271
+ <line num="417" count="5" type="stmt"/>
272
+ <line num="418" count="5" type="cond" truecount="1" falsecount="1"/>
273
+ <line num="419" count="5" type="stmt"/>
274
+ <line num="424" count="5" type="stmt"/>
275
+ <line num="426" count="5" type="stmt"/>
276
+ <line num="428" count="5" type="stmt"/>
277
+ <line num="429" count="5" type="stmt"/>
278
+ <line num="432" count="36" type="stmt"/>
279
+ <line num="433" count="192" type="stmt"/>
280
+ <line num="435" count="192" type="stmt"/>
281
+ <line num="436" count="192" type="stmt"/>
282
+ <line num="437" count="384" type="stmt"/>
283
+ <line num="438" count="384" type="stmt"/>
284
+ <line num="441" count="192" type="stmt"/>
267
285
  </file>
268
286
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
269
287
  <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
@@ -477,14 +495,14 @@
477
495
  <line num="20" count="1" type="stmt"/>
478
496
  <line num="21" count="1" type="stmt"/>
479
497
  <line num="22" count="1" type="stmt"/>
480
- <line num="23" count="49" type="cond" truecount="2" falsecount="0"/>
498
+ <line num="23" count="50" type="cond" truecount="2" falsecount="0"/>
481
499
  <line num="24" count="1" type="stmt"/>
482
- <line num="26" count="48" type="stmt"/>
483
- <line num="27" count="48" type="stmt"/>
500
+ <line num="26" count="49" type="stmt"/>
501
+ <line num="27" count="49" type="stmt"/>
484
502
  <line num="34" count="1" type="stmt"/>
485
503
  </file>
486
504
  <file name="datasource.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/datasource.js">
487
- <metrics statements="123" coveredstatements="73" conditionals="45" coveredconditionals="15" methods="19" coveredmethods="11"/>
505
+ <metrics statements="129" coveredstatements="77" conditionals="53" coveredconditionals="20" methods="19" coveredmethods="11"/>
488
506
  <line num="1" count="37" type="stmt"/>
489
507
  <line num="9" count="37" type="stmt"/>
490
508
  <line num="10" count="37" type="stmt"/>
@@ -500,114 +518,120 @@
500
518
  <line num="33" count="2" type="stmt"/>
501
519
  <line num="39" count="1" type="stmt"/>
502
520
  <line num="41" count="2" type="stmt"/>
503
- <line num="44" count="37" type="stmt"/>
504
- <line num="45" count="0" type="stmt"/>
505
- <line num="46" count="0" type="stmt"/>
506
- <line num="48" count="0" type="stmt"/>
507
- <line num="49" count="0" type="stmt"/>
508
- <line num="51" count="0" type="stmt"/>
521
+ <line num="42" count="1" type="cond" truecount="3" falsecount="1"/>
522
+ <line num="44" count="0" type="stmt"/>
523
+ <line num="48" count="2" type="stmt"/>
524
+ <line num="51" count="37" type="stmt"/>
509
525
  <line num="52" count="0" type="stmt"/>
510
- <line num="54" count="0" type="stmt"/>
511
- <line num="55" count="0" type="cond" truecount="0" falsecount="2"/>
526
+ <line num="53" count="0" type="stmt"/>
527
+ <line num="55" count="0" type="stmt"/>
512
528
  <line num="56" count="0" type="stmt"/>
513
529
  <line num="58" count="0" type="stmt"/>
514
- <line num="64" count="37" type="stmt"/>
515
- <line num="65" count="6" type="stmt"/>
516
- <line num="66" count="6" type="stmt"/>
517
- <line num="67" count="6" type="stmt"/>
518
- <line num="69" count="6" type="cond" truecount="2" falsecount="0"/>
519
- <line num="70" count="5" type="stmt"/>
520
- <line num="73" count="1" type="cond" truecount="1" falsecount="1"/>
521
- <line num="75" count="0" type="stmt"/>
522
- <line num="78" count="1" type="stmt"/>
523
- <line num="79" count="1" type="stmt"/>
524
- <line num="81" count="0" type="cond" truecount="0" falsecount="3"/>
525
- <line num="85" count="1" type="cond" truecount="1" falsecount="1"/>
530
+ <line num="59" count="0" type="stmt"/>
531
+ <line num="61" count="0" type="stmt"/>
532
+ <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
533
+ <line num="63" count="0" type="stmt"/>
534
+ <line num="65" count="0" type="stmt"/>
535
+ <line num="71" count="37" type="stmt"/>
536
+ <line num="72" count="6" type="stmt"/>
537
+ <line num="73" count="6" type="stmt"/>
538
+ <line num="74" count="6" type="stmt"/>
539
+ <line num="76" count="6" type="cond" truecount="2" falsecount="0"/>
540
+ <line num="77" count="5" type="stmt"/>
541
+ <line num="80" count="1" type="cond" truecount="1" falsecount="1"/>
542
+ <line num="82" count="0" type="stmt"/>
543
+ <line num="85" count="1" type="stmt"/>
526
544
  <line num="86" count="1" type="stmt"/>
527
- <line num="90" count="1" type="stmt"/>
528
- <line num="93" count="37" type="stmt"/>
529
- <line num="94" count="6" type="stmt"/>
530
- <line num="95" count="6" type="stmt"/>
531
- <line num="96" count="6" type="stmt"/>
532
- <line num="97" count="6" type="stmt"/>
533
- <line num="98" count="6" type="stmt"/>
534
- <line num="100" count="6" type="stmt"/>
545
+ <line num="88" count="0" type="cond" truecount="0" falsecount="3"/>
546
+ <line num="92" count="1" type="cond" truecount="1" falsecount="1"/>
547
+ <line num="93" count="1" type="stmt"/>
548
+ <line num="97" count="1" type="stmt"/>
549
+ <line num="100" count="37" type="stmt"/>
535
550
  <line num="101" count="6" type="stmt"/>
536
- <line num="104" count="6" type="cond" truecount="1" falsecount="1"/>
551
+ <line num="102" count="6" type="stmt"/>
552
+ <line num="103" count="6" type="stmt"/>
553
+ <line num="104" count="6" type="stmt"/>
537
554
  <line num="105" count="6" type="stmt"/>
538
- <line num="106" count="6" type="cond" truecount="3" falsecount="1"/>
539
- <line num="107" count="0" type="stmt"/>
540
- <line num="111" count="6" type="stmt"/>
555
+ <line num="106" count="6" type="stmt"/>
556
+ <line num="107" count="6" type="cond" truecount="2" falsecount="2"/>
557
+ <line num="109" count="0" type="stmt"/>
541
558
  <line num="112" count="6" type="stmt"/>
542
559
  <line num="113" count="6" type="stmt"/>
543
- <line num="116" count="37" type="stmt"/>
544
- <line num="117" count="35" type="stmt"/>
545
- <line num="118" count="35" type="stmt"/>
546
- <line num="119" count="35" type="stmt"/>
547
- <line num="121" count="35" type="stmt"/>
548
- <line num="127" count="35" type="stmt"/>
549
- <line num="128" count="35" type="cond" truecount="1" falsecount="1"/>
550
- <line num="129" count="0" type="stmt"/>
551
- <line num="130" count="0" type="stmt"/>
552
- <line num="131" count="0" type="stmt"/>
553
- <line num="134" count="35" type="stmt"/>
554
- <line num="135" count="35" type="stmt"/>
555
- <line num="138" count="35" type="cond" truecount="1" falsecount="1"/>
556
- <line num="139" count="35" type="stmt"/>
557
- <line num="140" count="35" type="cond" truecount="3" falsecount="1"/>
560
+ <line num="116" count="6" type="cond" truecount="1" falsecount="1"/>
561
+ <line num="117" count="6" type="stmt"/>
562
+ <line num="118" count="6" type="cond" truecount="3" falsecount="1"/>
563
+ <line num="119" count="0" type="stmt"/>
564
+ <line num="123" count="6" type="stmt"/>
565
+ <line num="124" count="6" type="stmt"/>
566
+ <line num="125" count="6" type="stmt"/>
567
+ <line num="128" count="37" type="stmt"/>
568
+ <line num="129" count="39" type="stmt"/>
569
+ <line num="130" count="39" type="stmt"/>
570
+ <line num="131" count="39" type="stmt"/>
571
+ <line num="133" count="39" type="stmt"/>
572
+ <line num="139" count="39" type="stmt"/>
573
+ <line num="140" count="39" type="cond" truecount="1" falsecount="1"/>
558
574
  <line num="141" count="0" type="stmt"/>
559
- <line num="145" count="35" type="stmt"/>
560
- <line num="146" count="35" type="cond" truecount="1" falsecount="1"/>
561
- <line num="147" count="0" type="stmt"/>
562
- <line num="149" count="35" type="stmt"/>
563
- <line num="152" count="37" type="stmt"/>
564
- <line num="153" count="1" type="stmt"/>
565
- <line num="156" count="1" type="stmt"/>
566
- <line num="159" count="1" type="stmt"/>
567
- <line num="160" count="1" type="stmt"/>
575
+ <line num="142" count="0" type="stmt"/>
576
+ <line num="143" count="0" type="stmt"/>
577
+ <line num="146" count="39" type="stmt"/>
578
+ <line num="147" count="39" type="stmt"/>
579
+ <line num="150" count="39" type="cond" truecount="1" falsecount="1"/>
580
+ <line num="151" count="39" type="stmt"/>
581
+ <line num="152" count="39" type="cond" truecount="3" falsecount="1"/>
582
+ <line num="153" count="0" type="stmt"/>
583
+ <line num="157" count="39" type="stmt"/>
584
+ <line num="158" count="39" type="cond" truecount="1" falsecount="1"/>
585
+ <line num="159" count="0" type="stmt"/>
586
+ <line num="161" count="39" type="stmt"/>
587
+ <line num="164" count="37" type="stmt"/>
588
+ <line num="165" count="1" type="stmt"/>
568
589
  <line num="168" count="1" type="stmt"/>
569
- <line num="170" count="1" type="stmt"/>
570
590
  <line num="171" count="1" type="stmt"/>
571
- <line num="174" count="37" type="stmt"/>
572
- <line num="175" count="1" type="stmt"/>
573
- <line num="176" count="1" type="stmt"/>
574
- <line num="180" count="37" type="stmt"/>
575
- <line num="181" count="1" type="stmt"/>
591
+ <line num="172" count="1" type="stmt"/>
592
+ <line num="180" count="1" type="stmt"/>
576
593
  <line num="182" count="1" type="stmt"/>
577
594
  <line num="183" count="1" type="stmt"/>
578
- <line num="185" count="0" type="stmt"/>
579
- <line num="190" count="0" type="stmt"/>
580
- <line num="191" count="0" type="stmt"/>
581
- <line num="192" count="0" type="stmt"/>
582
- <line num="196" count="0" type="cond" truecount="0" falsecount="2"/>
595
+ <line num="186" count="37" type="stmt"/>
596
+ <line num="187" count="1" type="stmt"/>
597
+ <line num="188" count="1" type="stmt"/>
598
+ <line num="192" count="37" type="stmt"/>
599
+ <line num="193" count="1" type="stmt"/>
600
+ <line num="194" count="1" type="stmt"/>
601
+ <line num="195" count="1" type="stmt"/>
583
602
  <line num="197" count="0" type="stmt"/>
584
- <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
585
- <line num="200" count="0" type="stmt"/>
586
603
  <line num="202" count="0" type="stmt"/>
587
604
  <line num="203" count="0" type="stmt"/>
588
- <line num="206" count="37" type="stmt"/>
589
- <line num="207" count="0" type="stmt"/>
590
- <line num="210" count="0" type="stmt"/>
591
- <line num="211" count="0" type="stmt"/>
605
+ <line num="204" count="0" type="stmt"/>
606
+ <line num="208" count="0" type="cond" truecount="0" falsecount="2"/>
607
+ <line num="209" count="0" type="stmt"/>
608
+ <line num="211" count="0" type="cond" truecount="0" falsecount="2"/>
592
609
  <line num="212" count="0" type="stmt"/>
610
+ <line num="214" count="0" type="stmt"/>
593
611
  <line num="215" count="0" type="stmt"/>
594
- <line num="216" count="0" type="cond" truecount="0" falsecount="2"/>
595
- <line num="217" count="0" type="stmt"/>
612
+ <line num="218" count="37" type="stmt"/>
596
613
  <line num="219" count="0" type="stmt"/>
597
- <line num="220" count="0" type="stmt"/>
598
- <line num="222" count="0" type="cond" truecount="0" falsecount="2"/>
614
+ <line num="222" count="0" type="stmt"/>
599
615
  <line num="223" count="0" type="stmt"/>
616
+ <line num="224" count="0" type="stmt"/>
600
617
  <line num="227" count="0" type="stmt"/>
601
- <line num="228" count="0" type="stmt"/>
602
- <line num="229" count="0" type="cond" truecount="0" falsecount="4"/>
603
- <line num="230" count="0" type="stmt"/>
618
+ <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
619
+ <line num="229" count="0" type="stmt"/>
604
620
  <line num="231" count="0" type="stmt"/>
605
- <line num="232" count="0" type="cond" truecount="0" falsecount="2"/>
606
- <line num="233" count="0" type="stmt"/>
607
- <line num="239" count="0" type="cond" truecount="0" falsecount="2"/>
621
+ <line num="232" count="0" type="stmt"/>
622
+ <line num="234" count="0" type="cond" truecount="0" falsecount="2"/>
623
+ <line num="235" count="0" type="stmt"/>
624
+ <line num="239" count="0" type="stmt"/>
608
625
  <line num="240" count="0" type="stmt"/>
609
- <line num="241" count="0" type="stmt"/>
610
- <line num="248" count="0" type="stmt"/>
626
+ <line num="241" count="0" type="cond" truecount="0" falsecount="4"/>
627
+ <line num="242" count="0" type="stmt"/>
628
+ <line num="243" count="0" type="stmt"/>
629
+ <line num="244" count="0" type="cond" truecount="0" falsecount="2"/>
630
+ <line num="245" count="0" type="stmt"/>
631
+ <line num="251" count="0" type="cond" truecount="0" falsecount="2"/>
632
+ <line num="252" count="0" type="stmt"/>
633
+ <line num="253" count="0" type="stmt"/>
634
+ <line num="260" count="0" type="stmt"/>
611
635
  </file>
612
636
  <file name="dev.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/dev.js">
613
637
  <metrics statements="63" coveredstatements="18" conditionals="15" coveredconditionals="0" methods="10" coveredmethods="3"/>
@@ -675,24 +699,6 @@
675
699
  <line num="120" count="23" type="stmt"/>
676
700
  <line num="121" count="0" type="stmt"/>
677
701
  </file>
678
- <file name="hosting.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/hosting.js">
679
- <metrics statements="15" coveredstatements="14" conditionals="4" coveredconditionals="3" methods="2" coveredmethods="1"/>
680
- <line num="1" count="23" type="stmt"/>
681
- <line num="2" count="23" type="stmt"/>
682
- <line num="3" count="23" type="stmt"/>
683
- <line num="4" count="23" type="stmt"/>
684
- <line num="5" count="23" type="stmt"/>
685
- <line num="7" count="23" type="stmt"/>
686
- <line num="8" count="1" type="stmt"/>
687
- <line num="9" count="1" type="stmt"/>
688
- <line num="10" count="1" type="stmt"/>
689
- <line num="11" count="1" type="stmt"/>
690
- <line num="12" count="1" type="cond" truecount="3" falsecount="1"/>
691
- <line num="13" count="1" type="stmt"/>
692
- <line num="15" count="1" type="stmt"/>
693
- <line num="20" count="23" type="stmt"/>
694
- <line num="21" count="0" type="stmt"/>
695
- </file>
696
702
  <file name="integration.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/integration.js">
697
703
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
698
704
  <line num="1" count="23" type="stmt"/>
@@ -1187,9 +1193,9 @@
1187
1193
  </file>
1188
1194
  </package>
1189
1195
  <package name="api.controllers.query">
1190
- <metrics statements="97" coveredstatements="80" conditionals="21" coveredconditionals="15" methods="17" coveredmethods="15"/>
1196
+ <metrics statements="102" coveredstatements="83" conditionals="29" coveredconditionals="19" methods="17" coveredmethods="15"/>
1191
1197
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
1192
- <metrics statements="89" coveredstatements="72" conditionals="21" coveredconditionals="15" methods="14" coveredmethods="12"/>
1198
+ <metrics statements="94" coveredstatements="75" conditionals="29" coveredconditionals="19" methods="14" coveredmethods="12"/>
1193
1199
  <line num="1" count="37" type="stmt"/>
1194
1200
  <line num="6" count="37" type="stmt"/>
1195
1201
  <line num="7" count="37" type="stmt"/>
@@ -1252,33 +1258,38 @@
1252
1258
  <line num="139" count="2" type="stmt"/>
1253
1259
  <line num="141" count="2" type="stmt"/>
1254
1260
  <line num="142" count="2" type="stmt"/>
1255
- <line num="145" count="2" type="stmt"/>
1256
- <line num="146" count="2" type="stmt"/>
1257
- <line num="156" count="1" type="cond" truecount="3" falsecount="1"/>
1258
- <line num="157" count="1" type="stmt"/>
1259
- <line num="159" count="0" type="stmt"/>
1260
- <line num="162" count="1" type="stmt"/>
1261
- <line num="166" count="37" type="stmt"/>
1262
- <line num="167" count="2" type="stmt"/>
1263
- <line num="170" count="37" type="stmt"/>
1264
- <line num="171" count="0" type="stmt"/>
1265
- <line num="174" count="37" type="stmt"/>
1266
- <line num="175" count="2" type="stmt"/>
1267
- <line num="176" count="2" type="stmt"/>
1261
+ <line num="144" count="2" type="cond" truecount="1" falsecount="1"/>
1262
+ <line num="146" count="2" type="cond" truecount="3" falsecount="1"/>
1263
+ <line num="147" count="2" type="stmt"/>
1264
+ <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
1265
+ <line num="149" count="0" type="stmt"/>
1266
+ <line num="155" count="2" type="stmt"/>
1267
+ <line num="156" count="2" type="stmt"/>
1268
+ <line num="166" count="1" type="cond" truecount="3" falsecount="1"/>
1269
+ <line num="167" count="1" type="stmt"/>
1270
+ <line num="169" count="0" type="stmt"/>
1271
+ <line num="172" count="1" type="stmt"/>
1272
+ <line num="176" count="37" type="stmt"/>
1268
1273
  <line num="177" count="2" type="stmt"/>
1269
- <line num="179" count="2" type="cond" truecount="2" falsecount="0"/>
1270
- <line num="181" count="1" type="stmt"/>
1271
- <line num="182" count="1" type="stmt"/>
1272
- <line num="183" count="1" type="stmt"/>
1273
- <line num="186" count="1" type="stmt"/>
1274
- <line num="187" count="1" type="stmt"/>
1275
- <line num="189" count="1" type="stmt"/>
1276
- <line num="193" count="37" type="stmt"/>
1277
- <line num="194" count="2" type="stmt"/>
1278
- <line num="195" count="2" type="stmt"/>
1279
- <line num="196" count="2" type="stmt"/>
1280
- <line num="197" count="2" type="stmt"/>
1281
- <line num="198" count="2" type="stmt"/>
1274
+ <line num="180" count="37" type="stmt"/>
1275
+ <line num="181" count="0" type="stmt"/>
1276
+ <line num="184" count="37" type="stmt"/>
1277
+ <line num="185" count="2" type="stmt"/>
1278
+ <line num="186" count="2" type="stmt"/>
1279
+ <line num="187" count="2" type="stmt"/>
1280
+ <line num="189" count="2" type="cond" truecount="2" falsecount="0"/>
1281
+ <line num="191" count="1" type="stmt"/>
1282
+ <line num="192" count="1" type="stmt"/>
1283
+ <line num="194" count="1" type="stmt"/>
1284
+ <line num="197" count="1" type="stmt"/>
1285
+ <line num="198" count="1" type="stmt"/>
1286
+ <line num="200" count="1" type="stmt"/>
1287
+ <line num="204" count="37" type="stmt"/>
1288
+ <line num="205" count="2" type="stmt"/>
1289
+ <line num="206" count="2" type="stmt"/>
1290
+ <line num="207" count="2" type="stmt"/>
1291
+ <line num="208" count="2" type="stmt"/>
1292
+ <line num="209" count="2" type="stmt"/>
1282
1293
  </file>
1283
1294
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1284
1295
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
@@ -1293,7 +1304,7 @@
1293
1304
  </file>
1294
1305
  </package>
1295
1306
  <package name="api.controllers.row">
1296
- <metrics statements="596" coveredstatements="314" conditionals="258" coveredconditionals="85" methods="88" coveredmethods="38"/>
1307
+ <metrics statements="596" coveredstatements="314" conditionals="257" coveredconditionals="84" methods="88" coveredmethods="38"/>
1297
1308
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1298
1309
  <metrics statements="99" coveredstatements="15" conditionals="42" coveredconditionals="0" methods="13" coveredmethods="0"/>
1299
1310
  <line num="6" count="37" type="stmt"/>
@@ -1852,7 +1863,7 @@
1852
1863
  <line num="388" count="0" type="stmt"/>
1853
1864
  </file>
1854
1865
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1855
- <metrics statements="51" coveredstatements="35" conditionals="31" coveredconditionals="14" methods="6" coveredmethods="4"/>
1866
+ <metrics statements="51" coveredstatements="35" conditionals="30" coveredconditionals="13" methods="6" coveredmethods="4"/>
1856
1867
  <line num="1" count="37" type="stmt"/>
1857
1868
  <line num="2" count="37" type="stmt"/>
1858
1869
  <line num="3" count="37" type="stmt"/>
@@ -1886,24 +1897,24 @@
1886
1897
  <line num="51" count="77" type="stmt"/>
1887
1898
  <line num="52" count="212" type="stmt"/>
1888
1899
  <line num="53" count="212" type="stmt"/>
1889
- <line num="55" count="212" type="cond" truecount="1" falsecount="1"/>
1890
- <line num="59" count="0" type="stmt"/>
1891
- <line num="64" count="212" type="cond" truecount="2" falsecount="2"/>
1892
- <line num="65" count="0" type="cond" truecount="0" falsecount="2"/>
1893
- <line num="66" count="0" type="stmt"/>
1894
- <line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
1895
- <line num="68" count="0" type="stmt"/>
1896
- <line num="71" count="0" type="cond" truecount="0" falsecount="4"/>
1897
- <line num="73" count="0" type="stmt"/>
1898
- <line num="75" count="212" type="cond" truecount="2" falsecount="2"/>
1900
+ <line num="55" count="212" type="cond" truecount="2" falsecount="2"/>
1901
+ <line num="56" count="0" type="stmt"/>
1902
+ <line num="61" count="212" type="cond" truecount="2" falsecount="2"/>
1903
+ <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
1904
+ <line num="63" count="0" type="stmt"/>
1905
+ <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
1906
+ <line num="65" count="0" type="stmt"/>
1907
+ <line num="68" count="0" type="cond" truecount="0" falsecount="4"/>
1908
+ <line num="70" count="0" type="stmt"/>
1909
+ <line num="72" count="212" type="cond" truecount="2" falsecount="2"/>
1910
+ <line num="74" count="0" type="stmt"/>
1911
+ <line num="75" count="0" type="stmt"/>
1899
1912
  <line num="77" count="0" type="stmt"/>
1900
- <line num="78" count="0" type="stmt"/>
1913
+ <line num="79" count="212" type="cond" truecount="1" falsecount="1"/>
1901
1914
  <line num="80" count="0" type="stmt"/>
1902
- <line num="82" count="212" type="cond" truecount="1" falsecount="1"/>
1903
- <line num="83" count="0" type="stmt"/>
1904
- <line num="88" count="212" type="stmt"/>
1905
- <line num="90" count="212" type="cond" truecount="2" falsecount="0"/>
1906
- <line num="92" count="77" type="stmt"/>
1915
+ <line num="85" count="212" type="stmt"/>
1916
+ <line num="87" count="212" type="cond" truecount="2" falsecount="0"/>
1917
+ <line num="89" count="77" type="stmt"/>
1907
1918
  </file>
1908
1919
  </package>
1909
1920
  <package name="api.controllers.table">
@@ -2559,7 +2570,7 @@
2559
2570
  </file>
2560
2571
  </package>
2561
2572
  <package name="api.routes">
2562
- <metrics statements="268" coveredstatements="261" conditionals="11" coveredconditionals="7" methods="10" coveredmethods="10"/>
2573
+ <metrics statements="260" coveredstatements="253" conditionals="11" coveredconditionals="7" methods="10" coveredmethods="10"/>
2563
2574
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/analytics.js">
2564
2575
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2565
2576
  <line num="1" count="23" type="stmt"/>
@@ -2683,18 +2694,8 @@
2683
2694
  <line num="21" count="23" type="stmt"/>
2684
2695
  <line num="26" count="23" type="stmt"/>
2685
2696
  </file>
2686
- <file name="hosting.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/hosting.js">
2687
- <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2688
- <line num="1" count="23" type="stmt"/>
2689
- <line num="2" count="23" type="stmt"/>
2690
- <line num="3" count="23" type="stmt"/>
2691
- <line num="4" count="23" type="stmt"/>
2692
- <line num="6" count="23" type="stmt"/>
2693
- <line num="8" count="23" type="stmt"/>
2694
- <line num="13" count="23" type="stmt"/>
2695
- </file>
2696
2697
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/index.js">
2697
- <metrics statements="29" coveredstatements="29" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2698
+ <metrics statements="28" coveredstatements="28" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2698
2699
  <line num="1" count="23" type="stmt"/>
2699
2700
  <line num="2" count="23" type="stmt"/>
2700
2701
  <line num="3" count="23" type="stmt"/>
@@ -2721,9 +2722,8 @@
2721
2722
  <line num="24" count="23" type="stmt"/>
2722
2723
  <line num="25" count="23" type="stmt"/>
2723
2724
  <line num="26" count="23" type="stmt"/>
2724
- <line num="27" count="23" type="stmt"/>
2725
- <line num="29" count="23" type="stmt"/>
2726
- <line num="60" count="23" type="stmt"/>
2725
+ <line num="28" count="23" type="stmt"/>
2726
+ <line num="58" count="23" type="stmt"/>
2727
2727
  </file>
2728
2728
  <file name="integration.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/integration.js">
2729
2729
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -2854,7 +2854,7 @@
2854
2854
  <line num="33" count="23" type="cond" truecount="1" falsecount="1"/>
2855
2855
  <line num="34" count="23" type="stmt"/>
2856
2856
  <line num="37" count="23" type="stmt"/>
2857
- <line num="50" count="23" type="stmt"/>
2857
+ <line num="55" count="23" type="stmt"/>
2858
2858
  </file>
2859
2859
  <file name="table.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/table.js">
2860
2860
  <metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -3101,13 +3101,13 @@
3101
3101
  <line num="50" count="36" type="stmt"/>
3102
3102
  <line num="53" count="72" type="stmt"/>
3103
3103
  <line num="57" count="36" type="stmt"/>
3104
- <line num="58" count="197" type="stmt"/>
3105
- <line num="59" count="197" type="stmt"/>
3106
- <line num="60" count="197" type="stmt"/>
3104
+ <line num="58" count="199" type="stmt"/>
3105
+ <line num="59" count="199" type="stmt"/>
3106
+ <line num="60" count="199" type="stmt"/>
3107
3107
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
3108
3108
  <line num="62" count="0" type="stmt"/>
3109
3109
  <line num="63" count="0" type="stmt"/>
3110
- <line num="66" count="197" type="stmt"/>
3110
+ <line num="66" count="199" type="stmt"/>
3111
3111
  <line num="74" count="36" type="stmt"/>
3112
3112
  <line num="75" count="1" type="cond" truecount="1" falsecount="1"/>
3113
3113
  <line num="77" count="1" type="stmt"/>
@@ -3477,9 +3477,9 @@
3477
3477
  </file>
3478
3478
  </package>
3479
3479
  <package name="constants">
3480
- <metrics statements="28" coveredstatements="28" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3480
+ <metrics statements="29" coveredstatements="29" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3481
3481
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3482
- <metrics statements="21" coveredstatements="21" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3482
+ <metrics statements="22" coveredstatements="22" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3483
3483
  <line num="1" count="45" type="stmt"/>
3484
3484
  <line num="2" count="45" type="stmt"/>
3485
3485
  <line num="3" count="45" type="stmt"/>
@@ -3493,14 +3493,15 @@
3493
3493
  <line num="61" count="45" type="stmt"/>
3494
3494
  <line num="67" count="45" type="stmt"/>
3495
3495
  <line num="78" count="45" type="stmt"/>
3496
- <line num="83" count="45" type="stmt"/>
3497
- <line num="145" count="45" type="stmt"/>
3498
- <line num="153" count="45" type="stmt"/>
3499
- <line num="154" count="45" type="stmt"/>
3500
- <line num="161" count="45" type="stmt"/>
3501
- <line num="166" count="45" type="stmt"/>
3502
- <line num="172" count="45" type="stmt"/>
3503
- <line num="178" count="45" type="stmt"/>
3496
+ <line num="82" count="45" type="stmt"/>
3497
+ <line num="87" count="45" type="stmt"/>
3498
+ <line num="149" count="45" type="stmt"/>
3499
+ <line num="157" count="45" type="stmt"/>
3500
+ <line num="158" count="45" type="stmt"/>
3501
+ <line num="165" count="45" type="stmt"/>
3502
+ <line num="170" count="45" type="stmt"/>
3503
+ <line num="176" count="45" type="stmt"/>
3504
+ <line num="182" count="45" type="stmt"/>
3504
3505
  </file>
3505
3506
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3506
3507
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3573,7 +3574,7 @@
3573
3574
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3574
3575
  <line num="1" count="52" type="stmt"/>
3575
3576
  <line num="3" count="52" type="stmt"/>
3576
- <line num="4" count="729" type="stmt"/>
3577
+ <line num="4" count="924" type="stmt"/>
3577
3578
  </file>
3578
3579
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3579
3580
  <metrics statements="110" coveredstatements="102" conditionals="51" coveredconditionals="19" methods="31" coveredmethods="27"/>
@@ -3605,9 +3606,9 @@
3605
3606
  <line num="85" count="52" type="stmt"/>
3606
3607
  <line num="87" count="52" type="stmt"/>
3607
3608
  <line num="88" count="74" type="stmt"/>
3608
- <line num="104" count="643" type="cond" truecount="2" falsecount="0"/>
3609
- <line num="105" count="630" type="stmt"/>
3610
- <line num="107" count="643" type="stmt"/>
3609
+ <line num="104" count="649" type="cond" truecount="2" falsecount="0"/>
3610
+ <line num="105" count="636" type="stmt"/>
3611
+ <line num="107" count="649" type="stmt"/>
3611
3612
  <line num="114" count="52" type="stmt"/>
3612
3613
  <line num="119" count="52" type="cond" truecount="0" falsecount="2"/>
3613
3614
  <line num="120" count="3" type="stmt"/>
@@ -3619,19 +3620,19 @@
3619
3620
  <line num="144" count="11" type="cond" truecount="1" falsecount="1"/>
3620
3621
  <line num="146" count="11" type="stmt"/>
3621
3622
  <line num="155" count="52" type="cond" truecount="1" falsecount="0"/>
3622
- <line num="156" count="213" type="cond" truecount="2" falsecount="0"/>
3623
- <line num="157" count="213" type="stmt"/>
3623
+ <line num="156" count="216" type="cond" truecount="2" falsecount="0"/>
3624
+ <line num="157" count="216" type="stmt"/>
3624
3625
  <line num="163" count="52" type="cond" truecount="0" falsecount="2"/>
3625
3626
  <line num="164" count="3" type="stmt"/>
3626
3627
  <line num="172" count="52" type="stmt"/>
3627
- <line num="173" count="142" type="stmt"/>
3628
+ <line num="173" count="145" type="stmt"/>
3628
3629
  <line num="179" count="52" type="stmt"/>
3629
3630
  <line num="180" count="2" type="stmt"/>
3630
3631
  <line num="181" count="2" type="cond" truecount="4" falsecount="0"/>
3631
3632
  <line num="182" count="1" type="stmt"/>
3632
3633
  <line num="184" count="1" type="stmt"/>
3633
3634
  <line num="190" count="52" type="cond" truecount="0" falsecount="2"/>
3634
- <line num="191" count="215" type="stmt"/>
3635
+ <line num="191" count="217" type="stmt"/>
3635
3636
  <line num="198" count="52" type="stmt"/>
3636
3637
  <line num="199" count="20" type="stmt"/>
3637
3638
  <line num="213" count="52" type="stmt"/>
@@ -3642,28 +3643,28 @@
3642
3643
  <line num="230" count="52" type="cond" truecount="0" falsecount="1"/>
3643
3644
  <line num="231" count="0" type="stmt"/>
3644
3645
  <line num="238" count="52" type="cond" truecount="0" falsecount="1"/>
3645
- <line num="239" count="190" type="stmt"/>
3646
- <line num="240" count="190" type="cond" truecount="1" falsecount="1"/>
3646
+ <line num="239" count="192" type="stmt"/>
3647
+ <line num="240" count="192" type="cond" truecount="1" falsecount="1"/>
3647
3648
  <line num="241" count="0" type="stmt"/>
3648
- <line num="243" count="190" type="stmt"/>
3649
+ <line num="243" count="192" type="stmt"/>
3649
3650
  <line num="250" count="52" type="stmt"/>
3650
- <line num="251" count="190" type="stmt"/>
3651
- <line num="252" count="190" type="stmt"/>
3652
- <line num="253" count="190" type="stmt"/>
3651
+ <line num="251" count="192" type="stmt"/>
3652
+ <line num="252" count="192" type="stmt"/>
3653
+ <line num="253" count="192" type="stmt"/>
3653
3654
  <line num="260" count="52" type="stmt"/>
3654
3655
  <line num="261" count="5" type="cond" truecount="2" falsecount="0"/>
3655
3656
  <line num="267" count="52" type="cond" truecount="0" falsecount="2"/>
3656
- <line num="268" count="200" type="stmt"/>
3657
+ <line num="268" count="202" type="stmt"/>
3657
3658
  <line num="275" count="52" type="stmt"/>
3658
3659
  <line num="276" count="19" type="stmt"/>
3659
3660
  <line num="282" count="52" type="cond" truecount="0" falsecount="2"/>
3660
- <line num="283" count="202" type="stmt"/>
3661
+ <line num="283" count="204" type="stmt"/>
3661
3662
  <line num="290" count="52" type="stmt"/>
3662
3663
  <line num="291" count="10" type="stmt"/>
3663
3664
  <line num="297" count="52" type="cond" truecount="0" falsecount="2"/>
3664
3665
  <line num="298" count="2" type="stmt"/>
3665
3666
  <line num="305" count="52" type="cond" truecount="1" falsecount="1"/>
3666
- <line num="306" count="35" type="stmt"/>
3667
+ <line num="306" count="39" type="stmt"/>
3667
3668
  <line num="314" count="52" type="cond" truecount="0" falsecount="2"/>
3668
3669
  <line num="315" count="3" type="stmt"/>
3669
3670
  <line num="322" count="52" type="stmt"/>
@@ -4058,7 +4059,7 @@
4058
4059
  </file>
4059
4060
  </package>
4060
4061
  <package name="middleware">
4061
- <metrics statements="260" coveredstatements="219" conditionals="175" coveredconditionals="124" methods="33" coveredmethods="29"/>
4062
+ <metrics statements="259" coveredstatements="218" conditionals="175" coveredconditionals="124" methods="33" coveredmethods="29"/>
4062
4063
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
4063
4064
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
4064
4065
  <line num="1" count="23" type="stmt"/>
@@ -4081,18 +4082,18 @@
4081
4082
  <line num="14" count="7" type="stmt"/>
4082
4083
  <line num="17" count="24" type="stmt"/>
4083
4084
  <line num="19" count="2338" type="stmt"/>
4084
- <line num="22" count="160" type="cond" truecount="4" falsecount="0"/>
4085
+ <line num="22" count="162" type="cond" truecount="4" falsecount="0"/>
4085
4086
  <line num="23" count="1" type="stmt"/>
4086
- <line num="26" count="159" type="cond" truecount="2" falsecount="0"/>
4087
+ <line num="26" count="161" type="cond" truecount="2" falsecount="0"/>
4087
4088
  <line num="27" count="1" type="stmt"/>
4088
- <line num="32" count="158" type="stmt"/>
4089
- <line num="34" count="158" type="stmt"/>
4090
- <line num="36" count="158" type="cond" truecount="3" falsecount="0"/>
4091
- <line num="37" count="158" type="stmt"/>
4092
- <line num="38" count="158" type="cond" truecount="2" falsecount="0"/>
4093
- <line num="39" count="122" type="stmt"/>
4094
- <line num="40" count="36" type="cond" truecount="4" falsecount="0"/>
4095
- <line num="41" count="29" type="stmt"/>
4089
+ <line num="32" count="160" type="stmt"/>
4090
+ <line num="34" count="160" type="stmt"/>
4091
+ <line num="36" count="160" type="cond" truecount="3" falsecount="0"/>
4092
+ <line num="37" count="160" type="stmt"/>
4093
+ <line num="38" count="160" type="cond" truecount="2" falsecount="0"/>
4094
+ <line num="39" count="125" type="stmt"/>
4095
+ <line num="40" count="35" type="cond" truecount="4" falsecount="0"/>
4096
+ <line num="41" count="28" type="stmt"/>
4096
4097
  <line num="45" count="7" type="cond" truecount="2" falsecount="0"/>
4097
4098
  <line num="46" count="7" type="stmt"/>
4098
4099
  <line num="49" count="7" type="stmt"/>
@@ -4137,19 +4138,19 @@
4137
4138
  <line num="56" count="1" type="stmt"/>
4138
4139
  <line num="58" count="1" type="stmt"/>
4139
4140
  <line num="61" count="24" type="stmt"/>
4140
- <line num="62" count="158" type="stmt"/>
4141
- <line num="64" count="158" type="cond" truecount="2" falsecount="0"/>
4141
+ <line num="62" count="160" type="stmt"/>
4142
+ <line num="64" count="160" type="cond" truecount="2" falsecount="0"/>
4142
4143
  <line num="65" count="5" type="stmt"/>
4143
- <line num="67" count="153" type="stmt"/>
4144
- <line num="68" count="153" type="stmt"/>
4145
- <line num="69" count="153" type="cond" truecount="2" falsecount="0"/>
4146
- <line num="71" count="153" type="cond" truecount="4" falsecount="0"/>
4147
- <line num="72" count="152" type="stmt"/>
4144
+ <line num="67" count="155" type="stmt"/>
4145
+ <line num="68" count="155" type="stmt"/>
4146
+ <line num="69" count="155" type="cond" truecount="2" falsecount="0"/>
4147
+ <line num="71" count="155" type="cond" truecount="4" falsecount="0"/>
4148
+ <line num="72" count="154" type="stmt"/>
4148
4149
  <line num="75" count="1" type="stmt"/>
4149
4150
  <line num="77" count="1" type="stmt"/>
4150
4151
  </file>
4151
4152
  <file name="currentapp.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/currentapp.js">
4152
- <metrics statements="54" coveredstatements="45" conditionals="41" coveredconditionals="32" methods="1" coveredmethods="1"/>
4153
+ <metrics statements="53" coveredstatements="44" conditionals="41" coveredconditionals="32" methods="1" coveredmethods="1"/>
4153
4154
  <line num="6" count="28" type="stmt"/>
4154
4155
  <line num="7" count="28" type="stmt"/>
4155
4156
  <line num="8" count="28" type="stmt"/>
@@ -4162,48 +4163,47 @@
4162
4163
  <line num="15" count="28" type="stmt"/>
4163
4164
  <line num="16" count="28" type="stmt"/>
4164
4165
  <line num="18" count="28" type="stmt"/>
4165
- <line num="20" count="170" type="stmt"/>
4166
- <line num="22" count="170" type="stmt"/>
4167
- <line num="23" count="170" type="stmt"/>
4168
- <line num="24" count="170" type="stmt"/>
4166
+ <line num="20" count="172" type="stmt"/>
4167
+ <line num="22" count="172" type="stmt"/>
4168
+ <line num="23" count="172" type="stmt"/>
4169
+ <line num="24" count="172" type="stmt"/>
4169
4170
  <line num="26" count="0" type="stmt"/>
4170
- <line num="28" count="170" type="cond" truecount="4" falsecount="0"/>
4171
+ <line num="28" count="172" type="cond" truecount="4" falsecount="0"/>
4171
4172
  <line num="29" count="1" type="stmt"/>
4172
- <line num="32" count="169" type="cond" truecount="2" falsecount="0"/>
4173
- <line num="33" count="163" type="stmt"/>
4174
- <line num="34" count="163" type="stmt"/>
4175
- <line num="35" count="163" type="cond" truecount="1" falsecount="1"/>
4173
+ <line num="32" count="171" type="cond" truecount="2" falsecount="0"/>
4174
+ <line num="33" count="165" type="stmt"/>
4175
+ <line num="34" count="165" type="stmt"/>
4176
+ <line num="35" count="165" type="cond" truecount="1" falsecount="1"/>
4176
4177
  <line num="36" count="0" type="stmt"/>
4177
4178
  <line num="37" count="0" type="stmt"/>
4178
- <line num="40" count="163" type="cond" truecount="1" falsecount="1"/>
4179
- <line num="44" count="169" type="cond" truecount="2" falsecount="0"/>
4179
+ <line num="40" count="165" type="cond" truecount="1" falsecount="1"/>
4180
+ <line num="44" count="171" type="cond" truecount="2" falsecount="0"/>
4180
4181
  <line num="49" count="2" type="stmt"/>
4181
- <line num="51" count="2" type="stmt"/>
4182
- <line num="59" count="2" type="stmt"/>
4183
- <line num="63" count="167" type="stmt"/>
4184
- <line num="64" count="167" type="cond" truecount="2" falsecount="0"/>
4185
- <line num="66" count="33" type="stmt"/>
4186
- <line num="67" count="134" type="cond" truecount="1" falsecount="1"/>
4187
- <line num="69" count="134" type="stmt"/>
4188
- <line num="70" count="134" type="stmt"/>
4189
- <line num="72" count="134" type="cond" truecount="2" falsecount="0"/>
4190
- <line num="76" count="167" type="cond" truecount="1" falsecount="1"/>
4191
- <line num="77" count="0" type="stmt"/>
4192
- <line num="80" count="167" type="stmt"/>
4193
- <line num="83" count="167" type="cond" truecount="1" falsecount="1"/>
4194
- <line num="90" count="0" type="stmt"/>
4195
- <line num="91" count="0" type="stmt"/>
4196
- <line num="92" count="0" type="stmt"/>
4197
- <line num="93" count="0" type="stmt"/>
4198
- <line num="94" count="0" type="stmt"/>
4199
- <line num="97" count="167" type="stmt"/>
4200
- <line num="98" count="167" type="cond" truecount="1" falsecount="1"/>
4201
- <line num="99" count="167" type="stmt"/>
4202
- <line num="100" count="167" type="cond" truecount="2" falsecount="0"/>
4203
- <line num="101" count="167" type="stmt"/>
4204
- <line num="110" count="167" type="cond" truecount="2" falsecount="0"/>
4205
- <line num="116" count="7" type="stmt"/>
4206
- <line num="119" count="167" type="stmt"/>
4182
+ <line num="50" count="2" type="stmt"/>
4183
+ <line num="54" count="169" type="stmt"/>
4184
+ <line num="55" count="169" type="cond" truecount="2" falsecount="0"/>
4185
+ <line num="57" count="32" type="stmt"/>
4186
+ <line num="58" count="137" type="cond" truecount="1" falsecount="1"/>
4187
+ <line num="60" count="137" type="stmt"/>
4188
+ <line num="61" count="137" type="stmt"/>
4189
+ <line num="63" count="137" type="cond" truecount="2" falsecount="0"/>
4190
+ <line num="67" count="169" type="cond" truecount="1" falsecount="1"/>
4191
+ <line num="68" count="0" type="stmt"/>
4192
+ <line num="71" count="169" type="stmt"/>
4193
+ <line num="74" count="169" type="cond" truecount="1" falsecount="1"/>
4194
+ <line num="81" count="0" type="stmt"/>
4195
+ <line num="82" count="0" type="stmt"/>
4196
+ <line num="83" count="0" type="stmt"/>
4197
+ <line num="84" count="0" type="stmt"/>
4198
+ <line num="85" count="0" type="stmt"/>
4199
+ <line num="88" count="169" type="stmt"/>
4200
+ <line num="89" count="169" type="cond" truecount="1" falsecount="1"/>
4201
+ <line num="90" count="169" type="stmt"/>
4202
+ <line num="91" count="169" type="cond" truecount="2" falsecount="0"/>
4203
+ <line num="92" count="169" type="stmt"/>
4204
+ <line num="101" count="169" type="cond" truecount="2" falsecount="0"/>
4205
+ <line num="107" count="7" type="stmt"/>
4206
+ <line num="110" count="169" type="stmt"/>
4207
4207
  </file>
4208
4208
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
4209
4209
  <metrics statements="17" coveredstatements="14" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
@@ -4344,7 +4344,7 @@
4344
4344
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4345
4345
  <line num="1" count="29" type="stmt"/>
4346
4346
  <line num="5" count="29" type="stmt"/>
4347
- <line num="6" count="289" type="stmt"/>
4347
+ <line num="6" count="294" type="stmt"/>
4348
4348
  </file>
4349
4349
  </package>
4350
4350
  <package name="migrations.usageQuotas">
@@ -4399,7 +4399,7 @@
4399
4399
  </file>
4400
4400
  </package>
4401
4401
  <package name="threads">
4402
- <metrics statements="254" coveredstatements="216" conditionals="113" coveredconditionals="72" methods="37" coveredmethods="34"/>
4402
+ <metrics statements="256" coveredstatements="217" conditionals="115" coveredconditionals="73" methods="37" coveredmethods="34"/>
4403
4403
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4404
4404
  <metrics statements="76" coveredstatements="64" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4405
4405
  <line num="1" count="4" type="stmt"/>
@@ -4512,7 +4512,7 @@
4512
4512
  <line num="66" count="37" type="stmt"/>
4513
4513
  </file>
4514
4514
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4515
- <metrics statements="112" coveredstatements="98" conditionals="58" coveredconditionals="40" methods="13" coveredmethods="12"/>
4515
+ <metrics statements="114" coveredstatements="99" conditionals="60" coveredconditionals="41" methods="13" coveredmethods="12"/>
4516
4516
  <line num="1" count="2" type="stmt"/>
4517
4517
  <line num="2" count="2" type="stmt"/>
4518
4518
  <line num="3" count="2" type="stmt"/>
@@ -4559,72 +4559,74 @@
4559
4559
  <line num="75" count="1" type="stmt"/>
4560
4560
  <line num="77" count="1" type="stmt"/>
4561
4561
  <line num="78" count="1" type="stmt"/>
4562
- <line num="82" count="13" type="cond" truecount="2" falsecount="0"/>
4563
- <line num="83" count="11" type="stmt"/>
4564
- <line num="87" count="13" type="cond" truecount="1" falsecount="1"/>
4565
- <line num="88" count="0" type="stmt"/>
4566
- <line num="92" count="13" type="stmt"/>
4567
- <line num="94" count="13" type="cond" truecount="1" falsecount="1"/>
4568
- <line num="95" count="0" type="stmt"/>
4569
- <line num="98" count="13" type="stmt"/>
4570
- <line num="102" count="5" type="stmt"/>
4571
- <line num="103" count="5" type="stmt"/>
4572
- <line num="104" count="5" type="stmt"/>
4573
- <line num="105" count="5" type="stmt"/>
4574
- <line num="119" count="6" type="stmt"/>
4575
- <line num="120" count="6" type="stmt"/>
4576
- <line num="121" count="6" type="stmt"/>
4577
- <line num="122" count="6" type="stmt"/>
4578
- <line num="123" count="6" type="cond" truecount="2" falsecount="0"/>
4579
- <line num="124" count="5" type="cond" truecount="1" falsecount="1"/>
4580
- <line num="128" count="5" type="stmt"/>
4581
- <line num="129" count="5" type="stmt"/>
4582
- <line num="131" count="1" type="stmt"/>
4583
- <line num="133" count="6" type="stmt"/>
4584
- <line num="137" count="16" type="stmt"/>
4585
- <line num="138" count="16" type="cond" truecount="3" falsecount="1"/>
4586
- <line num="139" count="0" type="stmt"/>
4587
- <line num="141" count="16" type="cond" truecount="2" falsecount="0"/>
4588
- <line num="142" count="16" type="cond" truecount="2" falsecount="0"/>
4589
- <line num="143" count="16" type="stmt"/>
4590
- <line num="144" count="2" type="cond" truecount="1" falsecount="1"/>
4591
- <line num="145" count="2" type="stmt"/>
4592
- <line num="148" count="16" type="cond" truecount="2" falsecount="0"/>
4593
- <line num="150" count="11" type="stmt"/>
4594
- <line num="151" count="11" type="stmt"/>
4595
- <line num="153" count="6" type="cond" truecount="1" falsecount="1"/>
4596
- <line num="154" count="0" type="stmt"/>
4597
- <line num="157" count="6" type="stmt"/>
4598
- <line num="158" count="6" type="stmt"/>
4599
- <line num="160" count="11" type="stmt"/>
4600
- <line num="161" count="11" type="stmt"/>
4601
- <line num="162" count="11" type="stmt"/>
4562
+ <line num="82" count="13" type="cond" truecount="1" falsecount="1"/>
4563
+ <line num="83" count="0" type="stmt"/>
4564
+ <line num="87" count="13" type="cond" truecount="2" falsecount="0"/>
4565
+ <line num="88" count="11" type="stmt"/>
4566
+ <line num="92" count="13" type="cond" truecount="1" falsecount="1"/>
4567
+ <line num="93" count="0" type="stmt"/>
4568
+ <line num="97" count="13" type="stmt"/>
4569
+ <line num="99" count="13" type="cond" truecount="1" falsecount="1"/>
4570
+ <line num="100" count="0" type="stmt"/>
4571
+ <line num="103" count="13" type="stmt"/>
4572
+ <line num="107" count="5" type="stmt"/>
4573
+ <line num="108" count="5" type="stmt"/>
4574
+ <line num="109" count="5" type="stmt"/>
4575
+ <line num="110" count="5" type="stmt"/>
4576
+ <line num="124" count="6" type="stmt"/>
4577
+ <line num="125" count="6" type="stmt"/>
4578
+ <line num="126" count="6" type="stmt"/>
4579
+ <line num="127" count="6" type="stmt"/>
4580
+ <line num="128" count="6" type="cond" truecount="2" falsecount="0"/>
4581
+ <line num="129" count="5" type="cond" truecount="1" falsecount="1"/>
4582
+ <line num="133" count="5" type="stmt"/>
4583
+ <line num="134" count="5" type="stmt"/>
4584
+ <line num="136" count="1" type="stmt"/>
4585
+ <line num="138" count="6" type="stmt"/>
4586
+ <line num="142" count="16" type="stmt"/>
4587
+ <line num="143" count="16" type="cond" truecount="3" falsecount="1"/>
4588
+ <line num="144" count="0" type="stmt"/>
4589
+ <line num="146" count="16" type="cond" truecount="2" falsecount="0"/>
4590
+ <line num="147" count="16" type="cond" truecount="2" falsecount="0"/>
4591
+ <line num="148" count="16" type="stmt"/>
4592
+ <line num="149" count="2" type="cond" truecount="1" falsecount="1"/>
4593
+ <line num="150" count="2" type="stmt"/>
4594
+ <line num="153" count="16" type="cond" truecount="2" falsecount="0"/>
4595
+ <line num="155" count="11" type="stmt"/>
4596
+ <line num="156" count="11" type="stmt"/>
4597
+ <line num="158" count="6" type="cond" truecount="1" falsecount="1"/>
4598
+ <line num="159" count="0" type="stmt"/>
4599
+ <line num="162" count="6" type="stmt"/>
4602
4600
  <line num="163" count="6" type="stmt"/>
4603
- <line num="164" count="6" type="stmt"/>
4601
+ <line num="165" count="11" type="stmt"/>
4602
+ <line num="166" count="11" type="stmt"/>
4603
+ <line num="167" count="11" type="stmt"/>
4604
+ <line num="168" count="6" type="stmt"/>
4604
4605
  <line num="169" count="6" type="stmt"/>
4605
- <line num="172" count="16" type="stmt"/>
4606
- <line num="176" count="16" type="stmt"/>
4607
- <line num="179" count="16" type="stmt"/>
4608
- <line num="180" count="19" type="cond" truecount="1" falsecount="1"/>
4609
- <line num="181" count="0" type="stmt"/>
4610
- <line num="183" count="19" type="cond" truecount="1" falsecount="1"/>
4611
- <line num="185" count="0" type="stmt"/>
4612
- <line num="186" count="19" type="cond" truecount="1" falsecount="1"/>
4613
- <line num="188" count="19" type="stmt"/>
4614
- <line num="190" count="19" type="cond" truecount="2" falsecount="2"/>
4615
- <line num="191" count="0" type="stmt"/>
4606
+ <line num="174" count="6" type="stmt"/>
4607
+ <line num="177" count="16" type="stmt"/>
4608
+ <line num="181" count="16" type="stmt"/>
4609
+ <line num="184" count="16" type="stmt"/>
4610
+ <line num="185" count="19" type="cond" truecount="1" falsecount="1"/>
4611
+ <line num="186" count="0" type="stmt"/>
4612
+ <line num="188" count="19" type="cond" truecount="1" falsecount="1"/>
4613
+ <line num="190" count="0" type="stmt"/>
4614
+ <line num="191" count="19" type="cond" truecount="1" falsecount="1"/>
4616
4615
  <line num="193" count="19" type="stmt"/>
4617
- <line num="197" count="0" type="stmt"/>
4618
- <line num="200" count="16" type="cond" truecount="1" falsecount="1"/>
4619
- <line num="205" count="0" type="stmt"/>
4620
- <line num="206" count="0" type="stmt"/>
4621
- <line num="214" count="0" type="stmt"/>
4622
- <line num="216" count="16" type="stmt"/>
4623
- <line num="220" count="2" type="stmt"/>
4624
- <line num="221" count="10" type="stmt"/>
4625
- <line num="222" count="10" type="stmt"/>
4626
- <line num="224" count="8" type="stmt"/>
4627
- <line num="227" count="2" type="stmt"/>
4616
+ <line num="195" count="19" type="cond" truecount="2" falsecount="2"/>
4617
+ <line num="196" count="0" type="stmt"/>
4618
+ <line num="198" count="19" type="stmt"/>
4619
+ <line num="202" count="0" type="stmt"/>
4620
+ <line num="205" count="16" type="cond" truecount="1" falsecount="1"/>
4621
+ <line num="210" count="0" type="stmt"/>
4622
+ <line num="211" count="0" type="stmt"/>
4623
+ <line num="219" count="0" type="stmt"/>
4624
+ <line num="221" count="16" type="stmt"/>
4625
+ <line num="225" count="2" type="stmt"/>
4626
+ <line num="226" count="10" type="stmt"/>
4627
+ <line num="227" count="10" type="stmt"/>
4628
+ <line num="229" count="8" type="stmt"/>
4629
+ <line num="232" count="2" type="stmt"/>
4628
4630
  </file>
4629
4631
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4630
4632
  <metrics statements="37" coveredstatements="31" conditionals="14" coveredconditionals="9" methods="9" coveredmethods="8"/>
@@ -4668,7 +4670,7 @@
4668
4670
  </file>
4669
4671
  </package>
4670
4672
  <package name="utilities">
4671
- <metrics statements="331" coveredstatements="240" conditionals="133" coveredconditionals="74" methods="63" coveredmethods="43"/>
4673
+ <metrics statements="320" coveredstatements="227" conditionals="131" coveredconditionals="70" methods="62" coveredmethods="42"/>
4672
4674
  <file name="bcrypt.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/bcrypt.js">
4673
4675
  <metrics statements="9" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>
4674
4676
  <line num="3" count="0" type="stmt"/>
@@ -4784,26 +4786,26 @@
4784
4786
  <line num="12" count="42" type="stmt"/>
4785
4787
  <line num="13" count="42" type="stmt"/>
4786
4788
  <line num="15" count="42" type="stmt"/>
4787
- <line num="16" count="143" type="cond" truecount="4" falsecount="0"/>
4789
+ <line num="16" count="146" type="cond" truecount="4" falsecount="0"/>
4788
4790
  <line num="17" count="3" type="stmt"/>
4789
- <line num="20" count="140" type="cond" truecount="2" falsecount="2"/>
4791
+ <line num="20" count="143" type="cond" truecount="2" falsecount="2"/>
4790
4792
  <line num="21" count="0" type="stmt"/>
4791
4793
  <line num="22" count="0" type="stmt"/>
4792
4794
  <line num="23" count="0" type="stmt"/>
4793
4795
  <line num="24" count="0" type="stmt"/>
4794
- <line num="27" count="140" type="stmt"/>
4795
- <line num="29" count="140" type="cond" truecount="5" falsecount="0"/>
4796
- <line num="30" count="135" type="stmt"/>
4796
+ <line num="27" count="143" type="stmt"/>
4797
+ <line num="29" count="143" type="cond" truecount="5" falsecount="0"/>
4798
+ <line num="30" count="138" type="stmt"/>
4797
4799
  <line num="31" count="5" type="cond" truecount="1" falsecount="1"/>
4798
4800
  <line num="32" count="0" type="stmt"/>
4799
- <line num="34" count="140" type="stmt"/>
4800
- <line num="35" count="140" type="stmt"/>
4801
- <line num="39" count="136" type="cond" truecount="1" falsecount="1"/>
4802
- <line num="40" count="136" type="stmt"/>
4803
- <line num="42" count="136" type="stmt"/>
4801
+ <line num="34" count="143" type="stmt"/>
4802
+ <line num="35" count="143" type="stmt"/>
4803
+ <line num="39" count="139" type="cond" truecount="1" falsecount="1"/>
4804
+ <line num="40" count="139" type="stmt"/>
4805
+ <line num="42" count="139" type="stmt"/>
4804
4806
  <line num="45" count="42" type="stmt"/>
4805
- <line num="48" count="134" type="stmt"/>
4806
- <line num="49" count="134" type="stmt"/>
4807
+ <line num="48" count="137" type="stmt"/>
4808
+ <line num="49" count="137" type="stmt"/>
4807
4809
  <line num="52" count="42" type="stmt"/>
4808
4810
  <line num="53" count="2" type="stmt"/>
4809
4811
  <line num="54" count="2" type="stmt"/>
@@ -4850,18 +4852,18 @@
4850
4852
  <line num="17" count="1" type="stmt"/>
4851
4853
  <line num="19" count="1" type="stmt"/>
4852
4854
  <line num="28" count="40" type="stmt"/>
4853
- <line num="29" count="194" type="stmt"/>
4855
+ <line num="29" count="13" type="stmt"/>
4854
4856
  <line num="36" count="40" type="stmt"/>
4855
4857
  <line num="37" count="2" type="cond" truecount="2" falsecount="2"/>
4856
4858
  <line num="39" count="2" type="stmt"/>
4857
4859
  <line num="41" count="0" type="stmt"/>
4858
4860
  <line num="55" count="40" type="stmt"/>
4859
- <line num="56" count="199" type="cond" truecount="1" falsecount="1"/>
4861
+ <line num="56" count="201" type="cond" truecount="1" falsecount="1"/>
4860
4862
  <line num="57" count="0" type="stmt"/>
4861
4863
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
4862
4864
  <line num="62" count="0" type="stmt"/>
4863
4865
  <line num="64" count="0" type="stmt"/>
4864
- <line num="66" count="199" type="stmt"/>
4866
+ <line num="66" count="201" type="stmt"/>
4865
4867
  <line num="70" count="40" type="stmt"/>
4866
4868
  <line num="71" count="2" type="stmt"/>
4867
4869
  <line num="76" count="40" type="stmt"/>
@@ -4978,7 +4980,7 @@
4978
4980
  <line num="17" count="2" type="stmt"/>
4979
4981
  </file>
4980
4982
  <file name="workerRequests.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/workerRequests.js">
4981
- <metrics statements="53" coveredstatements="35" conditionals="27" coveredconditionals="12" methods="5" coveredmethods="3"/>
4983
+ <metrics statements="42" coveredstatements="22" conditionals="25" coveredconditionals="8" methods="4" coveredmethods="2"/>
4982
4984
  <line num="1" count="37" type="stmt"/>
4983
4985
  <line num="2" count="37" type="stmt"/>
4984
4986
  <line num="3" count="37" type="stmt"/>
@@ -4986,19 +4988,19 @@
4986
4988
  <line num="5" count="37" type="stmt"/>
4987
4989
  <line num="6" count="37" type="stmt"/>
4988
4990
  <line num="7" count="37" type="stmt"/>
4989
- <line num="10" count="191" type="cond" truecount="1" falsecount="1"/>
4990
- <line num="11" count="191" type="stmt"/>
4991
- <line num="13" count="191" type="cond" truecount="2" falsecount="0"/>
4992
- <line num="14" count="180" type="stmt"/>
4993
- <line num="15" count="180" type="cond" truecount="2" falsecount="0"/>
4994
- <line num="16" count="6" type="stmt"/>
4995
- <line num="19" count="191" type="cond" truecount="2" falsecount="2"/>
4991
+ <line num="10" count="11" type="cond" truecount="1" falsecount="1"/>
4992
+ <line num="11" count="11" type="stmt"/>
4993
+ <line num="13" count="11" type="cond" truecount="1" falsecount="1"/>
4994
+ <line num="14" count="0" type="stmt"/>
4995
+ <line num="15" count="0" type="cond" truecount="0" falsecount="2"/>
4996
+ <line num="16" count="0" type="stmt"/>
4997
+ <line num="19" count="11" type="cond" truecount="2" falsecount="2"/>
4996
4998
  <line num="20" count="0" type="stmt"/>
4997
4999
  <line num="21" count="0" type="stmt"/>
4998
- <line num="26" count="191" type="stmt"/>
4999
- <line num="28" count="191" type="cond" truecount="3" falsecount="1"/>
5000
+ <line num="26" count="11" type="stmt"/>
5001
+ <line num="28" count="11" type="cond" truecount="3" falsecount="1"/>
5000
5002
  <line num="29" count="0" type="stmt"/>
5001
- <line num="31" count="191" type="stmt"/>
5003
+ <line num="31" count="11" type="stmt"/>
5002
5004
  <line num="34" count="37" type="stmt"/>
5003
5005
  <line num="37" count="37" type="stmt"/>
5004
5006
  <line num="39" count="0" type="stmt"/>
@@ -5006,32 +5008,21 @@
5006
5008
  <line num="55" count="0" type="stmt"/>
5007
5009
  <line num="56" count="0" type="stmt"/>
5008
5010
  <line num="58" count="0" type="stmt"/>
5009
- <line num="61" count="37" type="stmt"/>
5010
- <line num="62" count="180" type="stmt"/>
5011
- <line num="63" count="180" type="stmt"/>
5012
- <line num="69" count="180" type="stmt"/>
5013
- <line num="70" count="180" type="stmt"/>
5014
- <line num="71" count="180" type="stmt"/>
5015
- <line num="72" count="180" type="cond" truecount="1" falsecount="1"/>
5016
- <line num="73" count="180" type="stmt"/>
5017
- <line num="74" count="180" type="stmt"/>
5018
- <line num="77" count="180" type="stmt"/>
5019
- <line num="80" count="0" type="stmt"/>
5020
- <line num="84" count="37" type="cond" truecount="0" falsecount="1"/>
5021
- <line num="85" count="0" type="stmt"/>
5022
- <line num="86" count="0" type="stmt"/>
5023
- <line num="91" count="0" type="cond" truecount="0" falsecount="2"/>
5024
- <line num="92" count="0" type="stmt"/>
5025
- <line num="94" count="0" type="stmt"/>
5026
- <line num="95" count="0" type="cond" truecount="0" falsecount="2"/>
5027
- <line num="96" count="0" type="stmt"/>
5028
- <line num="98" count="0" type="stmt"/>
5029
- <line num="101" count="37" type="stmt"/>
5030
- <line num="102" count="11" type="stmt"/>
5031
- <line num="103" count="11" type="stmt"/>
5032
- <line num="109" count="11" type="cond" truecount="1" falsecount="1"/>
5033
- <line num="110" count="0" type="stmt"/>
5034
- <line num="112" count="11" type="stmt"/>
5011
+ <line num="61" count="37" type="cond" truecount="0" falsecount="1"/>
5012
+ <line num="62" count="0" type="stmt"/>
5013
+ <line num="63" count="0" type="stmt"/>
5014
+ <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
5015
+ <line num="69" count="0" type="stmt"/>
5016
+ <line num="71" count="0" type="stmt"/>
5017
+ <line num="72" count="0" type="cond" truecount="0" falsecount="2"/>
5018
+ <line num="73" count="0" type="stmt"/>
5019
+ <line num="75" count="0" type="stmt"/>
5020
+ <line num="78" count="37" type="stmt"/>
5021
+ <line num="79" count="11" type="stmt"/>
5022
+ <line num="80" count="11" type="stmt"/>
5023
+ <line num="86" count="11" type="cond" truecount="1" falsecount="1"/>
5024
+ <line num="87" count="0" type="stmt"/>
5025
+ <line num="89" count="11" type="stmt"/>
5035
5026
  </file>
5036
5027
  </package>
5037
5028
  <package name="utilities.queue">
@@ -5056,7 +5047,7 @@
5056
5047
  <line num="73" count="8" type="stmt"/>
5057
5048
  <line num="74" count="8" type="stmt"/>
5058
5049
  <line num="83" count="0" type="stmt"/>
5059
- <line num="90" count="197" type="stmt"/>
5050
+ <line num="90" count="199" type="stmt"/>
5060
5051
  <line num="97" count="0" type="stmt"/>
5061
5052
  <line num="101" count="36" type="stmt"/>
5062
5053
  </file>