@budibase/server 0.9.190-alpha.0 → 0.9.190-alpha.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/builder/assets/{index.7d405e74.css → index.4fb3f887.css} +1 -1
  2. package/builder/assets/{index.43f4c913.js → index.92596167.js} +171 -171
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +381 -390
  5. package/coverage/coverage-final.json +23 -23
  6. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/application.js.html +62 -80
  9. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/datasource.js.html +15 -15
  15. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/index.html +29 -29
  18. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/layout.js.html +9 -9
  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.js.html +34 -28
  23. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/routing.js.html +27 -27
  25. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/screen.js.html +2 -2
  32. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.html +14 -14
  35. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/internal.js.html +8 -20
  37. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  46. package/coverage/lcov-report/api/index.html +1 -1
  47. package/coverage/lcov-report/api/index.js.html +5 -5
  48. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/index.html +1 -1
  61. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/row.js.html +536 -2
  70. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/table.js.html +436 -7
  74. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  78. package/coverage/lcov-report/automations/actions.js.html +1 -1
  79. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  80. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  81. package/coverage/lcov-report/automations/index.html +1 -1
  82. package/coverage/lcov-report/automations/index.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/index.html +1 -1
  92. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  110. package/coverage/lcov-report/automations/utils.js.html +5 -5
  111. package/coverage/lcov-report/constants/index.html +1 -1
  112. package/coverage/lcov-report/constants/index.js.html +1 -1
  113. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  114. package/coverage/lcov-report/constants/screens.js.html +2 -2
  115. package/coverage/lcov-report/db/client.js.html +1 -1
  116. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  117. package/coverage/lcov-report/db/index.html +1 -1
  118. package/coverage/lcov-report/db/index.js.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  123. package/coverage/lcov-report/db/newid.js.html +2 -2
  124. package/coverage/lcov-report/db/utils.js.html +19 -19
  125. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  126. package/coverage/lcov-report/events/index.html +1 -1
  127. package/coverage/lcov-report/events/index.js.html +1 -1
  128. package/coverage/lcov-report/events/utils.js.html +1 -1
  129. package/coverage/lcov-report/index.html +25 -25
  130. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  131. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  132. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  133. package/coverage/lcov-report/middleware/authorized.js.html +9 -9
  134. package/coverage/lcov-report/middleware/builder.js.html +7 -7
  135. package/coverage/lcov-report/middleware/currentapp.js.html +28 -28
  136. package/coverage/lcov-report/middleware/index.html +1 -1
  137. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  138. package/coverage/lcov-report/middleware/resourceId.js.html +7 -7
  139. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  140. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  141. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  142. package/coverage/lcov-report/threads/automation.js.html +1 -1
  143. package/coverage/lcov-report/threads/index.html +1 -1
  144. package/coverage/lcov-report/threads/index.js.html +1 -1
  145. package/coverage/lcov-report/threads/query.js.html +1 -1
  146. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  147. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  148. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  149. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  150. package/coverage/lcov-report/utilities/global.js.html +13 -13
  151. package/coverage/lcov-report/utilities/index.html +1 -1
  152. package/coverage/lcov-report/utilities/index.js.html +3 -3
  153. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  154. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  155. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  156. package/coverage/lcov-report/utilities/routing/index.js.html +2 -2
  157. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  158. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  159. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  160. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  161. package/coverage/lcov-report/utilities/security.js.html +1 -1
  162. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  163. package/coverage/lcov-report/utilities/users.js.html +1 -1
  164. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  165. package/coverage/lcov.info +645 -658
  166. package/dist/api/controllers/application.js +1 -5
  167. package/dist/api/controllers/query.js +2 -4
  168. package/dist/api/controllers/row/ExternalRequest.js +46 -22
  169. package/dist/api/controllers/table/internal.js +0 -4
  170. package/dist/api/routes/row.js +178 -0
  171. package/dist/api/routes/table.js +148 -5
  172. package/dist/definitions/datasource.js +12 -1
  173. package/dist/integrations/base/sql.js +30 -15
  174. package/dist/integrations/index.js +1 -1
  175. package/dist/integrations/mysql.js +2 -1
  176. package/dist/integrations/oracle.js +42 -20
  177. package/dist/integrations/utils.js +1 -1
  178. package/dist/package.json +10 -6
  179. package/dist/tsconfig.tsbuildinfo +1 -1
  180. package/package.json +11 -7
  181. package/scripts/docs/README.md +31 -0
  182. package/scripts/docs/generate.js +74 -0
  183. package/scripts/docs/toSwagger.js +320 -0
  184. package/scripts/integrations/oracle/docker-compose.yml +1 -1
  185. package/src/api/controllers/application.js +0 -6
  186. package/src/api/controllers/query.js +6 -4
  187. package/src/api/controllers/row/ExternalRequest.ts +52 -22
  188. package/src/api/controllers/table/internal.js +0 -4
  189. package/src/api/routes/row.js +178 -0
  190. package/src/api/routes/table.js +148 -5
  191. package/src/api/routes/tests/application.spec.js +0 -2
  192. package/src/api/routes/tests/query.spec.js +38 -8
  193. package/src/api/routes/tests/screen.spec.js +1 -1
  194. package/src/definitions/datasource.ts +11 -0
  195. package/src/integrations/base/sql.ts +31 -14
  196. package/src/integrations/index.ts +2 -2
  197. package/src/integrations/mysql.ts +3 -1
  198. package/src/integrations/oracle.ts +43 -24
  199. package/src/integrations/utils.ts +6 -2
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1637843303646" clover="3.2.0">
3
- <project timestamp="1637843303646" name="All files">
4
- <metrics statements="4385" coveredstatements="3242" conditionals="1748" coveredconditionals="953" methods="619" coveredmethods="441" elements="6752" coveredelements="4636" complexity="0" loc="4385" ncloc="4385" packages="20" files="138" classes="138"/>
2
+ <coverage generated="1638267107008" clover="3.2.0">
3
+ <project timestamp="1638267107008" name="All files">
4
+ <metrics statements="4376" coveredstatements="3233" conditionals="1744" coveredconditionals="948" methods="619" coveredmethods="440" elements="6739" coveredelements="4621" complexity="0" loc="4376" ncloc="4376" packages="20" files="138" classes="138"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -16,13 +16,13 @@
16
16
  <line num="13" count="23" type="stmt"/>
17
17
  <line num="15" count="23" type="stmt"/>
18
18
  <line num="17" count="23" type="stmt"/>
19
- <line num="31" count="157" type="stmt"/>
20
- <line num="35" count="157" type="stmt"/>
19
+ <line num="31" count="158" type="stmt"/>
20
+ <line num="35" count="158" 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="153" type="stmt"/>
25
- <line num="62" count="153" type="stmt"/>
24
+ <line num="61" count="154" type="stmt"/>
25
+ <line num="62" count="154" type="stmt"/>
26
26
  <line num="64" count="37" type="cond" truecount="1" falsecount="2"/>
27
27
  <line num="65" count="37" type="stmt"/>
28
28
  <line num="70" count="37" type="cond" truecount="1" falsecount="1"/>
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1116" coveredstatements="804" conditionals="367" coveredconditionals="171" methods="153" coveredmethods="110"/>
41
+ <metrics statements="1110" coveredstatements="797" conditionals="367" coveredconditionals="169" methods="153" coveredmethods="109"/>
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,191 +83,187 @@
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="184" coveredstatements="146" conditionals="72" coveredconditionals="41" methods="20" coveredmethods="17"/>
86
+ <metrics statements="180" coveredstatements="142" conditionals="72" coveredconditionals="41" methods="20" coveredmethods="17"/>
87
87
  <line num="1" count="33" type="stmt"/>
88
88
  <line num="2" count="33" type="stmt"/>
89
89
  <line num="3" count="33" type="stmt"/>
90
90
  <line num="8" count="33" type="stmt"/>
91
91
  <line num="13" count="33" type="stmt"/>
92
+ <line num="21" count="33" type="stmt"/>
92
93
  <line num="22" count="33" type="stmt"/>
93
94
  <line num="23" count="33" type="stmt"/>
94
95
  <line num="24" count="33" type="stmt"/>
95
96
  <line num="25" count="33" type="stmt"/>
96
- <line num="26" count="33" type="stmt"/>
97
- <line num="27" count="33" type="stmt"/>
98
- <line num="33" count="33" type="stmt"/>
99
- <line num="34" count="33" type="stmt"/>
97
+ <line num="31" count="33" type="stmt"/>
98
+ <line num="32" count="33" type="stmt"/>
99
+ <line num="36" count="33" type="stmt"/>
100
+ <line num="37" count="33" type="stmt"/>
100
101
  <line num="38" count="33" type="stmt"/>
101
- <line num="39" count="33" type="stmt"/>
102
- <line num="40" count="33" type="stmt"/>
102
+ <line num="43" count="33" type="stmt"/>
103
+ <line num="44" count="33" type="stmt"/>
103
104
  <line num="45" count="33" type="stmt"/>
104
105
  <line num="46" count="33" type="stmt"/>
105
106
  <line num="47" count="33" type="stmt"/>
106
- <line num="48" count="33" type="stmt"/>
107
107
  <line num="49" count="33" type="stmt"/>
