@budibase/server 0.9.185 → 0.9.189

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 (174) hide show
  1. package/LICENSE +1 -1
  2. package/builder/assets/{index.b48e3580.js → index.5cc4c0d0.js} +1 -1
  3. package/builder/index.html +1 -1
  4. package/coverage/clover.xml +141 -121
  5. package/coverage/coverage-final.json +6 -6
  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 +1 -1
  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 +1 -1
  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 +1 -1
  18. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/query.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/row/external.js.html +11 -8
  26. package/coverage/lcov-report/api/controllers/row/index.html +13 -13
  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 +1 -1
  32. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/utils.js.html +4 -4
  36. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/view/exporters.js.html +19 -4
  39. package/coverage/lcov-report/api/controllers/view/index.html +17 -17
  40. package/coverage/lcov-report/api/controllers/view/index.js.html +49 -10
  41. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  44. package/coverage/lcov-report/api/index.html +1 -1
  45. package/coverage/lcov-report/api/index.js.html +1 -1
  46. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/index.html +1 -1
  59. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  76. package/coverage/lcov-report/automations/actions.js.html +1 -1
  77. package/coverage/lcov-report/automations/automationUtils.js.html +35 -8
  78. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  79. package/coverage/lcov-report/automations/index.html +15 -15
  80. package/coverage/lcov-report/automations/index.js.html +1 -1
  81. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/index.html +1 -1
  90. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  99. package/coverage/lcov-report/automations/thread.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 +1 -1
  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 +1 -1
  123. package/coverage/lcov-report/db/utils.js.html +1 -1
  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 +40 -40
  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 +52 -31
  133. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  134. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  135. package/coverage/lcov-report/middleware/index.html +13 -13
  136. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  137. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  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 +1 -1
  141. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  142. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  143. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  144. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  145. package/coverage/lcov-report/utilities/global.js.html +1 -1
  146. package/coverage/lcov-report/utilities/index.html +1 -1
  147. package/coverage/lcov-report/utilities/index.js.html +1 -1
  148. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  149. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  150. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  151. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  152. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  153. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  154. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  155. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  156. package/coverage/lcov-report/utilities/security.js.html +1 -1
  157. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  158. package/coverage/lcov-report/utilities/users.js.html +1 -1
  159. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  160. package/coverage/lcov.info +234 -193
  161. package/dist/api/controllers/row/external.js +2 -1
  162. package/dist/api/controllers/view/exporters.js +4 -0
  163. package/dist/api/controllers/view/index.js +14 -2
  164. package/dist/automations/automationUtils.js +7 -0
  165. package/dist/middleware/authorized.js +20 -10
  166. package/dist/package.json +6 -6
  167. package/dist/tsconfig.tsbuildinfo +1 -1
  168. package/package.json +7 -7
  169. package/src/api/controllers/row/external.js +2 -1
  170. package/src/api/controllers/view/exporters.js +5 -0
  171. package/src/api/controllers/view/index.js +15 -2
  172. package/src/automations/automationUtils.js +9 -0
  173. package/src/middleware/authorized.js +24 -17
  174. package/src/middleware/tests/authorized.spec.js +2 -0
@@ -10,7 +10,7 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.b48e3580.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.5cc4c0d0.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.278a305c.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.d75d5eb7.css">
16
16
  <link rel="stylesheet" href="/builder/assets/index.7469e1e4.css">
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1636632717871" clover="3.2.0">
3
- <project timestamp="1636632717871" name="All files">
4
- <metrics statements="3963" coveredstatements="3082" conditionals="1534" coveredconditionals="899" methods="564" coveredmethods="422" elements="6061" coveredelements="4403" complexity="0" loc="3963" ncloc="3963" packages="19" files="134" classes="134"/>
2
+ <coverage generated="1637604737284" clover="3.2.0">
3
+ <project timestamp="1637604737284" name="All files">
4
+ <metrics statements="3983" coveredstatements="3099" conditionals="1553" coveredconditionals="912" methods="565" coveredmethods="423" elements="6101" coveredelements="4434" complexity="0" loc="3983" ncloc="3983" packages="19" files="134" classes="134"/>
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">
@@ -1140,9 +1140,9 @@
1140
1140
  </file>
1141
1141
  </package>
1142
1142
  <package name="api.controllers.row">
