@budibase/server 0.9.167-alpha.4 → 0.9.167-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 (178) hide show
  1. package/builder/assets/{index.60f832ce.js → index.553837db.js} +34 -34
  2. package/builder/assets/{index.18ad7651.css → index.c4a1fb7f.css} +1 -1
  3. package/builder/assets/{vendor.60887453.js → vendor.278a305c.js} +1 -1
  4. package/builder/index.html +3 -3
  5. package/coverage/clover.xml +273 -245
  6. package/coverage/coverage-final.json +9 -8
  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 +1 -1
  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 +26 -26
  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 +129 -24
  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 +12 -57
  34. package/coverage/lcov-report/api/controllers/table/index.html +10 -10
  35. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/utils.js.html +8 -38
  37. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  45. package/coverage/lcov-report/api/index.html +1 -1
  46. package/coverage/lcov-report/api/index.js.html +1 -1
  47. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  48. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/hosting.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/index.html +1 -1
  60. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  61. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/query.js.html +9 -3
  66. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  77. package/coverage/lcov-report/automations/actions.js.html +31 -10
  78. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  79. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  80. package/coverage/lcov-report/automations/index.html +19 -19
  81. package/coverage/lcov-report/automations/index.js.html +1 -1
  82. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/index.html +1 -1
  91. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  92. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  100. package/coverage/lcov-report/automations/thread.js.html +54 -12
  101. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  110. package/coverage/lcov-report/automations/utils.js.html +1 -1
  111. package/coverage/lcov-report/constants/index.html +1 -1
  112. package/coverage/lcov-report/constants/index.js.html +1 -1
  113. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  114. package/coverage/lcov-report/constants/screens.js.html +1 -1
  115. package/coverage/lcov-report/db/client.js.html +1 -1
  116. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  117. package/coverage/lcov-report/db/index.html +1 -1
  118. package/coverage/lcov-report/db/index.js.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +12 -12
  120. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/index.js.html +9 -9
  122. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  123. package/coverage/lcov-report/db/newid.js.html +1 -1
  124. package/coverage/lcov-report/db/utils.js.html +1 -1
  125. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  126. package/coverage/lcov-report/events/index.html +1 -1
  127. package/coverage/lcov-report/events/index.js.html +1 -1
  128. package/coverage/lcov-report/events/utils.js.html +1 -1
  129. package/coverage/lcov-report/index.html +37 -37
  130. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  131. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  132. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  133. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  134. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  135. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  136. package/coverage/lcov-report/middleware/index.html +1 -1
  137. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  138. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  139. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  140. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  141. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  142. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  143. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  144. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  145. package/coverage/lcov-report/utilities/global.js.html +1 -1
  146. package/coverage/lcov-report/utilities/index.html +22 -7
  147. package/coverage/lcov-report/utilities/index.js.html +1 -1
  148. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  149. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  150. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  151. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  152. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  153. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  154. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  155. package/coverage/lcov-report/utilities/scriptRunner.js.html +143 -0
  156. package/coverage/lcov-report/utilities/security.js.html +1 -1
  157. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  158. package/coverage/lcov-report/utilities/users.js.html +1 -1
  159. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  160. package/coverage/lcov.info +450 -402
  161. package/dist/api/controllers/query.js +26 -8
  162. package/dist/api/controllers/script.js +4 -16
  163. package/dist/api/controllers/table/utils.js +2 -10
  164. package/dist/api/routes/query.js +3 -1
  165. package/dist/automations/actions.js +9 -3
  166. package/dist/automations/thread.js +14 -3
  167. package/dist/package.json +5 -4
  168. package/dist/tsconfig.tsbuildinfo +1 -1
  169. package/dist/utilities/scriptRunner.js +19 -0
  170. package/package.json +6 -5
  171. package/src/api/controllers/query.js +46 -11
  172. package/src/api/controllers/script.js +4 -19
  173. package/src/api/controllers/table/utils.js +2 -12
  174. package/src/api/routes/query.js +3 -1
  175. package/src/automations/actions.js +10 -3
  176. package/src/automations/thread.js +17 -3
  177. package/src/integrations/tests/mongo.spec.js +10 -6
  178. package/src/utilities/scriptRunner.js +21 -0
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1634229596092" clover="3.2.0">
3
- <project timestamp="1634229596092" name="All files">
4
- <metrics statements="3828" coveredstatements="3013" conditionals="1450" coveredconditionals="861" methods="549" coveredmethods="411" elements="5827" coveredelements="4285" complexity="0" loc="3828" ncloc="3828" packages="19" files="132" classes="132"/>
2
+ <coverage generated="1634309738491" clover="3.2.0">
3
+ <project timestamp="1634309738491" name="All files">
4
+ <metrics statements="3853" coveredstatements="3027" conditionals="1458" coveredconditionals="865" methods="552" coveredmethods="413" elements="5863" coveredelements="4305" complexity="0" loc="3853" ncloc="3853" packages="19" files="133" classes="133"/>
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="992" coveredstatements="782" conditionals="307" coveredconditionals="171" methods="143" coveredmethods="111"/>
41
+ <metrics statements="995" coveredstatements="787" conditionals="311" coveredconditionals="173" methods="144" coveredmethods="113"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="12" coveredstatements="6" conditionals="11" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -750,94 +750,103 @@
750
750
  <line num="169" count="1" type="stmt"/>
751
751
  </file>
752
752
  <file name="query.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query.js">
753
- <metrics statements="87" coveredstatements="69" conditionals="37" coveredconditionals="20" methods="10" coveredmethods="10"/>
753
+ <metrics statements="96" coveredstatements="75" conditionals="41" coveredconditionals="22" methods="13" coveredmethods="12"/>
754
754
  <line num="1" count="34" type="stmt"/>
755
755
  <line num="2" count="34" type="stmt"/>
756
756
  <line num="3" count="34" type="stmt"/>
