@budibase/server 0.9.185-alpha.10 → 0.9.185-alpha.14

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 (186) hide show
  1. package/builder/assets/bb-space-man.5be51a45.svg +290 -0
  2. package/builder/assets/{index.34aca569.css → index.4a7c5636.css} +1 -1
  3. package/builder/assets/{index.a9806411.js → index.8ed163fd.js} +179 -180
  4. package/builder/index.html +2 -2
  5. package/coverage/clover.xml +189 -167
  6. package/coverage/coverage-final.json +6 -6
  7. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  15. package/coverage/lcov-report/api/controllers/datasource.js.html +102 -18
  16. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  17. package/coverage/lcov-report/api/controllers/hosting.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/index.html +19 -19
  19. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  22. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  23. package/coverage/lcov-report/api/controllers/query.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.html +1 -1
  28. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/utils.js.html +1 -1
  32. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/external.js.html +29 -8
  35. package/coverage/lcov-report/api/controllers/table/index.html +13 -13
  36. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  47. package/coverage/lcov-report/api/index.html +1 -1
  48. package/coverage/lcov-report/api/index.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/index.html +1 -1
  62. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  78. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  79. package/coverage/lcov-report/automations/actions.js.html +1 -1
  80. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  81. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  82. package/coverage/lcov-report/automations/index.html +1 -1
  83. package/coverage/lcov-report/automations/index.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/index.html +1 -1
  93. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  101. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  110. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  111. package/coverage/lcov-report/automations/utils.js.html +1 -1
  112. package/coverage/lcov-report/constants/index.html +5 -5
  113. package/coverage/lcov-report/constants/index.js.html +25 -4
  114. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  115. package/coverage/lcov-report/constants/screens.js.html +1 -1
  116. package/coverage/lcov-report/db/client.js.html +1 -1
  117. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  118. package/coverage/lcov-report/db/index.html +1 -1
  119. package/coverage/lcov-report/db/index.js.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  123. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  124. package/coverage/lcov-report/db/newid.js.html +1 -1
  125. package/coverage/lcov-report/db/utils.js.html +1 -1
  126. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  127. package/coverage/lcov-report/events/index.html +1 -1
  128. package/coverage/lcov-report/events/index.js.html +1 -1
  129. package/coverage/lcov-report/events/utils.js.html +1 -1
  130. package/coverage/lcov-report/index.html +37 -37
  131. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  132. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  133. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  134. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  135. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  136. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  137. package/coverage/lcov-report/middleware/index.html +1 -1
  138. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  139. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  140. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  141. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  142. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  143. package/coverage/lcov-report/threads/automation.js.html +14 -8
  144. package/coverage/lcov-report/threads/index.html +27 -27
  145. package/coverage/lcov-report/threads/index.js.html +29 -11
  146. package/coverage/lcov-report/threads/query.js.html +16 -7
  147. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  148. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  149. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  150. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  151. package/coverage/lcov-report/utilities/global.js.html +1 -1
  152. package/coverage/lcov-report/utilities/index.html +1 -1
  153. package/coverage/lcov-report/utilities/index.js.html +1 -1
  154. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  155. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  156. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  157. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  158. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  159. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  160. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  161. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  162. package/coverage/lcov-report/utilities/security.js.html +1 -1
  163. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  164. package/coverage/lcov-report/utilities/users.js.html +1 -1
  165. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  166. package/coverage/lcov.info +303 -259
  167. package/dist/api/controllers/datasource.js +25 -5
  168. package/dist/api/controllers/table/external.js +8 -1
  169. package/dist/constants/index.js +6 -0
  170. package/dist/environment.js +13 -0
  171. package/dist/integrations/utils.js +7 -1
  172. package/dist/package.json +4 -4
  173. package/dist/threads/automation.js +3 -1
  174. package/dist/threads/index.js +9 -3
  175. package/dist/threads/query.js +3 -0
  176. package/dist/tsconfig.tsbuildinfo +1 -1
  177. package/package.json +5 -5
  178. package/scripts/dev/manage.js +1 -0
  179. package/src/api/controllers/datasource.js +35 -7
  180. package/src/api/controllers/table/external.js +8 -1
  181. package/src/constants/index.js +7 -0
  182. package/src/environment.js +15 -0
  183. package/src/integrations/utils.ts +6 -1
  184. package/src/threads/automation.js +3 -1
  185. package/src/threads/index.js +9 -3
  186. package/src/threads/query.js +3 -0
