@budibase/server 1.0.27-alpha.4 → 1.0.27-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 (194) hide show
  1. package/builder/assets/{index.431d69df.css → index.0dce895b.css} +1 -1
  2. package/builder/assets/{index.d849c3ee.js → index.d5347573.js} +155 -155
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +399 -349
  5. package/coverage/coverage-final.json +4 -4
  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/index.html +19 -19
  23. package/coverage/lcov-report/api/controllers/query/index.js.html +73 -10
  24. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/index.html +11 -11
  29. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internal.js.html +38 -11
  31. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  47. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  48. package/coverage/lcov-report/api/index.html +1 -1
  49. package/coverage/lcov-report/api/index.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/index.html +1 -1
  63. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  79. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  80. package/coverage/lcov-report/automations/actions.js.html +1 -1
  81. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  82. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  83. package/coverage/lcov-report/automations/index.html +1 -1
  84. package/coverage/lcov-report/automations/index.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/index.html +1 -1
  94. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  102. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  111. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  112. package/coverage/lcov-report/automations/utils.js.html +1 -1
  113. package/coverage/lcov-report/constants/index.html +1 -1
  114. package/coverage/lcov-report/constants/index.js.html +1 -1
  115. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  116. package/coverage/lcov-report/constants/screens.js.html +1 -1
  117. package/coverage/lcov-report/db/client.js.html +1 -1
  118. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  119. package/coverage/lcov-report/db/index.html +1 -1
  120. package/coverage/lcov-report/db/index.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  124. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  125. package/coverage/lcov-report/db/newid.js.html +1 -1
  126. package/coverage/lcov-report/db/utils.js.html +1 -1
  127. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  128. package/coverage/lcov-report/events/index.html +1 -1
  129. package/coverage/lcov-report/events/index.js.html +1 -1
  130. package/coverage/lcov-report/events/utils.js.html +1 -1
  131. package/coverage/lcov-report/index.html +39 -39
  132. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  133. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  134. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  135. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  136. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  137. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  138. package/coverage/lcov-report/middleware/index.html +1 -1
  139. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  140. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  141. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  142. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  143. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  144. package/coverage/lcov-report/threads/automation.js.html +1 -1
  145. package/coverage/lcov-report/threads/index.html +11 -11
  146. package/coverage/lcov-report/threads/index.js.html +1 -1
  147. package/coverage/lcov-report/threads/query.js.html +1 -1
  148. package/coverage/lcov-report/threads/utils.js.html +28 -25
  149. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  150. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  151. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  152. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  153. package/coverage/lcov-report/utilities/global.js.html +1 -1
  154. package/coverage/lcov-report/utilities/index.html +1 -1
  155. package/coverage/lcov-report/utilities/index.js.html +1 -1
  156. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  157. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  158. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  159. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  160. package/coverage/lcov-report/utilities/rowProcessor/index.html +19 -19
  161. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +199 -10
  162. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  163. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  164. package/coverage/lcov-report/utilities/security.js.html +1 -1
  165. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  166. package/coverage/lcov-report/utilities/users.js.html +1 -1
  167. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  168. package/coverage/lcov.info +668 -572
  169. package/dist/api/controllers/query/import/sources/base/index.js +2 -1
  170. package/dist/api/controllers/query/import/sources/curl.js +6 -4
  171. package/dist/api/controllers/query/import/sources/openapi2.js +8 -5
  172. package/dist/api/controllers/query/index.js +16 -0
  173. package/dist/api/controllers/row/internal.js +14 -6
  174. package/dist/integrations/base/sqlTable.js +1 -1
  175. package/dist/integrations/rest.js +1 -1
  176. package/dist/package.json +4 -4
  177. package/dist/threads/utils.js +2 -1
  178. package/dist/tsconfig.tsbuildinfo +1 -1
  179. package/dist/utilities/fileSystem/utilities.js +2 -1
  180. package/dist/utilities/rowProcessor/index.js +63 -0
  181. package/package.json +5 -5
  182. package/src/api/controllers/query/import/sources/base/index.ts +3 -1
  183. package/src/api/controllers/query/import/sources/curl.ts +7 -3
  184. package/src/api/controllers/query/import/sources/openapi2.ts +9 -5
  185. package/src/api/controllers/query/import/sources/tests/curl/curl.spec.js +2 -3
  186. package/src/api/controllers/query/import/sources/tests/openapi2/openapi2.spec.js +6 -7
  187. package/src/api/controllers/query/import/tests/index.spec.js +0 -6
  188. package/src/api/controllers/query/index.js +21 -0
  189. package/src/api/controllers/row/internal.js +14 -5
  190. package/src/integrations/base/sqlTable.ts +1 -1
  191. package/src/integrations/rest.ts +1 -1
  192. package/src/threads/utils.js +2 -1
  193. package/src/utilities/fileSystem/utilities.js +2 -0
  194. package/src/utilities/rowProcessor/index.js +63 -0
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1641396528329" clover="3.2.0">
3
- <project timestamp="1641396528329" name="All files">
4
- <metrics statements="4564" coveredstatements="3382" conditionals="1819" coveredconditionals="1003" methods="647" coveredmethods="459" elements="7030" coveredelements="4844" complexity="0" loc="4564" ncloc="4564" packages="21" files="140" classes="140"/>
2
+ <coverage generated="1641894121029" clover="3.2.0">
3
+ <project timestamp="1641894121029" name="All files">
4
+ <metrics statements="4614" coveredstatements="3405" conditionals="1843" coveredconditionals="1006" methods="658" coveredmethods="461" elements="7115" coveredelements="4872" complexity="0" loc="4614" ncloc="4614" packages="21" files="140" classes="140"/>
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">
@@ -1171,84 +1171,97 @@
1171
1171
  </file>
1172
1172
  </package>
1173
1173
  <package name="api.controllers.query">
1174
- <metrics statements="83" coveredstatements="66" conditionals="17" coveredconditionals="11" methods="14" coveredmethods="12"/>
1174
+ <metrics statements="96" coveredstatements="73" conditionals="19" coveredconditionals="12" methods="17" coveredmethods="13"/>
1175
1175
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
1176
- <metrics statements="75" coveredstatements="58" conditionals="17" coveredconditionals="11" methods="11" coveredmethods="9"/>
1176
+ <metrics statements="88" coveredstatements="65" conditionals="19" coveredconditionals="12" methods="14" coveredmethods="10"/>
1177
1177
  <line num="1" count="34" type="stmt"/>
1178
1178
  <line num="6" count="34" type="stmt"/>
1179
1179
  <line num="7" count="34" type="stmt"/>
1180
1180
  <line num="8" count="34" type="stmt"/>
1181
1181
  <line num="9" count="34" type="stmt"/>
1182
1182
  <line num="10" count="34" type="stmt"/>
1183
- <line num="12" count="34" type="stmt"/>
1184
- <line num="16" count="5" type="stmt"/>
1185
- <line num="17" count="5" type="cond" truecount="2" falsecount="0"/>
1186
- <line num="18" count="5" type="stmt"/>
1187
- <line num="19" count="4" type="cond" truecount="1" falsecount="1"/>
1188
- <line num="20" count="4" type="stmt"/>
1189
- <line num="23" count="5" type="cond" truecount="2" falsecount="0"/>
1190
- <line num="26" count="34" type="stmt"/>
1191
- <line num="27" count="2" type="stmt"/>
1192
- <line num="29" count="2" type="stmt"/>
1193
- <line num="35" count="2" type="stmt"/>
1194
- <line num="38" count="34" type="stmt"/>
1195
- <line num="39" count="0" type="stmt"/>
1183
+ <line num="11" count="34" type="stmt"/>
1184
+ <line num="13" count="34" type="stmt"/>
1185
+ <line num="17" count="5" type="stmt"/>
1186
+ <line num="18" count="5" type="cond" truecount="2" falsecount="0"/>
1187
+ <line num="19" count="5" type="stmt"/>
1188
+ <line num="20" count="4" type="cond" truecount="1" falsecount="1"/>
1189
+ <line num="21" count="4" type="stmt"/>
1190
+ <line num="24" count="5" type="cond" truecount="2" falsecount="0"/>
1191
+ <line num="27" count="34" type="stmt"/>
1192
+ <line num="28" count="2" type="stmt"/>
1193
+ <line num="30" count="2" type="stmt"/>
1194
+ <line num="36" count="2" type="stmt"/>
1195
+ <line num="39" count="34" type="stmt"/>
1196
1196
  <line num="40" count="0" type="stmt"/>