108
- <line num="51" count="33" type="stmt"/>
109
- <line num="55" count="188" type="stmt"/>
110
- <line num="61" count="376" type="stmt"/>
111
- <line num="65" count="188" type="stmt"/>
112
- <line num="71" count="200" type="stmt"/>
113
- <line num="75" count="186" type="cond" truecount="4" falsecount="0"/>
114
- <line num="82" count="183" type="cond" truecount="1" falsecount="1"/>
115
- <line num="83" count="0" type="stmt"/>
116
- <line num="84" count="183" type="cond" truecount="2" falsecount="0"/>
117
- <line num="85" count="180" type="stmt"/>
118
- <line num="87" count="183" type="cond" truecount="2" falsecount="0"/>
119
- <line num="88" count="180" type="stmt"/>
120
- <line num="90" count="183" type="cond" truecount="2" falsecount="0"/>
121
- <line num="91" count="10" type="stmt"/>
122
- <line num="93" count="173" type="stmt"/>
123
- <line num="94" count="173" type="cond" truecount="1" falsecount="1"/>
124
- <line num="100" count="0" type="stmt"/>
125
- <line num="102" count="173" type="stmt"/>
126
- <line num="106" count="178" type="cond" truecount="1" falsecount="1"/>
127
- <line num="107" count="178" type="stmt"/>
128
- <line num="108" count="178" type="stmt"/>
129
- <line num="110" count="178" type="stmt"/>
130
- <line num="111" count="178" type="stmt"/>
131
- <line num="120" count="178" type="stmt"/>
132
- <line num="121" count="178" type="stmt"/>
133
- <line num="122" count="178" type="stmt"/>
134
- <line num="126" count="178" type="cond" truecount="3" falsecount="1"/>
108
+ <line num="53" count="189" type="stmt"/>
109
+ <line num="59" count="378" type="stmt"/>
110
+ <line num="63" count="189" type="stmt"/>
111
+ <line num="69" count="12" type="stmt"/>
112
+ <line num="73" count="187" type="cond" truecount="4" falsecount="0"/>
113
+ <line num="80" count="184" type="cond" truecount="1" falsecount="1"/>
114
+ <line num="81" count="0" type="stmt"/>
115
+ <line num="82" count="184" type="cond" truecount="2" falsecount="0"/>
116
+ <line num="83" count="181" type="stmt"/>
117
+ <line num="85" count="184" type="cond" truecount="2" falsecount="0"/>
118
+ <line num="86" count="181" type="stmt"/>
119
+ <line num="88" count="184" type="cond" truecount="2" falsecount="0"/>
120
+ <line num="89" count="11" type="stmt"/>
121
+ <line num="91" count="173" type="stmt"/>
122
+ <line num="92" count="173" type="cond" truecount="1" falsecount="1"/>
123
+ <line num="98" count="0" type="stmt"/>
124
+ <line num="100" count="173" type="stmt"/>
125
+ <line num="104" count="179" type="cond" truecount="1" falsecount="1"/>
126
+ <line num="105" count="179" type="stmt"/>
127
+ <line num="106" count="179" type="stmt"/>
128
+ <line num="108" count="179" type="stmt"/>
129
+ <line num="109" count="179" type="stmt"/>
130
+ <line num="118" count="179" type="stmt"/>
131
+ <line num="119" count="179" type="stmt"/>
132
+ <line num="120" count="179" type="stmt"/>
133
+ <line num="124" count="179" type="cond" truecount="3" falsecount="1"/>
134
+ <line num="125" count="0" type="stmt"/>
135
+ <line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
135
136
  <line num="127" count="0" type="stmt"/>
136
- <line num="128" count="0" type="cond" truecount="0" falsecount="2"/>
137
- <line num="129" count="0" type="stmt"/>
138
- <line num="131" count="178" type="cond" truecount="3" falsecount="1"/>
139
- <line num="134" count="0" type="cond" truecount="0" falsecount="2"/>
140
- <line num="135" count="0" type="stmt"/>
141
- <line num="139" count="178" type="stmt"/>
142
- <line num="142" count="178" type="stmt"/>
143
- <line num="145" count="33" type="stmt"/>
144
- <line num="146" count="10" type="cond" truecount="2" falsecount="0"/>
145
- <line num="147" count="10" type="cond" truecount="2" falsecount="0"/>
146
- <line num="148" count="10" type="stmt"/>
147
- <line num="151" count="10" type="cond" truecount="2" falsecount="2"/>
148
- <line num="152" count="10" type="stmt"/>
149
- <line num="153" count="10" type="stmt"/>
150
- <line num="154" count="14" type="cond" truecount="1" falsecount="1"/>
151
- <line num="155" count="14" type="stmt"/>
137
+ <line num="129" count="179" type="cond" truecount="3" falsecount="1"/>
138
+ <line num="132" count="0" type="cond" truecount="0" falsecount="2"/>
139
+ <line num="133" count="0" type="stmt"/>
140
+ <line num="137" count="179" type="stmt"/>
141
+ <line num="140" count="179" type="stmt"/>
142
+ <line num="143" count="33" type="stmt"/>
143
+ <line num="144" count="10" type="cond" truecount="2" falsecount="0"/>
144
+ <line num="145" count="10" type="cond" truecount="2" falsecount="0"/>
145
+ <line num="146" count="10" type="stmt"/>
146
+ <line num="149" count="10" type="cond" truecount="2" falsecount="2"/>
147
+ <line num="150" count="10" type="stmt"/>
148
+ <line num="151" count="10" type="stmt"/>
149
+ <line num="152" count="14" type="cond" truecount="1" falsecount="1"/>
150
+ <line num="153" count="14" type="stmt"/>
151
+ <line num="155" count="0" type="stmt"/>
152
+ <line num="156" count="0" type="cond" truecount="0" falsecount="2"/>
152
153
  <line num="157" count="0" type="stmt"/>
153
- <line num="158" count="0" type="cond" truecount="0" falsecount="2"/>
154
- <line num="159" count="0" type="stmt"/>
155
- <line num="162" count="0" type="stmt"/>
156
- <line num="167" count="10" type="stmt"/>
157
- <line num="170" count="33" type="stmt"/>
154
+ <line num="160" count="0" type="stmt"/>
155
+ <line num="165" count="10" type="stmt"/>
156
+ <line num="168" count="33" type="stmt"/>
157
+ <line num="169" count="1" type="stmt"/>
158
+ <line num="170" count="1" type="stmt"/>
158
159
  <line num="171" count="1" type="stmt"/>
159
160
  <line num="172" count="1" type="stmt"/>
160
161
  <line num="173" count="1" type="stmt"/>
161
- <line num="174" count="1" type="stmt"/>
162
- <line num="175" count="1" type="stmt"/>
163
- <line num="179" count="1" type="stmt"/>
164
- <line num="186" count="33" type="stmt"/>
165
- <line num="187" count="187" type="stmt"/>
166
- <line num="188" count="187" type="stmt"/>
167
- <line num="189" count="187" type="stmt"/>
168
- <line num="190" count="187" type="stmt"/>
169
- <line num="193" count="187" type="cond" truecount="4" falsecount="0"/>
170
- <line num="194" count="185" type="stmt"/>
171
- <line num="195" count="185" type="stmt"/>
172
- <line num="196" count="185" type="stmt"/>
173
- <line num="199" count="187" type="stmt"/>
174
- <line num="207" count="33" type="stmt"/>
175
- <line num="208" count="178" type="stmt"/>
176
- <line num="209" count="178" type="stmt"/>
177
- <line num="214" count="178" type="cond" truecount="2" falsecount="2"/>
178
- <line num="215" count="0" type="stmt"/>
179
- <line num="217" count="178" type="stmt"/>
180
- <line num="218" count="178" type="stmt"/>
181
- <line num="220" count="178" type="stmt"/>
182
- <line num="221" count="178" type="stmt"/>
183
- <line num="223" count="178" type="stmt"/>
184
- <line num="225" count="178" type="stmt"/>
185
- <line num="226" count="0" type="stmt"/>
186
- <line num="230" count="178" type="stmt"/>
187
- <line num="245" count="178" type="stmt"/>
188
- <line num="246" count="178" type="stmt"/>
189
- <line num="250" count="178" type="cond" truecount="1" falsecount="1"/>
190
- <line num="251" count="178" type="stmt"/>
191
- <line num="259" count="178" type="stmt"/>
192
- <line num="260" count="178" type="stmt"/>
193
- <line num="261" count="178" type="stmt"/>
194
- <line num="264" count="33" type="stmt"/>
162
+ <line num="177" count="1" type="stmt"/>
163
+ <line num="184" count="33" type="stmt"/>
164
+ <line num="185" count="188" type="stmt"/>
165
+ <line num="186" count="188" type="stmt"/>
166
+ <line num="187" count="188" type="stmt"/>
167
+ <line num="188" count="188" type="stmt"/>
168
+ <line num="191" count="188" type="cond" truecount="4" falsecount="0"/>
169
+ <line num="192" count="186" type="stmt"/>
170
+ <line num="193" count="186" type="stmt"/>
171
+ <line num="194" count="186" type="stmt"/>
172
+ <line num="197" count="188" type="stmt"/>
173
+ <line num="205" count="33" type="stmt"/>
174
+ <line num="206" count="179" type="stmt"/>
175
+ <line num="207" count="179" type="stmt"/>
176
+ <line num="212" count="179" type="cond" truecount="2" falsecount="2"/>
177
+ <line num="213" count="0" type="stmt"/>
178
+ <line num="215" count="179" type="stmt"/>
179
+ <line num="216" count="179" type="stmt"/>
180
+ <line num="218" count="179" type="stmt"/>
181
+ <line num="219" count="179" type="stmt"/>
182
+ <line num="221" count="179" type="stmt"/>
183
+ <line num="223" count="179" type="stmt"/>
184
+ <line num="224" count="0" type="stmt"/>
185
+ <line num="228" count="179" type="stmt"/>
186
+ <line num="243" count="179" type="stmt"/>
187
+ <line num="244" count="179" type="stmt"/>
188
+ <line num="248" count="179" type="cond" truecount="1" falsecount="1"/>
189
+ <line num="249" count="179" type="stmt"/>
190
+ <line num="257" count="179" type="stmt"/>
191
+ <line num="258" count="179" type="stmt"/>
192
+ <line num="259" count="179" type="stmt"/>
193
+ <line num="262" count="33" type="stmt"/>
194
+ <line num="263" count="2" type="stmt"/>
195
+ <line num="264" count="2" type="stmt"/>
195
196
  <line num="265" count="2" type="stmt"/>