@@ -10,10 +10,10 @@
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.a9806411.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.8ed163fd.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.470042a4.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
- <link rel="stylesheet" href="/builder/assets/index.34aca569.css">
16
+ <link rel="stylesheet" href="/builder/assets/index.4a7c5636.css">
17
17
  </head>
18
18
  <body id="app">
19
19
 
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1637234042819" clover="3.2.0">
3
- <project timestamp="1637234042819" name="All files">
4
- <metrics statements="4343" coveredstatements="3219" conditionals="1711" coveredconditionals="937" methods="616" coveredmethods="440" elements="6670" coveredelements="4596" complexity="0" loc="4343" ncloc="4343" packages="20" files="138" classes="138"/>
2
+ <coverage generated="1637604142890" clover="3.2.0">
3
+ <project timestamp="1637604142890" name="All files">
4
+ <metrics statements="4365" coveredstatements="3225" conditionals="1729" coveredconditionals="940" methods="618" coveredmethods="440" elements="6712" coveredelements="4605" complexity="0" loc="4365" ncloc="4365" packages="20" files="138" classes="138"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1104" coveredstatements="804" conditionals="359" coveredconditionals="171" methods="151" coveredmethods="110"/>
41
+ <metrics statements="1116" coveredstatements="804" conditionals="367" coveredconditionals="171" methods="153" coveredmethods="110"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -486,7 +486,7 @@
486
486
  <line num="34" count="1" type="stmt"/>
487
487
  </file>
488
488
  <file name="datasource.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/datasource.js">
489
- <metrics statements="95" coveredstatements="47" conditionals="28" coveredconditionals="7" methods="14" coveredmethods="8"/>
489
+ <metrics statements="107" coveredstatements="47" conditionals="36" coveredconditionals="7" methods="16" coveredmethods="8"/>
490
490
  <line num="1" count="33" type="stmt"/>
491
491
  <line num="9" count="33" type="stmt"/>
492
492
  <line num="10" count="33" type="stmt"/>
@@ -562,26 +562,38 @@
562
562
  <line num="148" count="1" type="stmt"/>
563
563
  <line num="149" count="1" type="stmt"/>
564
564
  <line num="151" count="0" type="stmt"/>
565
- <line num="155" count="33" type="stmt"/>
566
565
  <line num="156" count="0" type="stmt"/>
567
- <line num="159" count="0" type="stmt"/>
568
- <line num="160" count="0" type="stmt"/>
569
- <line num="161" count="0" type="stmt"/>
570
- <line num="164" count="0" type="stmt"/>
566
+ <line num="157" count="0" type="stmt"/>
567
+ <line num="158" count="0" type="stmt"/>
568
+ <line num="162" count="0" type="cond" truecount="0" falsecount="2"/>
569
+ <line num="163" count="0" type="stmt"/>
571
570
  <line num="165" count="0" type="cond" truecount="0" falsecount="2"/>
572
571
  <line num="166" count="0" type="stmt"/>
573
572
  <line num="168" count="0" type="stmt"/>
574
573
  <line num="169" count="0" type="stmt"/>
575
- <line num="171" count="0" type="cond" truecount="0" falsecount="2"/>
576
- <line num="172" count="0" type="stmt"/>
574
+ <line num="172" count="33" type="stmt"/>
575
+ <line num="173" count="0" type="stmt"/>
577
576
  <line num="176" count="0" type="stmt"/>
578
577
  <line num="177" count="0" type="stmt"/>
579
- <line num="178" count="0" type="cond" truecount="0" falsecount="4"/>
580
- <line num="179" count="0" type="stmt"/>
581
- <line num="180" count="0" type="stmt"/>
578
+ <line num="178" count="0" type="stmt"/>
582
579
  <line num="181" count="0" type="stmt"/>
583
- <line num="182" count="0" type="stmt"/>
580
+ <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
581
+ <line num="183" count="0" type="stmt"/>
582
+ <line num="185" count="0" type="stmt"/>
584
583
  <line num="186" count="0" type="stmt"/>