757
757
  <line num="4" count="34" type="stmt"/>
758
758
  <line num="5" count="34" type="stmt"/>
759
759
  <line num="6" count="34" type="stmt"/>
760
- <line num="10" count="4" type="stmt"/>
761
- <line num="11" count="4" type="cond" truecount="2" falsecount="0"/>
762
- <line num="12" count="4" type="stmt"/>
763
- <line num="13" count="3" type="cond" truecount="1" falsecount="1"/>
764
- <line num="14" count="3" type="stmt"/>
765
- <line num="17" count="4" type="cond" truecount="2" falsecount="0"/>
766
- <line num="21" count="2" type="cond" truecount="1" falsecount="1"/>
767
- <line num="22" count="0" type="stmt"/>
760
+ <line num="7" count="34" type="stmt"/>
761
+ <line num="11" count="4" type="stmt"/>
762
+ <line num="12" count="4" type="cond" truecount="2" falsecount="0"/>
763
+ <line num="13" count="4" type="stmt"/>
764
+ <line num="14" count="3" type="cond" truecount="1" falsecount="1"/>
765
+ <line num="15" count="3" type="stmt"/>
766
+ <line num="18" count="4" type="cond" truecount="2" falsecount="0"/>
767
+ <line num="22" count="2" type="cond" truecount="1" falsecount="1"/>
768
768
  <line num="23" count="0" type="stmt"/>
769
- <line num="25" count="0" type="stmt"/>
770
- <line num="28" count="0" type="stmt"/>
771
- <line num="31" count="2" type="cond" truecount="1" falsecount="1"/>
772
- <line num="32" count="0" type="stmt"/>
773
- <line num="34" count="2" type="stmt"/>
774
- <line num="37" count="34" type="stmt"/>
775
- <line num="38" count="2" type="stmt"/>
776
- <line num="40" count="2" type="stmt"/>
777
- <line num="45" count="2" type="stmt"/>
778
- <line num="48" count="34" type="stmt"/>
779
- <line num="49" count="18" type="stmt"/>
780
- <line num="50" count="18" type="stmt"/>
781
- <line num="52" count="18" type="cond" truecount="1" falsecount="1"/>
782
- <line num="53" count="18" type="stmt"/>
783
- <line num="56" count="18" type="stmt"/>
784
- <line num="57" count="18" type="stmt"/>
785
- <line num="59" count="18" type="stmt"/>
786
- <line num="60" count="18" type="stmt"/>
787
- <line num="64" count="2" type="stmt"/>
788
- <line num="67" count="2" type="stmt"/>
789
- <line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
790
- <line num="69" count="0" type="stmt"/>
791
- <line num="71" count="0" type="cond" truecount="0" falsecount="2"/>
792
- <line num="73" count="0" type="stmt"/>
793
- <line num="74" count="0" type="cond" truecount="0" falsecount="2"/>
794
- <line num="76" count="0" type="stmt"/>
795
- <line num="78" count="0" type="stmt"/>
796
- <line num="82" count="2" type="cond" truecount="1" falsecount="1"/>
797
- <line num="87" count="0" type="stmt"/>
798
- <line num="88" count="0" type="stmt"/>
799
- <line num="94" count="0" type="stmt"/>
800
- <line num="96" count="0" type="stmt"/>
801
- <line num="99" count="2" type="stmt"/>
802
- <line num="102" count="34" type="stmt"/>
803
- <line num="103" count="2" type="stmt"/>
804
- <line num="104" count="2" type="stmt"/>
805
- <line num="106" count="2" type="cond" truecount="2" falsecount="0"/>
806
- <line num="107" count="1" type="stmt"/>
807
- <line num="108" count="1" type="stmt"/>
808
- <line num="109" count="1" type="stmt"/>
809
- <line num="111" count="2" type="stmt"/>
810
- <line num="114" count="34" type="stmt"/>
811
- <line num="115" count="2" type="stmt"/>
812
- <line num="117" count="2" type="stmt"/>
813
- <line num="119" count="2" type="stmt"/>
814
- <line num="121" count="2" type="cond" truecount="2" falsecount="0"/>
815
- <line num="122" count="1" type="stmt"/>
816
- <line num="125" count="1" type="stmt"/>
817
- <line num="127" count="1" type="stmt"/>
818
- <line num="129" count="1" type="stmt"/>
819
- <line num="130" count="1" type="stmt"/>
820
- <line num="133" count="1" type="stmt"/>
769
+ <line num="24" count="0" type="stmt"/>
770
+ <line num="26" count="0" type="stmt"/>
771
+ <line num="29" count="0" type="stmt"/>
772
+ <line num="32" count="2" type="stmt"/>
773
+ <line num="41" count="2" type="stmt"/>
774
+ <line num="44" count="2" type="cond" truecount="1" falsecount="1"/>
775
+ <line num="45" count="0" type="stmt"/>
776
+ <line num="46" count="0" type="stmt"/>
777
+ <line num="50" count="2" type="cond" truecount="1" falsecount="1"/>
778
+ <line num="51" count="0" type="stmt"/>
779
+ <line num="55" count="2" type="cond" truecount="1" falsecount="1"/>
780
+ <line num="56" count="0" type="stmt"/>
781
+ <line num="60" count="2" type="stmt"/>
782
+ <line num="62" count="2" type="stmt"/>
783
+ <line num="65" count="34" type="stmt"/>
784
+ <line num="66" count="2" type="stmt"/>
785
+ <line num="68" count="2" type="stmt"/>
786
+ <line num="73" count="2" type="stmt"/>
787
+ <line num="76" count="34" type="stmt"/>
788
+ <line num="77" count="18" type="stmt"/>
789
+ <line num="78" count="18" type="stmt"/>
790
+ <line num="80" count="18" type="cond" truecount="1" falsecount="1"/>
791
+ <line num="81" count="18" type="stmt"/>
792
+ <line num="84" count="18" type="stmt"/>
793
+ <line num="85" count="18" type="stmt"/>
794
+ <line num="87" count="18" type="stmt"/>
795
+ <line num="88" count="18" type="stmt"/>
796
+ <line num="92" count="2" type="stmt"/>
797
+ <line num="95" count="2" type="stmt"/>
798
+ <line num="96" count="0" type="cond" truecount="0" falsecount="2"/>
799
+ <line num="97" count="0" type="stmt"/>
800
+ <line num="99" count="0" type="cond" truecount="0" falsecount="2"/>
801
+ <line num="101" count="0" type="stmt"/>
802
+ <line num="102" count="0" type="cond" truecount="0" falsecount="2"/>
803
+ <line num="104" count="0" type="stmt"/>
804
+ <line num="106" count="0" type="stmt"/>
805
+ <line num="110" count="2" type="cond" truecount="1" falsecount="1"/>
806
+ <line num="115" count="0" type="stmt"/>
807
+ <line num="116" count="0" type="stmt"/>
808
+ <line num="122" count="0" type="stmt"/>
809
+ <line num="124" count="0" type="stmt"/>
810
+ <line num="127" count="2" type="stmt"/>
811
+ <line num="130" count="34" type="stmt"/>
812
+ <line num="131" count="2" type="stmt"/>
813
+ <line num="132" count="2" type="stmt"/>
814
+ <line num="134" count="2" type="cond" truecount="2" falsecount="0"/>
821
815
  <line num="135" count="1" type="stmt"/>