196
- <line num="266" count="2" type="stmt"/>
197
- <line num="267" count="2" type="stmt"/>
198
- <line num="270" count="33" type="stmt"/>
197
+ <line num="268" count="33" type="stmt"/>
198
+ <line num="270" count="2" type="stmt"/>
199
+ <line num="271" count="2" type="stmt"/>
199
200
  <line num="272" count="2" type="stmt"/>
200
- <line num="273" count="2" type="stmt"/>
201
- <line num="274" count="2" type="stmt"/>
202
- <line num="277" count="2" type="cond" truecount="1" falsecount="1"/>
203
- <line num="278" count="0" type="stmt"/>
204
- <line num="279" count="0" type="stmt"/>
205
- <line num="283" count="2" type="stmt"/>
201
+ <line num="275" count="2" type="cond" truecount="1" falsecount="1"/>
202
+ <line num="276" count="0" type="stmt"/>
203
+ <line num="277" count="0" type="stmt"/>
204
+ <line num="281" count="2" type="stmt"/>
205
+ <line num="285" count="2" type="stmt"/>
206
+ <line num="286" count="2" type="stmt"/>
206
207
  <line num="287" count="2" type="stmt"/>
207
- <line num="288" count="2" type="stmt"/>
208
- <line num="289" count="2" type="stmt"/>
209
- <line num="292" count="33" type="stmt"/>
210
- <line num="294" count="1" type="stmt"/>
211
- <line num="295" count="1" type="stmt"/>
212
- <line num="296" count="1" type="cond" truecount="1" falsecount="1"/>
213
- <line num="297" count="0" type="stmt"/>
214
- <line num="301" count="1" type="cond" truecount="1" falsecount="1"/>
215
- <line num="302" count="0" type="stmt"/>
216
- <line num="306" count="1" type="stmt"/>
208
+ <line num="290" count="33" type="stmt"/>
209
+ <line num="292" count="1" type="stmt"/>
210
+ <line num="293" count="1" type="stmt"/>
211
+ <line num="294" count="1" type="cond" truecount="1" falsecount="1"/>
212
+ <line num="295" count="0" type="stmt"/>
213
+ <line num="299" count="1" type="cond" truecount="1" falsecount="1"/>
214
+ <line num="300" count="0" type="stmt"/>
215
+ <line num="304" count="1" type="stmt"/>
216
+ <line num="308" count="1" type="stmt"/>
217
+ <line num="309" count="1" type="stmt"/>
217
218
  <line num="310" count="1" type="stmt"/>
218
- <line num="311" count="1" type="stmt"/>
219
- <line num="312" count="1" type="stmt"/>
220
- <line num="315" count="33" type="stmt"/>
219
+ <line num="313" count="33" type="stmt"/>
220
+ <line num="314" count="11" type="stmt"/>
221
221
  <line num="316" count="11" type="stmt"/>
222
- <line num="318" count="11" type="stmt"/>
223
- <line num="323" count="11" type="cond" truecount="2" falsecount="2"/>
224
- <line num="324" count="0" type="stmt"/>
225
- <line num="327" count="11" type="stmt"/>
222
+ <line num="321" count="11" type="cond" truecount="2" falsecount="2"/>
223
+ <line num="322" count="0" type="stmt"/>
224
+ <line num="325" count="11" type="stmt"/>
225
+ <line num="326" count="11" type="stmt"/>
226
226
  <line num="328" count="11" type="stmt"/>
227
- <line num="330" count="11" type="stmt"/>
228
- <line num="331" count="11" type="stmt"/>
229
- <line num="334" count="33" type="stmt"/>
227
+ <line num="329" count="11" type="stmt"/>
228
+ <line num="332" count="33" type="stmt"/>
229
+ <line num="333" count="0" type="stmt"/>
230
+ <line num="334" count="0" type="cond" truecount="0" falsecount="2"/>
230
231
  <line num="335" count="0" type="stmt"/>
231
- <line num="336" count="0" type="cond" truecount="0" falsecount="2"/>
232
- <line num="337" count="0" type="stmt"/>
232
+ <line num="339" count="0" type="stmt"/>
233
233
  <line num="341" count="0" type="stmt"/>
234
+ <line num="342" count="0" type="stmt"/>
234
235
  <line num="343" count="0" type="stmt"/>
235
- <line num="344" count="0" type="stmt"/>
236
- <line num="345" count="0" type="stmt"/>
237
- <line num="346" count="0" type="cond" truecount="0" falsecount="2"/>
238
- <line num="349" count="0" type="stmt"/>
239
- <line num="350" count="0" type="stmt"/>
240
- <line num="353" count="0" type="stmt"/>
241
- <line num="356" count="0" type="stmt"/>
242
- <line num="361" count="0" type="stmt"/>
236
+ <line num="344" count="0" type="cond" truecount="0" falsecount="2"/>
237
+ <line num="347" count="0" type="stmt"/>
238
+ <line num="348" count="0" type="stmt"/>
239
+ <line num="351" count="0" type="stmt"/>
240
+ <line num="354" count="0" type="stmt"/>
241
+ <line num="359" count="0" type="stmt"/>
242
+ <line num="360" count="0" type="stmt"/>
243
243
  <line num="362" count="0" type="stmt"/>
244
- <line num="364" count="0" type="stmt"/>
245
- <line num="368" count="0" type="stmt"/>
246
- <line num="372" count="0" type="stmt"/>
247
- <line num="374" count="0" type="cond" truecount="0" falsecount="2"/>
244
+ <line num="366" count="0" type="stmt"/>
245
+ <line num="370" count="0" type="stmt"/>
246
+ <line num="372" count="0" type="cond" truecount="0" falsecount="2"/>
247
+ <line num="373" count="0" type="stmt"/>
248
248
  <line num="375" count="0" type="stmt"/>
249
- <line num="377" count="0" type="stmt"/>
250
- <line num="383" count="33" type="stmt"/>
249
+ <line num="381" count="33" type="stmt"/>
250
+ <line num="382" count="5" type="stmt"/>
251
+ <line num="383" count="5" type="stmt"/>
251
252
  <line num="384" count="5" type="stmt"/>
252
- <line num="385" count="5" type="stmt"/>
253
253
  <line num="386" count="5" type="stmt"/>
254
+ <line num="387" count="5" type="cond" truecount="1" falsecount="1"/>
254
255
  <line num="388" count="5" type="stmt"/>
255
- <line num="389" count="5" type="cond" truecount="1" falsecount="1"/>
256
- <line num="390" count="5" type="stmt"/>
256
+ <line num="393" count="5" type="stmt"/>
257
257
  <line num="395" count="5" type="stmt"/>
258
258
  <line num="397" count="5" type="stmt"/>
259
- <line num="399" count="5" type="stmt"/>
260
- <line num="400" count="5" type="stmt"/>
261
- <line num="403" count="33" type="stmt"/>
262
- <line num="404" count="178" type="stmt"/>
263
- <line num="406" count="178" type="stmt"/>
264
- <line num="407" count="178" type="stmt"/>
265
- <line num="408" count="356" type="stmt"/>
266
- <line num="409" count="356" type="stmt"/>
267
- <line num="412" count="178" type="stmt"/>
268
- <line num="413" count="178" type="stmt"/>
269
- <line num="414" count="178" type="stmt"/>
270
- <line num="416" count="178" type="stmt"/>
259
+ <line num="398" count="5" type="stmt"/>
260
+ <line num="401" count="33" type="stmt"/>
261
+ <line num="402" count="179" type="stmt"/>
262
+ <line num="404" count="179" type="stmt"/>
263
+ <line num="405" count="179" type="stmt"/>
264
+ <line num="406" count="358" type="stmt"/>
265
+ <line num="407" count="358" type="stmt"/>
266
+ <line num="410" count="179" type="stmt"/>
271
267
  </file>
272
268
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
273
269
  <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
@@ -527,25 +523,25 @@
527
523
  <line num="78" count="0" type="stmt"/>
528
524
  <line num="79" count="0" type="stmt"/>
529
525
  <line num="82" count="33" type="stmt"/>