1197
- <line num="42" count="0" type="stmt"/>
1197
+ <line num="41" count="0" type="stmt"/>
1198
1198
  <line num="43" count="0" type="stmt"/>
1199
- <line num="46" count="0" type="cond" truecount="0" falsecount="2"/>
1200
- <line num="48" count="0" type="stmt"/>
1199
+ <line num="44" count="0" type="stmt"/>
1200
+ <line num="47" count="0" type="cond" truecount="0" falsecount="2"/>
1201
1201
  <line num="49" count="0" type="stmt"/>
1202
- <line num="59" count="0" type="stmt"/>
1202
+ <line num="50" count="0" type="stmt"/>
1203
1203
  <line num="60" count="0" type="stmt"/>
1204
1204
  <line num="61" count="0" type="stmt"/>
1205
1205
  <line num="62" count="0" type="stmt"/>
1206
- <line num="65" count="0" type="stmt"/>
1207
- <line num="68" count="0" type="stmt"/>
1208
- <line num="70" count="0" type="stmt"/>
1209
- <line num="74" count="0" type="stmt"/>
1210
- <line num="77" count="34" type="stmt"/>
1211
- <line num="78" count="25" type="stmt"/>
1206
+ <line num="63" count="0" type="stmt"/>
1207
+ <line num="66" count="0" type="stmt"/>
1208
+ <line num="69" count="0" type="stmt"/>
1209
+ <line num="71" count="0" type="stmt"/>
1210
+ <line num="75" count="0" type="stmt"/>
1211
+ <line num="78" count="34" type="stmt"/>
1212
1212
  <line num="79" count="25" type="stmt"/>
1213
- <line num="81" count="25" type="cond" truecount="1" falsecount="1"/>
1214
- <line num="82" count="25" type="stmt"/>
1215
- <line num="85" count="25" type="stmt"/>
1213
+ <line num="80" count="25" type="stmt"/>
1214
+ <line num="82" count="25" type="cond" truecount="1" falsecount="1"/>
1215
+ <line num="83" count="25" type="stmt"/>
1216
1216
  <line num="86" count="25" type="stmt"/>
1217
- <line num="88" count="25" type="stmt"/>
1217
+ <line num="87" count="25" type="stmt"/>
1218
1218
  <line num="89" count="25" type="stmt"/>
1219
- <line num="92" count="34" type="stmt"/>
1220
- <line num="93" count="3" type="stmt"/>
1219
+ <line num="90" count="25" type="stmt"/>
1220
+ <line num="93" count="34" type="stmt"/>
1221
1221
  <line num="94" count="3" type="stmt"/>
1222
- <line num="96" count="3" type="cond" truecount="2" falsecount="0"/>
1223
- <line num="97" count="1" type="stmt"/>
1222
+ <line num="95" count="3" type="stmt"/>
1223
+ <line num="97" count="3" type="cond" truecount="2" falsecount="0"/>
1224
1224
  <line num="98" count="1" type="stmt"/>
1225
- <line num="100" count="3" type="stmt"/>
1226
- <line num="103" count="34" type="stmt"/>
1227
- <line num="104" count="6" type="stmt"/>
1228
- <line num="106" count="6" type="stmt"/>
1229
- <line num="110" count="6" type="stmt"/>
1230
- <line num="112" count="6" type="stmt"/>
1225
+ <line num="99" count="1" type="stmt"/>
1226
+ <line num="101" count="3" type="stmt"/>
1227
+ <line num="104" count="34" type="stmt"/>
1228
+ <line num="105" count="6" type="stmt"/>
1229
+ <line num="107" count="6" type="stmt"/>
1230
+ <line num="111" count="6" type="stmt"/>
1231
1231
  <line num="113" count="6" type="stmt"/>
1232
- <line num="123" count="5" type="stmt"/>
1233
- <line num="130" count="1" type="stmt"/>
1234
- <line num="135" count="2" type="stmt"/>
1235
- <line num="137" count="2" type="stmt"/>
1232
+ <line num="114" count="6" type="stmt"/>
1233
+ <line num="124" count="5" type="stmt"/>
1234
+ <line num="131" count="1" type="stmt"/>
1235
+ <line num="136" count="2" type="stmt"/>
1236
1236
  <line num="138" count="2" type="stmt"/>
1237
- <line num="141" count="2" type="stmt"/>
1237
+ <line num="139" count="2" type="stmt"/>
1238
1238
  <line num="142" count="2" type="stmt"/>
1239
- <line num="151" count="1" type="cond" truecount="3" falsecount="1"/>
1240
- <line num="152" count="1" type="stmt"/>
1241
- <line num="154" count="0" type="stmt"/>
1242
- <line num="157" count="1" type="stmt"/>
1243
- <line num="161" count="34" type="stmt"/>
1244
- <line num="162" count="2" type="stmt"/>
1245
- <line num="165" count="34" type="stmt"/>
1246
- <line num="166" count="0" type="stmt"/>
1247
- <line num="169" count="34" type="stmt"/>
1248
- <line num="170" count="1" type="stmt"/>
1239
+ <line num="143" count="2" type="stmt"/>
1240
+ <line num="152" count="1" type="cond" truecount="3" falsecount="1"/>
1241
+ <line num="153" count="1" type="stmt"/>
1242
+ <line num="155" count="0" type="stmt"/>
1243
+ <line num="158" count="1" type="stmt"/>
1244
+ <line num="162" count="34" type="stmt"/>
1245
+ <line num="163" count="2" type="stmt"/>
1246
+ <line num="166" count="34" type="stmt"/>
1247
+ <line num="167" count="0" type="stmt"/>
1248
+ <line num="170" count="34" type="stmt"/>
1249
1249
  <line num="171" count="1" type="stmt"/>
1250
1250
  <line num="172" count="1" type="stmt"/>
1251
1251
  <line num="173" count="1" type="stmt"/>
1252
+ <line num="175" count="1" type="cond" truecount="1" falsecount="1"/>
1253
+ <line num="177" count="0" type="stmt"/>
1254
+ <line num="178" count="0" type="stmt"/>
1255
+ <line num="179" count="0" type="stmt"/>
1256
+ <line num="182" count="0" type="stmt"/>
1257
+ <line num="183" count="0" type="stmt"/>
1258
+ <line num="185" count="0" type="stmt"/>
1259
+ <line num="189" count="34" type="stmt"/>
1260
+ <line num="190" count="1" type="stmt"/>
1261
+ <line num="191" count="1" type="stmt"/>
1262
+ <line num="192" count="1" type="stmt"/>
1263
+ <line num="193" count="1" type="stmt"/>
1264
+ <line num="194" count="1" type="stmt"/>
1252
1265
  </file>
1253
1266
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1254
1267
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
@@ -1263,7 +1276,7 @@
1263
1276
  </file>
1264
1277
  </package>
1265
1278
  <package name="api.controllers.row">
1266
- <metrics statements="588" coveredstatements="309" conditionals="253" coveredconditionals="85" methods="88" coveredmethods="38"/>
1279
+ <metrics statements="593" coveredstatements="314" conditionals="253" coveredconditionals="85" methods="88" coveredmethods="38"/>
1267
1280
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1268
1281
  <metrics statements="99" coveredstatements="15" conditionals="42" coveredconditionals="0" methods="13" coveredmethods="0"/>
