@budibase/server 0.9.190-alpha.4 → 0.9.190-alpha.8

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 (179) hide show
  1. package/builder/assets/{index.12e1627d.js → index.16e51dbb.js} +167 -167
  2. package/builder/index.html +1 -1
  3. package/coverage/clover.xml +258 -263
  4. package/coverage/coverage-final.json +18 -18
  5. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  6. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/application.js.html +56 -56
  8. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/datasource.js.html +15 -15
  14. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +10 -10
  17. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query.js.html +34 -28
  22. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/index.html +14 -14
  34. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/internal.js.html +8 -20
  36. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  45. package/coverage/lcov-report/api/index.html +1 -1
  46. package/coverage/lcov-report/api/index.js.html +5 -5
  47. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/index.html +1 -1
  60. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/row.js.html +536 -2
  69. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/table.js.html +436 -7
  73. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  77. package/coverage/lcov-report/automations/actions.js.html +1 -1
  78. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  79. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  80. package/coverage/lcov-report/automations/index.html +1 -1
  81. package/coverage/lcov-report/automations/index.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/index.html +1 -1
  91. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  100. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  109. package/coverage/lcov-report/automations/utils.js.html +5 -5
  110. package/coverage/lcov-report/constants/index.html +1 -1
  111. package/coverage/lcov-report/constants/index.js.html +1 -1
  112. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  113. package/coverage/lcov-report/constants/screens.js.html +1 -1
  114. package/coverage/lcov-report/db/client.js.html +1 -1
  115. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  116. package/coverage/lcov-report/db/index.html +1 -1
  117. package/coverage/lcov-report/db/index.js.html +1 -1
  118. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  122. package/coverage/lcov-report/db/newid.js.html +2 -2
  123. package/coverage/lcov-report/db/utils.js.html +18 -18
  124. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  125. package/coverage/lcov-report/events/index.html +1 -1
  126. package/coverage/lcov-report/events/index.js.html +1 -1
  127. package/coverage/lcov-report/events/utils.js.html +1 -1
  128. package/coverage/lcov-report/index.html +18 -18
  129. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  130. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  131. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  132. package/coverage/lcov-report/middleware/authorized.js.html +9 -9
  133. package/coverage/lcov-report/middleware/builder.js.html +7 -7
  134. package/coverage/lcov-report/middleware/currentapp.js.html +28 -28
  135. package/coverage/lcov-report/middleware/index.html +1 -1
  136. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  137. package/coverage/lcov-report/middleware/resourceId.js.html +7 -7
  138. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  139. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  140. package/coverage/lcov-report/middleware/utils.js.html +2 -2
  141. package/coverage/lcov-report/threads/automation.js.html +1 -1
  142. package/coverage/lcov-report/threads/index.html +1 -1
  143. package/coverage/lcov-report/threads/index.js.html +1 -1
  144. package/coverage/lcov-report/threads/query.js.html +1 -1
  145. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  146. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  147. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  148. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  149. package/coverage/lcov-report/utilities/global.js.html +13 -13
  150. package/coverage/lcov-report/utilities/index.html +1 -1
  151. package/coverage/lcov-report/utilities/index.js.html +3 -3
  152. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +2 -2
  153. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  154. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  155. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  156. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  157. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  158. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  159. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  160. package/coverage/lcov-report/utilities/security.js.html +1 -1
  161. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  162. package/coverage/lcov-report/utilities/users.js.html +1 -1
  163. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  164. package/coverage/lcov.info +433 -442
  165. package/dist/api/controllers/query.js +2 -4
  166. package/dist/api/controllers/table/internal.js +0 -4
  167. package/dist/api/routes/row.js +178 -0
  168. package/dist/api/routes/table.js +148 -5
  169. package/dist/package.json +10 -6
  170. package/dist/tsconfig.tsbuildinfo +1 -1
  171. package/package.json +11 -7
  172. package/scripts/docs/README.md +31 -0
  173. package/scripts/docs/generate.js +74 -0
  174. package/scripts/docs/toSwagger.js +320 -0
  175. package/src/api/controllers/query.js +6 -4
  176. package/src/api/controllers/table/internal.js +0 -4
  177. package/src/api/routes/row.js +178 -0
  178. package/src/api/routes/table.js +148 -5
  179. package/src/api/routes/tests/query.spec.js +38 -8
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1637878763005" clover="3.2.0">
3
- <project timestamp="1637878763005" name="All files">
4
- <metrics statements="4381" coveredstatements="3237" conditionals="1748" coveredconditionals="951" methods="619" coveredmethods="440" elements="6748" coveredelements="4628" complexity="0" loc="4381" ncloc="4381" packages="20" files="138" classes="138"/>
2
+ <coverage generated="1637940410181" clover="3.2.0">
3
+ <project timestamp="1637940410181" 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="1112" coveredstatements="799" conditionals="367" coveredconditionals="169" methods="153" coveredmethods="109"/>
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"/>
@@ -105,40 +105,40 @@
105
105
  <line num="46" count="33" type="stmt"/>