584
+ <line num="188" count="0" type="cond" truecount="0" falsecount="2"/>
585
+ <line num="189" count="0" type="stmt"/>
586
+ <line num="193" count="0" type="stmt"/>
587
+ <line num="194" count="0" type="stmt"/>
588
+ <line num="195" count="0" type="cond" truecount="0" falsecount="4"/>
589
+ <line num="196" count="0" type="stmt"/>
590
+ <line num="197" count="0" type="stmt"/>
591
+ <line num="198" count="0" type="cond" truecount="0" falsecount="2"/>
592
+ <line num="199" count="0" type="stmt"/>
593
+ <line num="205" count="0" type="cond" truecount="0" falsecount="2"/>
594
+ <line num="206" count="0" type="stmt"/>
595
+ <line num="207" count="0" type="stmt"/>
596
+ <line num="214" count="0" type="stmt"/>
585
597
  </file>
586
598
  <file name="dev.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/dev.js">
587
599
  <metrics statements="63" coveredstatements="18" conditionals="15" coveredconditionals="0" methods="10" coveredmethods="3"/>
@@ -1814,9 +1826,9 @@
1814
1826
  </file>
1815
1827
  </package>
1816
1828
  <package name="api.controllers.table">
1817
- <metrics statements="421" coveredstatements="220" conditionals="219" coveredconditionals="84" methods="56" coveredmethods="27"/>
1829
+ <metrics statements="425" coveredstatements="220" conditionals="225" coveredconditionals="84" methods="56" coveredmethods="27"/>
1818
1830
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/external.js">
1819
- <metrics statements="133" coveredstatements="11" conditionals="70" coveredconditionals="0" methods="14" coveredmethods="0"/>
1831
+ <metrics statements="137" coveredstatements="11" conditionals="76" coveredconditionals="0" methods="14" coveredmethods="0"/>
1820
1832
  <line num="1" count="34" type="stmt"/>
1821
1833
  <line num="5" count="34" type="stmt"/>
1822
1834
  <line num="12" count="34" type="stmt"/>
@@ -1881,75 +1893,79 @@
1881
1893
  <line num="163" count="0" type="stmt"/>
1882
1894
  <line num="165" count="0" type="stmt"/>
1883
1895
  <line num="166" count="0" type="stmt"/>
1884
- <line num="167" count="0" type="stmt"/>
1885
- <line num="174" count="0" type="cond" truecount="0" falsecount="4"/>
1886
- <line num="175" count="0" type="stmt"/>
1887
- <line num="178" count="0" type="cond" truecount="0" falsecount="2"/>
1896
+ <line num="168" count="0" type="cond" truecount="0" falsecount="2"/>
1897
+ <line num="169" count="0" type="stmt"/>
1898
+ <line num="171" count="0" type="stmt"/>
1899
+ <line num="178" count="0" type="cond" truecount="0" falsecount="4"/>
1888
1900
  <line num="179" count="0" type="stmt"/>
1889
- <line num="182" count="0" type="stmt"/>
1901
+ <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
1890
1902
  <line num="183" count="0" type="stmt"/>
1891
- <line num="184" count="0" type="stmt"/>
1892
- <line num="185" count="0" type="stmt"/>
1903
+ <line num="186" count="0" type="stmt"/>
1893
1904
  <line num="187" count="0" type="stmt"/>
1894
- <line num="190" count="0" type="stmt"/>
1895
- <line num="191" count="0" type="cond" truecount="0" falsecount="4"/>
1896
- <line num="192" count="0" type="stmt"/>
1905
+ <line num="188" count="0" type="stmt"/>
1906
+ <line num="189" count="0" type="stmt"/>
1907
+ <line num="191" count="0" type="stmt"/>
1897
1908
  <line num="194" count="0" type="stmt"/>
1898
- <line num="195" count="0" type="stmt"/>
1899
- <line num="197" count="0" type="stmt"/>
1909
+ <line num="195" count="0" type="cond" truecount="0" falsecount="4"/>
1910
+ <line num="196" count="0" type="stmt"/>
1900
1911
  <line num="198" count="0" type="stmt"/>
1901
- <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
1902
- <line num="200" count="0" type="stmt"/>
1903
- <line num="206" count="0" type="cond" truecount="0" falsecount="2"/>
1904
- <line num="207" count="0" type="stmt"/>
1905
- <line num="209" count="0" type="stmt"/>
1906
- <line num="210" count="0" type="stmt"/>
1907
- <line num="213" count="0" type="cond" truecount="0" falsecount="2"/>
1912
+ <line num="199" count="0" type="stmt"/>
1913
+ <line num="201" count="0" type="stmt"/>
1914
+ <line num="202" count="0" type="stmt"/>
1915
+ <line num="203" count="0" type="cond" truecount="0" falsecount="2"/>
1916
+ <line num="204" count="0" type="stmt"/>
1917
+ <line num="210" count="0" type="cond" truecount="0" falsecount="2"/>
1918
+ <line num="211" count="0" type="stmt"/>
1919
+ <line num="213" count="0" type="stmt"/>
1908
1920
  <line num="214" count="0" type="stmt"/>