822
- <line num="140" count="1" type="cond" truecount="1" falsecount="1"/>
823
- <line num="141" count="0" type="stmt"/>
824
- <line num="145" count="34" type="stmt"/>
825
- <line num="146" count="2" type="stmt"/>
826
- <line num="148" count="2" type="stmt"/>
827
- <line num="149" count="2" type="stmt"/>
828
- <line num="151" count="2" type="stmt"/>
829
- <line num="153" count="2" type="cond" truecount="2" falsecount="0"/>
816
+ <line num="136" count="1" type="stmt"/>
817
+ <line num="137" count="1" type="stmt"/>
818
+ <line num="139" count="2" type="stmt"/>
819
+ <line num="142" count="34" type="stmt"/>
820
+ <line num="143" count="2" type="stmt"/>
821
+ <line num="145" count="2" type="stmt"/>
822
+ <line num="147" count="2" type="stmt"/>
823
+ <line num="149" count="2" type="cond" truecount="2" falsecount="0"/>
824
+ <line num="150" count="1" type="stmt"/>
825
+ <line num="153" count="1" type="stmt"/>
830
826
  <line num="154" count="1" type="stmt"/>
827
+ <line num="155" count="1" type="stmt"/>
831
828
  <line num="157" count="1" type="stmt"/>
832
- <line num="162" count="1" type="stmt"/>
833
829
  <line num="164" count="1" type="stmt"/>
834
- <line num="166" count="1" type="cond" truecount="1" falsecount="1"/>
835
- <line num="167" count="0" type="stmt"/>
836
- <line num="171" count="34" type="stmt"/>
837
- <line num="172" count="1" type="stmt"/>
838
- <line num="173" count="1" type="stmt"/>
839
- <line num="174" count="1" type="stmt"/>
840
- <line num="175" count="1" type="stmt"/>
830
+ <line num="169" count="1" type="cond" truecount="1" falsecount="1"/>
831
+ <line num="170" count="0" type="stmt"/>
832
+ <line num="174" count="34" type="stmt"/>
833
+ <line num="175" count="2" type="stmt"/>
834
+ <line num="177" count="2" type="stmt"/>
835
+ <line num="178" count="2" type="stmt"/>
836
+ <line num="180" count="2" type="stmt"/>
837
+ <line num="182" count="2" type="cond" truecount="2" falsecount="0"/>
838
+ <line num="183" count="1" type="stmt"/>
839
+ <line num="186" count="1" type="stmt"/>
840
+ <line num="190" count="1" type="stmt"/>
841
+ <line num="193" count="1" type="stmt"/>
842
+ <line num="199" count="1" type="stmt"/>
843
+ <line num="201" count="1" type="cond" truecount="1" falsecount="1"/>
844
+ <line num="202" count="0" type="stmt"/>
845
+ <line num="206" count="34" type="stmt"/>
846
+ <line num="207" count="1" type="stmt"/>
847
+ <line num="208" count="1" type="stmt"/>
848
+ <line num="209" count="1" type="stmt"/>
849
+ <line num="210" count="1" type="stmt"/>
841
850
  </file>
842
851
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/role.js">
843
852
  <metrics statements="53" coveredstatements="47" conditionals="22" coveredconditionals="14" methods="7" coveredmethods="5"/>
@@ -974,20 +983,14 @@
974
983
  <line num="47" count="1" type="stmt"/>
975
984
  </file>
976
985
  <file name="script.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/script.js">
977
- <metrics statements="13" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="0"/>
986
+ <metrics statements="7" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
978
987
  <line num="1" count="34" type="stmt"/>
979
- <line num="2" count="34" type="stmt"/>
988
+ <line num="3" count="34" type="stmt"/>
989
+ <line num="4" count="0" type="stmt"/>
990
+ <line num="5" count="0" type="stmt"/>
980
991
  <line num="6" count="0" type="stmt"/>
981
- <line num="7" count="0" type="stmt"/>
982
- <line num="8" count="0" type="stmt"/>
983
- <line num="9" count="0" type="stmt"/>
984
- <line num="13" count="0" type="stmt"/>
985
- <line num="14" count="0" type="stmt"/>
986
- <line num="18" count="34" type="stmt"/>
987
- <line num="19" count="0" type="stmt"/>
988
- <line num="21" count="0" type="stmt"/>
989
- <line num="24" count="34" type="stmt"/>
990
- <line num="25" count="0" type="stmt"/>
992
+ <line num="9" count="34" type="stmt"/>
993
+ <line num="10" count="0" type="stmt"/>
991
994
  </file>