1143
- <metrics statements="585" coveredstatements="309" conditionals="245" coveredconditionals="83" methods="88" coveredmethods="38"/>
1143
+ <metrics statements="586" coveredstatements="309" conditionals="247" coveredconditionals="83" methods="88" coveredmethods="38"/>
1144
1144
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1145
- <metrics statements="97" coveredstatements="14" conditionals="40" coveredconditionals="0" methods="13" coveredmethods="0"/>
1145
+ <metrics statements="98" coveredstatements="14" conditionals="42" coveredconditionals="0" methods="13" coveredmethods="0"/>
1146
1146
  <line num="6" count="34" type="stmt"/>
1147
1147
  <line num="10" count="34" type="stmt"/>
1148
1148
  <line num="11" count="34" type="stmt"/>
@@ -1169,77 +1169,78 @@
1169
1169
  <line num="50" count="0" type="stmt"/>
1170
1170
  <line num="55" count="34" type="stmt"/>
1171
1171
  <line num="58" count="0" type="stmt"/>
1172
- <line num="59" count="0" type="stmt"/>
1173
- <line num="62" count="34" type="stmt"/>
1174
- <line num="63" count="0" type="stmt"/>
1172
+ <line num="59" count="0" type="cond" truecount="0" falsecount="2"/>
1173
+ <line num="60" count="0" type="stmt"/>
1174
+ <line num="63" count="34" type="stmt"/>
1175
1175
  <line num="64" count="0" type="stmt"/>
1176
1176
  <line num="65" count="0" type="stmt"/>
1177
- <line num="68" count="34" type="stmt"/>
1178
- <line num="69" count="0" type="stmt"/>
1177
+ <line num="66" count="0" type="stmt"/>
1178
+ <line num="69" count="34" type="stmt"/>
1179
1179
  <line num="70" count="0" type="stmt"/>
1180
1180
  <line num="71" count="0" type="stmt"/>
1181
1181
  <line num="72" count="0" type="stmt"/>
1182
- <line num="80" count="0" type="cond" truecount="0" falsecount="2"/>
1183
- <line num="83" count="34" type="stmt"/>
1184
- <line num="84" count="0" type="stmt"/>
1182
+ <line num="73" count="0" type="stmt"/>
1183
+ <line num="81" count="0" type="cond" truecount="0" falsecount="2"/>
1184
+ <line num="84" count="34" type="stmt"/>
1185
1185
  <line num="85" count="0" type="stmt"/>
1186
1186
  <line num="86" count="0" type="stmt"/>
1187
1187
  <line num="87" count="0" type="stmt"/>
1188
- <line num="95" count="0" type="stmt"/>
1189
- <line num="98" count="34" type="stmt"/>
1190
- <line num="99" count="0" type="stmt"/>
1188
+ <line num="88" count="0" type="stmt"/>
1189
+ <line num="96" count="0" type="stmt"/>
1190
+ <line num="99" count="34" type="stmt"/>
1191
1191
  <line num="100" count="0" type="stmt"/>
1192
1192
  <line num="101" count="0" type="stmt"/>
1193
1193
  <line num="102" count="0" type="stmt"/>
1194
1194
  <line num="103" count="0" type="stmt"/>
1195
1195
  <line num="104" count="0" type="stmt"/>
1196
- <line num="110" count="0" type="stmt"/>
1196
+ <line num="105" count="0" type="stmt"/>
1197
1197
  <line num="111" count="0" type="stmt"/>
1198
- <line num="114" count="34" type="stmt"/>
1199
- <line num="115" count="0" type="stmt"/>
1198
+ <line num="112" count="0" type="stmt"/>
1199
+ <line num="115" count="34" type="stmt"/>
1200
1200
  <line num="116" count="0" type="stmt"/>
1201
1201
  <line num="117" count="0" type="stmt"/>
1202
1202
  <line num="118" count="0" type="stmt"/>