1269
1282
  <line num="6" count="34" type="stmt"/>
@@ -1455,12 +1468,11 @@
1455
1468
  <line num="137" count="0" type="stmt"/>
1456
1469
  </file>
1457
1470
  <file name="internal.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internal.js">
1458
- <metrics statements="209" coveredstatements="173" conditionals="64" coveredconditionals="39" methods="25" coveredmethods="23"/>
1471
+ <metrics statements="214" coveredstatements="178" conditionals="64" coveredconditionals="39" methods="25" coveredmethods="23"/>
1459
1472
  <line num="1" count="34" type="stmt"/>
1460
1473
  <line num="2" count="34" type="stmt"/>
1461
1474
  <line num="8" count="34" type="stmt"/>
1462
1475
  <line num="9" count="34" type="stmt"/>
1463
- <line num="14" count="34" type="stmt"/>
1464
1476
  <line num="15" count="34" type="stmt"/>
1465
1477
  <line num="16" count="34" type="stmt"/>
1466
1478
  <line num="17" count="34" type="stmt"/>
@@ -1468,203 +1480,209 @@
1468
1480
  <line num="19" count="34" type="stmt"/>
1469
1481
  <line num="20" count="34" type="stmt"/>
1470
1482
  <line num="21" count="34" type="stmt"/>
1471
- <line num="27" count="34" type="stmt"/>
1483
+ <line num="22" count="34" type="stmt"/>
1484
+ <line num="28" count="34" type="stmt"/>
1472
1485
  <line num="29" count="34" type="stmt"/>
1473
- <line num="36" count="70" type="stmt"/>
1474
- <line num="40" count="70" type="cond" truecount="1" falsecount="1"/>
1475
- <line num="41" count="0" type="stmt"/>
1476
- <line num="42" count="0" type="stmt"/>
1477
- <line num="44" count="0" type="cond" truecount="0" falsecount="2"/>
1478
- <line num="45" count="0" type="stmt"/>
1479
- <line num="46" count="0" type="stmt"/>
1480
- <line num="49" count="0" type="stmt"/>
1481
- <line num="50" count="0" type="stmt"/>
1486
+ <line num="31" count="34" type="stmt"/>
1487
+ <line num="38" count="70" type="stmt"/>
1488
+ <line num="42" count="70" type="cond" truecount="1" falsecount="1"/>
1489
+ <line num="43" count="0" type="stmt"/>
1490
+ <line num="44" count="0" type="stmt"/>
1491
+ <line num="46" count="0" type="cond" truecount="0" falsecount="2"/>
1492
+ <line num="47" count="0" type="stmt"/>
1493
+ <line num="48" count="0" type="stmt"/>
1494
+ <line num="51" count="0" type="stmt"/>
1482
1495
  <line num="52" count="0" type="stmt"/>
1483
- <line num="56" count="70" type="stmt"/>
1484
- <line num="57" count="70" type="stmt"/>
1496
+ <line num="54" count="0" type="stmt"/>
1497
+ <line num="58" count="70" type="stmt"/>
1485
1498
  <line num="59" count="70" type="stmt"/>
1486
- <line num="60" count="70" type="stmt"/>
1487
- <line num="66" count="5" type="cond" truecount="1" falsecount="1"/>
1488
- <line num="67" count="0" type="stmt"/>
1489
- <line num="68" count="0" type="stmt"/>
1490
- <line num="70" count="5" type="stmt"/>
1491
- <line num="75" count="10" type="stmt"/>
1492
- <line num="77" count="5" type="stmt"/>
1493
- <line num="81" count="6" type="cond" truecount="1" falsecount="1"/>
1494
- <line num="82" count="6" type="cond" truecount="1" falsecount="1"/>
1499
+ <line num="61" count="70" type="stmt"/>
1500
+ <line num="62" count="70" type="stmt"/>
1501
+ <line num="68" count="5" type="cond" truecount="1" falsecount="1"/>
1502
+ <line num="69" count="0" type="stmt"/>
1503
+ <line num="70" count="0" type="stmt"/>
1504
+ <line num="72" count="5" type="stmt"/>
1505
+ <line num="77" count="10" type="stmt"/>
1506
+ <line num="79" count="5" type="stmt"/>
1495
1507
  <line num="83" count="6" type="cond" truecount="1" falsecount="1"/>
1496
- <line num="85" count="6" type="stmt"/>
1497
- <line num="86" count="6" type="stmt"/>
1508
+ <line num="84" count="6" type="cond" truecount="1" falsecount="1"/>
1509
+ <line num="85" count="6" type="cond" truecount="1" falsecount="1"/>
1498
1510
  <line num="87" count="6" type="stmt"/>
1499
- <line num="90" count="1" type="cond" truecount="1" falsecount="1"/>
1500
- <line num="91" count="0" type="stmt"/>
1501
- <line num="93" count="1" type="stmt"/>
1502
- <line num="94" count="0" type="stmt"/>
1503
- <line num="97" count="5" type="cond" truecount="1" falsecount="1"/>
1504
- <line num="98" count="0" type="stmt"/>
1505
- <line num="100" count="5" type="cond" truecount="1" falsecount="1"/>
1506
- <line num="101" count="0" type="stmt"/>
1507
- <line num="103" count="5" type="stmt"/>
1508
- <line num="106" count="34" type="stmt"/>
1509
- <line num="107" count="5" type="stmt"/>
1510
- <line num="108" count="5" type="stmt"/>
1511
+ <line num="88" count="6" type="stmt"/>
1512
+ <line num="89" count="6" type="stmt"/>
1513
+ <line num="92" count="1" type="cond" truecount="1" falsecount="1"/>
1514
+ <line num="93" count="0" type="stmt"/>
1515
+ <line num="95" count="1" type="stmt"/>
1516
+ <line num="96" count="0" type="stmt"/>
1517
+ <line num="99" count="5" type="cond" truecount="1" falsecount="1"/>
1518
+ <line num="100" count="0" type="stmt"/>
1519
+ <line num="102" count="5" type="cond" truecount="1" falsecount="1"/>
1520
+ <line num="103" count="0" type="stmt"/>
1521
+ <line num="105" count="5" type="stmt"/>
1522
+ <line num="108" count="34" type="stmt"/>
1511
1523
  <line num="109" count="5" type="stmt"/>
1512
1524
  <line num="110" count="5" type="stmt"/>
1513
1525
  <line num="111" count="5" type="stmt"/>
1526
+ <line num="112" count="5" type="stmt"/>
1514
1527
  <line num="113" count="5" type="stmt"/>
1515
- <line num="114" count="5" type="stmt"/>
1516
- <line num="116" count="0" type="cond" truecount="0" falsecount="2"/>
1517
- <line num="119" count="0" type="stmt"/>
1518
- <line num="123" count="0" type="stmt"/>
1519
- <line num="126" count="5" type="stmt"/>
1528
+ <line num="115" count="5" type="stmt"/>
1529
+ <line num="116" count="5" type="stmt"/>
1530
+ <line num="118" count="0" type="cond" truecount="0" falsecount="2"/>
1531
+ <line num="121" count="0" type="stmt"/>
1532
+ <line num="125" count="0" type="stmt"/>
1520
1533
  <line num="128" count="5" type="stmt"/>