106
106
  <line num="47" count="33" type="stmt"/>
107
107
  <line num="49" count="33" type="stmt"/>
108
- <line num="53" count="188" type="stmt"/>
109
- <line num="59" count="376" type="stmt"/>
110
- <line num="63" count="188" type="stmt"/>
108
+ <line num="53" count="189" type="stmt"/>
109
+ <line num="59" count="378" type="stmt"/>
110
+ <line num="63" count="189" type="stmt"/>
111
111
  <line num="69" count="12" type="stmt"/>
112
- <line num="73" count="186" type="cond" truecount="4" falsecount="0"/>
113
- <line num="80" count="183" type="cond" truecount="1" falsecount="1"/>
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
114
  <line num="81" count="0" type="stmt"/>
115
- <line num="82" count="183" type="cond" truecount="2" falsecount="0"/>
116
- <line num="83" count="180" type="stmt"/>
117
- <line num="85" count="183" type="cond" truecount="2" falsecount="0"/>
118
- <line num="86" count="180" type="stmt"/>
119
- <line num="88" count="183" type="cond" truecount="2" falsecount="0"/>
120
- <line num="89" count="10" 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
121
  <line num="91" count="173" type="stmt"/>
122
122
  <line num="92" count="173" type="cond" truecount="1" falsecount="1"/>
123
123
  <line num="98" count="0" type="stmt"/>
124
124
  <line num="100" count="173" type="stmt"/>
125
- <line num="104" count="178" type="cond" truecount="1" falsecount="1"/>
126
- <line num="105" count="178" type="stmt"/>
127
- <line num="106" count="178" type="stmt"/>
128
- <line num="108" count="178" type="stmt"/>
129
- <line num="109" count="178" type="stmt"/>
130
- <line num="118" count="178" type="stmt"/>
131
- <line num="119" count="178" type="stmt"/>
132
- <line num="120" count="178" type="stmt"/>
133
- <line num="124" count="178" type="cond" truecount="3" falsecount="1"/>
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
134
  <line num="125" count="0" type="stmt"/>
135
135
  <line num="126" count="0" type="cond" truecount="0" falsecount="2"/>
136
136
  <line num="127" count="0" type="stmt"/>
137
- <line num="129" count="178" type="cond" truecount="3" falsecount="1"/>
137
+ <line num="129" count="179" type="cond" truecount="3" falsecount="1"/>
138
138
  <line num="132" count="0" type="cond" truecount="0" falsecount="2"/>
139
139
  <line num="133" count="0" type="stmt"/>
140
- <line num="137" count="178" type="stmt"/>
141
- <line num="140" count="178" type="stmt"/>
140
+ <line num="137" count="179" type="stmt"/>
141
+ <line num="140" count="179" type="stmt"/>
142
142
  <line num="143" count="33" type="stmt"/>
143
143
  <line num="144" count="10" type="cond" truecount="2" falsecount="0"/>
144
144
  <line num="145" count="10" type="cond" truecount="2" falsecount="0"/>
@@ -161,35 +161,35 @@
161
161
  <line num="173" count="1" type="stmt"/>
162
162
  <line num="177" count="1" type="stmt"/>
163
163
  <line num="184" count="33" type="stmt"/>
164
- <line num="185" count="187" type="stmt"/>
165
- <line num="186" count="187" type="stmt"/>
166
- <line num="187" count="187" type="stmt"/>
167
- <line num="188" count="187" type="stmt"/>
168
- <line num="191" count="187" type="cond" truecount="4" falsecount="0"/>
169
- <line num="192" count="185" type="stmt"/>
170
- <line num="193" count="185" type="stmt"/>
171
- <line num="194" count="185" type="stmt"/>
172
- <line num="197" count="187" 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
173
  <line num="205" count="33" type="stmt"/>
174
- <line num="206" count="178" type="stmt"/>
175
- <line num="207" count="178" type="stmt"/>
176
- <line num="212" count="178" type="cond" truecount="2" falsecount="2"/>
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
177
  <line num="213" count="0" type="stmt"/>
178
- <line num="215" count="178" type="stmt"/>
179
- <line num="216" count="178" type="stmt"/>
180
- <line num="218" count="178" type="stmt"/>
181
- <line num="219" count="178" type="stmt"/>
182
- <line num="221" count="178" type="stmt"/>
183
- <line num="223" count="178" 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
184
  <line num="224" count="0" type="stmt"/>