530
- <line num="83" count="23" type="stmt"/>
531
- <line num="84" count="23" type="stmt"/>
532
- <line num="85" count="23" type="stmt"/>
533
- <line num="87" count="23" type="stmt"/>
534
- <line num="93" count="23" type="stmt"/>
535
- <line num="94" count="23" type="cond" truecount="1" falsecount="1"/>
526
+ <line num="83" count="24" type="stmt"/>
527
+ <line num="84" count="24" type="stmt"/>
528
+ <line num="85" count="24" type="stmt"/>
529
+ <line num="87" count="24" type="stmt"/>
530
+ <line num="93" count="24" type="stmt"/>
531
+ <line num="94" count="24" type="cond" truecount="1" falsecount="1"/>
536
532
  <line num="95" count="0" type="stmt"/>
537
533
  <line num="96" count="0" type="stmt"/>
538
534
  <line num="97" count="0" type="stmt"/>
539
- <line num="100" count="23" type="stmt"/>
540
- <line num="101" count="23" type="stmt"/>
541
- <line num="104" count="23" type="cond" truecount="1" falsecount="1"/>
542
- <line num="105" count="23" type="stmt"/>
543
- <line num="106" count="23" type="cond" truecount="3" falsecount="1"/>
535
+ <line num="100" count="24" type="stmt"/>
536
+ <line num="101" count="24" type="stmt"/>
537
+ <line num="104" count="24" type="cond" truecount="1" falsecount="1"/>
538
+ <line num="105" count="24" type="stmt"/>
539
+ <line num="106" count="24" type="cond" truecount="3" falsecount="1"/>
544
540
  <line num="107" count="0" type="stmt"/>
545
- <line num="111" count="23" type="stmt"/>
546
- <line num="112" count="23" type="cond" truecount="1" falsecount="1"/>
541
+ <line num="111" count="24" type="stmt"/>
542
+ <line num="112" count="24" type="cond" truecount="1" falsecount="1"/>
547
543
  <line num="113" count="0" type="stmt"/>
548
- <line num="115" count="23" type="stmt"/>
544
+ <line num="115" count="24" type="stmt"/>
549
545
  <line num="118" count="33" type="stmt"/>
550
546
  <line num="119" count="1" type="stmt"/>
551
547
  <line num="122" count="1" type="stmt"/>
@@ -690,7 +686,7 @@
690
686
  <line num="11" count="1" type="stmt"/>
691
687
  </file>
692
688
  <file name="layout.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/layout.js">
693
- <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="5" methods="3" coveredmethods="3"/>
689
+ <metrics statements="27" coveredstatements="22" conditionals="8" coveredconditionals="5" methods="3" coveredmethods="2"/>
694
690
  <line num="4" count="33" type="stmt"/>
695
691
  <line num="5" count="33" type="stmt"/>
696
692
  <line num="6" count="33" type="stmt"/>
@@ -712,7 +708,7 @@
712
708
  <line num="33" count="1" type="cond" truecount="1" falsecount="1"/>
713
709
  <line num="34" count="0" type="stmt"/>
714
710
  <line num="36" count="1" type="stmt"/>
715
- <line num="42" count="1" type="stmt"/>
711
+ <line num="42" count="0" type="stmt"/>
716
712
  <line num="43" count="1" type="cond" truecount="1" falsecount="1"/>
717
713
  <line num="44" count="0" type="stmt"/>
718
714
  <line num="48" count="1" type="stmt"/>
@@ -828,79 +824,77 @@
828
824
  <line num="170" count="1" type="stmt"/>
829
825
  </file>
830
826
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query.js">
831
- <metrics statements="72" coveredstatements="61" conditionals="25" coveredconditionals="12" methods="9" coveredmethods="9"/>
827
+ <metrics statements="70" coveredstatements="59" conditionals="25" coveredconditionals="12" methods="9" coveredmethods="9"/>
832
828
  <line num="1" count="34" type="stmt"/>
833
829
  <line num="2" count="34" type="stmt"/>
834
- <line num="3" count="34" type="stmt"/>
835
- <line num="4" count="34" type="stmt"/>
836
- <line num="5" count="34" type="stmt"/>
837
- <line num="6" count="34" type="stmt"/>
830
+ <line num="7" count="34" type="stmt"/>
838
831
  <line num="8" count="34" type="stmt"/>
839
- <line num="12" count="4" type="stmt"/>
840
- <line num="13" count="4" type="cond" truecount="2" falsecount="0"/>
841
- <line num="14" count="4" type="stmt"/>
842
- <line num="15" count="3" type="cond" truecount="1" falsecount="1"/>
843
- <line num="16" count="3" type="stmt"/>
844
- <line num="19" count="4" type="cond" truecount="2" falsecount="0"/>
845
- <line num="22" count="34" type="stmt"/>
846
- <line num="23" count="2" type="stmt"/>
847
- <line num="25" count="2" type="stmt"/>
848
- <line num="30" count="2" type="stmt"/>
849
- <line num="33" count="34" type="stmt"/>
850
- <line num="34" count="18" type="stmt"/>
851
- <line num="35" count="18" type="stmt"/>
852
- <line num="37" count="18" type="cond" truecount="1" falsecount="1"/>
853
- <line num="38" count="18" type="stmt"/>
854
- <line num="41" count="18" type="stmt"/>
855
- <line num="42" count="18" type="stmt"/>
856
- <line num="44" count="18" type="stmt"/>
857
- <line num="45" count="18" type="stmt"/>
858
- <line num="49" count="4" type="stmt"/>
832
+ <line num="9" count="34" type="stmt"/>
833
+ <line num="11" count="34" type="stmt"/>
834
+ <line num="15" count="5" type="stmt"/>
835
+ <line num="16" count="5" type="cond" truecount="2" falsecount="0"/>
836
+ <line num="17" count="5" type="stmt"/>
837
+ <line num="18" count="4" type="cond" truecount="1" falsecount="1"/>
838
+ <line num="19" count="4" type="stmt"/>
839
+ <line num="22" count="5" type="cond" truecount="2" falsecount="0"/>
840
+ <line num="25" count="34" type="stmt"/>
841
+ <line num="26" count="2" type="stmt"/>
842
+ <line num="28" count="2" type="stmt"/>
843
+ <line num="33" count="2" type="stmt"/>
844
+ <line num="36" count="34" type="stmt"/>
845
+ <line num="37" count="20" type="stmt"/>
846
+ <line num="38" count="20" type="stmt"/>
847
+ <line num="40" count="20" type="cond" truecount="1" falsecount="1"/>
848
+ <line num="41" count="20" type="stmt"/>
849
+ <line num="44" count="20" type="stmt"/>
850
+ <line num="45" count="20" type="stmt"/>
851
+ <line num="47" count="20" type="stmt"/>
852
+ <line num="48" count="20" type="stmt"/>
859
853
  <line num="52" count="4" type="stmt"/>
860
- <line num="53" count="0" type="cond" truecount="0" falsecount="2"/>
861
- <line num="54" count="0" type="stmt"/>
854
+ <line num="55" count="4" type="stmt"/>
862
855
  <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
863
- <line num="58" count="0" type="stmt"/>
856
+ <line num="57" count="0" type="stmt"/>
864
857
  <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
865
858
  <line num="61" count="0" type="stmt"/>
866
- <line num="65" count="0" type="stmt"/>
867
- <line num="69" count="4" type="cond" truecount="1" falsecount="1"/>
868
- <line num="74" count="0" type="stmt"/>
869
- <line num="75" count="0" type="stmt"/>
870
- <line num="81" count="0" type="stmt"/>
871
- <line num="83" count="0" type="stmt"/>
872
- <line num="86" count="4" type="stmt"/>
873
- <line num="89" count="34" type="stmt"/>
874
- <line num="90" count="2" type="stmt"/>
875
- <line num="91" count="2" type="stmt"/>
876
- <line num="93" count="2" type="cond" truecount="2" falsecount="0"/>
877
- <line num="94" count="1" type="stmt"/>
878
- <line num="95" count="1" type="stmt"/>
879
- <line num="96" count="1" type="stmt"/>
880
- <line num="98" count="2" type="stmt"/>
881
- <line num="101" count="34" type="stmt"/>
882
- <line num="102" count="2" type="stmt"/>
859
+ <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
860
+ <line num="64" count="0" type="stmt"/>
861
+ <line num="68" count="0" type="stmt"/>
862
+ <line num="72" count="4" type="cond" truecount="1" falsecount="1"/>
863
+ <line num="77" count="0" type="stmt"/>
864
+ <line num="78" count="0" type="stmt"/>
865
+ <line num="84" count="0" type="stmt"/>
866
+ <line num="86" count="0" type="stmt"/>
867
+ <line num="89" count="4" type="stmt"/>
868
+ <line num="92" count="34" type="stmt"/>
869
+ <line num="93" count="3" type="stmt"/>
870
+ <line num="94" count="3" type="stmt"/>
871
+ <line num="96" count="3" type="cond" truecount="2" falsecount="0"/>
872
+ <line num="97" count="1" type="stmt"/>
873
+ <line num="98" count="1" type="stmt"/>
874
+ <line num="100" count="3" type="stmt"/>
875
+ <line num="103" count="34" type="stmt"/>
883
876
  <line num="104" count="2" type="stmt"/>
884
877
  <line num="106" count="2" type="stmt"/>
885
- <line num="107" count="2" type="stmt"/>
878
+ <line num="108" count="2" type="stmt"/>
886
879
  <line num="109" count="2" type="stmt"/>