992
995
  <file name="templates.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/templates.js">
993
996
  <metrics statements="15" coveredstatements="12" conditionals="7" coveredconditionals="5" methods="1" coveredmethods="1"/>
@@ -1705,7 +1708,7 @@
1705
1708
  </file>
1706
1709
  </package>
1707
1710
  <package name="api.controllers.table">
1708
- <metrics statements="182" coveredstatements="160" conditionals="90" coveredconditionals="62" methods="27" coveredmethods="21"/>
1711
+ <metrics statements="181" coveredstatements="159" conditionals="90" coveredconditionals="62" methods="27" coveredmethods="21"/>
1709
1712
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/index.js">
1710
1713
  <metrics statements="79" coveredstatements="69" conditionals="39" coveredconditionals="28" methods="10" coveredmethods="7"/>
1711
1714
  <line num="1" count="34" type="stmt"/>
@@ -1789,110 +1792,109 @@
1789
1792
  <line num="202" count="1" type="stmt"/>
1790
1793
  </file>
1791
1794
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/table/utils.js">
1792
- <metrics statements="103" coveredstatements="91" conditionals="51" coveredconditionals="34" methods="17" coveredmethods="14"/>
1795
+ <metrics statements="102" coveredstatements="90" conditionals="51" coveredconditionals="34" methods="17" coveredmethods="14"/>
1793
1796
  <line num="1" count="34" type="stmt"/>
1794
1797
  <line num="2" count="34" type="stmt"/>
1795
- <line num="3" count="34" type="stmt"/>
1798
+ <line num="7" count="34" type="stmt"/>
1796
1799
  <line num="8" count="34" type="stmt"/>
1797
1800
  <line num="9" count="34" type="stmt"/>
1798
1801
  <line num="10" count="34" type="stmt"/>
1799
1802
  <line num="11" count="34" type="stmt"/>
1800
- <line num="12" count="34" type="stmt"/>
1801
- <line num="14" count="34" type="stmt"/>
1803
+ <line num="13" count="34" type="stmt"/>
1804
+ <line num="14" count="99" type="stmt"/>
1802
1805
  <line num="15" count="99" type="stmt"/>
1803
1806
  <line num="16" count="99" type="stmt"/>
1804
- <line num="17" count="99" type="stmt"/>
1805
- <line num="18" count="99" type="cond" truecount="5" falsecount="0"/>
1806
- <line num="19" count="4" type="stmt"/>
1807
- <line num="20" count="11" type="stmt"/>
1808
- <line num="24" count="99" type="cond" truecount="4" falsecount="0"/>
1809
- <line num="25" count="1" type="stmt"/>
1810
- <line num="30" count="1" type="stmt"/>
1811
- <line num="31" count="1" type="cond" truecount="1" falsecount="1"/>
1807
+ <line num="17" count="99" type="cond" truecount="5" falsecount="0"/>
1808
+ <line num="18" count="4" type="stmt"/>
1809
+ <line num="19" count="11" type="stmt"/>
1810
+ <line num="23" count="99" type="cond" truecount="4" falsecount="0"/>
1811
+ <line num="24" count="1" type="stmt"/>
1812
+ <line num="29" count="1" type="stmt"/>
1813
+ <line num="30" count="1" type="cond" truecount="1" falsecount="1"/>
1814
+ <line num="31" count="1" type="stmt"/>
1812
1815
  <line num="32" count="1" type="stmt"/>
1813
- <line num="33" count="1" type="stmt"/>
1814
- <line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
1815
- <line num="35" count="0" type="stmt"/>
1816
- <line num="37" count="1" type="stmt"/>
1817
- <line num="39" count="1" type="stmt"/>
1818
- <line num="41" count="99" type="stmt"/>
1819
- <line num="45" count="34" type="stmt"/>
1820
- <line num="46" count="4" type="cond" truecount="1" falsecount="1"/>
1821
- <line num="47" count="0" type="stmt"/>
1822
- <line num="50" count="4" type="stmt"/>
1823
- <line num="53" count="4" type="stmt"/>
1824
- <line num="54" count="11" type="cond" truecount="1" falsecount="1"/>
1825
- <line num="59" count="0" type="stmt"/>
1826
- <line num="62" count="4" type="stmt"/>
1827
- <line num="65" count="34" type="stmt"/>
1828
- <line num="66" count="100" type="stmt"/>
1829
- <line num="67" count="100" type="cond" truecount="4" falsecount="0"/>
1830
- <line num="69" count="1" type="stmt"/>
1816
+ <line num="33" count="0" type="cond" truecount="0" falsecount="2"/>
1817
+ <line num="34" count="0" type="stmt"/>
1818
+ <line num="36" count="1" type="stmt"/>
1819
+ <line num="38" count="1" type="stmt"/>
1820
+ <line num="40" count="99" type="stmt"/>
1821
+ <line num="44" count="34" type="stmt"/>
1822
+ <line num="45" count="4" type="cond" truecount="1" falsecount="1"/>
1823
+ <line num="46" count="0" type="stmt"/>
1824
+ <line num="49" count="4" type="stmt"/>
1825
+ <line num="52" count="4" type="stmt"/>
1826
+ <line num="53" count="11" type="cond" truecount="1" falsecount="1"/>
1827
+ <line num="58" count="0" type="stmt"/>
1828
+ <line num="61" count="4" type="stmt"/>
1829
+ <line num="64" count="34" type="stmt"/>
1830
+ <line num="65" count="100" type="stmt"/>
1831
+ <line num="66" count="100" type="cond" truecount="4" falsecount="0"/>
1832
+ <line num="68" count="1" type="stmt"/>
1833
+ <line num="70" count="1" type="stmt"/>
1831
1834
  <line num="71" count="1" type="stmt"/>