1203
- <line num="119" count="0" type="cond" truecount="0" falsecount="4"/>
1204
- <line num="120" count="0" type="stmt"/>
1205
- <line num="122" count="0" type="stmt"/>
1206
- <line num="124" count="0" type="cond" truecount="0" falsecount="2"/>
1207
- <line num="125" count="0" type="stmt"/>
1208
- <line num="130" count="0" type="cond" truecount="0" falsecount="4"/>
1209
- <line num="131" count="0" type="stmt"/>
1210
- <line num="136" count="0" type="cond" truecount="0" falsecount="2"/>
1211
- <line num="138" count="0" type="cond" truecount="0" falsecount="2"/>
1212
- <line num="141" count="0" type="stmt"/>
1213
- <line num="145" count="0" type="stmt"/>
1214
- <line num="150" count="0" type="stmt"/>
1215
- <line num="151" count="0" type="cond" truecount="0" falsecount="4"/>
1216
- <line num="152" count="0" type="stmt"/>
1217
- <line num="165" count="0" type="stmt"/>
1218
- <line num="168" count="0" type="stmt"/>
1219
- <line num="171" count="34" type="stmt"/>
1220
- <line num="173" count="0" type="stmt"/>
1221
- <line num="176" count="34" type="stmt"/>
1222
- <line num="177" count="0" type="stmt"/>
1203
+ <line num="119" count="0" type="stmt"/>
1204
+ <line num="120" count="0" type="cond" truecount="0" falsecount="4"/>
1205
+ <line num="121" count="0" type="stmt"/>
1206
+ <line num="123" count="0" type="stmt"/>
1207
+ <line num="125" count="0" type="cond" truecount="0" falsecount="2"/>
1208
+ <line num="126" count="0" type="stmt"/>
1209
+ <line num="131" count="0" type="cond" truecount="0" falsecount="4"/>
1210
+ <line num="132" count="0" type="stmt"/>
1211
+ <line num="137" count="0" type="cond" truecount="0" falsecount="2"/>
1212
+ <line num="139" count="0" type="cond" truecount="0" falsecount="2"/>
1213
+ <line num="142" count="0" type="stmt"/>
1214
+ <line num="146" count="0" type="stmt"/>
1215
+ <line num="151" count="0" type="stmt"/>
1216
+ <line num="152" count="0" type="cond" truecount="0" falsecount="4"/>
1217
+ <line num="153" count="0" type="stmt"/>
1218
+ <line num="166" count="0" type="stmt"/>
1219
+ <line num="169" count="0" type="stmt"/>
1220
+ <line num="172" count="34" type="stmt"/>
1221
+ <line num="174" count="0" type="stmt"/>
1222
+ <line num="177" count="34" type="stmt"/>
1223
1223
  <line num="178" count="0" type="stmt"/>
1224
1224
  <line num="179" count="0" type="stmt"/>
1225
1225
  <line num="180" count="0" type="stmt"/>
1226
1226
  <line num="181" count="0" type="stmt"/>
1227
1227
  <line num="182" count="0" type="stmt"/>
1228
- <line num="183" count="0" type="cond" truecount="0" falsecount="4"/>
1229
- <line num="184" count="0" type="stmt"/>
1230
- <line num="186" count="0" type="stmt"/>
1228
+ <line num="183" count="0" type="stmt"/>
1229
+ <line num="184" count="0" type="cond" truecount="0" falsecount="4"/>
1230
+ <line num="185" count="0" type="stmt"/>
1231
1231
  <line num="187" count="0" type="stmt"/>
1232
- <line num="196" count="0" type="stmt"/>
1232
+ <line num="188" count="0" type="stmt"/>
1233
1233
  <line num="197" count="0" type="stmt"/>
1234
- <line num="200" count="0" type="stmt"/>
1235
- <line num="201" count="0" type="cond" truecount="0" falsecount="2"/>
1236
- <line num="206" count="0" type="stmt"/>
1237
- <line num="208" count="0" type="stmt"/>
1234
+ <line num="198" count="0" type="stmt"/>
1235
+ <line num="201" count="0" type="stmt"/>
1236
+ <line num="202" count="0" type="cond" truecount="0" falsecount="2"/>
1237
+ <line num="207" count="0" type="stmt"/>
1238
1238
  <line num="209" count="0" type="stmt"/>
1239
1239
  <line num="210" count="0" type="stmt"/>
1240
- <line num="212" count="0" type="stmt"/>
1240
+ <line num="211" count="0" type="stmt"/>
1241
1241
  <line num="213" count="0" type="stmt"/>
1242
- <line num="227" count="0" type="stmt"/>
1242
+ <line num="214" count="0" type="stmt"/>
1243
+ <line num="228" count="0" type="stmt"/>
1243
1244
  </file>