185
- <line num="228" count="178" type="stmt"/>
186
- <line num="243" count="178" type="stmt"/>
187
- <line num="244" count="178" type="stmt"/>
188
- <line num="248" count="178" type="cond" truecount="1" falsecount="1"/>
189
- <line num="249" count="178" type="stmt"/>
190
- <line num="257" count="178" type="stmt"/>
191
- <line num="258" count="178" type="stmt"/>
192
- <line num="259" count="178" 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
193
  <line num="262" count="33" type="stmt"/>
194
194
  <line num="263" count="2" type="stmt"/>
195
195
  <line num="264" count="2" type="stmt"/>
@@ -258,12 +258,12 @@
258
258
  <line num="397" count="5" type="stmt"/>
259
259
  <line num="398" count="5" type="stmt"/>
260
260
  <line num="401" count="33" type="stmt"/>
261
- <line num="402" count="178" type="stmt"/>
262
- <line num="404" count="178" type="stmt"/>
263
- <line num="405" count="178" type="stmt"/>
264
- <line num="406" count="356" type="stmt"/>
265
- <line num="407" count="356" type="stmt"/>
266
- <line num="410" count="178" 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"/>
267
267
  </file>
268
268
  <file name="auth.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/auth.js">
269
269
  <metrics statements="27" coveredstatements="23" conditionals="8" coveredconditionals="4" methods="1" coveredmethods="1"/>
@@ -523,25 +523,25 @@
523
523
  <line num="78" count="0" type="stmt"/>
524
524
  <line num="79" count="0" type="stmt"/>
525
525
  <line num="82" count="33" type="stmt"/>
526
- <line num="83" count="23" type="stmt"/>
527
- <line num="84" count="23" type="stmt"/>
528
- <line num="85" count="23" type="stmt"/>
529
- <line num="87" count="23" type="stmt"/>
530
- <line num="93" count="23" type="stmt"/>
531
- <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"/>
532
532
  <line num="95" count="0" type="stmt"/>
533
533
  <line num="96" count="0" type="stmt"/>
534
534
  <line num="97" count="0" type="stmt"/>
535
- <line num="100" count="23" type="stmt"/>
536
- <line num="101" count="23" type="stmt"/>
537
- <line num="104" count="23" type="cond" truecount="1" falsecount="1"/>
538
- <line num="105" count="23" type="stmt"/>
539
- <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"/>
540
540
  <line num="107" count="0" type="stmt"/>
541
- <line num="111" count="23" type="stmt"/>
542
- <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"/>
543
543
  <line num="113" count="0" type="stmt"/>
544
- <line num="115" count="23" type="stmt"/>
544
+ <line num="115" count="24" type="stmt"/>
545
545
  <line num="118" count="33" type="stmt"/>
546
546
  <line num="119" count="1" type="stmt"/>
547
547
  <line num="122" count="1" type="stmt"/>
@@ -824,79 +824,77 @@
824
824
  <line num="170" count="1" type="stmt"/>
825
825
  </file>
826
826
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query.js">
827
- <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"/>
828
828
  <line num="1" count="34" type="stmt"/>
829
829
  <line num="2" count="34" type="stmt"/>
830
- <line num="3" count="34" type="stmt"/>
831
- <line num="4" count="34" type="stmt"/>
832
- <line num="5" count="34" type="stmt"/>
833
- <line num="6" count="34" type="stmt"/>
830
+ <line num="7" count="34" type="stmt"/>
834
831
  <line num="8" count="34" type="stmt"/>
835
- <line num="12" count="4" type="stmt"/>
836
- <line num="13" count="4" type="cond" truecount="2" falsecount="0"/>
837
- <line num="14" count="4" type="stmt"/>
838
- <line num="15" count="3" type="cond" truecount="1" falsecount="1"/>
839
- <line num="16" count="3" type="stmt"/>
840
- <line num="19" count="4" type="cond" truecount="2" falsecount="0"/>
841
- <line num="22" count="34" type="stmt"/>
842
- <line num="23" count="2" type="stmt"/>
843
- <line num="25" count="2" type="stmt"/>
844
- <line num="30" count="2" type="stmt"/>
845
- <line num="33" count="34" type="stmt"/>
846
- <line num="34" count="18" type="stmt"/>
847
- <line num="35" count="18" type="stmt"/>
848
- <line num="37" count="18" type="cond" truecount="1" falsecount="1"/>
849
- <line num="38" count="18" type="stmt"/>
850
- <line num="41" count="18" type="stmt"/>
851
- <line num="42" count="18" type="stmt"/>
852
- <line num="44" count="18" type="stmt"/>
853
- <line num="45" count="18" type="stmt"/>
854
- <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"/>
855
853
  <line num="52" count="4" type="stmt"/>
856
- <line num="53" count="0" type="cond" truecount="0" falsecount="2"/>
857
- <line num="54" count="0" type="stmt"/>
854
+ <line num="55" count="4" type="stmt"/>
858
855
  <line num="56" count="0" type="cond" truecount="0" falsecount="2"/>