1521
- <line num="129" count="21" type="cond" truecount="2" falsecount="0"/>
1522
- <line num="130" count="6" type="stmt"/>
1523
- <line num="134" count="5" type="stmt"/>
1524
- <line num="135" count="5" type="stmt"/>
1525
- <line num="140" count="5" type="cond" truecount="2" falsecount="0"/>
1526
- <line num="141" count="1" type="stmt"/>
1527
- <line num="145" count="4" type="stmt"/>
1528
- <line num="153" count="4" type="cond" truecount="1" falsecount="1"/>
1529
- <line num="155" count="0" type="stmt"/>
1530
- <line num="156" count="0" type="stmt"/>
1531
- <line num="157" count="0" type="stmt"/>
1532
- <line num="160" count="4" type="stmt"/>
1533
- <line num="163" count="34" type="stmt"/>
1534
- <line num="164" count="67" type="stmt"/>
1535
- <line num="165" count="67" type="stmt"/>
1536
- <line num="166" count="67" type="stmt"/>
1537
- <line num="167" count="67" type="stmt"/>
1538
- <line num="169" count="67" type="cond" truecount="3" falsecount="1"/>
1534
+ <line num="130" count="5" type="stmt"/>
1535
+ <line num="131" count="5" type="stmt"/>
1536
+ <line num="132" count="21" type="cond" truecount="2" falsecount="0"/>
1537
+ <line num="133" count="6" type="stmt"/>
1538
+ <line num="137" count="5" type="stmt"/>
1539
+ <line num="138" count="5" type="stmt"/>
1540
+ <line num="143" count="5" type="cond" truecount="2" falsecount="0"/>
1541
+ <line num="144" count="1" type="stmt"/>
1542
+ <line num="148" count="4" type="stmt"/>
1543
+ <line num="156" count="4" type="stmt"/>
1544
+ <line num="158" count="4" type="cond" truecount="1" falsecount="1"/>
1545
+ <line num="160" count="0" type="stmt"/>
1546
+ <line num="161" count="0" type="stmt"/>
1547
+ <line num="162" count="0" type="stmt"/>
1548
+ <line num="165" count="4" type="stmt"/>
1549
+ <line num="168" count="34" type="stmt"/>
1550
+ <line num="169" count="67" type="stmt"/>
1539
1551
  <line num="170" count="67" type="stmt"/>
1540
- <line num="174" count="67" type="stmt"/>
1552
+ <line num="171" count="67" type="stmt"/>
1553
+ <line num="172" count="67" type="stmt"/>
1554
+ <line num="174" count="67" type="cond" truecount="3" falsecount="1"/>
1541
1555
  <line num="175" count="67" type="stmt"/>
1542
- <line num="176" count="67" type="stmt"/>
1543
- <line num="181" count="67" type="cond" truecount="1" falsecount="1"/>
1544
- <line num="182" count="0" type="stmt"/>
1545
- <line num="186" count="67" type="stmt"/>
1546
- <line num="194" count="66" type="stmt"/>
1547
- <line num="197" count="34" type="stmt"/>
1548
- <line num="198" count="7" type="stmt"/>
1549
- <line num="199" count="7" type="stmt"/>
1550
- <line num="202" count="7" type="cond" truecount="2" falsecount="0"/>
1551
- <line num="203" count="1" type="stmt"/>
1552
- <line num="204" count="1" type="stmt"/>
1553
- <line num="207" count="6" type="stmt"/>
1554
- <line num="208" count="6" type="stmt"/>
1555
- <line num="209" count="6" type="stmt"/>
1556
- <line num="211" count="5" type="cond" truecount="1" falsecount="1"/>
1557
- <line num="212" count="5" type="stmt"/>
1558
- <line num="217" count="0" type="stmt"/>
1559
- <line num="218" count="0" type="stmt"/>
1560
- <line num="219" count="0" type="stmt"/>
1561
- <line num="223" count="5" type="cond" truecount="2" falsecount="0"/>
1562
- <line num="224" count="3" type="stmt"/>
1563
- <line num="226" count="3" type="stmt"/>
1564
- <line num="227" count="3" type="stmt"/>
1565
- <line num="234" count="3" type="stmt"/>
1566
- <line num="237" count="5" type="cond" truecount="2" falsecount="0"/>
1567
- <line num="238" count="3" type="stmt"/>
1568
- <line num="244" count="2" type="stmt"/>
1569
- <line num="247" count="5" type="cond" truecount="1" falsecount="1"/>
1570
- <line num="251" count="0" type="stmt"/>
1571
- <line num="257" count="5" type="stmt"/>
1572
- <line num="260" count="34" type="stmt"/>
1573
- <line num="261" count="5" type="stmt"/>
1556
+ <line num="179" count="67" type="stmt"/>
1557
+ <line num="180" count="67" type="stmt"/>
1558
+ <line num="181" count="67" type="stmt"/>
1559
+ <line num="186" count="67" type="cond" truecount="1" falsecount="1"/>
1560
+ <line num="187" count="0" type="stmt"/>
1561
+ <line num="191" count="67" type="stmt"/>
1562
+ <line num="199" count="66" type="stmt"/>
1563
+ <line num="202" count="34" type="stmt"/>
1564
+ <line num="203" count="7" type="stmt"/>
1565
+ <line num="204" count="7" type="stmt"/>
1566
+ <line num="207" count="7" type="cond" truecount="2" falsecount="0"/>
1567
+ <line num="208" count="1" type="stmt"/>
1568
+ <line num="209" count="1" type="stmt"/>
1569
+ <line num="212" count="6" type="stmt"/>
1570
+ <line num="213" count="6" type="stmt"/>
1571
+ <line num="214" count="6" type="stmt"/>
1572
+ <line num="216" count="5" type="cond" truecount="1" falsecount="1"/>
1573
+ <line num="217" count="5" type="stmt"/>
1574
+ <line num="222" count="0" type="stmt"/>
1575
+ <line num="223" count="0" type="stmt"/>
1576
+ <line num="224" count="0" type="stmt"/>
1577
+ <line num="228" count="5" type="cond" truecount="2" falsecount="0"/>
1578
+ <line num="229" count="3" type="stmt"/>
1579
+ <line num="231" count="3" type="stmt"/>
1580
+ <line num="232" count="3" type="stmt"/>
1581
+ <line num="239" count="3" type="stmt"/>
1582
+ <line num="242" count="5" type="cond" truecount="2" falsecount="0"/>
1583
+ <line num="243" count="3" type="stmt"/>
1584
+ <line num="249" count="2" type="stmt"/>
1585
+ <line num="252" count="5" type="cond" truecount="1" falsecount="1"/>
1586
+ <line num="256" count="0" type="stmt"/>
1574
1587
  <line num="262" count="5" type="stmt"/>
1575
- <line num="264" count="5" type="stmt"/>
1576
- <line num="265" count="5" type="stmt"/>
1588
+ <line num="265" count="34" type="stmt"/>
1577
1589
  <line num="266" count="5" type="stmt"/>
1578
1590
  <line num="267" count="5" type="stmt"/>