1244
1245
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/index.js">
1245
1246
  <metrics statements="85" coveredstatements="79" conditionals="34" coveredconditionals="32" methods="11" coveredmethods="11"/>
@@ -1931,11 +1932,11 @@
1931
1932
  <line num="232" count="0" type="stmt"/>
1932
1933
  <line num="233" count="0" type="stmt"/>
1933
1934
  <line num="236" count="34" type="stmt"/>
1934
- <line num="237" count="28" type="stmt"/>
1935
- <line num="238" count="28" type="cond" truecount="1" falsecount="1"/>
1935
+ <line num="237" count="30" type="stmt"/>
1936
+ <line num="238" count="30" type="cond" truecount="1" falsecount="1"/>
1936
1937
  <line num="239" count="0" type="stmt"/>
1937
1938
  <line num="240" count="0" type="stmt"/>
1938
- <line num="242" count="28" type="stmt"/>
1939
+ <line num="242" count="30" type="stmt"/>
1939
1940
  <line num="246" count="34" type="stmt"/>
1940
1941
  <line num="247" count="1" type="stmt"/>
1941
1942
  <line num="248" count="1" type="stmt"/>
@@ -1979,9 +1980,9 @@
1979
1980
  </file>
1980
1981
  </package>
1981
1982
  <package name="api.controllers.view">
1982
- <metrics statements="173" coveredstatements="127" conditionals="77" coveredconditionals="48" methods="21" coveredmethods="17"/>
1983
+ <metrics statements="181" coveredstatements="135" conditionals="83" coveredconditionals="53" methods="21" coveredmethods="17"/>
1983
1984
  <file name="exporters.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/exporters.js">
1984
- <metrics statements="10" coveredstatements="10" conditionals="2" coveredconditionals="1" methods="4" coveredmethods="4"/>
1985
+ <metrics statements="11" coveredstatements="11" conditionals="2" coveredconditionals="1" methods="4" coveredmethods="4"/>
1985
1986
  <line num="1" count="33" type="stmt"/>
1986
1987
  <line num="2" count="2" type="stmt"/>
1987
1988
  <line num="4" count="1" type="stmt"/>
@@ -1992,63 +1993,71 @@
1992
1993
  <line num="13" count="1" type="stmt"/>
1993
1994
  <line num="16" count="33" type="stmt"/>
1994
1995
  <line num="17" count="1" type="stmt"/>
1996
+ <line num="20" count="33" type="stmt"/>
1995
1997
  </file>
1996
1998
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/index.js">
1997
- <metrics statements="54" coveredstatements="51" conditionals="19" coveredconditionals="13" methods="4" coveredmethods="4"/>
1999
+ <metrics statements="61" coveredstatements="58" conditionals="25" coveredconditionals="18" methods="4" coveredmethods="4"/>
1998
2000
  <line num="1" count="33" type="stmt"/>
1999
2001
  <line num="2" count="33" type="stmt"/>
2000
2002
  <line num="3" count="33" type="stmt"/>
2001
2003
  <line num="4" count="33" type="stmt"/>
2002
2004
  <line num="5" count="33" type="stmt"/>
2003
2005
  <line num="6" count="33" type="stmt"/>
2004
- <line num="8" count="33" type="stmt"/>
2005
- <line num="9" count="1" type="stmt"/>
2006
+ <line num="7" count="33" type="stmt"/>
2007
+ <line num="9" count="33" type="stmt"/>
2006
2008
  <line num="10" count="1" type="stmt"/>
2007
- <line num="13" count="33" type="stmt"/>
2008
- <line num="14" count="8" type="stmt"/>
2009
+ <line num="11" count="1" type="stmt"/>
2010
+ <line num="14" count="33" type="stmt"/>
2009
2011
  <line num="15" count="8" type="stmt"/>
2010
2012
  <line num="16" count="8" type="stmt"/>