859
- <line num="58" count="0" type="stmt"/>
856
+ <line num="57" count="0" type="stmt"/>
860
857
  <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
861
858
  <line num="61" count="0" type="stmt"/>
862
- <line num="65" count="0" type="stmt"/>
863
- <line num="69" count="4" type="cond" truecount="1" falsecount="1"/>
864
- <line num="74" count="0" type="stmt"/>
865
- <line num="75" count="0" type="stmt"/>
866
- <line num="81" count="0" type="stmt"/>
867
- <line num="83" count="0" type="stmt"/>
868
- <line num="86" count="4" type="stmt"/>
869
- <line num="89" count="34" type="stmt"/>
870
- <line num="90" count="2" type="stmt"/>
871
- <line num="91" count="2" type="stmt"/>
872
- <line num="93" count="2" type="cond" truecount="2" falsecount="0"/>
873
- <line num="94" count="1" type="stmt"/>
874
- <line num="95" count="1" type="stmt"/>
875
- <line num="96" count="1" type="stmt"/>
876
- <line num="98" count="2" type="stmt"/>
877
- <line num="101" count="34" type="stmt"/>
878
- <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"/>
879
876
  <line num="104" count="2" type="stmt"/>
880
877
  <line num="106" count="2" type="stmt"/>
881
- <line num="107" count="2" type="stmt"/>
878
+ <line num="108" count="2" type="stmt"/>
882
879
  <line num="109" count="2" type="stmt"/>
883
- <line num="110" count="2" type="stmt"/>
884
- <line num="117" count="1" type="stmt"/>
885
- <line num="122" count="1" type="stmt"/>
886
- <line num="126" count="34" type="stmt"/>
887
- <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"/>
888
885
  <line num="129" count="2" type="stmt"/>
889
- <line num="130" count="2" type="stmt"/>
886
+ <line num="131" count="2" type="stmt"/>
890
887
  <line num="132" count="2" type="stmt"/>
891
- <line num="138" count="2" type="stmt"/>
892
- <line num="139" count="2" type="stmt"/>
893
- <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"/>
894
891
  <line num="147" count="1" type="stmt"/>
895
- <line num="151" count="34" type="stmt"/>
896
- <line num="152" count="1" type="stmt"/>
897
- <line num="153" count="1" type="stmt"/>
892
+ <line num="149" count="1" type="stmt"/>
893
+ <line num="153" count="34" type="stmt"/>
898
894
  <line num="154" count="1" type="stmt"/>
899
895
  <line num="155" count="1" type="stmt"/>
896
+ <line num="156" count="1" type="stmt"/>
897
+ <line num="157" count="1" type="stmt"/>
900
898
  </file>
901
899
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/role.js">
902
900
  <metrics statements="53" coveredstatements="47" conditionals="22" coveredconditionals="14" methods="7" coveredmethods="5"/>
@@ -1823,7 +1821,7 @@
1823
1821
  </file>
1824
1822
  </package>
1825
1823
  <package name="api.controllers.table">
1826
- <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"/>
1827
1825
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/external.js">
1828
1826
  <metrics statements="137" coveredstatements="11" conditionals="76" coveredconditionals="0" methods="14" coveredmethods="0"/>
1829
1827
  <line num="1" count="34" type="stmt"/>
@@ -2021,7 +2019,7 @@
2021
2019
  <line num="105" count="1" type="stmt"/>
2022
2020
  </file>
2023
2021
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/internal.js">
2024
- <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"/>
2025
2023
  <line num="1" count="34" type="stmt"/>
2026
2024
  <line num="2" count="34" type="stmt"/>
2027
2025
  <line num="3" count="34" type="stmt"/>
@@ -2041,50 +2039,47 @@
2041
2039
  <line num="45" count="99" type="cond" truecount="4" falsecount="0"/>
2042
2040
  <line num="46" count="4" type="stmt"/>
2043
2041
  <line num="47" count="13" type="stmt"/>
2044
- <line num="48" count="13" type="stmt"/>
2045
- <line num="49" count="13" type="cond" truecount="3" falsecount="1"/>
2046
- <line num="50" count="0" type="stmt"/>
2047
- <line num="52" count="13" type="cond" truecount="3" falsecount="1"/>
2048
- <line num="53" count="0" type="stmt"/>
2049
- <line num="59" count="99" type="stmt"/>
2050
- <line num="72" count="99" type="stmt"/>
2051
- <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"/>
2052
2050
  <line num="76" count="0" type="stmt"/>
2053
- <line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
2054
- <line num="79" count="0" type="cond" truecount="0" falsecount="4"/>
2055
- <line num="80" count="0" type="stmt"/>
2056
- <line num="84" count="99" type="stmt"/>
2057
- <line num="85" count="99" type="stmt"/>
2058
- <line num="93" count="99" type="cond" truecount="4" falsecount="0"/>
2059
- <line num="94" count="4" type="stmt"/>
2060
- <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"/>
2061
2059
  <line num="102" count="99" type="stmt"/>