1909
- <line num="220" count="0" type="stmt"/>
1910
- <line num="221" count="0" type="cond" truecount="0" falsecount="2"/>
1911
- <line num="222" count="0" type="stmt"/>
1912
- <line num="224" count="0" type="cond" truecount="0" falsecount="2"/>
1913
- <line num="225" count="0" type="stmt"/>
1921
+ <line num="217" count="0" type="cond" truecount="0" falsecount="2"/>
1922
+ <line num="218" count="0" type="stmt"/>
1923
+ <line num="224" count="0" type="stmt"/>
1924
+ <line num="225" count="0" type="cond" truecount="0" falsecount="2"/>
1925
+ <line num="226" count="0" type="stmt"/>
1914
1926
  <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
1915
1927
  <line num="229" count="0" type="stmt"/>
1916
- <line num="232" count="0" type="stmt"/>
1928
+ <line num="232" count="0" type="cond" truecount="0" falsecount="2"/>
1917
1929
  <line num="233" count="0" type="stmt"/>
1918
1930
  <line num="236" count="0" type="stmt"/>
1919
- <line num="238" count="0" type="cond" truecount="0" falsecount="2"/>
1920
- <line num="241" count="0" type="stmt"/>
1921
- <line num="243" count="0" type="stmt"/>
1922
- <line num="244" count="0" type="stmt"/>
1923
- <line num="245" count="0" type="cond" truecount="0" falsecount="2"/>
1931
+ <line num="237" count="0" type="stmt"/>
1932
+ <line num="240" count="0" type="stmt"/>
1933
+ <line num="242" count="0" type="cond" truecount="0" falsecount="2"/>
1934
+ <line num="245" count="0" type="stmt"/>
1935
+ <line num="247" count="0" type="stmt"/>
1924
1936
  <line num="248" count="0" type="stmt"/>
1925
- <line num="252" count="0" type="cond" truecount="0" falsecount="2"/>
1926
- <line num="253" count="0" type="stmt"/>
1927
- <line num="254" count="0" type="stmt"/>
1928
- <line num="259" count="0" type="stmt"/>
1929
- <line num="260" count="0" type="stmt"/>
1930
- <line num="262" count="0" type="stmt"/>
1931
- <line num="265" count="34" type="stmt"/>
1937
+ <line num="249" count="0" type="cond" truecount="0" falsecount="2"/>
1938
+ <line num="252" count="0" type="stmt"/>
1939
+ <line num="256" count="0" type="cond" truecount="0" falsecount="2"/>
1940
+ <line num="257" count="0" type="stmt"/>
1941
+ <line num="258" count="0" type="stmt"/>
1942
+ <line num="263" count="0" type="stmt"/>
1943
+ <line num="264" count="0" type="stmt"/>
1932
1944
  <line num="266" count="0" type="stmt"/>
1933
- <line num="267" count="0" type="stmt"/>
1934
- <line num="268" count="0" type="stmt"/>
1945
+ <line num="269" count="34" type="stmt"/>
1935
1946
  <line num="270" count="0" type="stmt"/>
1936
1947
  <line num="271" count="0" type="stmt"/>
1937
- <line num="272" count="0" type="stmt"/>
1938
- <line num="274" count="0" type="stmt"/>
1948
+ <line num="272" count="0" type="cond" truecount="0" falsecount="4"/>
1949
+ <line num="273" count="0" type="stmt"/>
1939
1950
  <line num="275" count="0" type="stmt"/>
1940
1951
  <line num="277" count="0" type="stmt"/>
1952
+ <line num="278" count="0" type="stmt"/>
1941
1953
  <line num="279" count="0" type="stmt"/>
1942
- <line num="280" count="0" type="stmt"/>
1954
+ <line num="281" count="0" type="stmt"/>
1943
1955
  <line num="282" count="0" type="stmt"/>
1944
- <line num="285" count="34" type="stmt"/>
1956
+ <line num="284" count="0" type="stmt"/>
1945
1957
  <line num="286" count="0" type="stmt"/>
1946
1958
  <line num="287" count="0" type="stmt"/>