887
- <line num="110" count="2" type="stmt"/>
888
- <line num="117" count="1" type="stmt"/>
889
- <line num="122" count="1" type="stmt"/>
890
- <line num="126" count="34" type="stmt"/>
891
- <line num="127" count="2" type="stmt"/>
880
+ <line num="111" count="2" type="stmt"/>
881
+ <line num="112" count="2" type="stmt"/>
882
+ <line num="119" count="1" type="stmt"/>
883
+ <line num="124" count="1" type="stmt"/>
884
+ <line num="128" count="34" type="stmt"/>
892
885
  <line num="129" count="2" type="stmt"/>
893
- <line num="130" count="2" type="stmt"/>
886
+ <line num="131" count="2" type="stmt"/>
894
887
  <line num="132" count="2" type="stmt"/>
895
- <line num="138" count="2" type="stmt"/>
896
- <line num="139" count="2" type="stmt"/>
897
- <line num="145" count="1" type="stmt"/>
888
+ <line num="134" count="2" type="stmt"/>
889
+ <line num="140" count="2" type="stmt"/>
890
+ <line num="141" count="2" type="stmt"/>
898
891
  <line num="147" count="1" type="stmt"/>
899
- <line num="151" count="34" type="stmt"/>
900
- <line num="152" count="1" type="stmt"/>
901
- <line num="153" count="1" type="stmt"/>
892
+ <line num="149" count="1" type="stmt"/>
893
+ <line num="153" count="34" type="stmt"/>
902
894
  <line num="154" count="1" type="stmt"/>
903
895
  <line num="155" count="1" type="stmt"/>
896
+ <line num="156" count="1" type="stmt"/>
897
+ <line num="157" count="1" type="stmt"/>
904
898
  </file>
905
899
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/role.js">
906
900
  <metrics statements="53" coveredstatements="47" conditionals="22" coveredconditionals="14" methods="7" coveredmethods="5"/>
@@ -959,30 +953,30 @@
959
953
  <line num="97" count="1" type="stmt"/>
960
954
  </file>
961
955
  <file name="routing.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/routing.js">
962
- <metrics statements="49" coveredstatements="44" conditionals="14" coveredconditionals="11" methods="7" coveredmethods="7"/>
956
+ <metrics statements="49" coveredstatements="44" conditionals="14" coveredconditionals="9" methods="7" coveredmethods="7"/>
963
957
  <line num="1" count="23" type="stmt"/>
964
958
  <line num="5" count="23" type="stmt"/>
965
959
  <line num="7" count="23" type="stmt"/>
966
960
  <line num="10" count="3" type="stmt"/>
967
961
  <line num="13" count="23" type="stmt"/>
968
- <line num="14" count="9" type="cond" truecount="1" falsecount="1"/>
962
+ <line num="14" count="6" type="cond" truecount="1" falsecount="1"/>
969
963
  <line num="15" count="0" type="stmt"/>
970
- <line num="18" count="9" type="stmt"/>
964
+ <line num="18" count="6" type="stmt"/>
971
965
  <line num="21" count="23" type="stmt"/>
972
- <line num="22" count="9" type="stmt"/>
973
- <line num="23" count="9" type="cond" truecount="2" falsecount="0"/>
974
- <line num="24" count="6" type="stmt"/>
975
- <line num="28" count="9" type="cond" truecount="2" falsecount="0"/>
976
- <line num="29" count="6" type="stmt"/>
977
- <line num="33" count="9" type="stmt"/>
966
+ <line num="22" count="6" type="stmt"/>
967
+ <line num="23" count="6" type="cond" truecount="2" falsecount="0"/>
968
+ <line num="24" count="3" type="stmt"/>
969
+ <line num="28" count="6" type="cond" truecount="2" falsecount="0"/>
970
+ <line num="29" count="3" type="stmt"/>
971
+ <line num="33" count="6" type="stmt"/>
978
972
  <line num="36" count="23" type="stmt"/>
979
- <line num="37" count="9" type="stmt"/>
973
+ <line num="37" count="6" type="stmt"/>
980
974
  <line num="47" count="3" type="stmt"/>
981
975
  <line num="48" count="3" type="stmt"/>
982
976
  <line num="50" count="3" type="stmt"/>
983
- <line num="51" count="9" type="stmt"/>
984
- <line num="52" count="9" type="stmt"/>
985
- <line num="53" count="9" type="stmt"/>
977
+ <line num="51" count="6" type="stmt"/>
978
+ <line num="52" count="6" type="stmt"/>
979
+ <line num="53" count="6" type="stmt"/>
986
980
  <line num="56" count="3" type="stmt"/>
987
981
  <line num="59" count="23" type="stmt"/>
988
982
  <line num="60" count="1" type="stmt"/>
@@ -991,22 +985,22 @@
991
985
  <line num="65" count="2" type="stmt"/>
992
986
  <line num="66" count="2" type="stmt"/>
993
987
  <line num="67" count="2" type="stmt"/>
994
- <line num="68" count="4" type="stmt"/>
995
- <line num="69" count="4" type="stmt"/>
996
- <line num="70" count="4" type="stmt"/>
997
- <line num="71" count="4" type="stmt"/>
998
- <line num="72" count="4" type="cond" truecount="3" falsecount="1"/>
988
+ <line num="68" count="2" type="stmt"/>
989
+ <line num="69" count="2" type="stmt"/>
990
+ <line num="70" count="2" type="stmt"/>
991
+ <line num="71" count="2" type="stmt"/>
992
+ <line num="72" count="2" type="cond" truecount="2" falsecount="2"/>
999
993
  <line num="73" count="0" type="stmt"/>
1000
994
  <line num="74" count="0" type="stmt"/>
1001
995
  <line num="75" count="0" type="stmt"/>
1002
- <line num="77" count="4" type="stmt"/>
1003
- <line num="78" count="5" type="cond" truecount="2" falsecount="0"/>
1004
- <line num="79" count="4" type="stmt"/>
1005
- <line num="80" count="4" type="stmt"/>
1006
- <line num="81" count="4" type="stmt"/>
1007
- <line num="82" count="4" type="stmt"/>
1008
- <line num="86" count="4" type="stmt"/>
1009
- <line num="87" count="4" type="cond" truecount="1" falsecount="1"/>
996
+ <line num="77" count="2" type="stmt"/>
997
+ <line num="78" count="2" type="cond" truecount="1" falsecount="1"/>
998
+ <line num="79" count="2" type="stmt"/>
999
+ <line num="80" count="2" type="stmt"/>
1000
+ <line num="81" count="2" type="stmt"/>
1001
+ <line num="82" count="2" type="stmt"/>
1002
+ <line num="86" count="2" type="stmt"/>
1003
+ <line num="87" count="2" type="cond" truecount="1" falsecount="1"/>
1010
1004
  <line num="88" count="0" type="stmt"/>
1011
1005
  <line num="92" count="2" type="stmt"/>
1012
1006
  </file>
@@ -1019,7 +1013,7 @@
1019
1013
  <line num="6" count="1" type="stmt"/>
1020
1014
  <line num="7" count="1" type="stmt"/>
1021
1015
  <line num="9" count="1" type="stmt"/>
1022
- <line num="15" count="2" type="stmt"/>
1016
+ <line num="15" count="1" type="stmt"/>
1023
1017
  <line num="17" count="1" type="stmt"/>
1024
1018
  <line num="23" count="33" type="stmt"/>
1025
1019
  <line num="24" count="19" type="stmt"/>
@@ -1827,7 +1821,7 @@
1827
1821
  </file>
1828
1822
  </package>
1829
1823
  <package name="api.controllers.table">
1830
- <metrics statements="425" coveredstatements="220" conditionals="225" coveredconditionals="84" methods="56" coveredmethods="27"/>
1824
+ <metrics statements="422" coveredstatements="218" conditionals="221" coveredconditionals="81" methods="56" coveredmethods="27"/>
1831
1825
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/external.js">
1832
1826
  <metrics statements="137" coveredstatements="11" conditionals="76" coveredconditionals="0" methods="14" coveredmethods="0"/>
1833
1827
  <line num="1" count="34" type="stmt"/>
@@ -2025,7 +2019,7 @@
2025
2019
  <line num="105" count="1" type="stmt"/>
2026
2020
  </file>
2027
2021
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/internal.js">
2028
- <metrics statements="63" coveredstatements="49" conditionals="36" coveredconditionals="26" methods="5" coveredmethods="3"/>
2022
+ <metrics statements="60" coveredstatements="47" conditionals="32" coveredconditionals="23" methods="5" coveredmethods="3"/>
2029
2023
  <line num="1" count="34" type="stmt"/>
2030
2024
  <line num="2" count="34" type="stmt"/>
2031
2025
  <line num="3" count="34" type="stmt"/>
@@ -2045,50 +2039,47 @@
2045
2039
  <line num="45" count="99" type="cond" truecount="4" falsecount="0"/>
2046
2040
  <line num="46" count="4" type="stmt"/>
2047
2041
  <line num="47" count="13" type="stmt"/>