2062
- <line num="103" count="99" type="cond" truecount="4" falsecount="0"/>
2063
- <line num="104" count="1" type="stmt"/>
2064
- <line num="106" count="99" type="stmt"/>
2060
+ <line num="103" count="99" type="stmt"/>
2061
+ <line num="105" count="99" type="stmt"/>
2065
2062
  <line num="107" count="99" type="stmt"/>
2066
- <line num="109" count="99" type="stmt"/>
2067
- <line num="111" count="99" type="stmt"/>
2068
- <line num="114" count="34" type="stmt"/>
2069
- <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"/>
2070
2067
  <line num="116" count="2" type="stmt"/>
2071
- <line num="117" count="2" type="stmt"/>
2072
- <line num="120" count="2" type="stmt"/>
2073
- <line num="125" count="2" type="stmt"/>
2074
- <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"/>
2075
2072
  <line num="135" count="2" type="stmt"/>
2076
- <line num="138" count="2" type="stmt"/>
2077
- <line num="139" count="2" type="stmt"/>
2078
- <line num="140" count="2" type="stmt"/>
2079
- <line num="142" count="2" type="cond" truecount="1" falsecount="1"/>
2080
- <line num="143" count="0" type="stmt"/>
2081
- <line num="146" count="2" type="stmt"/>
2082
- <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"/>
2083
2082
  <line num="150" count="0" type="stmt"/>
2084
- <line num="151" count="0" type="stmt"/>
2085
- <line num="152" count="0" type="stmt"/>
2086
- <line num="153" count="0" type="stmt"/>
2087
- <line num="154" count="0" type="stmt"/>
2088
2083
  </file>
2089
2084
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/utils.js">
2090
2085
  <metrics statements="172" coveredstatements="116" conditionals="90" coveredconditionals="41" methods="27" coveredmethods="17"/>
@@ -2719,7 +2714,7 @@
2719
2714
  <line num="12" count="23" type="stmt"/>
2720
2715
  <line num="14" count="23" type="stmt"/>
2721
2716
  <line num="16" count="23" type="stmt"/>
2722
- <line num="76" count="23" type="stmt"/>
2717
+ <line num="254" count="23" type="stmt"/>
2723
2718
  </file>
2724
2719
  <file name="screen.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/screen.js">
2725
2720
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -2771,7 +2766,7 @@
2771
2766
  <line num="13" count="23" type="stmt"/>
2772
2767
  <line num="17" count="23" type="stmt"/>
2773
2768
  <line num="29" count="23" type="stmt"/>
2774
- <line num="68" count="23" type="stmt"/>
2769
+ <line num="211" count="23" type="stmt"/>
2775
2770
  </file>
2776
2771
  <file name="templates.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/templates.js">
2777
2772
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -2997,13 +2992,13 @@
2997
2992
  <line num="36" count="2" type="stmt"/>
2998
2993
  <line num="40" count="2" type="stmt"/>
2999
2994
  <line num="46" count="33" type="stmt"/>
3000
- <line num="47" count="185" type="stmt"/>
3001
- <line num="48" count="185" type="stmt"/>
3002
- <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"/>
3003
2998
  <line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
3004
2999
  <line num="51" count="0" type="stmt"/>
3005
3000
  <line num="52" count="0" type="stmt"/>
3006
- <line num="55" count="185" type="stmt"/>
3001
+ <line num="55" count="186" type="stmt"/>
3007
3002
  <line num="63" count="33" type="stmt"/>
3008
3003
  <line num="64" count="1" type="cond" truecount="1" falsecount="1"/>
3009
3004
  <line num="66" count="1" type="stmt"/>
@@ -3471,7 +3466,7 @@
3471
3466
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3472
3467
  <line num="1" count="47" type="stmt"/>
3473
3468
  <line num="3" count="47" type="stmt"/>
3474
- <line num="4" count="625" type="stmt"/>
3469
+ <line num="4" count="630" type="stmt"/>
3475
3470
  </file>
3476
3471
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/db/utils.js">
3477
3472
  <metrics statements="108" coveredstatements="100" conditionals="51" coveredconditionals="18" methods="30" coveredmethods="27"/>
@@ -3503,9 +3498,9 @@
3503
3498
  <line num="84" count="47" type="stmt"/>
3504
3499
  <line num="86" count="47" type="stmt"/>
3505
3500
  <line num="87" count="74" type="stmt"/>
3506
- <line num="103" count="603" type="cond" truecount="2" falsecount="0"/>
3507
- <line num="104" count="590" type="stmt"/>
3508
- <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"/>
3509
3504
  <line num="113" count="47" type="stmt"/>
3510
3505
  <line num="118" count="47" type="cond" truecount="0" falsecount="2"/>