1832
1835
  <line num="72" count="1" type="stmt"/>
1833
1836
  <line num="73" count="1" type="stmt"/>
1834
1837
  <line num="74" count="1" type="stmt"/>
1835
1838
  <line num="75" count="1" type="stmt"/>
1836
- <line num="76" count="1" type="stmt"/>
1839
+ <line num="78" count="1" type="stmt"/>
1837
1840
  <line num="79" count="1" type="stmt"/>
1838
- <line num="80" count="1" type="stmt"/>
1839
- <line num="82" count="1" type="stmt"/>
1840
- <line num="84" count="4" type="cond" truecount="1" falsecount="1"/>
1841
- <line num="89" count="0" type="stmt"/>
1842
- <line num="97" count="1" type="stmt"/>
1843
- <line num="108" count="1" type="stmt"/>
1844
- <line num="109" count="1" type="stmt"/>
1845
- <line num="110" count="1" type="stmt"/>
1846
- <line num="112" count="100" type="stmt"/>
1847
- <line num="115" count="34" type="stmt"/>
1848
- <line num="116" count="99" type="stmt"/>
1849
- <line num="118" count="99" type="cond" truecount="4" falsecount="0"/>
1850
- <line num="119" count="2" type="stmt"/>
1851
- <line num="120" count="2" type="stmt"/>
1852
- <line num="122" count="2" type="stmt"/>
1853
- <line num="123" count="3" type="stmt"/>
1854
- <line num="126" count="2" type="cond" truecount="2" falsecount="0"/>
1855
- <line num="127" count="1" type="stmt"/>
1856
- <line num="128" count="1" type="stmt"/>
1857
- <line num="132" count="1" type="cond" truecount="1" falsecount="1"/>
1858
- <line num="133" count="1" type="stmt"/>
1859
- <line num="135" count="1" type="stmt"/>
1860
- <line num="146" count="1" type="stmt"/>
1861
- <line num="156" count="99" type="stmt"/>
1862
- <line num="159" count="34" type="stmt"/>
1863
- <line num="161" count="99" type="cond" truecount="2" falsecount="0"/>
1864
- <line num="162" count="1" type="stmt"/>
1865
- <line num="164" count="5" type="cond" truecount="1" falsecount="1"/>
1866
- <line num="165" count="5" type="stmt"/>
1841
+ <line num="81" count="1" type="stmt"/>
1842
+ <line num="83" count="4" type="cond" truecount="1" falsecount="1"/>
1843
+ <line num="88" count="0" type="stmt"/>
1844
+ <line num="95" count="1" type="stmt"/>
1845
+ <line num="98" count="1" type="stmt"/>
1846
+ <line num="99" count="1" type="stmt"/>
1847
+ <line num="100" count="1" type="stmt"/>
1848
+ <line num="102" count="100" type="stmt"/>
1849
+ <line num="105" count="34" type="stmt"/>
1850
+ <line num="106" count="99" type="stmt"/>
1851
+ <line num="108" count="99" type="cond" truecount="4" falsecount="0"/>
1852
+ <line num="109" count="2" type="stmt"/>
1853
+ <line num="110" count="2" type="stmt"/>
1854
+ <line num="112" count="2" type="stmt"/>
1855
+ <line num="113" count="3" type="stmt"/>
1856
+ <line num="116" count="2" type="cond" truecount="2" falsecount="0"/>
1857
+ <line num="117" count="1" type="stmt"/>
1858
+ <line num="118" count="1" type="stmt"/>
1859
+ <line num="122" count="1" type="cond" truecount="1" falsecount="1"/>
1860
+ <line num="123" count="1" type="stmt"/>
1861
+ <line num="125" count="1" type="stmt"/>
1862
+ <line num="136" count="1" type="stmt"/>
1863
+ <line num="146" count="99" type="stmt"/>
1864
+ <line num="149" count="34" type="stmt"/>
1865
+ <line num="151" count="99" type="cond" truecount="2" falsecount="0"/>
1866
+ <line num="152" count="1" type="stmt"/>
1867
+ <line num="154" count="5" type="cond" truecount="1" falsecount="1"/>
1868
+ <line num="155" count="5" type="stmt"/>
1869
+ <line num="159" count="99" type="stmt"/>
1870
+ <line num="164" count="99" type="stmt"/>
1871
+ <line num="165" count="99" type="stmt"/>
1872
+ <line num="166" count="99" type="cond" truecount="3" falsecount="1"/>
1873
+ <line num="167" count="99" type="stmt"/>
1867
1874
  <line num="169" count="99" type="stmt"/>
1868
- <line num="174" count="99" type="stmt"/>
1869
- <line num="175" count="99" type="stmt"/>
1870
- <line num="176" count="99" type="cond" truecount="3" falsecount="1"/>
1871
- <line num="177" count="99" type="stmt"/>
1872
- <line num="179" count="99" type="stmt"/>
1875
+ <line num="170" count="99" type="stmt"/>
1876
+ <line num="172" count="99" type="stmt"/>
1877
+ <line num="177" count="99" type="cond" truecount="2" falsecount="0"/>
1878
+ <line num="178" count="4" type="stmt"/>
1873
1879
  <line num="180" count="99" type="stmt"/>
1874
- <line num="182" count="99" type="stmt"/>
1875
- <line num="187" count="99" type="cond" truecount="2" falsecount="0"/>
1876
- <line num="188" count="4" type="stmt"/>
1877
- <line num="190" count="99" type="stmt"/>
1880
+ <line num="181" count="99" type="stmt"/>
1881
+ <line num="186" count="99" type="stmt"/>
1878
1882
  <line num="191" count="99" type="stmt"/>