1947
- <line num="288" count="0" type="stmt"/>
1948
- <line num="289" count="0" type="cond" truecount="0" falsecount="5"/>
1949
- <line num="290" count="0" type="stmt"/>
1950
- <line num="292" count="0" type="stmt"/>
1951
- <line num="296" count="0" type="stmt"/>
1959
+ <line num="289" count="0" type="stmt"/>
1960
+ <line num="292" count="34" type="stmt"/>
1961
+ <line num="293" count="0" type="stmt"/>
1962
+ <line num="294" count="0" type="stmt"/>
1963
+ <line num="295" count="0" type="stmt"/>
1964
+ <line num="296" count="0" type="cond" truecount="0" falsecount="5"/>
1965
+ <line num="297" count="0" type="stmt"/>
1952
1966
  <line num="299" count="0" type="stmt"/>
1967
+ <line num="303" count="0" type="stmt"/>
1968
+ <line num="306" count="0" type="stmt"/>
1953
1969
  </file>
1954
1970
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/index.js">
1955
1971
  <metrics statements="53" coveredstatements="44" conditionals="23" coveredconditionals="17" methods="10" coveredmethods="7"/>
@@ -3350,9 +3366,9 @@
3350
3366
  </file>
3351
3367
  </package>
3352
3368
  <package name="constants">
3353
- <metrics statements="27" coveredstatements="27" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3369
+ <metrics statements="28" coveredstatements="28" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3354
3370
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3355
- <metrics statements="20" coveredstatements="20" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3371
+ <metrics statements="21" coveredstatements="21" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3356
3372
  <line num="1" count="40" type="stmt"/>
3357
3373
  <line num="2" count="40" type="stmt"/>
3358
3374
  <line num="3" count="40" type="stmt"/>
@@ -3372,7 +3388,8 @@
3372
3388
  <line num="154" count="40" type="stmt"/>
3373
3389
  <line num="161" count="40" type="stmt"/>
3374
3390
  <line num="166" count="40" type="stmt"/>
3375
- <line num="171" count="40" type="stmt"/>
3391
+ <line num="172" count="40" type="stmt"/>
3392
+ <line num="178" count="40" type="stmt"/>
3376
3393
  </file>
3377
3394
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3378
3395
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
@@ -4175,10 +4192,9 @@
4175
4192
  </file>
4176
4193
  </package>
4177
4194
  <package name="threads">
4178
- <metrics statements="129" coveredstatements="103" conditionals="49" coveredconditionals="27" methods="22" coveredmethods="20"/>
4195
+ <metrics statements="134" coveredstatements="108" conditionals="53" coveredconditionals="30" methods="22" coveredmethods="20"/>
4179
4196
  <file name="automation.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/automation.js">
4180
- <metrics statements="75" coveredstatements="63" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4181
- <line num="1" count="4" type="stmt"/>
4197
+ <metrics statements="76" coveredstatements="64" conditionals="23" coveredconditionals="13" methods="10" coveredmethods="9"/>
4182
4198
  <line num="2" count="4" type="stmt"/>
4183
4199
  <line num="3" count="4" type="stmt"/>
4184
4200
  <line num="4" count="4" type="stmt"/>
@@ -4189,73 +4205,75 @@
4189
4205
  <line num="9" count="4" type="stmt"/>
4190
4206
  <line num="10" count="4" type="stmt"/>
4191
4207
  <line num="11" count="4" type="stmt"/>
4208
+ <line num="12" count="4" type="stmt"/>
4192
4209
  <line num="13" count="4" type="stmt"/>
4193
- <line num="14" count="4" type="stmt"/>
4194
4210
  <line num="15" count="4" type="stmt"/>
4195
- <line num="24" count="7" type="stmt"/>
4196
- <line num="25" count="7" type="cond" truecount="2" falsecount="0"/>
4211
+ <line num="16" count="4" type="stmt"/>
4212
+ <line num="17" count="4" type="stmt"/>
4197
4213
  <line num="26" count="7" type="stmt"/>
4198
- <line num="27" count="7" type="stmt"/>
4214
+ <line num="27" count="7" type="cond" truecount="2" falsecount="0"/>
4199
4215
  <line num="28" count="7" type="stmt"/>
4200
4216
  <line num="29" count="7" type="stmt"/>
4217
+ <line num="30" count="7" type="stmt"/>
4201
4218
  <line num="31" count="7" type="stmt"/>
4202
- <line num="32" count="7" type="stmt"/>
4219
+ <line num="33" count="7" type="stmt"/>
4203
4220
  <line num="34" count="7" type="stmt"/>