1579
- <line num="270" count="34" type="stmt"/>
1580
- <line num="271" count="18" type="stmt"/>
1581
- <line num="272" count="18" type="stmt"/>
1582
- <line num="273" count="18" type="stmt"/>
1583
- <line num="274" count="18" type="stmt"/>
1584
- <line num="275" count="15" type="stmt"/>
1585
- <line num="276" count="15" type="stmt"/>
1586
- <line num="279" count="34" type="stmt"/>
1587
- <line num="280" count="3" type="stmt"/>
1588
- <line num="281" count="3" type="stmt"/>
1589
- <line num="282" count="3" type="stmt"/>
1590
- <line num="283" count="3" type="stmt"/>
1591
- <line num="285" count="2" type="cond" truecount="1" falsecount="1"/>
1592
- <line num="286" count="0" type="stmt"/>
1593
- <line num="288" count="2" type="stmt"/>
1594
- <line num="290" count="2" type="stmt"/>
1595
- <line num="292" count="2" type="stmt"/>
1596
- <line num="300" count="2" type="cond" truecount="1" falsecount="1"/>
1597
- <line num="301" count="0" type="stmt"/>
1598
- <line num="304" count="0" type="stmt"/>
1599
- <line num="305" count="0" type="stmt"/>
1600
- <line num="307" count="2" type="stmt"/>
1601
- <line num="309" count="2" type="stmt"/>
1602
- <line num="312" count="34" type="stmt"/>
1603
- <line num="313" count="2" type="stmt"/>
1591
+ <line num="269" count="5" type="stmt"/>
1592
+ <line num="270" count="5" type="stmt"/>
1593
+ <line num="271" count="5" type="stmt"/>
1594
+ <line num="272" count="5" type="stmt"/>
1595
+ <line num="275" count="34" type="stmt"/>
1596
+ <line num="276" count="18" type="stmt"/>
1597
+ <line num="277" count="18" type="stmt"/>
1598
+ <line num="278" count="18" type="stmt"/>
1599
+ <line num="279" count="18" type="stmt"/>
1600
+ <line num="280" count="15" type="stmt"/>
1601
+ <line num="281" count="15" type="stmt"/>
1602
+ <line num="284" count="34" type="stmt"/>
1603
+ <line num="285" count="3" type="stmt"/>
1604
+ <line num="286" count="3" type="stmt"/>
1605
+ <line num="287" count="3" type="stmt"/>
1606
+ <line num="288" count="3" type="stmt"/>
1607
+ <line num="290" count="2" type="cond" truecount="1" falsecount="1"/>
1608
+ <line num="291" count="0" type="stmt"/>
1609
+ <line num="293" count="2" type="stmt"/>
1610
+ <line num="295" count="2" type="stmt"/>
1611
+ <line num="297" count="2" type="stmt"/>
1612
+ <line num="304" count="2" type="stmt"/>
1613
+ <line num="307" count="2" type="cond" truecount="1" falsecount="1"/>
1614
+ <line num="308" count="0" type="stmt"/>
1615
+ <line num="311" count="0" type="stmt"/>
1616
+ <line num="312" count="0" type="stmt"/>
1604
1617
  <line num="314" count="2" type="stmt"/>
1605
- <line num="315" count="2" type="stmt"/>
1606
1618
  <line num="316" count="2" type="stmt"/>
1607
- <line num="317" count="2" type="stmt"/>
1619
+ <line num="319" count="34" type="stmt"/>
1620
+ <line num="320" count="2" type="stmt"/>
1608
1621
  <line num="321" count="2" type="stmt"/>
1622
+ <line num="322" count="2" type="stmt"/>
1623
+ <line num="323" count="2" type="stmt"/>
1609
1624
  <line num="324" count="2" type="stmt"/>
1610
- <line num="325" count="3" type="stmt"/>
1611
- <line num="332" count="2" type="cond" truecount="1" falsecount="1"/>
1612
- <line num="333" count="0" type="stmt"/>
1613
- <line num="335" count="0" type="stmt"/>
1614
- <line num="338" count="0" type="stmt"/>
1615
- <line num="342" count="3" type="stmt"/>
1616
- <line num="344" count="2" type="stmt"/>
1617
- <line num="345" count="2" type="stmt"/>
1618
- <line num="348" count="34" type="stmt"/>
1619
- <line num="350" count="1" type="cond" truecount="1" falsecount="1"/>
1620
- <line num="351" count="0" type="stmt"/>
1621
- <line num="354" count="1" type="stmt"/>
1622
- <line num="355" count="1" type="stmt"/>
1623
- <line num="356" count="1" type="stmt"/>
1624
- <line num="357" count="1" type="stmt"/>
1625
- <line num="358" count="1" type="stmt"/>
1626
- <line num="359" count="1" type="stmt"/>
1627
- <line num="362" count="1" type="cond" truecount="1" falsecount="1"/>
1628
- <line num="363" count="0" type="stmt"/>
1625
+ <line num="328" count="2" type="stmt"/>
1626
+ <line num="331" count="2" type="stmt"/>
1627
+ <line num="332" count="3" type="stmt"/>
1628
+ <line num="339" count="2" type="cond" truecount="1" falsecount="1"/>
1629
+ <line num="340" count="0" type="stmt"/>
1630
+ <line num="342" count="0" type="stmt"/>
1631
+ <line num="345" count="0" type="stmt"/>
1632
+ <line num="349" count="3" type="stmt"/>
1633
+ <line num="352" count="2" type="stmt"/>
1634
+ <line num="353" count="2" type="stmt"/>
1635
+ <line num="354" count="2" type="stmt"/>
1636
+ <line num="357" count="34" type="stmt"/>
1637
+ <line num="359" count="1" type="cond" truecount="1" falsecount="1"/>
1638
+ <line num="360" count="0" type="stmt"/>
1639
+ <line num="363" count="1" type="stmt"/>
1640
+ <line num="364" count="1" type="stmt"/>
1629
1641
  <line num="365" count="1" type="stmt"/>
1630
- <line num="369" count="1" type="cond" truecount="3" falsecount="1"/>
1642
+ <line num="366" count="1" type="stmt"/>
1643
+ <line num="367" count="1" type="stmt"/>
1644
+ <line num="368" count="1" type="stmt"/>
1631
1645
  <line num="371" count="1" type="cond" truecount="1" falsecount="1"/>
1632
1646
  <line num="372" count="0" type="stmt"/>
1633
1647
  <line num="374" count="1" type="stmt"/>
1634
- <line num="375" count="1" type="stmt"/>
1635
- <line num="378" count="1" type="stmt"/>
1636
- <line num="381" count="34" type="stmt"/>
1637
- <line num="382" count="2" type="stmt"/>
1638
- <line num="389" count="34" type="stmt"/>
1639
- <line num="390" count="1" type="stmt"/>
1640
- <line num="391" count="1" type="stmt"/>
1641
- <line num="392" count="1" type="stmt"/>
1642
- <line num="393" count="1" type="stmt"/>
1643
- <line num="395" count="1" type="stmt"/>
1648
+ <line num="378" count="1" type="cond" truecount="3" falsecount="1"/>
1649
+ <line num="380" count="1" type="cond" truecount="1" falsecount="1"/>
1650
+ <line num="381" count="0" type="stmt"/>
1651
+ <line num="383" count="1" type="stmt"/>
1652
+ <line num="384" count="1" type="stmt"/>
1653
+ <line num="387" count="1" type="stmt"/>
1654
+ <line num="390" count="34" type="stmt"/>
1655
+ <line num="391" count="2" type="stmt"/>
1656
+ <line num="398" count="34" type="stmt"/>
1657
+ <line num="399" count="1" type="stmt"/>
1644
1658
  <line num="400" count="1" type="stmt"/>
1645
- <line num="406" count="1" type="stmt"/>
1659
+ <line num="401" count="1" type="stmt"/>
1660
+ <line num="402" count="1" type="stmt"/>
1661
+ <line num="404" count="1" type="stmt"/>
1646
1662
  <line num="409" count="1" type="stmt"/>
1647
- <line num="411" count="1" type="stmt"/>
1648
- <line num="413" count="1" type="stmt"/>
1649
- <line num="414" count="1" type="stmt"/>
1650
1663
  <line num="415" count="1" type="stmt"/>
1651
- <line num="416" count="1" type="stmt"/>
1652
- <line num="417" count="1" type="cond" truecount="1" falsecount="1"/>
1653
1664
  <line num="418" count="1" type="stmt"/>
1654
- <line num="419" count="1" type="stmt"/>
1655
- <line num="421" count="0" type="stmt"/>
1665
+ <line num="420" count="1" type="stmt"/>
1666
+ <line num="422" count="1" type="stmt"/>
1667
+ <line num="423" count="1" type="stmt"/>
1656
1668
  <line num="424" count="1" type="stmt"/>
1657
1669
  <line num="425" count="1" type="stmt"/>
1670
+ <line num="426" count="1" type="cond" truecount="1" falsecount="1"/>
1658
1671
  <line num="427" count="1" type="stmt"/>