1879
- <line num="196" count="99" type="stmt"/>
1880
- <line num="201" count="99" type="stmt"/>
1881
- <line num="202" count="99" type="stmt"/>
1882
- <line num="207" count="99" type="stmt"/>
1883
+ <line num="192" count="99" type="stmt"/>
1884
+ <line num="197" count="99" type="stmt"/>
1885
+ <line num="198" count="99" type="stmt"/>
1886
+ <line num="204" count="99" type="stmt"/>
1883
1887
  <line num="208" count="99" type="stmt"/>
1884
- <line num="214" count="99" type="stmt"/>
1885
- <line num="218" count="99" type="stmt"/>
1886
- <line num="222" count="34" type="stmt"/>
1888
+ <line num="212" count="34" type="stmt"/>
1889
+ <line num="213" count="0" type="stmt"/>
1890
+ <line num="214" count="0" type="stmt"/>
1891
+ <line num="215" count="0" type="cond" truecount="0" falsecount="4"/>
1892
+ <line num="216" count="0" type="stmt"/>
1893
+ <line num="218" count="0" type="stmt"/>
1894
+ <line num="221" count="34" type="stmt"/>
1895
+ <line num="222" count="0" type="stmt"/>
1887
1896
  <line num="223" count="0" type="stmt"/>
1888
- <line num="224" count="0" type="stmt"/>
1889
- <line num="225" count="0" type="cond" truecount="0" falsecount="4"/>
1890
- <line num="226" count="0" type="stmt"/>
1891
- <line num="228" count="0" type="stmt"/>
1892
- <line num="231" count="34" type="stmt"/>
1893
- <line num="232" count="0" type="stmt"/>
1894
- <line num="233" count="0" type="stmt"/>
1895
- <line num="236" count="34" type="stmt"/>
1897
+ <line num="226" count="34" type="stmt"/>
1896
1898
  </file>
1897
1899
  </package>
1898
1900
  <package name="api.controllers.view">
@@ -2300,9 +2302,9 @@
2300
2302
  <line num="15" count="23" type="stmt"/>
2301
2303
  <line num="17" count="23" type="stmt"/>
2302
2304
  <line num="21" count="23" type="stmt"/>
2303
- <line num="40" count="23" type="stmt"/>
2304
- <line num="49" count="23" type="stmt"/>
2305
- <line num="83" count="23" type="stmt"/>
2305
+ <line num="41" count="23" type="stmt"/>
2306
+ <line num="51" count="23" type="stmt"/>
2307
+ <line num="85" count="23" type="stmt"/>
2306
2308
  </file>
2307
2309
  <file name="role.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/routes/role.js">
2308
2310
  <metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
@@ -2439,9 +2441,9 @@
2439
2441
  </file>
2440
2442
  </package>
2441
2443
  <package name="automations">
2442
- <metrics statements="249" coveredstatements="209" conditionals="102" coveredconditionals="75" methods="29" coveredmethods="24"/>
2444
+ <metrics statements="260" coveredstatements="216" conditionals="106" coveredconditionals="77" methods="29" coveredmethods="24"/>
2443
2445
  <file name="actions.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/actions.js">
2444
- <metrics statements="19" coveredstatements="19" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
2446
+ <metrics statements="23" coveredstatements="23" conditionals="2" coveredconditionals="1" methods="0" coveredmethods="0"/>
2445
2447
  <line num="1" count="34" type="stmt"/>
2446
2448
  <line num="2" count="34" type="stmt"/>
2447
2449
  <line num="3" count="34" type="stmt"/>
@@ -2459,8 +2461,12 @@
2459
2461
  <line num="15" count="34" type="stmt"/>
2460
2462
  <line num="16" count="34" type="stmt"/>
2461
2463
  <line num="18" count="34" type="stmt"/>
2462
- <line num="37" count="34" type="stmt"/>
2463
- <line num="64" count="34" type="stmt"/>
2464
+ <line num="36" count="34" type="stmt"/>
2465
+ <line num="58" count="34" type="cond" truecount="1" falsecount="1"/>
2466
+ <line num="59" count="34" type="stmt"/>
2467
+ <line num="60" count="34" type="stmt"/>
2468
+ <line num="61" count="34" type="stmt"/>
2469
+ <line num="71" count="34" type="stmt"/>
2464
2470
  </file>
2465
2471
  <file name="automationUtils.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/automationUtils.js">
2466
2472
  <metrics statements="35" coveredstatements="33" conditionals="18" coveredconditionals="16" methods="3" coveredmethods="3"/>
@@ -2536,7 +2542,7 @@
2536
2542
  <line num="17" count="24" type="stmt"/>
2537
2543
  </file>
2538
2544
  <file name="thread.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/thread.js">
2539
- <metrics statements="60" coveredstatements="54" conditionals="19" coveredconditionals="11" methods="7" coveredmethods="7"/>
2545
+ <metrics statements="67" coveredstatements="57" conditionals="21" coveredconditionals="12" methods="7" coveredmethods="7"/>
2540
2546
  <line num="1" count="33" type="stmt"/>
2541
2547
  <line num="2" count="33" type="stmt"/>
2542
2548
  <line num="3" count="33" type="stmt"/>
@@ -2548,55 +2554,62 @@
2548
2554
  <line num="9" count="33" type="stmt"/>
2549
2555
  <line num="10" count="33" type="stmt"/>
2550
2556
  <line num="12" count="33" type="stmt"/>
2551
- <line num="21" count="7" type="stmt"/>
2552
- <line num="22" count="7" type="cond" truecount="2" falsecount="0"/>
2553
- <line num="23" count="7" type="stmt"/>
2557
+ <line num="13" count="33" type="stmt"/>
2558
+ <line num="22" count="7" type="stmt"/>
2559
+ <line num="23" count="7" type="cond" truecount="2" falsecount="0"/>
2554
2560
  <line num="24" count="7" type="stmt"/>
2555
- <line num="26" count="7" type="stmt"/>
2561
+ <line num="25" count="7" type="stmt"/>
2556
2562
  <line num="27" count="7" type="stmt"/>