2048
- <line num="48" count="13" type="stmt"/>
2049
- <line num="49" count="13" type="cond" truecount="3" falsecount="1"/>
2050
- <line num="50" count="0" type="stmt"/>
2051
- <line num="52" count="13" type="cond" truecount="3" falsecount="1"/>
2052
- <line num="53" count="0" type="stmt"/>
2053
- <line num="59" count="99" type="stmt"/>
2054
- <line num="72" count="99" type="stmt"/>
2055
- <line num="75" count="99" type="stmt"/>
2042
+ <line num="48" count="13" type="cond" truecount="3" falsecount="1"/>
2043
+ <line num="49" count="0" type="stmt"/>
2044
+ <line num="55" count="99" type="stmt"/>
2045
+ <line num="68" count="99" type="stmt"/>
2046
+ <line num="71" count="99" type="stmt"/>
2047
+ <line num="72" count="0" type="stmt"/>
2048
+ <line num="73" count="0" type="cond" truecount="0" falsecount="2"/>
2049
+ <line num="75" count="0" type="cond" truecount="0" falsecount="4"/>
2056
2050
  <line num="76" count="0" type="stmt"/>
2057
- <line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
2058
- <line num="79" count="0" type="cond" truecount="0" falsecount="4"/>
2059
- <line num="80" count="0" type="stmt"/>
2060
- <line num="84" count="99" type="stmt"/>
2061
- <line num="85" count="99" type="stmt"/>
2062
- <line num="93" count="99" type="cond" truecount="4" falsecount="0"/>
2063
- <line num="94" count="4" type="stmt"/>
2064
- <line num="97" count="0" type="stmt"/>
2051
+ <line num="80" count="99" type="stmt"/>
2052
+ <line num="81" count="99" type="stmt"/>
2053
+ <line num="89" count="99" type="cond" truecount="4" falsecount="0"/>
2054
+ <line num="90" count="4" type="stmt"/>
2055
+ <line num="93" count="0" type="stmt"/>
2056
+ <line num="98" count="99" type="stmt"/>
2057
+ <line num="99" count="99" type="cond" truecount="4" falsecount="0"/>
2058
+ <line num="100" count="1" type="stmt"/>
2065
2059
  <line num="102" count="99" type="stmt"/>
2066
- <line num="103" count="99" type="cond" truecount="4" falsecount="0"/>
2067
- <line num="104" count="1" type="stmt"/>
2068
- <line num="106" count="99" type="stmt"/>
2060
+ <line num="103" count="99" type="stmt"/>
2061
+ <line num="105" count="99" type="stmt"/>
2069
2062
  <line num="107" count="99" type="stmt"/>
2070
- <line num="109" count="99" type="stmt"/>
2071
- <line num="111" count="99" type="stmt"/>
2072
- <line num="114" count="34" type="stmt"/>
2073
- <line num="115" count="2" type="stmt"/>
2063
+ <line num="110" count="34" type="stmt"/>
2064
+ <line num="111" count="2" type="stmt"/>
2065
+ <line num="112" count="2" type="stmt"/>
2066
+ <line num="113" count="2" type="stmt"/>
2074
2067
  <line num="116" count="2" type="stmt"/>
2075
- <line num="117" count="2" type="stmt"/>
2076
- <line num="120" count="2" type="stmt"/>
2077
- <line num="125" count="2" type="stmt"/>
2078
- <line num="128" count="2" type="stmt"/>
2068
+ <line num="121" count="2" type="stmt"/>
2069
+ <line num="124" count="2" type="stmt"/>
2070
+ <line num="131" count="2" type="stmt"/>
2071
+ <line num="134" count="2" type="stmt"/>
2079
2072
  <line num="135" count="2" type="stmt"/>
2080
- <line num="138" count="2" type="stmt"/>
2081
- <line num="139" count="2" type="stmt"/>
2082
- <line num="140" count="2" type="stmt"/>
2083
- <line num="142" count="2" type="cond" truecount="1" falsecount="1"/>
2084
- <line num="143" count="0" type="stmt"/>
2085
- <line num="146" count="2" type="stmt"/>
2086
- <line num="149" count="34" type="stmt"/>
2073
+ <line num="136" count="2" type="stmt"/>
2074
+ <line num="138" count="2" type="cond" truecount="1" falsecount="1"/>
2075
+ <line num="139" count="0" type="stmt"/>
2076
+ <line num="142" count="2" type="stmt"/>
2077
+ <line num="145" count="34" type="stmt"/>
2078
+ <line num="146" count="0" type="stmt"/>
2079
+ <line num="147" count="0" type="stmt"/>
2080
+ <line num="148" count="0" type="stmt"/>
2081
+ <line num="149" count="0" type="stmt"/>
2087
2082
  <line num="150" count="0" type="stmt"/>
2088
- <line num="151" count="0" type="stmt"/>
2089
- <line num="152" count="0" type="stmt"/>
2090
- <line num="153" count="0" type="stmt"/>
2091
- <line num="154" count="0" type="stmt"/>
2092
2083
  </file>
2093
2084
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/utils.js">
2094
2085
  <metrics statements="172" coveredstatements="116" conditionals="90" coveredconditionals="41" methods="27" coveredmethods="17"/>
@@ -2723,7 +2714,7 @@
2723
2714
  <line num="12" count="23" type="stmt"/>
2724
2715
  <line num="14" count="23" type="stmt"/>
2725
2716
  <line num="16" count="23" type="stmt"/>
2726
- <line num="76" count="23" type="stmt"/>
2717
+ <line num="254" count="23" type="stmt"/>
2727
2718
  </file>
2728
2719
  <file name="screen.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/screen.js">
2729
2720
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -2775,7 +2766,7 @@
2775
2766
  <line num="13" count="23" type="stmt"/>
2776
2767
  <line num="17" count="23" type="stmt"/>
2777
2768
  <line num="29" count="23" type="stmt"/>
2778
- <line num="68" count="23" type="stmt"/>
2769
+ <line num="211" count="23" type="stmt"/>
2779
2770
  </file>
2780
2771
  <file name="templates.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/templates.js">
2781
2772
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -3001,13 +2992,13 @@
3001
2992
  <line num="36" count="2" type="stmt"/>
3002
2993
  <line num="40" count="2" type="stmt"/>
3003
2994
  <line num="46" count="33" type="stmt"/>
3004
- <line num="47" count="185" type="stmt"/>
3005
- <line num="48" count="185" type="stmt"/>
3006
- <line num="49" count="185" type="stmt"/>
2995
+ <line num="47" count="186" type="stmt"/>
2996
+ <line num="48" count="186" type="stmt"/>
2997
+ <line num="49" count="186" type="stmt"/>
3007
2998
  <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
3008
2999
  <line num="51" count="0" type="stmt"/>
3009
3000
  <line num="52" count="0" type="stmt"/>
3010
- <line num="55" count="185" type="stmt"/>
3001
+ <line num="55" count="186" type="stmt"/>
3011
3002
  <line num="63" count="33" type="stmt"/>
3012
3003
  <line num="64" count="1" type="cond" truecount="1" falsecount="1"/>
3013
3004
  <line num="66" count="1" type="stmt"/>
@@ -3415,7 +3406,7 @@
3415
3406
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3416
3407
  <line num="1" count="33" type="stmt"/>
3417
3408
  <line num="2" count="33" type="stmt"/>
3418
- <line num="4" count="197" type="stmt"/>
3409
+ <line num="4" count="33" type="stmt"/>
3419
3410
  </file>
3420
3411
  </package>
3421
3412
  <package name="db">
@@ -3475,7 +3466,7 @@
3475
3466
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3476
3467
  <line num="1" count="47" type="stmt"/>
3477
3468
  <line num="3" count="47" type="stmt"/>
3478
- <line num="4" count="803" type="stmt"/>
3469
+ <line num="4" count="630" type="stmt"/>
3479
3470
  </file>
3480
3471
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3481
3472
  <metrics statements="108" coveredstatements="100" conditionals="51" coveredconditionals="18" methods="30" coveredmethods="27"/>
@@ -3507,9 +3498,9 @@
3507
3498
  <line num="84" count="47" type="stmt"/>
3508
3499
  <line num="86" count="47" type="stmt"/>
3509
3500
  <line num="87" count="74" type="stmt"/>
3510
- <line num="103" count="603" type="cond" truecount="2" falsecount="0"/>
3511
- <line num="104" count="590" type="stmt"/>
3512
- <line num="106" count="603" type="stmt"/>
3501
+ <line num="103" count="606" type="cond" truecount="2" falsecount="0"/>
3502
+ <line num="104" count="593" type="stmt"/>
3503
+ <line num="106" count="606" type="stmt"/>
3513
3504
  <line num="113" count="47" type="stmt"/>
3514
3505
  <line num="118" count="47" type="cond" truecount="0" falsecount="2"/>
3515
3506
  <line num="119" count="3" type="stmt"/>
@@ -3521,19 +3512,19 @@
3521
3512
  <line num="143" count="11" type="cond" truecount="1" falsecount="1"/>
3522
3513
  <line num="145" count="11" type="stmt"/>
3523
3514
  <line num="154" count="47" type="cond" truecount="1" falsecount="0"/>
3524
- <line num="155" count="200" type="cond" truecount="2" falsecount="0"/>
3525
- <line num="156" count="200" type="stmt"/>
3515
+ <line num="155" count="201" type="cond" truecount="2" falsecount="0"/>
3516
+ <line num="156" count="201" type="stmt"/>
3526
3517
  <line num="162" count="47" type="cond" truecount="0" falsecount="2"/>
3527
3518
  <line num="163" count="3" type="stmt"/>
3528
3519
  <line num="171" count="47" type="stmt"/>