3511
3506
  <line num="119" count="3" type="stmt"/>
@@ -3517,19 +3512,19 @@
3517
3512
  <line num="143" count="11" type="cond" truecount="1" falsecount="1"/>
3518
3513
  <line num="145" count="11" type="stmt"/>
3519
3514
  <line num="154" count="47" type="cond" truecount="1" falsecount="0"/>
3520
- <line num="155" count="200" type="cond" truecount="2" falsecount="0"/>
3521
- <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"/>
3522
3517
  <line num="162" count="47" type="cond" truecount="0" falsecount="2"/>
3523
3518
  <line num="163" count="3" type="stmt"/>
3524
3519
  <line num="171" count="47" type="stmt"/>
3525
- <line num="172" count="132" type="stmt"/>
3520
+ <line num="172" count="133" type="stmt"/>
3526
3521
  <line num="178" count="47" type="stmt"/>
3527
3522
  <line num="179" count="2" type="stmt"/>
3528
3523
  <line num="180" count="2" type="cond" truecount="4" falsecount="0"/>
3529
3524
  <line num="181" count="1" type="stmt"/>
3530
3525
  <line num="183" count="1" type="stmt"/>
3531
3526
  <line num="189" count="47" type="cond" truecount="0" falsecount="2"/>
3532
- <line num="190" count="203" type="stmt"/>
3527
+ <line num="190" count="204" type="stmt"/>
3533
3528
  <line num="197" count="47" type="stmt"/>
3534
3529
  <line num="198" count="20" type="stmt"/>
3535
3530
  <line num="212" count="47" type="stmt"/>
@@ -3540,32 +3535,32 @@
3540
3535
  <line num="229" count="47" type="cond" truecount="0" falsecount="1"/>
3541
3536
  <line num="230" count="0" type="stmt"/>
3542
3537
  <line num="237" count="47" type="cond" truecount="0" falsecount="1"/>
3543
- <line num="238" count="178" type="stmt"/>
3544
- <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"/>
3545
3540
  <line num="240" count="0" type="stmt"/>
3546
- <line num="242" count="178" type="stmt"/>
3541
+ <line num="242" count="179" type="stmt"/>
3547
3542
  <line num="249" count="47" type="stmt"/>
3548
- <line num="250" count="178" type="stmt"/>
3549
- <line num="251" count="178" type="stmt"/>
3550
- <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"/>
3551
3546
  <line num="259" count="47" type="stmt"/>
3552
3547
  <line num="260" count="5" type="cond" truecount="2" falsecount="0"/>
3553
3548
  <line num="266" count="47" type="cond" truecount="0" falsecount="2"/>
3554
- <line num="267" count="188" type="stmt"/>
3549
+ <line num="267" count="189" type="stmt"/>
3555
3550
  <line num="274" count="47" type="stmt"/>
3556
3551
  <line num="275" count="19" type="stmt"/>
3557
3552
  <line num="281" count="47" type="cond" truecount="0" falsecount="2"/>
3558
- <line num="282" count="190" type="stmt"/>
3553
+ <line num="282" count="191" type="stmt"/>
3559
3554
  <line num="289" count="47" type="stmt"/>
3560
3555
  <line num="290" count="10" type="stmt"/>
3561
3556
  <line num="296" count="47" type="cond" truecount="0" falsecount="2"/>
3562
3557
  <line num="297" count="2" type="stmt"/>
3563
3558
  <line num="304" count="47" type="cond" truecount="1" falsecount="1"/>
3564
- <line num="305" count="23" type="stmt"/>
3559
+ <line num="305" count="24" type="stmt"/>
3565
3560
  <line num="313" count="47" type="cond" truecount="0" falsecount="2"/>
3566
3561
  <line num="314" count="3" type="stmt"/>
3567
3562
  <line num="321" count="47" type="stmt"/>
3568
- <line num="322" count="18" type="stmt"/>
3563
+ <line num="322" count="20" type="stmt"/>
3569
3564
  <line num="330" count="47" type="cond" truecount="0" falsecount="2"/>
3570
3565
  <line num="331" count="3" type="cond" truecount="2" falsecount="0"/>
3571
3566
  <line num="332" count="2" type="stmt"/>
@@ -3977,16 +3972,16 @@
3977
3972
  <line num="14" count="7" type="stmt"/>
3978
3973
  <line num="17" count="24" type="stmt"/>
3979
3974
  <line num="19" count="2246" type="stmt"/>
3980
- <line num="22" count="150" type="cond" truecount="4" falsecount="0"/>
3975
+ <line num="22" count="151" type="cond" truecount="4" falsecount="0"/>
3981
3976
  <line num="23" count="1" type="stmt"/>
3982
- <line num="26" count="149" type="cond" truecount="2" falsecount="0"/>
3977
+ <line num="26" count="150" type="cond" truecount="2" falsecount="0"/>
3983
3978
  <line num="27" count="1" type="stmt"/>