2557
- <line num="29" count="7" type="stmt"/>
2563
+ <line num="28" count="7" type="stmt"/>
2558
2564
  <line num="30" count="7" type="stmt"/>
2559
- <line num="33" count="7" type="stmt"/>
2565
+ <line num="31" count="7" type="stmt"/>
2560
2566
  <line num="34" count="7" type="stmt"/>
2561
- <line num="36" count="7" type="stmt"/>
2567
+ <line num="35" count="7" type="stmt"/>
2562
2568
  <line num="37" count="7" type="stmt"/>
2563
2569
  <line num="38" count="7" type="stmt"/>
2564
- <line num="42" count="5" type="stmt"/>
2565
- <line num="43" count="5" type="cond" truecount="1" falsecount="1"/>
2566
- <line num="44" count="0" type="stmt"/>
2567
- <line num="46" count="5" type="stmt"/>
2568
- <line num="50" count="7" type="stmt"/>
2569
- <line num="51" count="7" type="cond" truecount="1" falsecount="1"/>
2570
- <line num="52" count="0" type="stmt"/>
2571
- <line num="54" count="7" type="stmt"/>
2570
+ <line num="39" count="7" type="stmt"/>
2571
+ <line num="43" count="5" type="stmt"/>
2572
+ <line num="44" count="5" type="cond" truecount="1" falsecount="1"/>
2573
+ <line num="45" count="0" type="stmt"/>
2574
+ <line num="47" count="5" type="stmt"/>
2575
+ <line num="51" count="7" type="stmt"/>
2576
+ <line num="52" count="7" type="cond" truecount="1" falsecount="1"/>
2577
+ <line num="53" count="0" type="stmt"/>
2572
2578
  <line num="55" count="7" type="stmt"/>
2573
- <line num="56" count="6" type="stmt"/>
2574
- <line num="60" count="12" type="stmt"/>
2575
- <line num="62" count="12" type="cond" truecount="2" falsecount="0"/>
2576
- <line num="63" count="7" type="stmt"/>
2577
- <line num="65" count="12" type="stmt"/>
2578
- <line num="69" count="7" type="stmt"/>
2579
+ <line num="56" count="7" type="stmt"/>
2580
+ <line num="57" count="6" type="stmt"/>
2581
+ <line num="61" count="12" type="stmt"/>
2582
+ <line num="63" count="12" type="cond" truecount="2" falsecount="0"/>
2583
+ <line num="64" count="7" type="stmt"/>
2584
+ <line num="66" count="12" type="stmt"/>
2579
2585
  <line num="70" count="7" type="stmt"/>
2580
- <line num="71" count="6" type="stmt"/>
2581
- <line num="72" count="5" type="stmt"/>
2582
- <line num="73" count="5" type="stmt"/>
2583
- <line num="74" count="5" type="stmt"/>
2586
+ <line num="71" count="7" type="stmt"/>
2587
+ <line num="72" count="6" type="stmt"/>
2588
+ <line num="73" count="6" type="stmt"/>
2589
+ <line num="75" count="5" type="cond" truecount="1" falsecount="1"/>
2590
+ <line num="76" count="0" type="stmt"/>
2591
+ <line num="77" count="0" type="stmt"/>
2584
2592
  <line num="79" count="5" type="stmt"/>
2585
- <line num="80" count="5" type="cond" truecount="1" falsecount="1"/>
2593
+ <line num="80" count="5" type="stmt"/>
2586
2594
  <line num="81" count="5" type="stmt"/>
2587
- <line num="82" count="5" type="stmt"/>
2588
- <line num="89" count="5" type="cond" truecount="2" falsecount="2"/>
2589
- <line num="90" count="0" type="stmt"/>
2590
- <line num="92" count="5" type="stmt"/>
2591
- <line num="93" count="5" type="stmt"/>
2592
- <line num="95" count="0" type="stmt"/>
2593
- <line num="96" count="0" type="stmt"/>
2594
- <line num="101" count="6" type="cond" truecount="2" falsecount="2"/>
2595
- <line num="102" count="0" type="stmt"/>
2596
- <line num="104" count="6" type="stmt"/>
2597
- <line num="108" count="33" type="stmt"/>
2598
- <line num="109" count="7" type="stmt"/>
2599
- <line num="113" count="7" type="stmt"/>
2595
+ <line num="86" count="5" type="stmt"/>
2596
+ <line num="87" count="5" type="cond" truecount="1" falsecount="1"/>
2597
+ <line num="88" count="5" type="stmt"/>
2598
+ <line num="89" count="5" type="stmt"/>
2599
+ <line num="96" count="5" type="stmt"/>
2600
+ <line num="99" count="5" type="cond" truecount="2" falsecount="2"/>
2601
+ <line num="100" count="0" type="stmt"/>
2602
+ <line num="101" count="0" type="stmt"/>
2603
+ <line num="105" count="0" type="stmt"/>
2604
+ <line num="107" count="5" type="stmt"/>
2605
+ <line num="109" count="0" type="stmt"/>
2606
+ <line num="110" count="0" type="stmt"/>
2607
+ <line num="115" count="6" type="cond" truecount="2" falsecount="2"/>
2608
+ <line num="116" count="0" type="stmt"/>
2609
+ <line num="118" count="6" type="stmt"/>
2610
+ <line num="122" count="33" type="stmt"/>
2611
+ <line num="123" count="7" type="stmt"/>
2612
+ <line num="127" count="7" type="stmt"/>
2600
2613
  </file>
2601
2614
  <file name="triggers.js" path="/home/runner/work/budibase/budibase/packages/server/src/automations/triggers.js">
2602
2615
  <metrics statements="44" coveredstatements="42" conditionals="25" coveredconditionals="21" methods="7" coveredmethods="7"/>
@@ -3255,22 +3268,22 @@
3255
3268
  <line num="41" count="9" type="stmt"/>