1672
+ <line num="428" count="1" type="stmt"/>
1673
+ <line num="430" count="0" type="stmt"/>
1659
1674
  <line num="433" count="1" type="stmt"/>
1660
- <line num="434" count="3" type="stmt"/>
1661
- <line num="435" count="3" type="cond" truecount="2" falsecount="0"/>
1662
- <line num="437" count="1" type="stmt"/>
1663
- <line num="438" count="1" type="stmt"/>
1664
- <line num="439" count="1" type="stmt"/>
1665
- <line num="441" count="1" type="stmt"/>
1675
+ <line num="434" count="1" type="stmt"/>
1676
+ <line num="436" count="1" type="stmt"/>
1666
1677
  <line num="442" count="1" type="stmt"/>
1678
+ <line num="443" count="3" type="stmt"/>
1679
+ <line num="444" count="3" type="cond" truecount="2" falsecount="0"/>
1667
1680
  <line num="446" count="1" type="stmt"/>
1681
+ <line num="447" count="1" type="stmt"/>
1682
+ <line num="448" count="1" type="stmt"/>
1683
+ <line num="450" count="1" type="stmt"/>
1684
+ <line num="451" count="1" type="stmt"/>
1685
+ <line num="455" count="1" type="stmt"/>
1668
1686
  </file>
1669
1687
  <file name="internalSearch.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/internalSearch.js">
1670
1688
  <metrics statements="147" coveredstatements="7" conditionals="87" coveredconditionals="0" methods="33" coveredmethods="0"/>
@@ -4267,7 +4285,7 @@
4267
4285
  </file>
4268
4286
  </package>
4269
4287
  <package name="threads">
4270
- <metrics statements="250" coveredstatements="213" conditionals="111" coveredconditionals="71" methods="37" coveredmethods="34"/>
4288
+ <metrics statements="251" coveredstatements="214" conditionals="111" coveredconditionals="71" methods="37" coveredmethods="34"/>
4271
4289
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4272
4290
  <metrics statements="76" coveredstatements="64" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4273
4291
  <line num="1" count="4" type="stmt"/>
@@ -4471,64 +4489,65 @@
4471
4489
  <line num="168" count="2" type="stmt"/>
4472
4490
  </file>
4473
4491
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/utils.js">
4474
- <metrics statements="57" coveredstatements="44" conditionals="33" coveredconditionals="18" methods="10" coveredmethods="9"/>
4475
- <line num="1" count="5" type="stmt"/>
4476
- <line num="2" count="5" type="stmt"/>
4477
- <line num="3" count="5" type="stmt"/>
4478
- <line num="4" count="5" type="stmt"/>
4479
- <line num="5" count="5" type="stmt"/>
4480
- <line num="6" count="5" type="stmt"/>
4481
- <line num="8" count="5" type="stmt"/>
4482
- <line num="11" count="5" type="stmt"/>
4483
- <line num="12" count="5" type="stmt"/>
4484
- <line num="15" count="8" type="cond" truecount="2" falsecount="0"/>
4492
+ <metrics statements="58" coveredstatements="45" conditionals="33" coveredconditionals="18" methods="10" coveredmethods="9"/>
4493
+ <line num="1" count="34" type="stmt"/>
4494
+ <line num="2" count="34" type="stmt"/>
4495
+ <line num="3" count="34" type="stmt"/>
4496
+ <line num="4" count="34" type="stmt"/>
4497
+ <line num="5" count="34" type="stmt"/>
4498
+ <line num="6" count="34" type="stmt"/>
4499
+ <line num="8" count="34" type="stmt"/>
4500
+ <line num="11" count="34" type="stmt"/>
4501
+ <line num="12" count="34" type="stmt"/>
4502
+ <line num="15" count="9" type="cond" truecount="2" falsecount="0"/>
4485
4503
  <line num="16" count="1" type="stmt"/>
4486
- <line num="18" count="8" type="stmt"/>
4487
- <line num="21" count="5" type="stmt"/>
4504
+ <line num="18" count="9" type="stmt"/>
4505
+ <line num="21" count="34" type="stmt"/>
4488
4506
  <line num="22" count="0" type="cond" truecount="0" falsecount="2"/>
4489
- <line num="25" count="5" type="stmt"/>
4507
+ <line num="25" count="34" type="stmt"/>
4490
4508
  <line num="27" count="5" type="cond" truecount="2" falsecount="2"/>
4491
4509
  <line num="28" count="5" type="stmt"/>
4492
4510
  <line num="31" count="0" type="stmt"/>
4493
4511
  <line num="32" count="0" type="stmt"/>
4494
4512
  <line num="36" count="9" type="stmt"/>
4495
- <line num="39" count="5" type="stmt"/>
4513
+ <line num="39" count="34" type="stmt"/>
4496
4514
  <line num="40" count="5" type="stmt"/>
4497
4515
  <line num="41" count="5" type="stmt"/>
4498
- <line num="44" count="5" type="stmt"/>
4516
+ <line num="44" count="34" type="stmt"/>
4499
4517
  <line num="45" count="1" type="stmt"/>
4500
4518
  <line num="46" count="1" type="stmt"/>
4501
4519
  <line num="47" count="1" type="stmt"/>
4502
- <line num="51" count="1" type="stmt"/>
4503
- <line num="54" count="5" type="stmt"/>
4504
- <line num="55" count="3" type="stmt"/>
4520
+ <line num="48" count="1" type="stmt"/>
4521
+ <line num="52" count="1" type="stmt"/>
4522
+ <line num="55" count="34" type="stmt"/>
4505
4523
  <line num="56" count="3" type="stmt"/>
4506
- <line num="63" count="5" type="stmt"/>
4507
- <line num="64" count="10" type="cond" truecount="1" falsecount="1"/>
4508
- <line num="65" count="0" type="stmt"/>
4524
+ <line num="57" count="3" type="stmt"/>
4525
+ <line num="64" count="34" type="stmt"/>
4526
+ <line num="65" count="10" type="cond" truecount="1" falsecount="1"/>
4509
4527
  <line num="66" count="0" type="stmt"/>
4510
- <line num="68" count="0" type="stmt"/>
4511
- <line num="71" count="10" type="stmt"/>
4512
- <line num="74" count="5" type="stmt"/>
4513
- <line num="75" count="10" type="stmt"/>
4514
- <line num="83" count="5" type="cond" truecount="0" falsecount="1"/>
4515
- <line num="84" count="12" type="stmt"/>
4516
- <line num="87" count="12" type="stmt"/>
4517
- <line num="88" count="13" type="cond" truecount="1" falsecount="1"/>
4518
- <line num="89" count="0" type="stmt"/>
4519
- <line num="91" count="13" type="cond" truecount="1" falsecount="1"/>
4520
- <line num="93" count="0" type="stmt"/>
4521
- <line num="94" count="13" type="cond" truecount="1" falsecount="1"/>
4522
- <line num="96" count="13" type="stmt"/>
4523
- <line num="98" count="13" type="cond" truecount="2" falsecount="2"/>
4524
- <line num="99" count="0" type="stmt"/>
4525
- <line num="101" count="13" type="stmt"/>
4526
- <line num="105" count="0" type="stmt"/>
4527
- <line num="109" count="12" type="cond" truecount="1" falsecount="1"/>
4528
- <line num="114" count="0" type="stmt"/>
4528
+ <line num="67" count="0" type="stmt"/>
4529
+ <line num="69" count="0" type="stmt"/>
4530
+ <line num="72" count="10" type="stmt"/>
4531
+ <line num="75" count="34" type="stmt"/>
4532
+ <line num="76" count="10" type="stmt"/>
4533
+ <line num="84" count="34" type="cond" truecount="0" falsecount="1"/>
4534
+ <line num="85" count="12" type="stmt"/>
4535
+ <line num="88" count="12" type="stmt"/>
4536
+ <line num="89" count="13" type="cond" truecount="1" falsecount="1"/>
4537
+ <line num="90" count="0" type="stmt"/>
4538
+ <line num="92" count="13" type="cond" truecount="1" falsecount="1"/>
4539
+ <line num="94" count="0" type="stmt"/>
4540
+ <line num="95" count="13" type="cond" truecount="1" falsecount="1"/>
4541
+ <line num="97" count="13" type="stmt"/>
4542
+ <line num="99" count="13" type="cond" truecount="2" falsecount="2"/>
4543
+ <line num="100" count="0" type="stmt"/>
4544
+ <line num="102" count="13" type="stmt"/>
4545
+ <line num="106" count="0" type="stmt"/>
4546
+ <line num="110" count="12" type="cond" truecount="1" falsecount="1"/>
4529
4547
  <line num="115" count="0" type="stmt"/>