3984
- <line num="32" count="148" type="stmt"/>
3985
- <line num="34" count="148" type="stmt"/>
3986
- <line num="36" count="148" type="cond" truecount="3" falsecount="0"/>
3987
- <line num="37" count="148" type="stmt"/>
3988
- <line num="38" count="148" type="cond" truecount="2" falsecount="0"/>
3989
- <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"/>
3990
3985
  <line num="40" count="36" type="cond" truecount="4" falsecount="0"/>
3991
3986
  <line num="41" count="29" type="stmt"/>
3992
3987
  <line num="45" count="7" type="cond" truecount="2" falsecount="0"/>
@@ -4033,14 +4028,14 @@
4033
4028
  <line num="56" count="1" type="stmt"/>
4034
4029
  <line num="58" count="1" type="stmt"/>
4035
4030
  <line num="61" count="24" type="stmt"/>
4036
- <line num="62" count="148" type="stmt"/>
4037
- <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"/>
4038
4033
  <line num="65" count="5" type="stmt"/>
4039
- <line num="67" count="143" type="stmt"/>
4040
- <line num="68" count="143" type="stmt"/>
4041
- <line num="69" count="143" type="cond" truecount="2" falsecount="0"/>
4042
- <line num="71" count="143" type="cond" truecount="4" falsecount="0"/>
4043
- <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"/>
4044
4039
  <line num="75" count="1" type="stmt"/>
4045
4040
  <line num="77" count="1" type="stmt"/>
4046
4041
  </file>
@@ -4058,47 +4053,47 @@
4058
4053
  <line num="11" count="28" type="stmt"/>
4059
4054
  <line num="12" count="28" type="stmt"/>
4060
4055
  <line num="14" count="28" type="stmt"/>
4061
- <line num="16" count="160" type="stmt"/>
4062
- <line num="18" count="160" type="stmt"/>
4063
- <line num="19" count="160" type="stmt"/>
4064
- <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"/>
4065
4060
  <line num="22" count="0" type="stmt"/>
4066
- <line num="24" count="160" type="cond" truecount="4" falsecount="0"/>
4061
+ <line num="24" count="161" type="cond" truecount="4" falsecount="0"/>
4067
4062
  <line num="25" count="1" type="stmt"/>
4068
- <line num="28" count="159" type="cond" truecount="2" falsecount="0"/>
4069
- <line num="29" count="153" type="stmt"/>
4070
- <line num="30" count="153" type="stmt"/>
4071
- <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"/>
4072
4067
  <line num="32" count="0" type="stmt"/>
4073
4068
  <line num="33" count="0" type="stmt"/>
4074
- <line num="36" count="153" type="cond" truecount="1" falsecount="1"/>
4075
- <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"/>
4076
4071
  <line num="45" count="2" type="stmt"/>
4077
4072
  <line num="46" count="2" type="stmt"/>
4078
- <line num="50" count="157" type="stmt"/>
4079
- <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"/>
4080
4075
  <line num="53" count="33" type="stmt"/>
4081
- <line num="54" count="124" type="cond" truecount="1" falsecount="1"/>
4082
- <line num="56" count="124" type="stmt"/>
4083
- <line num="57" count="124" type="stmt"/>
4084
- <line num="59" count="124" type="cond" truecount="2" falsecount="0"/>
4085
- <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"/>
4086
4081
  <line num="64" count="0" type="stmt"/>
4087
- <line num="67" count="157" type="stmt"/>
4088
- <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"/>
4089
4084
  <line num="77" count="0" type="stmt"/>
4090
4085
  <line num="78" count="0" type="stmt"/>
4091
4086
  <line num="79" count="0" type="stmt"/>
4092
4087
  <line num="80" count="0" type="stmt"/>
4093
4088
  <line num="81" count="0" type="stmt"/>
4094
- <line num="84" count="157" type="stmt"/>
4095
- <line num="85" count="157" type="cond" truecount="1" falsecount="1"/>
4096
- <line num="86" count="157" type="stmt"/>
4097
- <line num="87" count="157" type="cond" truecount="2" falsecount="0"/>
4098
- <line num="88" count="157" type="stmt"/>
4099
- <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"/>
4100
4095
  <line num="103" count="7" type="stmt"/>
4101
- <line num="106" count="157" type="stmt"/>
4096
+ <line num="106" count="158" type="stmt"/>
4102
4097
  </file>
4103
4098
  <file name="joi-validator.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/joi-validator.js">
4104
4099
  <metrics statements="17" coveredstatements="14" conditionals="8" coveredconditionals="5" methods="4" coveredmethods="4"/>
@@ -4134,14 +4129,14 @@
4134
4129
  <line num="21" count="604" type="stmt"/>