4204
- <line num="35" count="7" type="stmt"/>
4205
- <line num="38" count="7" type="stmt"/>
4206
- <line num="39" count="7" type="stmt"/>
4221
+ <line num="36" count="7" type="stmt"/>
4222
+ <line num="37" count="7" type="stmt"/>
4223
+ <line num="40" count="7" type="stmt"/>
4207
4224
  <line num="41" count="7" type="stmt"/>
4208
- <line num="42" count="7" type="stmt"/>
4209
- <line num="46" count="7" type="cond" truecount="1" falsecount="1"/>
4210
- <line num="47" count="0" type="stmt"/>
4211
- <line num="49" count="7" type="stmt"/>
4212
- <line num="53" count="5" type="stmt"/>
4213
- <line num="54" count="5" type="cond" truecount="1" falsecount="1"/>
4214
- <line num="55" count="0" type="stmt"/>
4215
- <line num="57" count="5" type="stmt"/>
4216
- <line num="61" count="7" type="stmt"/>
4217
- <line num="62" count="7" type="cond" truecount="1" falsecount="1"/>
4218
- <line num="63" count="0" type="stmt"/>
4219
- <line num="65" count="7" type="stmt"/>
4220
- <line num="66" count="7" type="stmt"/>
4221
- <line num="67" count="6" type="stmt"/>
4222
- <line num="71" count="12" type="stmt"/>
4223
- <line num="73" count="12" type="cond" truecount="2" falsecount="0"/>
4224
- <line num="74" count="7" type="stmt"/>
4225
- <line num="76" count="12" type="stmt"/>
4226
- <line num="80" count="7" type="stmt"/>
4227
- <line num="81" count="7" type="stmt"/>
4228
- <line num="82" count="6" type="stmt"/>
4229
- <line num="83" count="6" type="stmt"/>
4230
- <line num="85" count="5" type="cond" truecount="1" falsecount="1"/>
4231
- <line num="86" count="0" type="stmt"/>
4232
- <line num="87" count="0" type="stmt"/>
4233
- <line num="89" count="5" type="stmt"/>
4234
- <line num="90" count="5" type="stmt"/>
4225
+ <line num="43" count="7" type="stmt"/>
4226
+ <line num="44" count="7" type="stmt"/>
4227
+ <line num="48" count="7" type="cond" truecount="1" falsecount="1"/>
4228
+ <line num="49" count="0" type="stmt"/>
4229
+ <line num="51" count="7" type="stmt"/>
4230
+ <line num="55" count="5" type="stmt"/>
4231
+ <line num="56" count="5" type="cond" truecount="1" falsecount="1"/>
4232
+ <line num="57" count="0" type="stmt"/>
4233
+ <line num="59" count="5" type="stmt"/>
4234
+ <line num="63" count="7" type="stmt"/>
4235
+ <line num="64" count="7" type="cond" truecount="1" falsecount="1"/>
4236
+ <line num="65" count="0" type="stmt"/>
4237
+ <line num="67" count="7" type="stmt"/>
4238
+ <line num="68" count="7" type="stmt"/>
4239
+ <line num="69" count="6" type="stmt"/>
4240
+ <line num="73" count="12" type="stmt"/>
4241
+ <line num="75" count="12" type="cond" truecount="2" falsecount="0"/>
4242
+ <line num="76" count="7" type="stmt"/>
4243
+ <line num="78" count="12" type="stmt"/>
4244
+ <line num="82" count="7" type="stmt"/>
4245
+ <line num="83" count="7" type="stmt"/>
4246
+ <line num="84" count="6" type="stmt"/>
4247
+ <line num="85" count="6" type="stmt"/>
4248
+ <line num="87" count="5" type="cond" truecount="1" falsecount="1"/>
4249
+ <line num="88" count="0" type="stmt"/>
4250
+ <line num="89" count="0" type="stmt"/>
4235
4251
  <line num="91" count="5" type="stmt"/>
4236
- <line num="96" count="5" type="stmt"/>
4237
- <line num="97" count="5" type="cond" truecount="1" falsecount="1"/>
4252
+ <line num="92" count="5" type="stmt"/>
4253
+ <line num="93" count="5" type="stmt"/>
4238
4254
  <line num="98" count="5" type="stmt"/>