4530
- <line num="123" count="0" type="stmt"/>
4531
- <line num="126" count="12" type="stmt"/>
4548
+ <line num="116" count="0" type="stmt"/>
4549
+ <line num="124" count="0" type="stmt"/>
4550
+ <line num="127" count="12" type="stmt"/>
4532
4551
  </file>
4533
4552
  </package>
4534
4553
  <package name="utilities">
@@ -4941,98 +4960,129 @@
4941
4960
  </file>
4942
4961
  </package>
4943
4962
  <package name="utilities.rowProcessor">
4944
- <metrics statements="100" coveredstatements="74" conditionals="78" coveredconditionals="46" methods="13" coveredmethods="10"/>
4963
+ <metrics statements="131" coveredstatements="84" conditionals="100" coveredconditionals="48" methods="21" coveredmethods="11"/>
4945
4964
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/rowProcessor/index.js">
4946
- <metrics statements="89" coveredstatements="64" conditionals="72" coveredconditionals="41" methods="11" coveredmethods="9"/>
4965
+ <metrics statements="120" coveredstatements="74" conditionals="94" coveredconditionals="43" methods="19" coveredmethods="10"/>
4947
4966
  <line num="1" count="34" type="stmt"/>
4948
4967
  <line num="2" count="34" type="stmt"/>
4949
4968
  <line num="3" count="34" type="stmt"/>
4950
4969
  <line num="4" count="34" type="stmt"/>
4951
4970
  <line num="5" count="34" type="stmt"/>
4971
+ <line num="6" count="34" type="stmt"/>
4952
4972
  <line num="7" count="34" type="stmt"/>
4953
- <line num="12" count="34" type="stmt"/>
4954
- <line num="18" count="11" type="cond" truecount="4" falsecount="0"/>
4955
- <line num="19" count="2" type="cond" truecount="3" falsecount="1"/>
4956
- <line num="21" count="9" type="cond" truecount="1" falsecount="1"/>
4957
- <line num="22" count="0" type="stmt"/>
4958
- <line num="24" count="9" type="stmt"/>
4959
- <line num="56" count="9" type="stmt"/>
4960
- <line num="63" count="2" type="cond" truecount="2" falsecount="0"/>
4961
- <line num="64" count="1" type="stmt"/>
4962
- <line num="66" count="1" type="stmt"/>
4963
- <line num="82" count="0" type="stmt"/>
4973
+ <line num="8" count="34" type="stmt"/>
4974
+ <line num="9" count="34" type="stmt"/>
4975
+ <line num="11" count="34" type="stmt"/>
4976
+ <line num="16" count="34" type="stmt"/>
4977
+ <line num="22" count="11" type="cond" truecount="4" falsecount="0"/>
4978
+ <line num="23" count="2" type="cond" truecount="3" falsecount="1"/>
4979
+ <line num="25" count="9" type="cond" truecount="1" falsecount="1"/>
4980
+ <line num="26" count="0" type="stmt"/>
4981
+ <line num="28" count="9" type="stmt"/>
4982
+ <line num="60" count="9" type="stmt"/>
4983
+ <line num="67" count="2" type="cond" truecount="2" falsecount="0"/>
4984
+ <line num="68" count="1" type="stmt"/>
4985
+ <line num="70" count="1" type="stmt"/>
4964
4986
  <line num="86" count="0" type="stmt"/>
4965
- <line num="87" count="0" type="cond" truecount="0" falsecount="2"/>
4966
- <line num="88" count="0" type="stmt"/>
4967
4987
  <line num="90" count="0" type="stmt"/>
4988
+ <line num="91" count="0" type="cond" truecount="0" falsecount="2"/>
4968
4989
  <line num="92" count="0" type="stmt"/>
4969
- <line num="114" count="73" type="cond" truecount="2" falsecount="0"/>
4970
- <line num="115" count="73" type="stmt"/>
4971
- <line num="117" count="73" type="stmt"/>
4972
- <line num="118" count="73" type="stmt"/>
4973
- <line num="119" count="206" type="cond" truecount="1" falsecount="1"/>
4974
- <line num="120" count="206" type="stmt"/>
4975
- <line num="122" count="0" type="cond" truecount="0" falsecount="5"/>
4976
- <line num="124" count="0" type="cond" truecount="0" falsecount="2"/>
4977
- <line num="130" count="0" type="stmt"/>
4978
- <line num="132" count="0" type="stmt"/>
4979
- <line num="134" count="0" type="cond" truecount="0" falsecount="2"/>
4980
- <line num="135" count="0" type="stmt"/>
4981
- <line num="137" count="0" type="stmt"/>
4982
- <line num="139" count="0" type="cond" truecount="0" falsecount="5"/>
4983
- <line num="140" count="0" type="stmt"/>
4984
- <line num="142" count="0" type="stmt"/>
4985
- <line num="144" count="0" type="stmt"/>
4986
- <line num="145" count="0" type="stmt"/>
4987
- <line num="147" count="0" type="cond" truecount="0" falsecount="2"/>
4988
- <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
4989
- <line num="149" count="0" type="stmt"/>
4990
+ <line num="94" count="0" type="stmt"/>
4991
+ <line num="96" count="0" type="stmt"/>
4992
+ <line num="107" count="0" type="cond" truecount="0" falsecount="2"/>
4993
+ <line num="108" count="0" type="stmt"/>
4994
+ <line num="110" count="0" type="stmt"/>
4995
+ <line num="112" count="0" type="cond" truecount="0" falsecount="2"/>
4996
+ <line num="113" count="0" type="stmt"/>
4997
+ <line num="115" count="0" type="stmt"/>
4998
+ <line num="116" count="0" type="stmt"/>
4999
+ <line num="135" count="73" type="cond" truecount="2" falsecount="0"/>
5000
+ <line num="136" count="73" type="stmt"/>
5001
+ <line num="138" count="73" type="stmt"/>
5002
+ <line num="139" count="73" type="stmt"/>
5003
+ <line num="140" count="206" type="cond" truecount="1" falsecount="1"/>
5004
+ <line num="141" count="206" type="stmt"/>
5005
+ <line num="143" count="0" type="cond" truecount="0" falsecount="5"/>
5006
+ <line num="145" count="0" type="cond" truecount="0" falsecount="2"/>
4990
5007
  <line num="151" count="0" type="stmt"/>