3529
- <line num="172" count="132" type="stmt"/>
3520
+ <line num="172" count="133" type="stmt"/>
3530
3521
  <line num="178" count="47" type="stmt"/>
3531
3522
  <line num="179" count="2" type="stmt"/>
3532
3523
  <line num="180" count="2" type="cond" truecount="4" falsecount="0"/>
3533
3524
  <line num="181" count="1" type="stmt"/>
3534
3525
  <line num="183" count="1" type="stmt"/>
3535
3526
  <line num="189" count="47" type="cond" truecount="0" falsecount="2"/>
3536
- <line num="190" count="203" type="stmt"/>
3527
+ <line num="190" count="204" type="stmt"/>
3537
3528
  <line num="197" count="47" type="stmt"/>
3538
3529
  <line num="198" count="20" type="stmt"/>
3539
3530
  <line num="212" count="47" type="stmt"/>
@@ -3544,32 +3535,32 @@
3544
3535
  <line num="229" count="47" type="cond" truecount="0" falsecount="1"/>
3545
3536
  <line num="230" count="0" type="stmt"/>
3546
3537
  <line num="237" count="47" type="cond" truecount="0" falsecount="1"/>
3547
- <line num="238" count="178" type="stmt"/>
3548
- <line num="239" count="178" type="cond" truecount="1" falsecount="1"/>
3538
+ <line num="238" count="179" type="stmt"/>
3539
+ <line num="239" count="179" type="cond" truecount="1" falsecount="1"/>
3549
3540
  <line num="240" count="0" type="stmt"/>
3550
- <line num="242" count="178" type="stmt"/>
3541
+ <line num="242" count="179" type="stmt"/>
3551
3542
  <line num="249" count="47" type="stmt"/>
3552
- <line num="250" count="178" type="stmt"/>
3553
- <line num="251" count="178" type="stmt"/>
3554
- <line num="252" count="178" type="stmt"/>
3543
+ <line num="250" count="179" type="stmt"/>
3544
+ <line num="251" count="179" type="stmt"/>
3545
+ <line num="252" count="179" type="stmt"/>
3555
3546
  <line num="259" count="47" type="stmt"/>
3556
3547
  <line num="260" count="5" type="cond" truecount="2" falsecount="0"/>
3557
3548
  <line num="266" count="47" type="cond" truecount="0" falsecount="2"/>
3558
- <line num="267" count="188" type="stmt"/>
3549
+ <line num="267" count="189" type="stmt"/>
3559
3550
  <line num="274" count="47" type="stmt"/>
3560
- <line num="275" count="197" type="stmt"/>
3551
+ <line num="275" count="19" type="stmt"/>
3561
3552
  <line num="281" count="47" type="cond" truecount="0" falsecount="2"/>
3562
- <line num="282" count="190" type="stmt"/>
3553
+ <line num="282" count="191" type="stmt"/>
3563
3554
  <line num="289" count="47" type="stmt"/>
3564
3555
  <line num="290" count="10" type="stmt"/>
3565
3556
  <line num="296" count="47" type="cond" truecount="0" falsecount="2"/>
3566
3557
  <line num="297" count="2" type="stmt"/>
3567
3558
  <line num="304" count="47" type="cond" truecount="1" falsecount="1"/>
3568
- <line num="305" count="23" type="stmt"/>
3559
+ <line num="305" count="24" type="stmt"/>
3569
3560
  <line num="313" count="47" type="cond" truecount="0" falsecount="2"/>
3570
3561
  <line num="314" count="3" type="stmt"/>
3571
3562
  <line num="321" count="47" type="stmt"/>
3572
- <line num="322" count="18" type="stmt"/>
3563
+ <line num="322" count="20" type="stmt"/>
3573
3564
  <line num="330" count="47" type="cond" truecount="0" falsecount="2"/>
3574
3565
  <line num="331" count="3" type="cond" truecount="2" falsecount="0"/>
3575
3566
  <line num="332" count="2" type="stmt"/>
@@ -3981,16 +3972,16 @@
3981
3972
  <line num="14" count="7" type="stmt"/>
3982
3973
  <line num="17" count="24" type="stmt"/>
3983
3974
  <line num="19" count="2246" type="stmt"/>
3984
- <line num="22" count="150" type="cond" truecount="4" falsecount="0"/>
3975
+ <line num="22" count="151" type="cond" truecount="4" falsecount="0"/>
3985
3976
  <line num="23" count="1" type="stmt"/>
3986
- <line num="26" count="149" type="cond" truecount="2" falsecount="0"/>
3977
+ <line num="26" count="150" type="cond" truecount="2" falsecount="0"/>
3987
3978
  <line num="27" count="1" type="stmt"/>
3988
- <line num="32" count="148" type="stmt"/>
3989
- <line num="34" count="148" type="stmt"/>
3990
- <line num="36" count="148" type="cond" truecount="3" falsecount="0"/>
3991
- <line num="37" count="148" type="stmt"/>
3992
- <line num="38" count="148" type="cond" truecount="2" falsecount="0"/>
3993
- <line num="39" count="112" type="stmt"/>
3979
+ <line num="32" count="149" type="stmt"/>
3980
+ <line num="34" count="149" type="stmt"/>
3981
+ <line num="36" count="149" type="cond" truecount="3" falsecount="0"/>
3982
+ <line num="37" count="149" type="stmt"/>
3983
+ <line num="38" count="149" type="cond" truecount="2" falsecount="0"/>
3984
+ <line num="39" count="113" type="stmt"/>
3994
3985
  <line num="40" count="36" type="cond" truecount="4" falsecount="0"/>
3995
3986
  <line num="41" count="29" type="stmt"/>
3996
3987
  <line num="45" count="7" type="cond" truecount="2" falsecount="0"/>
@@ -4037,14 +4028,14 @@
4037
4028
  <line num="56" count="1" type="stmt"/>
4038
4029
  <line num="58" count="1" type="stmt"/>
4039
4030
  <line num="61" count="24" type="stmt"/>
4040
- <line num="62" count="148" type="stmt"/>
4041
- <line num="64" count="148" type="cond" truecount="2" falsecount="0"/>
4031
+ <line num="62" count="149" type="stmt"/>
4032
+ <line num="64" count="149" type="cond" truecount="2" falsecount="0"/>
4042
4033
  <line num="65" count="5" type="stmt"/>
4043
- <line num="67" count="143" type="stmt"/>
4044
- <line num="68" count="143" type="stmt"/>
4045
- <line num="69" count="143" type="cond" truecount="2" falsecount="0"/>
4046
- <line num="71" count="143" type="cond" truecount="4" falsecount="0"/>
4047
- <line num="72" count="142" type="stmt"/>
4034
+ <line num="67" count="144" type="stmt"/>
4035
+ <line num="68" count="144" type="stmt"/>
4036
+ <line num="69" count="144" type="cond" truecount="2" falsecount="0"/>
4037
+ <line num="71" count="144" type="cond" truecount="4" falsecount="0"/>
4038
+ <line num="72" count="143" type="stmt"/>
4048
4039
  <line num="75" count="1" type="stmt"/>
4049
4040
  <line num="77" count="1" type="stmt"/>
4050
4041
  </file>
@@ -4062,47 +4053,47 @@
4062
4053
  <line num="11" count="28" type="stmt"/>
4063
4054
  <line num="12" count="28" type="stmt"/>
4064
4055
  <line num="14" count="28" type="stmt"/>
4065
- <line num="16" count="160" type="stmt"/>
4066
- <line num="18" count="160" type="stmt"/>
4067
- <line num="19" count="160" type="stmt"/>
4068
- <line num="20" count="160" type="stmt"/>
4056
+ <line num="16" count="161" type="stmt"/>
4057
+ <line num="18" count="161" type="stmt"/>
4058
+ <line num="19" count="161" type="stmt"/>
4059
+ <line num="20" count="161" type="stmt"/>
4069
4060
  <line num="22" count="0" type="stmt"/>
4070
- <line num="24" count="160" type="cond" truecount="4" falsecount="0"/>
4061
+ <line num="24" count="161" type="cond" truecount="4" falsecount="0"/>
4071
4062
  <line num="25" count="1" type="stmt"/>
4072
- <line num="28" count="159" type="cond" truecount="2" falsecount="0"/>
4073
- <line num="29" count="153" type="stmt"/>
4074
- <line num="30" count="153" type="stmt"/>
4075
- <line num="31" count="153" type="cond" truecount="1" falsecount="1"/>
4063
+ <line num="28" count="160" type="cond" truecount="2" falsecount="0"/>
4064
+ <line num="29" count="154" type="stmt"/>
4065
+ <line num="30" count="154" type="stmt"/>
4066
+ <line num="31" count="154" type="cond" truecount="1" falsecount="1"/>
4076
4067
  <line num="32" count="0" type="stmt"/>
4077
4068
  <line num="33" count="0" type="stmt"/>
4078
- <line num="36" count="153" type="cond" truecount="1" falsecount="1"/>
4079
- <line num="40" count="159" type="cond" truecount="2" falsecount="0"/>
4069
+ <line num="36" count="154" type="cond" truecount="1" falsecount="1"/>
4070
+ <line num="40" count="160" type="cond" truecount="2" falsecount="0"/>
4080
4071
  <line num="45" count="2" type="stmt"/>
4081
4072
  <line num="46" count="2" type="stmt"/>