2011
- <line num="18" count="8" type="cond" truecount="1" falsecount="1"/>
2012
- <line num="19" count="0" type="stmt"/>
2013
- <line num="22" count="8" type="stmt"/>
2014
- <line num="25" count="8" type="stmt"/>
2015
- <line num="26" count="8" type="cond" truecount="1" falsecount="1"/>
2016
- <line num="27" count="8" type="cond" truecount="2" falsecount="0"/>
2017
- <line num="28" count="3" type="stmt"/>
2018
- <line num="30" count="8" type="stmt"/>
2019
- <line num="31" count="8" type="cond" truecount="1" falsecount="1"/>
2020
- <line num="32" count="0" type="stmt"/>
2021
- <line num="34" count="8" type="stmt"/>
2022
- <line num="36" count="8" type="stmt"/>
2023
- <line num="42" count="33" type="stmt"/>
2024
- <line num="43" count="1" type="stmt"/>
2013
+ <line num="17" count="8" type="stmt"/>
2014
+ <line num="19" count="8" type="cond" truecount="1" falsecount="1"/>
2015
+ <line num="20" count="0" type="stmt"/>
2016
+ <line num="23" count="8" type="stmt"/>
2017
+ <line num="26" count="8" type="stmt"/>
2018
+ <line num="27" count="8" type="cond" truecount="1" falsecount="1"/>
2019
+ <line num="28" count="8" type="cond" truecount="2" falsecount="0"/>
2020
+ <line num="29" count="3" type="stmt"/>
2021
+ <line num="31" count="8" type="stmt"/>
2022
+ <line num="32" count="8" type="cond" truecount="1" falsecount="1"/>
2023
+ <line num="33" count="0" type="stmt"/>
2024
+ <line num="35" count="8" type="stmt"/>
2025
+ <line num="37" count="8" type="stmt"/>
2026
+ <line num="43" count="33" type="stmt"/>
2025
2027
  <line num="44" count="1" type="stmt"/>
2026
2028
  <line num="45" count="1" type="stmt"/>
2027
2029
  <line num="46" count="1" type="stmt"/>
2028
2030
  <line num="47" count="1" type="stmt"/>
2029
2031
  <line num="48" count="1" type="stmt"/>
2030
- <line num="50" count="1" type="stmt"/>
2031
- <line num="53" count="33" type="stmt"/>
2032
- <line num="54" count="2" type="stmt"/>
2032
+ <line num="49" count="1" type="stmt"/>
2033
+ <line num="51" count="1" type="stmt"/>
2034
+ <line num="54" count="33" type="stmt"/>
2033
2035
  <line num="55" count="2" type="stmt"/>
2034
2036
  <line num="56" count="2" type="stmt"/>
2035
- <line num="58" count="2" type="stmt"/>
2036
- <line num="59" count="2" type="cond" truecount="1" falsecount="1"/>
2037
- <line num="60" count="0" type="stmt"/>
2038
- <line num="63" count="2" type="cond" truecount="1" falsecount="1"/>
2039
- <line num="64" count="2" type="stmt"/>
2040
- <line num="66" count="2" type="stmt"/>
2041
- <line num="78" count="2" type="stmt"/>
2042
- <line num="80" count="2" type="cond" truecount="3" falsecount="0"/>
2043
- <line num="81" count="2" type="cond" truecount="1" falsecount="1"/>
2044
- <line num="82" count="2" type="cond" truecount="2" falsecount="0"/>
2045
- <line num="83" count="2" type="stmt"/>
2037
+ <line num="57" count="2" type="stmt"/>
2038
+ <line num="59" count="2" type="stmt"/>
2039
+ <line num="60" count="2" type="cond" truecount="3" falsecount="1"/>
2040
+ <line num="61" count="0" type="stmt"/>
2041
+ <line num="64" count="2" type="cond" truecount="1" falsecount="1"/>
2042
+ <line num="65" count="2" type="stmt"/>
2043
+ <line num="67" count="2" type="stmt"/>
2044
+ <line num="79" count="2" type="stmt"/>
2045
+ <line num="81" count="2" type="cond" truecount="3" falsecount="0"/>
2046
+ <line num="82" count="2" type="cond" truecount="1" falsecount="1"/>
2047
+ <line num="83" count="2" type="cond" truecount="2" falsecount="0"/>
2046
2048
  <line num="84" count="2" type="stmt"/>
2047
- <line num="88" count="2" type="stmt"/>
2048
- <line num="89" count="2" type="stmt"/>
2049
- <line num="90" count="2" type="stmt"/>
2049
+ <line num="85" count="2" type="stmt"/>
2050
+ <line num="89" count="2" type="cond" truecount="2" falsecount="0"/>
2051
+ <line num="90" count="1" type="stmt"/>
2052
+ <line num="91" count="1" type="stmt"/>
2050
2053
  <line num="92" count="2" type="stmt"/>