4135
4130
  <line num="22" count="604" type="stmt"/>
4136
4131
  <line num="23" count="604" type="stmt"/>
4137
- <line num="24" count="57" type="cond" truecount="2" falsecount="0"/>
4138
- <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"/>
4139
4134
  <line num="26" count="1" type="stmt"/>
4140
- <line num="28" count="56" type="cond" truecount="4" falsecount="0"/>
4141
- <line num="29" count="52" type="stmt"/>
4142
- <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"/>
4143
4138
  <line num="32" count="11" type="stmt"/>
4144
- <line num="34" count="56" type="stmt"/>
4139
+ <line num="34" count="57" type="stmt"/>
4145
4140
  <line num="39" count="24" type="stmt"/>
4146
4141
  <line num="41" count="24" type="stmt"/>
4147
4142
  <line num="42" count="462" type="stmt"/>
@@ -4204,7 +4199,7 @@
4204
4199
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
4205
4200
  <line num="1" count="29" type="stmt"/>
4206
4201
  <line num="5" count="29" type="stmt"/>
4207
- <line num="6" count="269" type="stmt"/>
4202
+ <line num="6" count="271" type="stmt"/>
4208
4203
  </file>
4209
4204
  </package>
4210
4205
  <package name="threads">
@@ -4469,26 +4464,26 @@
4469
4464
  <line num="9" count="39" type="stmt"/>
4470
4465
  <line num="10" count="39" type="stmt"/>
4471
4466
  <line num="12" count="39" type="stmt"/>
4472
- <line num="13" count="133" type="cond" truecount="4" falsecount="0"/>
4467
+ <line num="13" count="134" type="cond" truecount="4" falsecount="0"/>
4473
4468
  <line num="14" count="3" type="stmt"/>
4474
- <line num="17" count="130" type="cond" truecount="2" falsecount="2"/>
4469
+ <line num="17" count="131" type="cond" truecount="2" falsecount="2"/>
4475
4470
  <line num="18" count="0" type="stmt"/>
4476
4471
  <line num="19" count="0" type="stmt"/>
4477
4472
  <line num="20" count="0" type="stmt"/>
4478
4473
  <line num="21" count="0" type="stmt"/>
4479
- <line num="24" count="130" type="stmt"/>
4480
- <line num="26" count="130" type="cond" truecount="5" falsecount="0"/>
4481
- <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"/>
4482
4477
  <line num="28" count="5" type="cond" truecount="1" falsecount="1"/>
4483
4478
  <line num="29" count="0" type="stmt"/>
4484
- <line num="31" count="130" type="stmt"/>
4485
- <line num="32" count="130" type="stmt"/>
4486
- <line num="36" count="126" type="cond" truecount="1" falsecount="1"/>
4487
- <line num="37" count="126" type="stmt"/>
4488
- <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"/>
4489
4484
  <line num="42" count="39" type="stmt"/>
4490
- <line num="45" count="124" type="stmt"/>
4491
- <line num="46" count="124" type="stmt"/>
4485
+ <line num="45" count="125" type="stmt"/>
4486
+ <line num="46" count="125" type="stmt"/>
4492
4487
  <line num="49" count="39" type="stmt"/>
4493
4488
  <line num="50" count="2" type="stmt"/>
4494
4489
  <line num="51" count="2" type="stmt"/>
@@ -4541,12 +4536,12 @@
4541
4536
  <line num="39" count="2" type="stmt"/>
4542
4537
  <line num="41" count="0" type="stmt"/>
4543
4538
  <line num="55" count="36" type="stmt"/>
4544
- <line num="56" count="187" type="cond" truecount="1" falsecount="1"/>
4539
+ <line num="56" count="188" type="cond" truecount="1" falsecount="1"/>
4545
4540
  <line num="57" count="0" type="stmt"/>
4546
4541
  <line num="61" count="0" type="cond" truecount="0" falsecount="2"/>
4547
4542
  <line num="62" count="0" type="stmt"/>
4548
4543
  <line num="64" count="0" type="stmt"/>
4549
- <line num="66" count="187" type="stmt"/>
4544
+ <line num="66" count="188" type="stmt"/>
4550
4545
  <line num="70" count="36" type="stmt"/>
4551
4546
  <line num="71" count="2" type="stmt"/>
4552
4547
  <line num="76" count="36" type="stmt"/>
@@ -4733,7 +4728,7 @@
4733
4728
  <line num="73" count="8" type="stmt"/>
4734
4729
  <line num="74" count="8" type="stmt"/>
4735
4730
  <line num="83" count="0" type="stmt"/>
4736
- <line num="90" count="185" type="stmt"/>
4731
+ <line num="90" count="186" type="stmt"/>
4737
4732
  <line num="97" count="0" type="stmt"/>
4738
4733
  <line num="101" count="33" type="stmt"/>
4739
4734
  </file>