4082
- <line num="50" count="157" type="stmt"/>
4083
- <line num="51" count="157" type="cond" truecount="2" falsecount="0"/>
4073
+ <line num="50" count="158" type="stmt"/>
4074
+ <line num="51" count="158" type="cond" truecount="2" falsecount="0"/>
4084
4075
  <line num="53" count="33" type="stmt"/>
4085
- <line num="54" count="124" type="cond" truecount="1" falsecount="1"/>
4086
- <line num="56" count="124" type="stmt"/>
4087
- <line num="57" count="124" type="stmt"/>
4088
- <line num="59" count="124" type="cond" truecount="2" falsecount="0"/>
4089
- <line num="63" count="157" type="cond" truecount="1" falsecount="1"/>
4076
+ <line num="54" count="125" type="cond" truecount="1" falsecount="1"/>
4077
+ <line num="56" count="125" type="stmt"/>
4078
+ <line num="57" count="125" type="stmt"/>
4079
+ <line num="59" count="125" type="cond" truecount="2" falsecount="0"/>
4080
+ <line num="63" count="158" type="cond" truecount="1" falsecount="1"/>
4090
4081
  <line num="64" count="0" type="stmt"/>
4091
- <line num="67" count="157" type="stmt"/>
4092
- <line num="70" count="157" type="cond" truecount="1" falsecount="1"/>
4082
+ <line num="67" count="158" type="stmt"/>
4083
+ <line num="70" count="158" type="cond" truecount="1" falsecount="1"/>
4093
4084
  <line num="77" count="0" type="stmt"/>
4094
4085
  <line num="78" count="0" type="stmt"/>
4095
4086
  <line num="79" count="0" type="stmt"/>
4096
4087
  <line num="80" count="0" type="stmt"/>
4097
4088
  <line num="81" count="0" type="stmt"/>
4098
- <line num="84" count="157" type="stmt"/>
4099
- <line num="85" count="157" type="cond" truecount="1" falsecount="1"/>
4100
- <line num="86" count="157" type="stmt"/>
4101
- <line num="87" count="157" type="cond" truecount="2" falsecount="0"/>
4102
- <line num="88" count="157" type="stmt"/>
4103
- <line num="97" count="157" type="cond" truecount="2" falsecount="0"/>
4089
+ <line num="84" count="158" type="stmt"/>
4090
+ <line num="85" count="158" type="cond" truecount="1" falsecount="1"/>
4091
+ <line num="86" count="158" type="stmt"/>
4092
+ <line num="87" count="158" type="cond" truecount="2" falsecount="0"/>
4093
+ <line num="88" count="158" type="stmt"/>
4094
+ <line num="97" count="158" type="cond" truecount="2" falsecount="0"/>
4104
4095
  <line num="103" count="7" type="stmt"/>
4105
- <line num="106" count="157" type="stmt"/>
4096
+ <line num="106" count="158" type="stmt"/>
4106
4097
  </file>
4107
4098
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
4108
4099
  <metrics statements="17" coveredstatements="14" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
@@ -4138,14 +4129,14 @@
4138
4129
  <line num="21" count="604" type="stmt"/>
4139
4130
  <line num="22" count="604" type="stmt"/>
4140
4131
  <line num="23" count="604" type="stmt"/>
4141
- <line num="24" count="57" type="cond" truecount="2" falsecount="0"/>
4142
- <line num="25" count="57" type="cond" truecount="2" falsecount="0"/>
4132
+ <line num="24" count="58" type="cond" truecount="2" falsecount="0"/>
4133
+ <line num="25" count="58" type="cond" truecount="2" falsecount="0"/>
4143
4134
  <line num="26" count="1" type="stmt"/>
4144
- <line num="28" count="56" type="cond" truecount="4" falsecount="0"/>
4145
- <line num="29" count="52" type="stmt"/>
4146
- <line num="31" count="56" type="cond" truecount="4" falsecount="0"/>
4135
+ <line num="28" count="57" type="cond" truecount="4" falsecount="0"/>
4136
+ <line num="29" count="53" type="stmt"/>
4137
+ <line num="31" count="57" type="cond" truecount="4" falsecount="0"/>
4147
4138
  <line num="32" count="11" type="stmt"/>
4148
- <line num="34" count="56" type="stmt"/>
4139
+ <line num="34" count="57" type="stmt"/>
4149
4140
  <line num="39" count="24" type="stmt"/>
4150
4141
  <line num="41" count="24" type="stmt"/>
4151
4142
  <line num="42" count="462" type="stmt"/>
@@ -4208,7 +4199,7 @@
4208
4199
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4209
4200
  <line num="1" count="29" type="stmt"/>
4210
4201
  <line num="5" count="29" type="stmt"/>
4211
- <line num="6" count="269" type="stmt"/>
4202
+ <line num="6" count="271" type="stmt"/>
4212
4203
  </file>
4213
4204
  </package>
4214
4205
  <package name="threads">
@@ -4473,26 +4464,26 @@
4473
4464
  <line num="9" count="39" type="stmt"/>
4474
4465
  <line num="10" count="39" type="stmt"/>
4475
4466
  <line num="12" count="39" type="stmt"/>
4476
- <line num="13" count="133" type="cond" truecount="4" falsecount="0"/>
4467
+ <line num="13" count="134" type="cond" truecount="4" falsecount="0"/>
4477
4468
  <line num="14" count="3" type="stmt"/>
4478
- <line num="17" count="130" type="cond" truecount="2" falsecount="2"/>
4469
+ <line num="17" count="131" type="cond" truecount="2" falsecount="2"/>
4479
4470
  <line num="18" count="0" type="stmt"/>
4480
4471
  <line num="19" count="0" type="stmt"/>
4481
4472
  <line num="20" count="0" type="stmt"/>
4482
4473
  <line num="21" count="0" type="stmt"/>
4483
- <line num="24" count="130" type="stmt"/>
4484
- <line num="26" count="130" type="cond" truecount="5" falsecount="0"/>
4485
- <line num="27" count="125" type="stmt"/>
4474
+ <line num="24" count="131" type="stmt"/>
4475
+ <line num="26" count="131" type="cond" truecount="5" falsecount="0"/>
4476
+ <line num="27" count="126" type="stmt"/>
4486
4477
  <line num="28" count="5" type="cond" truecount="1" falsecount="1"/>
4487
4478
  <line num="29" count="0" type="stmt"/>
4488
- <line num="31" count="130" type="stmt"/>
4489
- <line num="32" count="130" type="stmt"/>
4490
- <line num="36" count="126" type="cond" truecount="1" falsecount="1"/>
4491
- <line num="37" count="126" type="stmt"/>
4492
- <line num="39" count="126" type="stmt"/>
4479
+ <line num="31" count="131" type="stmt"/>
4480
+ <line num="32" count="131" type="stmt"/>
4481
+ <line num="36" count="127" type="cond" truecount="1" falsecount="1"/>
4482
+ <line num="37" count="127" type="stmt"/>
4483
+ <line num="39" count="127" type="stmt"/>
4493
4484
  <line num="42" count="39" type="stmt"/>
4494
- <line num="45" count="124" type="stmt"/>
4495
- <line num="46" count="124" type="stmt"/>
4485
+ <line num="45" count="125" type="stmt"/>
4486
+ <line num="46" count="125" type="stmt"/>
4496
4487
  <line num="49" count="39" type="stmt"/>
4497
4488
  <line num="50" count="2" type="stmt"/>
4498
4489
  <line num="51" count="2" type="stmt"/>
@@ -4545,12 +4536,12 @@
4545
4536
  <line num="39" count="2" type="stmt"/>
4546
4537
  <line num="41" count="0" type="stmt"/>
4547
4538
  <line num="55" count="36" type="stmt"/>
4548
- <line num="56" count="187" type="cond" truecount="1" falsecount="1"/>
4539
+ <line num="56" count="188" type="cond" truecount="1" falsecount="1"/>
4549
4540
  <line num="57" count="0" type="stmt"/>
4550
4541
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
4551
4542
  <line num="62" count="0" type="stmt"/>
4552
4543
  <line num="64" count="0" type="stmt"/>
4553
- <line num="66" count="187" type="stmt"/>
4544
+ <line num="66" count="188" type="stmt"/>
4554
4545
  <line num="70" count="36" type="stmt"/>
4555
4546
  <line num="71" count="2" type="stmt"/>
4556
4547
  <line num="76" count="36" type="stmt"/>
@@ -4737,7 +4728,7 @@
4737
4728
  <line num="73" count="8" type="stmt"/>
4738
4729
  <line num="74" count="8" type="stmt"/>
4739
4730
  <line num="83" count="0" type="stmt"/>
4740
- <line num="90" count="185" type="stmt"/>
4731
+ <line num="90" count="186" type="stmt"/>
4741
4732
  <line num="97" count="0" type="stmt"/>
4742
4733
  <line num="101" count="33" type="stmt"/>
4743
4734
  </file>
@@ -4753,7 +4744,7 @@
4753
4744
  <line num="6" count="3" type="stmt"/>
4754
4745
  <line num="7" count="3" type="stmt"/>
4755
4746
  <line num="8" count="3" type="stmt"/>
4756
- <line num="12" count="9" type="stmt"/>
4747
+ <line num="12" count="6" type="stmt"/>
4757
4748
  <line num="25" count="23" type="stmt"/>
4758
4749
  </file>
4759
4750
  </package>