2051
- <line num="93" count="2" type="stmt"/>
2054
+ <line num="93" count="2" type="cond" truecount="1" falsecount="1"/>
2055
+ <line num="94" count="2" type="stmt"/>
2056
+ <line num="101" count="2" type="stmt"/>
2057
+ <line num="102" count="2" type="stmt"/>
2058
+ <line num="103" count="2" type="stmt"/>
2059
+ <line num="105" count="2" type="stmt"/>
2060
+ <line num="106" count="2" type="stmt"/>
2052
2061
  </file>
2053
2062
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/view/utils.js">
2054
2063
  <metrics statements="76" coveredstatements="38" conditionals="26" coveredconditionals="9" methods="9" coveredmethods="6"/>
@@ -2528,7 +2537,7 @@
2528
2537
  </file>
2529
2538
  </package>
2530
2539
  <package name="automations">
2531
- <metrics statements="254" coveredstatements="220" conditionals="106" coveredconditionals="82" methods="29" coveredmethods="27"/>
2540
+ <metrics statements="258" coveredstatements="222" conditionals="113" coveredconditionals="87" methods="29" coveredmethods="27"/>
2532
2541
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2533
2542
  <metrics statements="23" coveredstatements="23" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2534
2543
  <line num="1" count="34" type="stmt"/>
@@ -2556,7 +2565,7 @@
2556
2565
  <line num="71" count="34" type="stmt"/>
2557
2566
  </file>
2558
2567
  <file name="automationUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/automationUtils.js">
2559
- <metrics statements="27" coveredstatements="27" conditionals="18" coveredconditionals="16" methods="3" coveredmethods="3"/>
2568
+ <metrics statements="31" coveredstatements="29" conditionals="25" coveredconditionals="21" methods="3" coveredmethods="3"/>
2560
2569
  <line num="1" count="34" type="stmt"/>
2561
2570
  <line num="19" count="34" type="stmt"/>
2562
2571
  <line num="20" count="15" type="cond" truecount="2" falsecount="0"/>
@@ -2584,6 +2593,10 @@
2584
2593
  <line num="63" count="8" type="stmt"/>
2585
2594
  <line num="66" count="34" type="stmt"/>
2586
2595
  <line num="67" count="3" type="cond" truecount="1" falsecount="1"/>
2596
+ <line num="68" count="0" type="stmt"/>
2597
+ <line num="70" count="3" type="cond" truecount="1" falsecount="1"/>
2598
+ <line num="74" count="0" type="stmt"/>
2599
+ <line num="76" count="3" type="cond" truecount="1" falsecount="1"/>
2587
2600
  </file>
2588
2601
  <file name="bullboard.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/bullboard.js">
2589
2602
  <metrics statements="21" coveredstatements="13" conditionals="4" coveredconditionals="3" methods="1" coveredmethods="0"/>
@@ -3714,7 +3727,7 @@
3714
3727
  </file>
3715
3728
  </package>
3716
3729
  <package name="middleware">
3717
- <metrics statements="214" coveredstatements="192" conditionals="146" coveredconditionals="116" methods="28" coveredmethods="28"/>
3730
+ <metrics statements="221" coveredstatements="199" conditionals="150" coveredconditionals="119" methods="29" coveredmethods="29"/>
3718
3731
  <file name="appInfo.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/appInfo.js">
3719
3732
  <metrics statements="10" coveredstatements="8" conditionals="11" coveredconditionals="6" methods="2" coveredmethods="2"/>
3720
3733
  <line num="1" count="23" type="stmt"/>
@@ -3729,34 +3742,41 @@
3729
3742
  <line num="18" count="7" type="stmt"/>
3730
3743
  </file>
3731
3744
  <file name="authorized.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/authorized.js">