4239
- <line num="99" count="5" type="stmt"/>
4240
- <line num="106" count="5" type="stmt"/>
4241
- <line num="109" count="5" type="cond" truecount="2" falsecount="2"/>
4242
- <line num="110" count="0" type="stmt"/>
4243
- <line num="111" count="0" type="stmt"/>
4244
- <line num="115" count="0" type="stmt"/>
4245
- <line num="117" count="5" type="stmt"/>
4246
- <line num="119" count="0" type="stmt"/>
4247
- <line num="120" count="0" type="stmt"/>
4248
- <line num="125" count="6" type="cond" truecount="2" falsecount="2"/>
4249
- <line num="126" count="0" type="stmt"/>
4250
- <line num="128" count="6" type="stmt"/>
4251
- <line num="132" count="4" type="stmt"/>
4252
- <line num="133" count="7" type="stmt"/>
4253
- <line num="137" count="7" type="stmt"/>
4254
- <line num="140" count="6" type="stmt"/>
4255
- <line num="143" count="0" type="stmt"/>
4255
+ <line num="99" count="5" type="cond" truecount="1" falsecount="1"/>
4256
+ <line num="100" count="5" type="stmt"/>
4257
+ <line num="101" count="5" type="stmt"/>
4258
+ <line num="108" count="5" type="stmt"/>
4259
+ <line num="111" count="5" type="cond" truecount="2" falsecount="2"/>
4260
+ <line num="112" count="0" type="stmt"/>
4261
+ <line num="113" count="0" type="stmt"/>
4262
+ <line num="117" count="0" type="stmt"/>
4263
+ <line num="119" count="5" type="stmt"/>
4264
+ <line num="121" count="0" type="stmt"/>
4265
+ <line num="122" count="0" type="stmt"/>
4266
+ <line num="127" count="6" type="cond" truecount="2" falsecount="2"/>
4267
+ <line num="128" count="0" type="stmt"/>
4268
+ <line num="130" count="6" type="stmt"/>
4269
+ <line num="134" count="4" type="stmt"/>
4270
+ <line num="135" count="7" type="stmt"/>
4271
+ <line num="139" count="7" type="stmt"/>
4272
+ <line num="142" count="6" type="stmt"/>
4273
+ <line num="145" count="0" type="stmt"/>
4256
4274
  </file>
4257
4275
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/index.js">
4258
- <metrics statements="27" coveredstatements="21" conditionals="14" coveredconditionals="7" methods="5" coveredmethods="5"/>
4276
+ <metrics statements="29" coveredstatements="23" conditionals="18" coveredconditionals="10" methods="5" coveredmethods="5"/>
4259
4277
  <line num="1" count="34" type="stmt"/>
4260
4278
  <line num="2" count="34" type="stmt"/>
4261
4279
  <line num="4" count="34" type="stmt"/>
@@ -4268,51 +4286,55 @@
4268
4286
  <line num="19" count="0" type="stmt"/>
4269
4287
  <line num="21" count="14" type="stmt"/>
4270
4288
  <line num="26" count="67" type="stmt"/>
4271
- <line num="27" count="67" type="cond" truecount="1" falsecount="1"/>
4272
- <line num="28" count="0" type="stmt"/>
4273
- <line num="32" count="0" type="cond" truecount="0" falsecount="2"/>
4274
- <line num="33" count="0" type="stmt"/>
4275
- <line num="35" count="0" type="stmt"/>
4276
- <line num="40" count="14" type="stmt"/>
4277
- <line num="43" count="14" type="cond" truecount="1" falsecount="1"/>
4278
- <line num="44" count="14" type="stmt"/>
4279
- <line num="46" count="0" type="stmt"/>
4280
- <line num="48" count="14" type="stmt"/>
4281
- <line num="49" count="10" type="cond" truecount="2" falsecount="0"/>
4282
- <line num="50" count="2" type="stmt"/>
4283
- <line num="52" count="8" type="stmt"/>
4284
- <line num="59" count="34" type="stmt"/>
4285
- <line num="60" count="34" type="stmt"/>
4289
+ <line num="27" count="67" type="cond" truecount="2" falsecount="0"/>
4290
+ <line num="28" count="67" type="stmt"/>
4291
+ <line num="33" count="67" type="cond" truecount="1" falsecount="1"/>
4292
+ <line num="34" count="0" type="stmt"/>
4293
+ <line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
4294
+ <line num="39" count="0" type="stmt"/>
4295
+ <line num="41" count="0" type="stmt"/>
4296
+ <line num="46" count="14" type="stmt"/>
4297
+ <line num="49" count="14" type="cond" truecount="1" falsecount="1"/>
4298
+ <line num="50" count="14" type="stmt"/>
4299
+ <line num="52" count="0" type="stmt"/>
4300
+ <line num="54" count="14" type="stmt"/>
4301
+ <line num="55" count="10" type="cond" truecount="2" falsecount="0"/>
4302
+ <line num="56" count="2" type="stmt"/>
4303
+ <line num="58" count="8" type="stmt"/>
4304
+ <line num="65" count="34" type="stmt"/>
4305
+ <line num="66" count="34" type="stmt"/>
4286
4306
  </file>