4991
- <line num="154" count="73" type="stmt"/>
4992
- <line num="156" count="34" type="stmt"/>
4993
- <line num="164" count="34" type="stmt"/>
4994
- <line num="166" count="174" type="cond" truecount="1" falsecount="1"/>
4995
- <line num="167" count="0" type="stmt"/>
4996
- <line num="170" count="174" type="cond" truecount="2" falsecount="0"/>
4997
- <line num="171" count="16" type="stmt"/>
4998
- <line num="172" count="158" type="cond" truecount="2" falsecount="0"/>
4999
- <line num="173" count="22" type="stmt"/>
5000
- <line num="176" count="136" type="stmt"/>
5001
- <line num="188" count="34" type="stmt"/>
5002
- <line num="194" count="73" type="stmt"/>
5003
- <line num="196" count="73" type="stmt"/>
5004
- <line num="197" count="73" type="stmt"/>
5005
- <line num="198" count="73" type="stmt"/>
5006
- <line num="199" count="332" type="stmt"/>
5007
- <line num="201" count="332" type="cond" truecount="2" falsecount="0"/>
5008
- <line num="202" count="159" type="cond" truecount="2" falsecount="0"/>
5009
- <line num="203" count="3" type="stmt"/>
5010
- <line num="205" count="159" type="stmt"/>
5011
- <line num="209" count="173" type="cond" truecount="1" falsecount="1"/>
5012
- <line num="210" count="0" type="stmt"/>
5013
- <line num="212" count="173" type="stmt"/>
5014
- <line num="216" count="73" type="cond" truecount="4" falsecount="0"/>
5015
- <line num="217" count="68" type="stmt"/>
5016
- <line num="218" count="68" type="stmt"/>
5017
- <line num="222" count="73" type="stmt"/>
5018
- <line num="235" count="34" type="stmt"/>
5019
- <line num="241" count="100" type="stmt"/>
5020
- <line num="242" count="100" type="stmt"/>
5021
- <line num="243" count="100" type="cond" truecount="2" falsecount="0"/>
5022
- <line num="244" count="87" type="stmt"/>
5023
- <line num="245" count="87" type="stmt"/>
5024
- <line num="248" count="100" type="stmt"/>
5025
- <line num="251" count="100" type="stmt"/>
5026
- <line num="254" count="100" type="stmt"/>
5027
- <line num="255" count="296" type="cond" truecount="2" falsecount="0"/>
5028
- <line num="256" count="8" type="stmt"/>
5029
- <line num="257" count="8" type="cond" truecount="4" falsecount="0"/>
5030
- <line num="258" count="6" type="stmt"/>
5031
- <line num="260" count="2" type="stmt"/>
5032
- <line num="261" count="2" type="stmt"/>
5033
- <line num="266" count="100" type="cond" truecount="2" falsecount="0"/>
5034
- <line num="267" count="26" type="stmt"/>
5035
- <line num="273" count="100" type="cond" truecount="2" falsecount="0"/>
5008
+ <line num="153" count="0" type="stmt"/>
5009
+ <line num="155" count="0" type="cond" truecount="0" falsecount="2"/>
5010
+ <line num="156" count="0" type="stmt"/>
5011
+ <line num="158" count="0" type="stmt"/>
5012
+ <line num="160" count="0" type="cond" truecount="0" falsecount="5"/>
5013
+ <line num="161" count="0" type="stmt"/>
5014
+ <line num="163" count="0" type="stmt"/>
5015
+ <line num="165" count="0" type="stmt"/>
5016
+ <line num="166" count="0" type="stmt"/>
5017
+ <line num="168" count="0" type="cond" truecount="0" falsecount="2"/>
5018
+ <line num="169" count="0" type="cond" truecount="0" falsecount="2"/>
5019
+ <line num="170" count="0" type="stmt"/>
5020
+ <line num="172" count="0" type="stmt"/>
5021
+ <line num="175" count="73" type="stmt"/>
5022
+ <line num="177" count="34" type="stmt"/>
5023
+ <line num="185" count="34" type="stmt"/>
5024
+ <line num="187" count="174" type="cond" truecount="1" falsecount="1"/>
5025
+ <line num="188" count="0" type="stmt"/>
5026
+ <line num="191" count="174" type="cond" truecount="2" falsecount="0"/>
5027
+ <line num="192" count="16" type="stmt"/>
5028
+ <line num="193" count="158" type="cond" truecount="2" falsecount="0"/>
5029
+ <line num="194" count="22" type="stmt"/>
5030
+ <line num="197" count="136" type="stmt"/>
5031
+ <line num="209" count="34" type="stmt"/>
5032
+ <line num="215" count="73" type="stmt"/>
5033
+ <line num="217" count="73" type="stmt"/>
5034
+ <line num="218" count="73" type="stmt"/>
5035
+ <line num="219" count="73" type="stmt"/>
5036
+ <line num="220" count="332" type="stmt"/>
5037
+ <line num="222" count="332" type="cond" truecount="2" falsecount="0"/>
5038
+ <line num="223" count="159" type="cond" truecount="2" falsecount="0"/>
5039
+ <line num="224" count="3" type="stmt"/>
5040
+ <line num="226" count="159" type="stmt"/>
5041
+ <line num="230" count="173" type="cond" truecount="1" falsecount="1"/>
5042
+ <line num="231" count="0" type="stmt"/>
5043
+ <line num="233" count="173" type="stmt"/>
5044
+ <line num="237" count="73" type="cond" truecount="4" falsecount="0"/>
5045
+ <line num="238" count="68" type="stmt"/>
5046
+ <line num="239" count="68" type="stmt"/>
5047
+ <line num="243" count="73" type="stmt"/>
5048
+ <line num="256" count="34" type="stmt"/>
5049
+ <line num="262" count="100" type="stmt"/>
5050
+ <line num="263" count="100" type="stmt"/>
5051
+ <line num="264" count="100" type="cond" truecount="2" falsecount="0"/>
5052
+ <line num="265" count="87" type="stmt"/>
5053
+ <line num="266" count="87" type="stmt"/>
5054
+ <line num="269" count="100" type="stmt"/>
5055
+ <line num="272" count="100" type="stmt"/>
5056
+ <line num="275" count="100" type="stmt"/>
5057
+ <line num="276" count="296" type="cond" truecount="2" falsecount="0"/>
5058
+ <line num="277" count="8" type="stmt"/>
5059
+ <line num="278" count="8" type="cond" truecount="4" falsecount="0"/>
5060
+ <line num="279" count="6" type="stmt"/>
5061
+ <line num="281" count="2" type="stmt"/>
5062
+ <line num="282" count="2" type="stmt"/>
5063
+ <line num="287" count="100" type="cond" truecount="2" falsecount="0"/>
5064
+ <line num="288" count="26" type="stmt"/>
5065
+ <line num="294" count="100" type="cond" truecount="2" falsecount="0"/>
5066
+ <line num="306" count="34" type="stmt"/>
5067
+ <line num="307" count="8" type="cond" truecount="1" falsecount="1"/>
5068
+ <line num="308" count="8" type="stmt"/>
5069
+ <line num="310" count="8" type="stmt"/>
5070
+ <line num="311" count="8" type="cond" truecount="1" falsecount="1"/>
5071
+ <line num="312" count="8" type="stmt"/>
5072
+ <line num="315" count="0" type="stmt"/>
5073
+ <line num="317" count="0" type="cond" truecount="0" falsecount="2"/>
5074
+ <line num="318" count="0" type="stmt"/>
5075
+ <line num="321" count="0" type="stmt"/>
5076
+ <line num="322" count="0" type="cond" truecount="0" falsecount="2"/>
5077
+ <line num="323" count="0" type="stmt"/>
5078
+ <line num="326" count="0" type="cond" truecount="0" falsecount="4"/>
5079
+ <line num="327" count="0" type="stmt"/>
5080
+ <line num="328" count="0" type="cond" truecount="0" falsecount="2"/>
5081
+ <line num="329" count="0" type="stmt"/>
5082
+ <line num="330" count="0" type="cond" truecount="0" falsecount="2"/>
5083
+ <line num="331" count="0" type="stmt"/>
5084
+ <line num="334" count="0" type="cond" truecount="0" falsecount="2"/>
5085
+ <line num="335" count="0" type="stmt"/>
5036
5086
  </file>
5037
5087
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/rowProcessor/utils.js">
5038
5088
  <metrics statements="11" coveredstatements="10" conditionals="6" coveredconditionals="5" methods="2" coveredmethods="1"/>