3732
- <metrics statements="27" coveredstatements="27" conditionals="22" coveredconditionals="20" methods="3" coveredmethods="3"/>
3733
- <line num="1" count="24" type="stmt"/>
3734
- <line num="6" count="24" type="stmt"/>
3735
- <line num="7" count="24" type="stmt"/>
3736
- <line num="8" count="24" type="stmt"/>
3737
- <line num="11" count="7" type="stmt"/>
3738
- <line num="14" count="24" type="stmt"/>
3739
- <line num="16" count="2200" type="stmt"/>
3740
- <line num="18" count="150" type="cond" truecount="2" falsecount="0"/>
3741
- <line num="19" count="1" type="stmt"/>
3742
- <line num="22" count="149" type="cond" truecount="2" falsecount="0"/>
3743
- <line num="23" count="1" type="stmt"/>
3744
- <line num="28" count="148" type="stmt"/>
3745
- <line num="30" count="148" type="stmt"/>
3745
+ <metrics statements="34" coveredstatements="34" conditionals="26" coveredconditionals="23" methods="4" coveredmethods="4"/>
3746
+ <line num="5" count="24" type="stmt"/>
3747
+ <line num="9" count="24" type="stmt"/>
3748
+ <line num="10" count="24" type="stmt"/>
3749
+ <line num="11" count="24" type="stmt"/>
3750
+ <line num="14" count="7" type="stmt"/>
3751
+ <line num="17" count="24" type="stmt"/>
3752
+ <line num="19" count="2200" type="stmt"/>
3753
+ <line num="21" count="150" type="cond" truecount="2" falsecount="0"/>
3754
+ <line num="22" count="1" type="stmt"/>
3755
+ <line num="25" count="149" type="cond" truecount="2" falsecount="0"/>
3756
+ <line num="26" count="1" type="stmt"/>
3746
3757
  <line num="31" count="148" type="stmt"/>
3747
- <line num="38" count="148" type="cond" truecount="3" falsecount="0"/>
3748
- <line num="39" count="148" type="stmt"/>
3749
- <line num="40" count="148" type="cond" truecount="2" falsecount="0"/>
3750
- <line num="41" count="112" type="stmt"/>
3751
- <line num="42" count="36" type="cond" truecount="4" falsecount="0"/>
3752
- <line num="43" count="29" type="stmt"/>
3753
- <line num="46" count="7" type="cond" truecount="2" falsecount="0"/>
3754
- <line num="50" count="1" type="stmt"/>
3755
- <line num="53" count="6" type="cond" truecount="1" falsecount="1"/>
3756
- <line num="54" count="6" type="stmt"/>
3757
- <line num="57" count="4" type="cond" truecount="1" falsecount="1"/>
3758
- <line num="58" count="4" type="stmt"/>
3759
- <line num="61" count="4" type="stmt"/>
3758
+ <line num="33" count="148" type="stmt"/>
3759
+ <line num="35" count="148" type="cond" truecount="3" falsecount="0"/>
3760
+ <line num="36" count="148" type="stmt"/>
3761
+ <line num="37" count="148" type="cond" truecount="2" falsecount="0"/>
3762
+ <line num="38" count="112" type="stmt"/>
3763
+ <line num="39" count="36" type="cond" truecount="4" falsecount="0"/>
3764
+ <line num="40" count="29" type="stmt"/>
3765
+ <line num="44" count="7" type="cond" truecount="2" falsecount="0"/>
3766
+ <line num="45" count="7" type="stmt"/>
3767
+ <line num="48" count="7" type="stmt"/>
3768
+ <line num="49" count="7" type="stmt"/>
3769
+ <line num="50" count="7" type="cond" truecount="2" falsecount="0"/>
3770
+ <line num="51" count="3" type="stmt"/>
3771
+ <line num="54" count="7" type="cond" truecount="2" falsecount="0"/>
3772
+ <line num="55" count="1" type="stmt"/>
3773
+ <line num="56" count="1" type="stmt"/>
3774
+ <line num="58" count="1" type="cond" truecount="1" falsecount="1"/>
3775
+ <line num="59" count="6" type="cond" truecount="1" falsecount="1"/>
3776
+ <line num="60" count="6" type="stmt"/>
3777
+ <line num="64" count="4" type="cond" truecount="1" falsecount="1"/>
3778
+ <line num="65" count="4" type="stmt"/>
3779
+ <line num="68" count="4" type="stmt"/>
3760
3780
  </file>
3761
3781
  <file name="builder.js" path="/home/runner/work/budibase/budibase/packages/server/src/middleware/builder.js">
3762
3782
  <metrics statements="33" coveredstatements="29" conditionals="22" coveredconditionals="17" methods="3" coveredmethods="3"/>