3256
3269
  <line num="42" count="9" type="stmt"/>
3257
3270
  <line num="47" count="9" type="stmt"/>
3258
- <line num="56" count="188" type="stmt"/>
3259
- <line num="57" count="188" type="stmt"/>
3260
- <line num="58" count="188" type="stmt"/>
3261
- <line num="59" count="188" type="stmt"/>
3262
- <line num="60" count="188" type="stmt"/>
3263
- <line num="61" count="188" type="stmt"/>
3271
+ <line num="56" count="187" type="stmt"/>
3272
+ <line num="57" count="187" type="stmt"/>
3273
+ <line num="58" count="187" type="stmt"/>
3274
+ <line num="59" count="187" type="stmt"/>
3275
+ <line num="60" count="187" type="stmt"/>
3276
+ <line num="61" count="187" type="stmt"/>
3264
3277
  <line num="70" count="52" type="cond" truecount="2" falsecount="0"/>
3265
3278
  <line num="71" count="5" type="stmt"/>
3266
3279
  <line num="74" count="52" type="stmt"/>
3267
- <line num="85" count="181" type="cond" truecount="2" falsecount="0"/>
3280
+ <line num="85" count="180" type="cond" truecount="2" falsecount="0"/>
3268
3281
  <line num="86" count="5" type="stmt"/>
3269
- <line num="88" count="181" type="stmt"/>
3270
- <line num="89" count="454" type="stmt"/>
3271
- <line num="90" count="454" type="cond" truecount="2" falsecount="0"/>
3282
+ <line num="88" count="180" type="stmt"/>
3283
+ <line num="89" count="450" type="stmt"/>
3284
+ <line num="90" count="450" type="cond" truecount="2" falsecount="0"/>
3272
3285
  <line num="91" count="41" type="stmt"/>
3273
- <line num="94" count="140" type="stmt"/>
3286
+ <line num="94" count="139" type="stmt"/>
3274
3287
  <line num="101" count="27" type="stmt"/>
3275
3288
  <line num="113" count="9" type="stmt"/>
3276
3289
  <line num="124" count="22" type="stmt"/>
@@ -3436,16 +3449,16 @@
3436
3449
  <line num="89" count="30" type="stmt"/>
3437
3450
  <line num="90" count="30" type="stmt"/>
3438
3451
  <line num="105" count="34" type="stmt"/>
3439
- <line num="106" count="178" type="stmt"/>
3440
- <line num="107" count="178" type="cond" truecount="2" falsecount="0"/>
3441
- <line num="108" count="178" type="cond" truecount="1" falsecount="1"/>
3452
+ <line num="106" count="177" type="stmt"/>
3453
+ <line num="107" count="177" type="cond" truecount="2" falsecount="0"/>
3454
+ <line num="108" count="177" type="cond" truecount="1" falsecount="1"/>
3442
3455
  <line num="109" count="0" type="stmt"/>
3443
- <line num="112" count="178" type="cond" truecount="4" falsecount="0"/>
3456
+ <line num="112" count="177" type="cond" truecount="4" falsecount="0"/>
3444
3457
  <line num="113" count="101" type="stmt"/>
3445
- <line num="115" count="178" type="stmt"/>
3446
- <line num="116" count="178" type="stmt"/>
3447
- <line num="117" count="178" type="cond" truecount="2" falsecount="0"/>
3448
- <line num="122" count="137" type="stmt"/>
3458
+ <line num="115" count="177" type="stmt"/>
3459
+ <line num="116" count="177" type="stmt"/>
3460
+ <line num="117" count="177" type="cond" truecount="2" falsecount="0"/>
3461
+ <line num="122" count="136" type="stmt"/>
3449
3462
  <line num="125" count="0" type="stmt"/>
3450
3463
  <line num="127" count="41" type="cond" truecount="5" falsecount="2"/>
3451
3464
  <line num="130" count="21" type="stmt"/>
@@ -3839,7 +3852,7 @@
3839
3852
  </file>
3840
3853
  </package>
3841
3854
  <package name="utilities">
3842
- <metrics statements="271" coveredstatements="203" conditionals="105" coveredconditionals="59" methods="55" coveredmethods="38"/>
3855
+ <metrics statements="283" coveredstatements="206" conditionals="105" coveredconditionals="59" methods="57" coveredmethods="38"/>
3843
3856
  <file name="bcrypt.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/bcrypt.js">
3844
3857
  <metrics statements="9" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="2" coveredmethods="0"/>
3845
3858
  <line num="3" count="0" type="stmt"/>
@@ -4036,6 +4049,21 @@
4036
4049
  <line num="132" count="0" type="stmt"/>
4037
4050
  <line num="133" count="0" type="stmt"/>
4038
4051
  </file>
4052
+ <file name="scriptRunner.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/scriptRunner.js">
4053
+ <metrics statements="12" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
4054
+ <line num="1" count="34" type="stmt"/>
4055
+ <line num="2" count="34" type="stmt"/>
4056
+ <line num="6" count="0" type="stmt"/>
4057
+ <line num="7" count="0" type="stmt"/>
4058
+ <line num="8" count="0" type="stmt"/>
4059
+ <line num="9" count="0" type="stmt"/>
4060
+ <line num="10" count="0" type="stmt"/>
4061
+ <line num="11" count="0" type="stmt"/>
4062
+ <line num="12" count="0" type="stmt"/>
4063
+ <line num="16" count="0" type="stmt"/>
4064
+ <line num="17" count="0" type="stmt"/>
4065
+ <line num="21" count="34" type="stmt"/>
4066
+ </file>
4039
4067
  <file name="security.js" path="/home/runner/work/budibase/budibase/packages/server/src/utilities/security.js">
4040
4068
  <metrics statements="28" coveredstatements="23" conditionals="15" coveredconditionals="8" methods="4" coveredmethods="4"/>
4041
4069
  <line num="6" count="33" type="stmt"/>