4287
4307
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/threads/query.js">
4288
- <metrics statements="27" coveredstatements="19" conditionals="12" coveredconditionals="7" methods="7" coveredmethods="6"/>
4289
- <line num="1" count="1" type="stmt"/>
4308
+ <metrics statements="29" coveredstatements="21" conditionals="12" coveredconditionals="7" methods="7" coveredmethods="6"/>
4290
4309
  <line num="2" count="1" type="stmt"/>
4291
- <line num="5" count="2" type="cond" truecount="1" falsecount="1"/>
4292
- <line num="6" count="0" type="stmt"/>
4293
- <line num="7" count="0" type="stmt"/>
4310
+ <line num="3" count="1" type="stmt"/>
4311
+ <line num="4" count="1" type="stmt"/>
4312
+ <line num="5" count="1" type="stmt"/>
4313
+ <line num="8" count="2" type="cond" truecount="1" falsecount="1"/>
4294
4314
  <line num="9" count="0" type="stmt"/>
4295
- <line num="12" count="2" type="stmt"/>
4296
- <line num="16" count="4" type="stmt"/>
4297
- <line num="17" count="4" type="cond" truecount="2" falsecount="0"/>
4298
- <line num="18" count="2" type="stmt"/>
4299
- <line num="20" count="2" type="stmt"/>
4300
- <line num="22" count="2" type="stmt"/>
4301
- <line num="25" count="2" type="cond" truecount="1" falsecount="1"/>
4302
- <line num="26" count="0" type="stmt"/>
4303
- <line num="27" count="0" type="stmt"/>
4304
- <line num="31" count="2" type="cond" truecount="1" falsecount="1"/>
4305
- <line num="32" count="0" type="stmt"/>
4306
- <line num="36" count="2" type="cond" truecount="1" falsecount="1"/>
4307
- <line num="37" count="0" type="stmt"/>
4308
- <line num="41" count="2" type="stmt"/>
4309
- <line num="43" count="2" type="cond" truecount="1" falsecount="1"/>
4310
- <line num="44" count="0" type="stmt"/>
4311
- <line num="47" count="2" type="stmt"/>
4312
- <line num="50" count="1" type="stmt"/>
4313
- <line num="51" count="4" type="stmt"/>
4314
- <line num="58" count="2" type="stmt"/>
4315
+ <line num="10" count="0" type="stmt"/>
4316
+ <line num="12" count="0" type="stmt"/>
4317
+ <line num="15" count="2" type="stmt"/>
4318
+ <line num="19" count="4" type="stmt"/>
4319
+ <line num="20" count="4" type="cond" truecount="2" falsecount="0"/>
4320
+ <line num="21" count="2" type="stmt"/>
4321
+ <line num="23" count="2" type="stmt"/>
4322
+ <line num="25" count="2" type="stmt"/>
4323
+ <line num="28" count="2" type="cond" truecount="1" falsecount="1"/>
4324
+ <line num="29" count="0" type="stmt"/>
4325
+ <line num="30" count="0" type="stmt"/>
4326
+ <line num="34" count="2" type="cond" truecount="1" falsecount="1"/>
4327
+ <line num="35" count="0" type="stmt"/>
4328
+ <line num="39" count="2" type="cond" truecount="1" falsecount="1"/>
4329
+ <line num="40" count="0" type="stmt"/>
4330
+ <line num="44" count="2" type="stmt"/>
4331
+ <line num="46" count="2" type="cond" truecount="1" falsecount="1"/>
4332
+ <line num="47" count="0" type="stmt"/>
4333
+ <line num="50" count="2" type="stmt"/>
4334
+ <line num="53" count="1" type="stmt"/>
4335
+ <line num="54" count="4" type="stmt"/>
4315
4336
  <line num="61" count="2" type="stmt"/>
4337
+ <line num="64" count="2" type="stmt"/>
4316
4338
  </file>
4317
4339
  </package>
4318
4340
  <package name="utilities">