@budibase/worker 2.2.11 → 2.2.12-alpha.1

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 (134) hide show
  1. package/coverage/clover.xml +1291 -1238
  2. package/coverage/coverage-final.json +81 -77
  3. package/coverage/lcov-report/index.html +73 -73
  4. package/coverage/lcov-report/src/api/controllers/global/auth.ts.html +26 -26
  5. package/coverage/lcov-report/src/api/controllers/global/configs.ts.html +155 -212
  6. package/coverage/lcov-report/src/api/controllers/global/email.ts.html +4 -4
  7. package/coverage/lcov-report/src/api/controllers/global/index.html +39 -39
  8. package/coverage/lcov-report/src/api/controllers/global/license.ts.html +7 -7
  9. package/coverage/lcov-report/src/api/controllers/global/roles.ts.html +76 -76
  10. package/coverage/lcov-report/src/api/controllers/global/self.ts.html +14 -14
  11. package/coverage/lcov-report/src/api/controllers/global/templates.ts.html +53 -53
  12. package/coverage/lcov-report/src/api/controllers/global/users.ts.html +27 -27
  13. package/coverage/lcov-report/src/api/controllers/global/workspaces.ts.html +6 -6
  14. package/coverage/lcov-report/src/api/controllers/system/accounts.ts.html +4 -4
  15. package/coverage/lcov-report/src/api/controllers/system/environment.ts.html +3 -3
  16. package/coverage/lcov-report/src/api/controllers/system/index.html +1 -1
  17. package/coverage/lcov-report/src/api/controllers/system/migrations.ts.html +4 -4
  18. package/coverage/lcov-report/src/api/controllers/system/restore.ts.html +4 -4
  19. package/coverage/lcov-report/src/api/controllers/system/status.ts.html +4 -4
  20. package/coverage/lcov-report/src/api/controllers/system/tenants.ts.html +5 -5
  21. package/coverage/lcov-report/src/api/index.html +1 -1
  22. package/coverage/lcov-report/src/api/index.ts.html +23 -23
  23. package/coverage/lcov-report/src/api/routes/global/auth.ts.html +11 -11
  24. package/coverage/lcov-report/src/api/routes/global/configs.ts.html +16 -16
  25. package/coverage/lcov-report/src/api/routes/global/email.ts.html +10 -10
  26. package/coverage/lcov-report/src/api/routes/global/index.html +1 -1
  27. package/coverage/lcov-report/src/api/routes/global/license.ts.html +7 -7
  28. package/coverage/lcov-report/src/api/routes/global/roles.ts.html +7 -7
  29. package/coverage/lcov-report/src/api/routes/global/self.ts.html +8 -8
  30. package/coverage/lcov-report/src/api/routes/global/templates.ts.html +11 -11
  31. package/coverage/lcov-report/src/api/routes/global/users.ts.html +16 -16
  32. package/coverage/lcov-report/src/api/routes/global/workspaces.ts.html +9 -9
  33. package/coverage/lcov-report/src/api/routes/index.html +1 -1
  34. package/coverage/lcov-report/src/api/routes/index.ts.html +19 -19
  35. package/coverage/lcov-report/src/api/routes/system/accounts.ts.html +7 -7
  36. package/coverage/lcov-report/src/api/routes/system/environment.ts.html +6 -6
  37. package/coverage/lcov-report/src/api/routes/system/index.html +1 -1
  38. package/coverage/lcov-report/src/api/routes/system/migrations.ts.html +7 -7
  39. package/coverage/lcov-report/src/api/routes/system/restore.ts.html +6 -6
  40. package/coverage/lcov-report/src/api/routes/system/status.ts.html +6 -6
  41. package/coverage/lcov-report/src/api/routes/system/tenants.ts.html +7 -7
  42. package/coverage/lcov-report/src/api/routes/validation/index.html +1 -1
  43. package/coverage/lcov-report/src/api/routes/validation/index.ts.html +2 -2
  44. package/coverage/lcov-report/src/api/routes/validation/users.ts.html +13 -13
  45. package/coverage/lcov-report/src/constants/index.html +9 -9
  46. package/coverage/lcov-report/src/constants/index.ts.html +73 -49
  47. package/coverage/lcov-report/src/constants/templates/index.html +19 -19
  48. package/coverage/lcov-report/src/constants/templates/index.ts.html +39 -39
  49. package/coverage/lcov-report/src/db/index.html +1 -1
  50. package/coverage/lcov-report/src/db/index.ts.html +8 -8
  51. package/coverage/lcov-report/src/environment.ts.html +37 -22
  52. package/coverage/lcov-report/src/index.html +15 -15
  53. package/coverage/lcov-report/src/index.ts.html +40 -43
  54. package/coverage/lcov-report/src/middleware/cloudRestricted.ts.html +4 -4
  55. package/coverage/lcov-report/src/middleware/index.html +1 -1
  56. package/coverage/lcov-report/src/migrations/functions/globalInfoSyncUsers.ts.html +3 -3
  57. package/coverage/lcov-report/src/migrations/functions/index.html +1 -1
  58. package/coverage/lcov-report/src/migrations/index.html +1 -1
  59. package/coverage/lcov-report/src/migrations/index.ts.html +17 -17
  60. package/coverage/lcov-report/src/sdk/accounts/accounts.ts.html +6 -6
  61. package/coverage/lcov-report/src/sdk/accounts/index.html +1 -1
  62. package/coverage/lcov-report/src/sdk/accounts/index.ts.html +2 -2
  63. package/coverage/lcov-report/src/sdk/index.html +1 -1
  64. package/coverage/lcov-report/src/sdk/index.ts.html +4 -4
  65. package/coverage/lcov-report/src/sdk/users/events.ts.html +46 -46
  66. package/coverage/lcov-report/src/sdk/users/index.html +15 -15
  67. package/coverage/lcov-report/src/sdk/users/index.ts.html +2 -2
  68. package/coverage/lcov-report/src/sdk/users/users.ts.html +148 -97
  69. package/coverage/lcov-report/src/tests/TestConfiguration.ts.html +104 -80
  70. package/coverage/lcov-report/src/tests/api/accounts.ts.html +6 -6
  71. package/coverage/lcov-report/src/tests/api/auth.ts.html +7 -7
  72. package/coverage/lcov-report/src/tests/api/base.ts.html +4 -4
  73. package/coverage/lcov-report/src/tests/api/configs.ts.html +8 -8
  74. package/coverage/lcov-report/src/tests/api/email.ts.html +5 -5
  75. package/coverage/lcov-report/src/tests/api/environment.ts.html +5 -5
  76. package/coverage/lcov-report/src/tests/api/groups.ts.html +163 -0
  77. package/coverage/lcov-report/src/tests/api/index.html +71 -11
  78. package/coverage/lcov-report/src/tests/api/index.ts.html +61 -28
  79. package/coverage/lcov-report/src/tests/api/license.ts.html +136 -0
  80. package/coverage/lcov-report/src/tests/api/migrations.ts.html +6 -6
  81. package/coverage/lcov-report/src/tests/api/restore.ts.html +5 -5
  82. package/coverage/lcov-report/src/tests/api/roles.ts.html +181 -0
  83. package/coverage/lcov-report/src/tests/api/self.ts.html +6 -6
  84. package/coverage/lcov-report/src/tests/api/status.ts.html +5 -5
  85. package/coverage/lcov-report/src/tests/api/templates.ts.html +175 -0
  86. package/coverage/lcov-report/src/tests/api/tenants.ts.html +5 -5
  87. package/coverage/lcov-report/src/tests/api/users.ts.html +16 -16
  88. package/coverage/lcov-report/src/tests/controllers.ts.html +6 -6
  89. package/coverage/lcov-report/src/tests/index.html +10 -10
  90. package/coverage/lcov-report/src/tests/index.ts.html +9 -9
  91. package/coverage/lcov-report/src/tests/mocks/{email.js.html → email.ts.html} +5 -5
  92. package/coverage/lcov-report/src/tests/mocks/index.html +2 -2
  93. package/coverage/lcov-report/src/tests/mocks/index.ts.html +7 -7
  94. package/coverage/lcov-report/src/tests/structures/configs.ts.html +10 -10
  95. package/coverage/lcov-report/src/tests/structures/groups.ts.html +15 -15
  96. package/coverage/lcov-report/src/tests/structures/index.html +16 -16
  97. package/coverage/lcov-report/src/tests/structures/index.ts.html +11 -11
  98. package/coverage/lcov-report/src/tests/structures/users.ts.html +11 -11
  99. package/coverage/lcov-report/src/utilities/appService.ts.html +10 -10
  100. package/coverage/lcov-report/src/utilities/email.ts.html +15 -15
  101. package/coverage/lcov-report/src/utilities/fileSystem.ts.html +4 -4
  102. package/coverage/lcov-report/src/utilities/index.html +1 -1
  103. package/coverage/lcov-report/src/utilities/index.ts.html +2 -2
  104. package/coverage/lcov-report/src/utilities/redis.ts.html +12 -12
  105. package/coverage/lcov-report/src/utilities/templates.ts.html +6 -6
  106. package/coverage/lcov-report/src/utilities/users.ts.html +3 -3
  107. package/coverage/lcov.info +1949 -1779
  108. package/jest.config.ts +2 -0
  109. package/package.json +8 -7
  110. package/src/api/controllers/global/configs.ts +112 -131
  111. package/src/api/controllers/global/users.ts +1 -1
  112. package/src/api/routes/global/license.ts +1 -1
  113. package/src/api/routes/global/tests/groups.spec.ts +58 -0
  114. package/src/api/routes/global/tests/license.spec.ts +0 -2
  115. package/src/api/routes/global/tests/roles.spec.ts +66 -5
  116. package/src/api/routes/global/tests/templates.spec.ts +89 -9
  117. package/src/api/routes/global/tests/users.spec.ts +2 -2
  118. package/src/constants/index.ts +13 -5
  119. package/src/environment.ts +5 -0
  120. package/src/index.ts +1 -2
  121. package/src/sdk/users/users.ts +18 -1
  122. package/src/tests/TestConfiguration.ts +9 -1
  123. package/src/tests/api/groups.ts +26 -0
  124. package/src/tests/api/index.ts +12 -1
  125. package/src/tests/api/license.ts +17 -0
  126. package/src/tests/api/roles.ts +32 -0
  127. package/src/tests/api/templates.ts +30 -0
  128. package/src/tests/jestSetup.ts +3 -1
  129. package/src/tests/mocks/{email.js → email.ts} +1 -1
  130. package/src/tests/mocks/index.ts +3 -3
  131. package/src/tests/structures/configs.ts +2 -2
  132. package/src/tests/structures/groups.ts +1 -1
  133. package/src/tests/structures/users.ts +1 -1
  134. package/tsconfig.json +0 -1
@@ -1,70 +1,72 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1673025012781" clover="3.2.0">
3
- <project timestamp="1673025012781" name="All files">
4
- <metrics statements="1864" coveredstatements="1493" conditionals="580" coveredconditionals="413" methods="426" coveredmethods="321" elements="2870" coveredelements="2227" complexity="0" loc="1864" ncloc="1864" packages="22" files="77" classes="77"/>
2
+ <coverage generated="1673253059169" clover="3.2.0">
3
+ <project timestamp="1673253059169" name="All files">
4
+ <metrics statements="1905" coveredstatements="1586" conditionals="639" coveredconditionals="463" methods="443" coveredmethods="349" elements="2987" coveredelements="2398" complexity="0" loc="1905" ncloc="1905" packages="22" files="81" classes="81"/>
5
5
  <package name="src">
6
- <metrics statements="78" coveredstatements="52" conditionals="26" coveredconditionals="17" methods="16" coveredmethods="7"/>
6
+ <metrics statements="80" coveredstatements="53" conditionals="27" coveredconditionals="17" methods="16" coveredmethods="7"/>
7
7
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/environment.ts">
8
- <metrics statements="19" coveredstatements="15" conditionals="20" coveredconditionals="16" methods="5" coveredmethods="5"/>
9
- <line num="1" count="17" type="stmt"/>
10
- <line num="4" count="52" type="stmt"/>
11
- <line num="8" count="151" type="stmt"/>
12
- <line num="15" count="17" type="stmt"/>
13
- <line num="16" count="17" type="cond" truecount="3" falsecount="1"/>
8
+ <metrics statements="21" coveredstatements="16" conditionals="21" coveredconditionals="16" methods="5" coveredmethods="5"/>
9
+ <line num="1" count="18" type="stmt"/>
10
+ <line num="4" count="55" type="stmt"/>
11
+ <line num="8" count="157" type="stmt"/>
12
+ <line num="15" count="18" type="stmt"/>
13
+ <line num="16" count="18" type="cond" truecount="3" falsecount="1"/>
14
14
  <line num="17" count="0" type="stmt"/>
15
15
  <line num="20" count="0" type="stmt"/>
16
- <line num="24" count="17" type="cond" truecount="0" falsecount="1"/>
16
+ <line num="24" count="18" type="cond" truecount="0" falsecount="1"/>
17
17
  <line num="25" count="0" type="stmt"/>
18
- <line num="29" count="17" type="stmt"/>
19
- <line num="69" count="237" type="stmt"/>
20
- <line num="71" count="237" type="stmt"/>
21
- <line num="76" count="17" type="stmt"/>
22
- <line num="81" count="17" type="cond" truecount="1" falsecount="0"/>
23
- <line num="82" count="17" type="cond" truecount="1" falsecount="1"/>
24
- <line num="88" count="17" type="stmt"/>
25
- <line num="90" count="595" type="cond" truecount="0" falsecount="1"/>
18
+ <line num="29" count="18" type="stmt"/>
19
+ <line num="69" count="250" type="stmt"/>
20
+ <line num="71" count="250" type="stmt"/>
21
+ <line num="76" count="18" type="stmt"/>
22
+ <line num="81" count="18" type="cond" truecount="1" falsecount="0"/>
23
+ <line num="82" count="18" type="cond" truecount="1" falsecount="1"/>
24
+ <line num="88" count="18" type="stmt"/>
25
+ <line num="90" count="630" type="cond" truecount="0" falsecount="1"/>
26
26
  <line num="92" count="0" type="stmt"/>
27
- <line num="96" count="17" type="stmt"/>
27
+ <line num="95" count="630" type="cond" truecount="0" falsecount="1"/>
28
+ <line num="97" count="0" type="stmt"/>
29
+ <line num="101" count="18" type="stmt"/>
28
30
  </file>
29
31
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/index.ts">
30
32
  <metrics statements="59" coveredstatements="37" conditionals="6" coveredconditionals="1" methods="11" coveredmethods="2"/>
31
- <line num="2" count="17" type="stmt"/>
32
- <line num="5" count="17" type="cond" truecount="0" falsecount="1"/>
33
+ <line num="2" count="18" type="stmt"/>
34
+ <line num="5" count="18" type="cond" truecount="0" falsecount="1"/>
33
35
  <line num="6" count="0" type="stmt"/>
34
- <line num="15" count="17" type="stmt"/>
35
- <line num="16" count="17" type="stmt"/>
36
- <line num="17" count="17" type="stmt"/>
37
- <line num="18" count="17" type="stmt"/>
38
- <line num="19" count="17" type="stmt"/>
39
- <line num="20" count="17" type="stmt"/>
40
- <line num="21" count="17" type="stmt"/>
41
- <line num="22" count="17" type="stmt"/>
42
- <line num="23" count="17" type="stmt"/>
43
- <line num="24" count="17" type="stmt"/>
44
- <line num="25" count="17" type="stmt"/>
45
- <line num="26" count="17" type="stmt"/>
46
- <line num="27" count="17" type="stmt"/>
47
- <line num="30" count="17" type="stmt"/>
48
- <line num="32" count="17" type="stmt"/>
49
- <line num="34" count="17" type="stmt"/>
50
- <line num="37" count="17" type="stmt"/>
51
- <line num="38" count="17" type="stmt"/>
52
- <line num="39" count="17" type="stmt"/>
53
- <line num="42" count="17" type="stmt"/>
54
- <line num="43" count="17" type="stmt"/>
55
- <line num="46" count="17" type="stmt"/>
56
- <line num="49" count="17" type="cond" truecount="0" falsecount="1"/>
36
+ <line num="15" count="18" type="stmt"/>
37
+ <line num="16" count="18" type="stmt"/>
38
+ <line num="17" count="18" type="stmt"/>
39
+ <line num="18" count="18" type="stmt"/>
40
+ <line num="19" count="18" type="stmt"/>
41
+ <line num="20" count="18" type="stmt"/>
42
+ <line num="21" count="18" type="stmt"/>
43
+ <line num="22" count="18" type="stmt"/>
44
+ <line num="23" count="18" type="stmt"/>
45
+ <line num="24" count="18" type="stmt"/>
46
+ <line num="25" count="18" type="stmt"/>
47
+ <line num="26" count="18" type="stmt"/>
48
+ <line num="27" count="18" type="stmt"/>
49
+ <line num="30" count="18" type="stmt"/>
50
+ <line num="32" count="18" type="stmt"/>
51
+ <line num="34" count="18" type="stmt"/>
52
+ <line num="37" count="18" type="stmt"/>
53
+ <line num="38" count="18" type="stmt"/>
54
+ <line num="39" count="18" type="stmt"/>
55
+ <line num="42" count="18" type="stmt"/>
56
+ <line num="43" count="18" type="stmt"/>
57
+ <line num="46" count="18" type="stmt"/>
58
+ <line num="49" count="18" type="cond" truecount="0" falsecount="1"/>
57
59
  <line num="50" count="0" type="stmt"/>
58
60
  <line num="52" count="0" type="stmt"/>
59
61
  <line num="53" count="0" type="stmt"/>
60
62
  <line num="54" count="0" type="stmt"/>
61
63
  <line num="55" count="0" type="stmt"/>
62
64
  <line num="57" count="0" type="stmt"/>
63
- <line num="62" count="17" type="stmt"/>
64
- <line num="63" count="17" type="stmt"/>
65
- <line num="65" count="17" type="stmt"/>
66
- <line num="66" count="17" type="stmt"/>
67
- <line num="67" count="17" type="stmt"/>
65
+ <line num="62" count="18" type="stmt"/>
66
+ <line num="63" count="18" type="stmt"/>
67
+ <line num="65" count="18" type="stmt"/>
68
+ <line num="66" count="18" type="stmt"/>
69
+ <line num="67" count="18" type="stmt"/>
68
70
  <line num="68" count="0" type="cond" truecount="0" falsecount="1"/>
69
71
  <line num="69" count="0" type="stmt"/>
70
72
  <line num="71" count="0" type="stmt"/>
@@ -73,75 +75,75 @@
73
75
  <line num="74" count="0" type="stmt"/>
74
76
  <line num="75" count="0" type="cond" truecount="0" falsecount="1"/>
75
77
  <line num="76" count="0" type="stmt"/>
76
- <line num="80" count="17" type="stmt"/>
78
+ <line num="80" count="18" type="stmt"/>
77
79
  <line num="81" count="0" type="stmt"/>
78
- <line num="83" count="0" type="stmt"/>
79
- <line num="86" count="17" type="cond" truecount="1" falsecount="1"/>
80
- <line num="87" count="17" type="stmt"/>
81
- <line num="88" count="17" type="stmt"/>
82
- <line num="91" count="17" type="stmt"/>
80
+ <line num="82" count="0" type="stmt"/>
81
+ <line num="85" count="18" type="cond" truecount="1" falsecount="1"/>
82
+ <line num="86" count="18" type="stmt"/>
83
+ <line num="87" count="18" type="stmt"/>
84
+ <line num="90" count="18" type="stmt"/>
85
+ <line num="91" count="0" type="stmt"/>
83
86
  <line num="92" count="0" type="stmt"/>
84
87
  <line num="93" count="0" type="stmt"/>
85
- <line num="94" count="0" type="stmt"/>
86
- <line num="97" count="17" type="stmt"/>
87
- <line num="98" count="0" type="stmt"/>
88
- <line num="101" count="17" type="stmt"/>
89
- <line num="102" count="0" type="stmt"/>
88
+ <line num="96" count="18" type="stmt"/>
89
+ <line num="97" count="0" type="stmt"/>
90
+ <line num="100" count="18" type="stmt"/>
91
+ <line num="101" count="0" type="stmt"/>
90
92
  </file>
91
93
  </package>
92
94
  <package name="src.api">
93
95
  <metrics statements="30" coveredstatements="29" conditionals="9" coveredconditionals="7" methods="5" coveredmethods="3"/>
94
96
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/index.ts">
95
97
  <metrics statements="30" coveredstatements="29" conditionals="9" coveredconditionals="7" methods="5" coveredmethods="3"/>
96
- <line num="1" count="17" type="stmt"/>
97
- <line num="2" count="17" type="stmt"/>
98
- <line num="3" count="17" type="stmt"/>
99
- <line num="4" count="17" type="stmt"/>
100
- <line num="5" count="17" type="stmt"/>
101
- <line num="6" count="17" type="stmt"/>
102
- <line num="9" count="17" type="stmt"/>
103
- <line num="67" count="17" type="stmt"/>
104
- <line num="105" count="17" type="stmt"/>
105
- <line num="107" count="17" type="stmt"/>
106
- <line num="108" count="17" type="stmt"/>
98
+ <line num="1" count="18" type="stmt"/>
99
+ <line num="2" count="18" type="stmt"/>
100
+ <line num="3" count="18" type="stmt"/>
101
+ <line num="4" count="18" type="stmt"/>
102
+ <line num="5" count="18" type="stmt"/>
103
+ <line num="6" count="18" type="stmt"/>
104
+ <line num="9" count="18" type="stmt"/>
105
+ <line num="67" count="18" type="stmt"/>
106
+ <line num="105" count="18" type="stmt"/>
107
+ <line num="107" count="18" type="stmt"/>
108
+ <line num="108" count="18" type="stmt"/>
107
109
  <line num="121" count="0" type="stmt"/>
108
- <line num="128" count="109" type="cond" truecount="1" falsecount="0"/>
110
+ <line num="128" count="123" type="cond" truecount="1" falsecount="0"/>
109
111
  <line num="129" count="24" type="stmt"/>
110
- <line num="131" count="85" type="cond" truecount="1" falsecount="0"/>
112
+ <line num="131" count="99" type="cond" truecount="1" falsecount="0"/>
111
113
  <line num="135" count="2" type="stmt"/>
112
- <line num="137" count="83" type="stmt"/>
113
- <line num="142" count="107" type="stmt"/>
114
- <line num="143" count="107" type="stmt"/>
115
- <line num="144" count="107" type="stmt"/>
114
+ <line num="137" count="97" type="stmt"/>
115
+ <line num="142" count="121" type="stmt"/>
116
+ <line num="143" count="121" type="stmt"/>
117
+ <line num="144" count="121" type="stmt"/>
116
118
  <line num="146" count="14" type="stmt"/>
117
119
  <line num="147" count="14" type="cond" truecount="1" falsecount="2"/>
118
120
  <line num="148" count="14" type="stmt"/>
119
121
  <line num="149" count="14" type="stmt"/>
120
122
  <line num="154" count="14" type="stmt"/>
121
- <line num="158" count="17" type="stmt"/>
122
- <line num="161" count="17" type="stmt"/>
123
- <line num="162" count="272" type="stmt"/>
124
- <line num="163" count="272" type="stmt"/>
125
- <line num="166" count="17" type="stmt"/>
123
+ <line num="158" count="18" type="stmt"/>
124
+ <line num="161" count="18" type="stmt"/>
125
+ <line num="162" count="288" type="stmt"/>
126
+ <line num="163" count="288" type="stmt"/>
127
+ <line num="166" count="18" type="stmt"/>
126
128
  </file>
127
129
  </package>
128
130
  <package name="src.api.controllers.global">
129
- <metrics statements="608" coveredstatements="360" conditionals="172" coveredconditionals="92" methods="137" coveredmethods="69"/>
131
+ <metrics statements="596" coveredstatements="394" conditionals="174" coveredconditionals="101" methods="137" coveredmethods="77"/>
130
132
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/auth.ts">
131
133
  <metrics statements="122" coveredstatements="75" conditionals="22" coveredconditionals="8" methods="41" coveredmethods="20"/>
132
- <line num="1" count="17" type="stmt"/>
133
- <line num="11" count="17" type="stmt"/>
134
- <line num="12" count="17" type="stmt"/>
135
- <line num="13" count="17" type="stmt"/>
136
- <line num="14" count="17" type="stmt"/>
137
- <line num="15" count="17" type="stmt"/>
138
- <line num="16" count="17" type="stmt"/>
139
- <line num="18" count="17" type="stmt"/>
140
- <line num="19" count="17" type="stmt"/>
141
- <line num="20" count="17" type="stmt"/>
142
- <line num="22" count="17" type="stmt"/>
134
+ <line num="1" count="18" type="stmt"/>
135
+ <line num="11" count="18" type="stmt"/>
136
+ <line num="12" count="18" type="stmt"/>
137
+ <line num="13" count="18" type="stmt"/>
138
+ <line num="14" count="18" type="stmt"/>
139
+ <line num="15" count="18" type="stmt"/>
140
+ <line num="16" count="18" type="stmt"/>
141
+ <line num="18" count="18" type="stmt"/>
142
+ <line num="19" count="18" type="stmt"/>
143
+ <line num="20" count="18" type="stmt"/>
144
+ <line num="22" count="18" type="stmt"/>
143
145
  <line num="23" count="0" type="stmt"/>
144
- <line num="26" count="17" type="stmt"/>
146
+ <line num="26" count="18" type="stmt"/>
145
147
  <line num="27" count="3" type="stmt"/>
146
148
  <line num="31" count="1" type="cond" truecount="0" falsecount="1"/>
147
149
  <line num="32" count="0" type="stmt"/>
@@ -152,23 +154,23 @@
152
154
  <line num="43" count="1" type="stmt"/>
153
155
  <line num="46" count="1" type="cond" truecount="0" falsecount="1"/>
154
156
  <line num="47" count="0" type="stmt"/>
155
- <line num="51" count="17" type="stmt"/>
157
+ <line num="51" count="18" type="stmt"/>
156
158
  <line num="52" count="0" type="stmt"/>
157
159
  <line num="54" count="0" type="stmt"/>
158
160
  <line num="55" count="0" type="stmt"/>
159
161
  <line num="56" count="0" type="stmt"/>
160
162
  <line num="57" count="0" type="stmt"/>
161
163
  <line num="59" count="0" type="stmt"/>
162
- <line num="64" count="17" type="stmt"/>
164
+ <line num="64" count="18" type="stmt"/>
163
165
  <line num="65" count="0" type="stmt"/>
164
166
  <line num="66" count="0" type="stmt"/>
165
167
  <line num="67" count="0" type="stmt"/>
166
- <line num="70" count="17" type="stmt"/>
168
+ <line num="70" count="18" type="stmt"/>
167
169
  <line num="71" count="0" type="stmt"/>
168
170
  <line num="72" count="0" type="cond" truecount="0" falsecount="2"/>
169
171
  <line num="74" count="0" type="stmt"/>
170
172
  <line num="75" count="0" type="stmt"/>
171
- <line num="82" count="17" type="stmt"/>
173
+ <line num="82" count="18" type="stmt"/>
172
174
  <line num="83" count="2" type="stmt"/>
173
175
  <line num="84" count="2" type="stmt"/>
174
176
  <line num="85" count="2" type="cond" truecount="0" falsecount="1"/>
@@ -180,7 +182,7 @@
180
182
  <line num="99" count="2" type="stmt"/>
181
183
  <line num="102" count="0" type="stmt"/>
182
184
  <line num="105" count="2" type="stmt"/>
183
- <line num="113" count="17" type="stmt"/>
185
+ <line num="113" count="18" type="stmt"/>
184
186
  <line num="114" count="1" type="stmt"/>
185
187
  <line num="115" count="1" type="stmt"/>
186
188
  <line num="116" count="1" type="stmt"/>
@@ -193,29 +195,29 @@
193
195
  <line num="126" count="1" type="stmt"/>
194
196
  <line num="128" count="0" type="stmt"/>
195
197
  <line num="129" count="0" type="stmt"/>
196
- <line num="133" count="17" type="stmt"/>
198
+ <line num="133" count="18" type="stmt"/>
197
199
  <line num="134" count="1" type="cond" truecount="3" falsecount="0"/>
198
200
  <line num="135" count="1" type="stmt"/>
199
201
  <line num="137" count="1" type="stmt"/>
200
- <line num="140" count="17" type="stmt"/>
202
+ <line num="140" count="18" type="stmt"/>
201
203
  <line num="141" count="0" type="stmt"/>
202
204
  <line num="142" count="0" type="stmt"/>
203
205
  <line num="143" count="0" type="stmt"/>
204
206
  <line num="145" count="0" type="stmt"/>
205
207
  <line num="155" count="0" type="stmt"/>
206
- <line num="158" count="17" type="stmt"/>
208
+ <line num="158" count="18" type="stmt"/>
207
209
  <line num="159" count="0" type="stmt"/>
208
210
  <line num="160" count="0" type="stmt"/>
209
211
  <line num="161" count="0" type="stmt"/>
210
212
  <line num="162" count="0" type="stmt"/>
211
213
  <line num="163" count="0" type="stmt"/>
212
- <line num="170" count="17" type="stmt"/>
214
+ <line num="170" count="18" type="stmt"/>
213
215
  <line num="171" count="0" type="stmt"/>
214
216
  <line num="173" count="0" type="stmt"/>
215
217
  <line num="177" count="0" type="stmt"/>
216
218
  <line num="178" count="0" type="stmt"/>
217
219
  <line num="184" count="0" type="stmt"/>
218
- <line num="191" count="17" type="stmt"/>
220
+ <line num="191" count="18" type="stmt"/>
219
221
  <line num="192" count="0" type="stmt"/>
220
222
  <line num="194" count="0" type="stmt"/>
221
223
  <line num="198" count="0" type="stmt"/>
@@ -226,14 +228,14 @@
226
228
  <line num="210" count="0" type="stmt"/>
227
229
  <line num="211" count="0" type="stmt"/>
228
230
  <line num="213" count="0" type="stmt"/>
229
- <line num="218" count="17" type="stmt"/>
231
+ <line num="218" count="18" type="stmt"/>
230
232
  <line num="219" count="3" type="stmt"/>
231
233
  <line num="220" count="3" type="stmt"/>
232
234
  <line num="225" count="3" type="stmt"/>
233
235
  <line num="226" count="3" type="stmt"/>
234
236
  <line num="229" count="3" type="stmt"/>
235
237
  <line num="233" count="3" type="stmt"/>
236
- <line num="240" count="17" type="stmt"/>
238
+ <line num="240" count="18" type="stmt"/>
237
239
  <line num="241" count="2" type="stmt"/>
238
240
  <line num="242" count="2" type="stmt"/>
239
241
  <line num="244" count="2" type="stmt"/>
@@ -242,7 +244,7 @@
242
244
  <line num="252" count="2" type="stmt"/>
243
245
  <line num="255" count="2" type="cond" truecount="4" falsecount="2"/>
244
246
  <line num="259" count="2" type="stmt"/>
245
- <line num="265" count="17" type="stmt"/>
247
+ <line num="265" count="18" type="stmt"/>
246
248
  <line num="266" count="1" type="stmt"/>
247
249
  <line num="267" count="1" type="stmt"/>
248
250
  <line num="269" count="1" type="stmt"/>
@@ -253,192 +255,180 @@
253
255
  <line num="277" count="1" type="stmt"/>
254
256
  </file>
255
257
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/configs.ts">
256
- <metrics statements="179" coveredstatements="122" conditionals="92" coveredconditionals="57" methods="25" coveredmethods="18"/>
257
- <line num="1" count="17" type="stmt"/>
258
- <line num="2" count="17" type="stmt"/>
259
- <line num="3" count="17" type="stmt"/>
260
- <line num="4" count="17" type="stmt"/>
261
- <line num="11" count="17" type="stmt"/>
262
- <line num="12" count="17" type="stmt"/>
263
- <line num="23" count="41" type="stmt"/>
264
- <line num="24" count="41" type="stmt"/>
265
- <line num="25" count="41" type="stmt"/>
266
- <line num="28" count="41" type="cond" truecount="1" falsecount="0"/>
267
- <line num="29" count="6" type="stmt"/>
268
- <line num="32" count="41" type="stmt"/>
269
- <line num="33" count="41" type="cond" truecount="2" falsecount="0"/>
270
- <line num="34" count="35" type="cond" truecount="4" falsecount="0"/>
271
- <line num="36" count="14" type="stmt"/>
272
- <line num="37" count="14" type="stmt"/>
273
- <line num="40" count="4" type="stmt"/>
258
+ <metrics statements="167" coveredstatements="112" conditionals="94" coveredconditionals="63" methods="25" coveredmethods="18"/>
259
+ <line num="1" count="18" type="stmt"/>
260
+ <line num="2" count="18" type="stmt"/>
261
+ <line num="3" count="18" type="stmt"/>
262
+ <line num="4" count="18" type="stmt"/>
263
+ <line num="12" count="18" type="stmt"/>
264
+ <line num="13" count="18" type="stmt"/>
265
+ <line num="29" count="41" type="stmt"/>
266
+ <line num="30" count="41" type="stmt"/>
267
+ <line num="33" count="41" type="cond" truecount="1" falsecount="0"/>
268
+ <line num="34" count="6" type="stmt"/>
269
+ <line num="37" count="41" type="cond" truecount="2" falsecount="0"/>
270
+ <line num="38" count="35" type="cond" truecount="2" falsecount="0"/>
271
+ <line num="39" count="14" type="stmt"/>
272
+ <line num="40" count="21" type="cond" truecount="2" falsecount="0"/>
274
273
  <line num="41" count="4" type="stmt"/>
275
274
  <line num="42" count="4" type="cond" truecount="1" falsecount="0"/>
276
275
  <line num="43" count="2" type="stmt"/>
277
- <line num="45" count="4" type="stmt"/>
278
- <line num="48" count="6" type="stmt"/>
279
- <line num="49" count="6" type="stmt"/>
280
- <line num="50" count="6" type="cond" truecount="1" falsecount="0"/>
281
- <line num="51" count="4" type="stmt"/>
282
- <line num="53" count="6" type="stmt"/>
283
- <line num="57" count="11" type="stmt"/>
276
+ <line num="45" count="17" type="cond" truecount="2" falsecount="0"/>
277
+ <line num="46" count="6" type="stmt"/>
278
+ <line num="47" count="6" type="cond" truecount="1" falsecount="0"/>
279
+ <line num="48" count="4" type="stmt"/>
280
+ <line num="50" count="11" type="cond" truecount="1" falsecount="0"/>
281
+ <line num="52" count="11" type="stmt"/>
282
+ <line num="53" count="11" type="cond" truecount="3" falsecount="0"/>
283
+ <line num="54" count="1" type="stmt"/>
284
284
  <line num="58" count="11" type="stmt"/>
285
- <line num="59" count="11" type="cond" truecount="3" falsecount="0"/>
285
+ <line num="59" count="11" type="cond" truecount="1" falsecount="0"/>
286
286
  <line num="60" count="1" type="stmt"/>
287
287
  <line num="64" count="11" type="stmt"/>
288
288
  <line num="65" count="11" type="cond" truecount="1" falsecount="0"/>
289
- <line num="66" count="1" type="stmt"/>
290
- <line num="70" count="11" type="stmt"/>
291
- <line num="71" count="11" type="cond" truecount="1" falsecount="0"/>
292
- <line num="76" count="1" type="stmt"/>
293
- <line num="78" count="11" type="stmt"/>
294
- <line num="82" count="6" type="cond" truecount="4" falsecount="0"/>
295
- <line num="84" count="1" type="stmt"/>
296
- <line num="85" count="1" type="stmt"/>
297
- <line num="88" count="2" type="stmt"/>
298
- <line num="89" count="2" type="stmt"/>
299
- <line num="90" count="2" type="cond" truecount="4" falsecount="0"/>
300
- <line num="91" count="1" type="stmt"/>
301
- <line num="92" count="1" type="cond" truecount="3" falsecount="0"/>
302
- <line num="93" count="1" type="stmt"/>
303
- <line num="95" count="2" type="stmt"/>
304
- <line num="98" count="2" type="stmt"/>
305
- <line num="99" count="2" type="stmt"/>
306
- <line num="100" count="2" type="cond" truecount="2" falsecount="0"/>
307
- <line num="104" count="1" type="stmt"/>
308
- <line num="105" count="1" type="cond" truecount="1" falsecount="0"/>
309
- <line num="109" count="1" type="stmt"/>
310
- <line num="111" count="2" type="stmt"/>
311
- <line num="115" count="1" type="stmt"/>
312
- <line num="116" count="1" type="stmt"/>
313
- <line num="117" count="1" type="stmt"/>
314
- <line num="118" count="1" type="cond" truecount="4" falsecount="0"/>
315
- <line num="119" count="1" type="stmt"/>
316
- <line num="123" count="1" type="stmt"/>
317
- <line num="124" count="1" type="stmt"/>
318
- <line num="125" count="1" type="cond" truecount="3" falsecount="0"/>
319
- <line num="126" count="1" type="stmt"/>
320
- <line num="130" count="1" type="stmt"/>
321
- <line num="131" count="1" type="stmt"/>
322
- <line num="132" count="1" type="cond" truecount="1" falsecount="0"/>
323
- <line num="138" count="1" type="stmt"/>
324
- <line num="140" count="1" type="stmt"/>
325
- <line num="145" count="41" type="stmt"/>
326
- <line num="148" count="17" type="stmt"/>
327
- <line num="149" count="41" type="stmt"/>
328
- <line num="150" count="41" type="stmt"/>
329
- <line num="151" count="41" type="stmt"/>
330
- <line num="153" count="41" type="cond" truecount="1" falsecount="0"/>
331
- <line num="154" count="35" type="stmt"/>
332
- <line num="160" count="41" type="stmt"/>
333
- <line num="162" count="41" type="cond" truecount="1" falsecount="0"/>
334
- <line num="164" count="15" type="stmt"/>
335
- <line num="165" count="12" type="stmt"/>
336
- <line num="168" count="3" type="stmt"/>
337
- <line num="171" count="38" type="stmt"/>
338
- <line num="172" count="38" type="stmt"/>
339
- <line num="173" count="38" type="stmt"/>
340
- <line num="174" count="38" type="stmt"/>
341
- <line num="176" count="38" type="stmt"/>
342
- <line num="177" count="42" type="stmt"/>
343
- <line num="180" count="38" type="stmt"/>
344
- <line num="186" count="0" type="stmt"/>
345
- <line num="190" count="17" type="stmt"/>
346
- <line num="191" count="0" type="stmt"/>
289
+ <line num="70" count="1" type="stmt"/>
290
+ <line num="74" count="6" type="cond" truecount="2" falsecount="0"/>
291
+ <line num="75" count="1" type="stmt"/>
292
+ <line num="76" count="5" type="cond" truecount="2" falsecount="0"/>
293
+ <line num="77" count="2" type="stmt"/>
294
+ <line num="78" count="2" type="cond" truecount="4" falsecount="0"/>
295
+ <line num="79" count="1" type="stmt"/>
296
+ <line num="80" count="1" type="cond" truecount="3" falsecount="0"/>
297
+ <line num="81" count="1" type="stmt"/>
298
+ <line num="83" count="3" type="cond" truecount="2" falsecount="0"/>
299
+ <line num="84" count="2" type="stmt"/>
300
+ <line num="85" count="2" type="cond" truecount="2" falsecount="0"/>
301
+ <line num="89" count="1" type="stmt"/>
302
+ <line num="90" count="1" type="cond" truecount="1" falsecount="0"/>
303
+ <line num="94" count="1" type="stmt"/>
304
+ <line num="96" count="1" type="cond" truecount="1" falsecount="0"/>
305
+ <line num="98" count="1" type="stmt"/>
306
+ <line num="99" count="1" type="stmt"/>
307
+ <line num="100" count="1" type="cond" truecount="4" falsecount="0"/>
308
+ <line num="101" count="1" type="stmt"/>
309
+ <line num="105" count="1" type="stmt"/>
310
+ <line num="106" count="1" type="stmt"/>
311
+ <line num="107" count="1" type="cond" truecount="3" falsecount="0"/>
312
+ <line num="108" count="1" type="stmt"/>
313
+ <line num="112" count="1" type="stmt"/>
314
+ <line num="113" count="1" type="stmt"/>
315
+ <line num="114" count="1" type="cond" truecount="1" falsecount="0"/>
316
+ <line num="120" count="1" type="stmt"/>
317
+ <line num="125" count="41" type="stmt"/>
318
+ <line num="128" count="18" type="stmt"/>
319
+ <line num="129" count="41" type="stmt"/>
320
+ <line num="130" count="41" type="stmt"/>
321
+ <line num="131" count="41" type="stmt"/>
322
+ <line num="133" count="41" type="cond" truecount="1" falsecount="0"/>
323
+ <line num="134" count="35" type="stmt"/>
324
+ <line num="140" count="41" type="stmt"/>
325
+ <line num="142" count="41" type="cond" truecount="1" falsecount="0"/>
326
+ <line num="144" count="15" type="stmt"/>
327
+ <line num="145" count="12" type="stmt"/>
328
+ <line num="148" count="3" type="stmt"/>
329
+ <line num="151" count="38" type="stmt"/>
330
+ <line num="152" count="38" type="stmt"/>
331
+ <line num="153" count="38" type="stmt"/>
332
+ <line num="154" count="38" type="stmt"/>
333
+ <line num="156" count="38" type="stmt"/>
334
+ <line num="157" count="42" type="stmt"/>
335
+ <line num="160" count="38" type="stmt"/>
336
+ <line num="166" count="0" type="stmt"/>
337
+ <line num="170" count="18" type="stmt"/>
338
+ <line num="171" count="0" type="stmt"/>
339
+ <line num="172" count="0" type="stmt"/>
340
+ <line num="180" count="0" type="stmt"/>
341
+ <line num="187" count="18" type="stmt"/>
342
+ <line num="188" count="36" type="stmt"/>
343
+ <line num="190" count="36" type="stmt"/>
344
+ <line num="191" count="36" type="cond" truecount="1" falsecount="2"/>
347
345
  <line num="192" count="0" type="stmt"/>
348
- <line num="200" count="0" type="stmt"/>
349
- <line num="207" count="17" type="stmt"/>
350
- <line num="208" count="36" type="stmt"/>
351
- <line num="210" count="36" type="stmt"/>
352
- <line num="211" count="36" type="cond" truecount="1" falsecount="2"/>
353
- <line num="212" count="0" type="stmt"/>
354
- <line num="213" count="0" type="stmt"/>
355
- <line num="214" count="0" type="stmt"/>
356
- <line num="216" count="0" type="cond" truecount="0" falsecount="3"/>
357
- <line num="217" count="0" type="stmt"/>
358
- <line num="221" count="36" type="stmt"/>
359
- <line num="223" count="36" type="stmt"/>
360
- <line num="229" count="36" type="cond" truecount="2" falsecount="0"/>
361
- <line num="230" count="27" type="stmt"/>
362
- <line num="233" count="9" type="stmt"/>
363
- <line num="236" count="0" type="cond" truecount="0" falsecount="6"/>
364
- <line num="240" count="17" type="stmt"/>
365
- <line num="241" count="0" type="stmt"/>
366
- <line num="242" count="0" type="stmt"/>
367
- <line num="244" count="0" type="stmt"/>
368
- <line num="248" count="0" type="cond" truecount="0" falsecount="2"/>
369
- <line num="249" count="0" type="stmt"/>
346
+ <line num="193" count="0" type="stmt"/>
347
+ <line num="194" count="0" type="stmt"/>
348
+ <line num="196" count="0" type="cond" truecount="0" falsecount="3"/>
349
+ <line num="197" count="0" type="stmt"/>
350
+ <line num="201" count="36" type="stmt"/>
351
+ <line num="203" count="36" type="stmt"/>
352
+ <line num="209" count="36" type="cond" truecount="2" falsecount="0"/>
353
+ <line num="210" count="27" type="stmt"/>
354
+ <line num="213" count="9" type="stmt"/>
355
+ <line num="216" count="0" type="cond" truecount="0" falsecount="6"/>
356
+ <line num="220" count="18" type="stmt"/>
357
+ <line num="221" count="0" type="stmt"/>
358
+ <line num="222" count="0" type="stmt"/>
359
+ <line num="224" count="0" type="stmt"/>
360
+ <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
361
+ <line num="229" count="0" type="stmt"/>
362
+ <line num="231" count="0" type="stmt"/>
363
+ <line num="238" count="0" type="stmt"/>
364
+ <line num="242" count="18" type="stmt"/>
365
+ <line num="243" count="0" type="stmt"/>
366
+ <line num="245" count="0" type="stmt"/>
367
+ <line num="247" count="0" type="stmt"/>
370
368
  <line num="251" count="0" type="stmt"/>
371
- <line num="258" count="0" type="stmt"/>
372
- <line num="262" count="17" type="stmt"/>
373
- <line num="263" count="0" type="stmt"/>
369
+ <line num="255" count="0" type="stmt"/>
370
+ <line num="260" count="0" type="cond" truecount="0" falsecount="2"/>
371
+ <line num="261" count="0" type="stmt"/>
374
372
  <line num="265" count="0" type="stmt"/>
375
- <line num="267" count="0" type="stmt"/>
373
+ <line num="270" count="0" type="cond" truecount="0" falsecount="1"/>
376
374
  <line num="271" count="0" type="stmt"/>
377
- <line num="275" count="0" type="stmt"/>
378
- <line num="280" count="0" type="cond" truecount="0" falsecount="2"/>
375
+ <line num="279" count="0" type="cond" truecount="0" falsecount="4"/>
379
376
  <line num="281" count="0" type="stmt"/>
380
- <line num="285" count="0" type="stmt"/>
381
- <line num="289" count="0" type="cond" truecount="0" falsecount="4"/>
382
- <line num="291" count="0" type="stmt"/>
383
- <line num="294" count="0" type="stmt"/>
377
+ <line num="284" count="0" type="stmt"/>
378
+ <line num="288" count="0" type="stmt"/>
379
+ <line num="289" count="0" type="stmt"/>
380
+ <line num="292" count="0" type="cond" truecount="0" falsecount="4"/>
381
+ <line num="293" count="0" type="stmt"/>
382
+ <line num="295" count="0" type="stmt"/>
384
383
  <line num="298" count="0" type="stmt"/>
385
- <line num="299" count="0" type="stmt"/>
386
- <line num="302" count="0" type="cond" truecount="0" falsecount="4"/>
387
- <line num="303" count="0" type="stmt"/>
388
- <line num="305" count="0" type="stmt"/>
384
+ <line num="300" count="0" type="stmt"/>
385
+ <line num="304" count="18" type="stmt"/>
386
+ <line num="305" count="0" type="cond" truecount="0" falsecount="3"/>
387
+ <line num="306" count="0" type="stmt"/>
389
388
  <line num="308" count="0" type="stmt"/>
390
- <line num="310" count="0" type="stmt"/>
391
- <line num="314" count="17" type="stmt"/>
392
- <line num="315" count="0" type="cond" truecount="0" falsecount="3"/>
393
- <line num="316" count="0" type="stmt"/>
394
- <line num="318" count="0" type="stmt"/>
395
- <line num="319" count="0" type="stmt"/>
396
- <line num="322" count="0" type="cond" truecount="0" falsecount="2"/>
389
+ <line num="309" count="0" type="stmt"/>
390
+ <line num="311" count="0" type="stmt"/>
391
+ <line num="312" count="0" type="stmt"/>
392
+ <line num="314" count="0" type="stmt"/>
397
393
  <line num="323" count="0" type="stmt"/>
398
- <line num="325" count="0" type="stmt"/>
399
- <line num="329" count="0" type="cond" truecount="0" falsecount="2"/>
400
- <line num="330" count="0" type="stmt"/>
401
- <line num="332" count="0" type="stmt"/>
394
+ <line num="324" count="0" type="stmt"/>
395
+ <line num="325" count="0" type="cond" truecount="0" falsecount="1"/>
396
+ <line num="326" count="0" type="stmt"/>
397
+ <line num="333" count="0" type="stmt"/>
398
+ <line num="334" count="0" type="cond" truecount="0" falsecount="1"/>
402
399
  <line num="335" count="0" type="stmt"/>
400
+ <line num="339" count="0" type="stmt"/>
401
+ <line num="342" count="0" type="stmt"/>
403
402
  <line num="344" count="0" type="stmt"/>
404
- <line num="345" count="0" type="stmt"/>
405
- <line num="346" count="0" type="cond" truecount="0" falsecount="1"/>
406
- <line num="347" count="0" type="stmt"/>
407
- <line num="353" count="0" type="cond" truecount="0" falsecount="2"/>
408
- <line num="354" count="0" type="stmt"/>
409
- <line num="356" count="0" type="stmt"/>
410
- <line num="359" count="0" type="stmt"/>
411
- <line num="361" count="0" type="stmt"/>
412
- <line num="363" count="0" type="stmt"/>
413
- <line num="369" count="17" type="stmt"/>
414
- <line num="370" count="36" type="stmt"/>
415
- <line num="371" count="36" type="stmt"/>
416
- <line num="372" count="36" type="stmt"/>
417
- <line num="373" count="36" type="stmt"/>
418
- <line num="374" count="23" type="stmt"/>
419
- <line num="375" count="23" type="stmt"/>
420
- <line num="377" count="13" type="stmt"/>
421
- <line num="381" count="17" type="stmt"/>
422
- <line num="382" count="4" type="stmt"/>
403
+ <line num="350" count="18" type="stmt"/>
404
+ <line num="351" count="36" type="stmt"/>
405
+ <line num="352" count="36" type="stmt"/>
406
+ <line num="353" count="36" type="stmt"/>
407
+ <line num="354" count="36" type="stmt"/>
408
+ <line num="355" count="23" type="stmt"/>
409
+ <line num="356" count="23" type="stmt"/>
410
+ <line num="358" count="13" type="stmt"/>
411
+ <line num="362" count="18" type="stmt"/>
412
+ <line num="363" count="4" type="stmt"/>
413
+ <line num="364" count="4" type="stmt"/>
414
+ <line num="366" count="4" type="stmt"/>
415
+ <line num="367" count="4" type="stmt"/>
416
+ <line num="370" count="4" type="stmt"/>
417
+ <line num="371" count="4" type="stmt"/>
418
+ <line num="372" count="4" type="cond" truecount="3" falsecount="0"/>
419
+ <line num="374" count="4" type="stmt"/>
420
+ <line num="378" count="4" type="stmt"/>
423
421
  <line num="383" count="4" type="stmt"/>
424
- <line num="385" count="4" type="stmt"/>
425
- <line num="386" count="4" type="stmt"/>
426
- <line num="389" count="4" type="stmt"/>
427
- <line num="390" count="4" type="stmt"/>
428
- <line num="391" count="4" type="cond" truecount="3" falsecount="0"/>
422
+ <line num="388" count="4" type="stmt"/>
429
423
  <line num="393" count="4" type="stmt"/>
430
- <line num="397" count="4" type="stmt"/>
431
- <line num="402" count="4" type="stmt"/>
432
- <line num="407" count="4" type="stmt"/>
433
- <line num="412" count="4" type="stmt"/>
434
- <line num="413" count="4" type="stmt"/>
435
- <line num="438" count="0" type="stmt"/>
424
+ <line num="394" count="4" type="stmt"/>
425
+ <line num="419" count="0" type="stmt"/>
436
426
  </file>
437
427
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/email.ts">
438
428
  <metrics statements="9" coveredstatements="7" conditionals="1" coveredconditionals="0" methods="1" coveredmethods="1"/>
439
- <line num="1" count="17" type="stmt"/>
440
- <line num="2" count="17" type="stmt"/>
441
- <line num="5" count="17" type="stmt"/>
429
+ <line num="1" count="18" type="stmt"/>
430
+ <line num="2" count="18" type="stmt"/>
431
+ <line num="5" count="18" type="stmt"/>
442
432
  <line num="17" count="1" type="stmt"/>
443
433
  <line num="19" count="1" type="cond" truecount="0" falsecount="1"/>
444
434
  <line num="20" count="0" type="stmt"/>
@@ -448,79 +438,79 @@
448
438
  </file>
449
439
  <file name="license.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/license.ts">
450
440
  <metrics statements="21" coveredstatements="6" conditionals="2" coveredconditionals="0" methods="10" coveredmethods="0"/>
451
- <line num="1" count="17" type="stmt"/>
452
- <line num="3" count="17" type="stmt"/>
441
+ <line num="1" count="18" type="stmt"/>
442
+ <line num="3" count="18" type="stmt"/>
453
443
  <line num="4" count="0" type="stmt"/>
454
444
  <line num="5" count="0" type="cond" truecount="0" falsecount="1"/>
455
445
  <line num="6" count="0" type="stmt"/>
456
446
  <line num="9" count="0" type="stmt"/>
457
447
  <line num="10" count="0" type="stmt"/>
458
- <line num="13" count="17" type="stmt"/>
448
+ <line num="13" count="18" type="stmt"/>
459
449
  <line num="14" count="0" type="stmt"/>
460
450
  <line num="15" count="0" type="stmt"/>
461
- <line num="18" count="17" type="stmt"/>
451
+ <line num="18" count="18" type="stmt"/>
462
452
  <line num="19" count="0" type="stmt"/>
463
453
  <line num="20" count="0" type="cond" truecount="0" falsecount="1"/>
464
454
  <line num="21" count="0" type="stmt"/>
465
455
  <line num="22" count="0" type="stmt"/>
466
456
  <line num="24" count="0" type="stmt"/>
467
- <line num="27" count="17" type="stmt"/>
457
+ <line num="27" count="18" type="stmt"/>
468
458
  <line num="28" count="0" type="stmt"/>
469
459
  <line num="29" count="0" type="stmt"/>
470
- <line num="32" count="17" type="stmt"/>
460
+ <line num="32" count="18" type="stmt"/>
471
461
  <line num="33" count="0" type="stmt"/>
472
462
  </file>
473
463
  <file name="roles.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/roles.ts">
474
- <metrics statements="34" coveredstatements="5" conditionals="1" coveredconditionals="0" methods="5" coveredmethods="0"/>
475
- <line num="1" count="17" type="stmt"/>
476
- <line num="9" count="17" type="stmt"/>
477
- <line num="11" count="17" type="stmt"/>
478
- <line num="12" count="0" type="stmt"/>
479
- <line num="14" count="0" type="stmt"/>
480
- <line num="15" count="0" type="stmt"/>
481
- <line num="16" count="0" type="stmt"/>
482
- <line num="18" count="0" type="stmt"/>
483
- <line num="20" count="0" type="stmt"/>
484
- <line num="21" count="0" type="stmt"/>
485
- <line num="22" count="0" type="stmt"/>
486
- <line num="23" count="0" type="stmt"/>
487
- <line num="24" count="0" type="stmt"/>
488
- <line num="31" count="0" type="stmt"/>
489
- <line num="34" count="17" type="stmt"/>
490
- <line num="35" count="0" type="stmt"/>
491
- <line num="36" count="0" type="stmt"/>
492
- <line num="37" count="0" type="stmt"/>
493
- <line num="38" count="0" type="stmt"/>
494
- <line num="39" count="0" type="stmt"/>
495
- <line num="48" count="17" type="stmt"/>
496
- <line num="49" count="0" type="stmt"/>
497
- <line num="50" count="0" type="stmt"/>
498
- <line num="51" count="0" type="stmt"/>
499
- <line num="52" count="0" type="stmt"/>
500
- <line num="53" count="0" type="stmt"/>
501
- <line num="54" count="0" type="stmt"/>
502
- <line num="55" count="0" type="cond" truecount="0" falsecount="1"/>
503
- <line num="56" count="0" type="stmt"/>
504
- <line num="57" count="0" type="stmt"/>
505
- <line num="58" count="0" type="stmt"/>
506
- <line num="61" count="0" type="stmt"/>
507
- <line num="62" count="0" type="stmt"/>
508
- <line num="63" count="0" type="stmt"/>
464
+ <metrics statements="34" coveredstatements="34" conditionals="1" coveredconditionals="1" methods="5" coveredmethods="5"/>
465
+ <line num="1" count="18" type="stmt"/>
466
+ <line num="9" count="18" type="stmt"/>
467
+ <line num="11" count="18" type="stmt"/>
468
+ <line num="12" count="1" type="stmt"/>
469
+ <line num="14" count="1" type="stmt"/>
470
+ <line num="15" count="1" type="stmt"/>
471
+ <line num="16" count="1" type="stmt"/>
472
+ <line num="18" count="1" type="stmt"/>
473
+ <line num="20" count="1" type="stmt"/>
474
+ <line num="21" count="1" type="stmt"/>
475
+ <line num="22" count="1" type="stmt"/>
476
+ <line num="23" count="1" type="stmt"/>
477
+ <line num="24" count="1" type="stmt"/>
478
+ <line num="31" count="1" type="stmt"/>
479
+ <line num="34" count="18" type="stmt"/>
480
+ <line num="35" count="1" type="stmt"/>
481
+ <line num="36" count="1" type="stmt"/>
482
+ <line num="37" count="1" type="stmt"/>
483
+ <line num="38" count="1" type="stmt"/>
484
+ <line num="39" count="1" type="stmt"/>
485
+ <line num="48" count="18" type="stmt"/>
486
+ <line num="49" count="1" type="stmt"/>
487
+ <line num="50" count="1" type="stmt"/>
488
+ <line num="51" count="1" type="stmt"/>
489
+ <line num="52" count="1" type="stmt"/>
490
+ <line num="53" count="1" type="stmt"/>
491
+ <line num="54" count="1" type="stmt"/>
492
+ <line num="55" count="2" type="cond" truecount="1" falsecount="0"/>
493
+ <line num="56" count="2" type="stmt"/>
494
+ <line num="57" count="2" type="stmt"/>
495
+ <line num="58" count="2" type="stmt"/>
496
+ <line num="61" count="1" type="stmt"/>
497
+ <line num="62" count="1" type="stmt"/>
498
+ <line num="63" count="1" type="stmt"/>
509
499
  </file>
510
500
  <file name="self.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/self.ts">
511
501
  <metrics statements="78" coveredstatements="51" conditionals="11" coveredconditionals="4" methods="10" coveredmethods="5"/>
512
- <line num="1" count="17" type="stmt"/>
513
- <line num="2" count="17" type="stmt"/>
514
- <line num="12" count="17" type="stmt"/>
515
- <line num="13" count="17" type="stmt"/>
516
- <line num="14" count="17" type="stmt"/>
517
- <line num="15" count="17" type="stmt"/>
502
+ <line num="1" count="18" type="stmt"/>
503
+ <line num="2" count="18" type="stmt"/>
504
+ <line num="12" count="18" type="stmt"/>
505
+ <line num="13" count="18" type="stmt"/>
506
+ <line num="14" count="18" type="stmt"/>
507
+ <line num="15" count="18" type="stmt"/>
518
508
  <line num="18" count="0" type="stmt"/>
519
509
  <line num="22" count="0" type="stmt"/>
520
510
  <line num="29" count="0" type="stmt"/>
521
511
  <line num="30" count="0" type="stmt"/>
522
512
  <line num="31" count="0" type="stmt"/>
523
- <line num="34" count="17" type="stmt"/>
513
+ <line num="34" count="18" type="stmt"/>
524
514
  <line num="37" count="0" type="cond" truecount="0" falsecount="4"/>
525
515
  <line num="38" count="0" type="stmt"/>
526
516
  <line num="39" count="0" type="stmt"/>
@@ -534,7 +524,7 @@
534
524
  <line num="53" count="0" type="stmt"/>
535
525
  <line num="54" count="0" type="stmt"/>
536
526
  <line num="55" count="0" type="stmt"/>
537
- <line num="58" count="17" type="stmt"/>
527
+ <line num="58" count="18" type="stmt"/>
538
528
  <line num="59" count="0" type="stmt"/>
539
529
  <line num="60" count="0" type="stmt"/>
540
530
  <line num="62" count="0" type="stmt"/>
@@ -542,24 +532,24 @@
542
532
  <line num="65" count="0" type="stmt"/>
543
533
  <line num="70" count="0" type="stmt"/>
544
534
  <line num="72" count="0" type="stmt"/>
545
- <line num="75" count="17" type="stmt"/>
535
+ <line num="75" count="18" type="stmt"/>
546
536
  <line num="76" count="1" type="stmt"/>
547
537
  <line num="77" count="1" type="cond" truecount="1" falsecount="2"/>
548
538
  <line num="81" count="0" type="stmt"/>
549
- <line num="88" count="17" type="stmt"/>
539
+ <line num="88" count="18" type="stmt"/>
550
540
  <line num="89" count="1" type="stmt"/>
551
541
  <line num="90" count="1" type="stmt"/>
552
542
  <line num="91" count="1" type="stmt"/>
553
543
  <line num="92" count="1" type="stmt"/>
554
544
  <line num="93" count="1" type="stmt"/>
555
- <line num="96" count="17" type="stmt"/>
545
+ <line num="96" count="18" type="stmt"/>
556
546
  <line num="97" count="2" type="stmt"/>
557
547
  <line num="98" count="2" type="stmt"/>
558
548
  <line num="99" count="2" type="stmt"/>
559
549
  <line num="100" count="17" type="cond" truecount="1" falsecount="0"/>
560
550
  <line num="101" count="1" type="stmt"/>
561
551
  <line num="104" count="2" type="stmt"/>
562
- <line num="107" count="17" type="stmt"/>
552
+ <line num="107" count="18" type="stmt"/>
563
553
  <line num="108" count="1" type="cond" truecount="0" falsecount="1"/>
564
554
  <line num="109" count="0" type="stmt"/>
565
555
  <line num="111" count="1" type="stmt"/>
@@ -570,7 +560,7 @@
570
560
  <line num="123" count="1" type="stmt"/>
571
561
  <line num="124" count="1" type="stmt"/>
572
562
  <line num="126" count="1" type="stmt"/>
573
- <line num="129" count="17" type="stmt"/>
563
+ <line num="129" count="18" type="stmt"/>
574
564
  <line num="130" count="2" type="stmt"/>
575
565
  <line num="131" count="2" type="stmt"/>
576
566
  <line num="132" count="2" type="stmt"/>
@@ -589,35 +579,35 @@
589
579
  <line num="162" count="1" type="stmt"/>
590
580
  </file>
591
581
  <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/templates.ts">
592
- <metrics statements="32" coveredstatements="10" conditionals="2" coveredconditionals="0" methods="7" coveredmethods="0"/>
593
- <line num="1" count="17" type="stmt"/>
594
- <line num="6" count="17" type="stmt"/>
595
- <line num="7" count="17" type="stmt"/>
596
- <line num="9" count="17" type="stmt"/>
597
- <line num="10" count="0" type="stmt"/>
598
- <line num="11" count="0" type="stmt"/>
599
- <line num="12" count="0" type="cond" truecount="0" falsecount="1"/>
600
- <line num="13" count="0" type="stmt"/>
601
- <line num="15" count="0" type="cond" truecount="0" falsecount="1"/>
602
- <line num="16" count="0" type="stmt"/>
603
- <line num="19" count="0" type="stmt"/>
604
- <line num="20" count="0" type="stmt"/>
605
- <line num="26" count="17" type="stmt"/>
606
- <line num="27" count="0" type="stmt"/>
607
- <line num="28" count="0" type="stmt"/>
608
- <line num="29" count="0" type="stmt"/>
609
- <line num="30" count="0" type="stmt"/>
610
- <line num="31" count="0" type="stmt"/>
611
- <line num="38" count="0" type="stmt"/>
612
- <line num="47" count="17" type="stmt"/>
613
- <line num="48" count="0" type="stmt"/>
614
- <line num="51" count="17" type="stmt"/>
582
+ <metrics statements="32" coveredstatements="25" conditionals="2" coveredconditionals="2" methods="7" coveredmethods="3"/>
583
+ <line num="1" count="18" type="stmt"/>
584
+ <line num="6" count="18" type="stmt"/>
585
+ <line num="7" count="18" type="stmt"/>
586
+ <line num="9" count="18" type="stmt"/>
587
+ <line num="10" count="1" type="stmt"/>
588
+ <line num="11" count="1" type="stmt"/>
589
+ <line num="12" count="1" type="cond" truecount="1" falsecount="0"/>
590
+ <line num="13" count="1" type="stmt"/>
591
+ <line num="15" count="1" type="cond" truecount="1" falsecount="0"/>
592
+ <line num="16" count="1" type="stmt"/>
593
+ <line num="19" count="1" type="stmt"/>
594
+ <line num="20" count="1" type="stmt"/>
595
+ <line num="26" count="18" type="stmt"/>
596
+ <line num="27" count="2" type="stmt"/>
597
+ <line num="28" count="2" type="stmt"/>
598
+ <line num="29" count="2" type="stmt"/>
599
+ <line num="30" count="10" type="stmt"/>
600
+ <line num="31" count="10" type="stmt"/>
601
+ <line num="38" count="2" type="stmt"/>
602
+ <line num="47" count="18" type="stmt"/>
603
+ <line num="48" count="2" type="stmt"/>
604
+ <line num="51" count="18" type="stmt"/>
615
605
  <line num="53" count="0" type="stmt"/>
616
- <line num="58" count="17" type="stmt"/>
606
+ <line num="58" count="18" type="stmt"/>
617
607
  <line num="60" count="0" type="stmt"/>
618
- <line num="65" count="17" type="stmt"/>
608
+ <line num="65" count="18" type="stmt"/>
619
609
  <line num="67" count="0" type="stmt"/>
620
- <line num="72" count="17" type="stmt"/>
610
+ <line num="72" count="18" type="stmt"/>
621
611
  <line num="73" count="0" type="stmt"/>
622
612
  <line num="74" count="0" type="stmt"/>
623
613
  <line num="75" count="0" type="stmt"/>
@@ -625,26 +615,26 @@
625
615
  </file>
626
616
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/users.ts">
627
617
  <metrics statements="107" coveredstatements="79" conditionals="40" coveredconditionals="23" methods="33" coveredmethods="25"/>
628
- <line num="1" count="17" type="stmt"/>
629
- <line num="2" count="17" type="stmt"/>
630
- <line num="3" count="17" type="stmt"/>
631
- <line num="14" count="17" type="stmt"/>
632
- <line num="21" count="17" type="stmt"/>
633
- <line num="23" count="17" type="stmt"/>
634
- <line num="25" count="83" type="stmt"/>
635
- <line num="26" count="83" type="stmt"/>
636
- <line num="27" count="83" type="stmt"/>
637
- <line num="28" count="83" type="stmt"/>
618
+ <line num="1" count="18" type="stmt"/>
619
+ <line num="2" count="18" type="stmt"/>
620
+ <line num="3" count="18" type="stmt"/>
621
+ <line num="14" count="18" type="stmt"/>
622
+ <line num="21" count="18" type="stmt"/>
623
+ <line num="23" count="18" type="stmt"/>
624
+ <line num="25" count="86" type="stmt"/>
625
+ <line num="26" count="86" type="stmt"/>
626
+ <line num="27" count="86" type="stmt"/>
627
+ <line num="28" count="86" type="stmt"/>
638
628
  <line num="30" count="5" type="cond" truecount="2" falsecount="0"/>
639
- <line num="34" count="17" type="stmt"/>
629
+ <line num="34" count="18" type="stmt"/>
640
630
  <line num="35" count="3" type="cond" truecount="4" falsecount="1"/>
641
631
  <line num="36" count="1" type="stmt"/>
642
632
  <line num="38" count="2" type="stmt"/>
643
- <line num="41" count="17" type="stmt"/>
633
+ <line num="41" count="18" type="stmt"/>
644
634
  <line num="42" count="6" type="cond" truecount="2" falsecount="1"/>
645
635
  <line num="43" count="0" type="stmt"/>
646
636
  <line num="47" count="6" type="stmt"/>
647
- <line num="50" count="17" type="stmt"/>
637
+ <line num="50" count="18" type="stmt"/>
648
638
  <line num="51" count="9" type="stmt"/>
649
639
  <line num="52" count="9" type="stmt"/>
650
640
  <line num="54" count="9" type="stmt"/>
@@ -654,9 +644,9 @@
654
644
  <line num="59" count="3" type="stmt"/>
655
645
  <line num="62" count="1" type="cond" truecount="6" falsecount="2"/>
656
646
  <line num="64" count="8" type="stmt"/>
657
- <line num="67" count="17" type="stmt"/>
647
+ <line num="67" count="18" type="stmt"/>
658
648
  <line num="68" count="12" type="cond" truecount="1" falsecount="1"/>
659
- <line num="71" count="17" type="stmt"/>
649
+ <line num="71" count="18" type="stmt"/>
660
650
  <line num="72" count="6" type="stmt"/>
661
651
  <line num="74" count="6" type="stmt"/>
662
652
  <line num="76" count="6" type="stmt"/>
@@ -675,39 +665,39 @@
675
665
  <line num="119" count="6" type="stmt"/>
676
666
  <line num="121" count="6" type="stmt"/>
677
667
  <line num="123" count="0" type="cond" truecount="0" falsecount="2"/>
678
- <line num="128" count="17" type="stmt"/>
668
+ <line num="128" count="18" type="stmt"/>
679
669
  <line num="129" count="0" type="stmt"/>
680
670
  <line num="130" count="0" type="stmt"/>
681
671
  <line num="131" count="0" type="stmt"/>
682
672
  <line num="133" count="0" type="cond" truecount="0" falsecount="2"/>
683
- <line num="137" count="17" type="stmt"/>
673
+ <line num="137" count="18" type="stmt"/>
684
674
  <line num="138" count="5" type="stmt"/>
685
675
  <line num="139" count="5" type="cond" truecount="1" falsecount="0"/>
686
676
  <line num="140" count="1" type="stmt"/>
687
677
  <line num="143" count="4" type="stmt"/>
688
678
  <line num="145" count="3" type="stmt"/>
689
- <line num="150" count="17" type="stmt"/>
679
+ <line num="150" count="18" type="stmt"/>
690
680
  <line num="151" count="0" type="stmt"/>
691
681
  <line num="152" count="0" type="stmt"/>
692
682
  <line num="154" count="0" type="stmt"/>
693
683
  <line num="155" count="0" type="cond" truecount="0" falsecount="1"/>
694
684
  <line num="156" count="0" type="stmt"/>
695
685
  <line num="159" count="0" type="stmt"/>
696
- <line num="163" count="17" type="stmt"/>
686
+ <line num="163" count="18" type="stmt"/>
697
687
  <line num="164" count="0" type="stmt"/>
698
688
  <line num="166" count="0" type="stmt"/>
699
689
  <line num="167" count="0" type="cond" truecount="0" falsecount="1"/>
700
690
  <line num="168" count="0" type="stmt"/>
701
691
  <line num="171" count="0" type="stmt"/>
702
- <line num="175" count="17" type="stmt"/>
703
- <line num="176" count="8" type="stmt"/>
704
- <line num="179" count="17" type="stmt"/>
692
+ <line num="175" count="18" type="stmt"/>
693
+ <line num="176" count="9" type="stmt"/>
694
+ <line num="179" count="18" type="stmt"/>
705
695
  <line num="180" count="0" type="stmt"/>
706
696
  <line num="181" count="0" type="stmt"/>
707
697
  <line num="182" count="0" type="cond" truecount="0" falsecount="2"/>
708
698
  <line num="183" count="0" type="stmt"/>
709
699
  <line num="185" count="0" type="stmt"/>
710
- <line num="189" count="17" type="stmt"/>
700
+ <line num="189" count="18" type="stmt"/>
711
701
  <line num="190" count="3" type="stmt"/>
712
702
  <line num="191" count="3" type="stmt"/>
713
703
  <line num="194" count="3" type="cond" truecount="1" falsecount="0"/>
@@ -716,10 +706,10 @@
716
706
  <line num="197" count="1" type="stmt"/>
717
707
  <line num="199" count="0" type="stmt"/>
718
708
  <line num="203" count="2" type="stmt"/>
719
- <line num="208" count="17" type="stmt"/>
709
+ <line num="208" count="18" type="stmt"/>
720
710
  <line num="209" count="2" type="stmt"/>
721
711
  <line num="210" count="2" type="stmt"/>
722
- <line num="213" count="17" type="stmt"/>
712
+ <line num="213" count="18" type="stmt"/>
723
713
  <line num="214" count="1" type="stmt"/>
724
714
  <line num="215" count="1" type="stmt"/>
725
715
  <line num="217" count="1" type="stmt"/>
@@ -735,8 +725,8 @@
735
725
  </file>
736
726
  <file name="workspaces.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/global/workspaces.ts">
737
727
  <metrics statements="26" coveredstatements="5" conditionals="1" coveredconditionals="0" methods="5" coveredmethods="0"/>
738
- <line num="1" count="17" type="stmt"/>
739
- <line num="4" count="17" type="stmt"/>
728
+ <line num="1" count="18" type="stmt"/>
729
+ <line num="4" count="18" type="stmt"/>
740
730
  <line num="5" count="0" type="stmt"/>
741
731
  <line num="6" count="0" type="stmt"/>
742
732
  <line num="9" count="0" type="cond" truecount="0" falsecount="1"/>
@@ -745,16 +735,16 @@
745
735
  <line num="14" count="0" type="stmt"/>
746
736
  <line num="15" count="0" type="stmt"/>
747
737
  <line num="20" count="0" type="stmt"/>
748
- <line num="24" count="17" type="stmt"/>
738
+ <line num="24" count="18" type="stmt"/>
749
739
  <line num="25" count="0" type="stmt"/>
750
740
  <line num="26" count="0" type="stmt"/>
751
741
  <line num="31" count="0" type="stmt"/>
752
- <line num="34" count="17" type="stmt"/>
742
+ <line num="34" count="18" type="stmt"/>
753
743
  <line num="35" count="0" type="stmt"/>
754
744
  <line num="36" count="0" type="stmt"/>
755
745
  <line num="37" count="0" type="stmt"/>
756
746
  <line num="39" count="0" type="stmt"/>
757
- <line num="43" count="17" type="stmt"/>
747
+ <line num="43" count="18" type="stmt"/>
758
748
  <line num="44" count="0" type="stmt"/>
759
749
  <line num="45" count="0" type="stmt"/>
760
750
  <line num="47" count="0" type="stmt"/>
@@ -767,40 +757,40 @@
767
757
  <metrics statements="50" coveredstatements="48" conditionals="8" coveredconditionals="8" methods="15" coveredmethods="15"/>
768
758
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/accounts.ts">
769
759
  <metrics statements="11" coveredstatements="11" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
770
- <line num="2" count="17" type="stmt"/>
771
- <line num="4" count="17" type="stmt"/>
760
+ <line num="2" count="18" type="stmt"/>
761
+ <line num="4" count="18" type="stmt"/>
772
762
  <line num="5" count="3" type="stmt"/>
773
763
  <line num="6" count="3" type="stmt"/>
774
764
  <line num="11" count="3" type="stmt"/>
775
765
  <line num="13" count="3" type="stmt"/>
776
766
  <line num="14" count="3" type="stmt"/>
777
- <line num="17" count="17" type="stmt"/>
767
+ <line num="17" count="18" type="stmt"/>
778
768
  <line num="18" count="2" type="stmt"/>
779
769
  <line num="19" count="2" type="stmt"/>
780
770
  <line num="20" count="2" type="stmt"/>
781
771
  </file>
782
772
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/environment.ts">
783
773
  <metrics statements="3" coveredstatements="3" conditionals="2" coveredconditionals="2" methods="2" coveredmethods="2"/>
784
- <line num="2" count="17" type="stmt"/>
785
- <line num="4" count="17" type="stmt"/>
774
+ <line num="2" count="18" type="stmt"/>
775
+ <line num="4" count="18" type="stmt"/>
786
776
  <line num="5" count="1" type="stmt"/>
787
777
  </file>
788
778
  <file name="migrations.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/migrations.ts">
789
779
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
790
- <line num="1" count="17" type="stmt"/>
791
- <line num="3" count="17" type="stmt"/>
780
+ <line num="1" count="18" type="stmt"/>
781
+ <line num="3" count="18" type="stmt"/>
792
782
  <line num="4" count="1" type="stmt"/>
793
783
  <line num="6" count="1" type="stmt"/>
794
784
  <line num="7" count="1" type="stmt"/>
795
- <line num="10" count="17" type="stmt"/>
785
+ <line num="10" count="18" type="stmt"/>
796
786
  <line num="11" count="1" type="stmt"/>
797
787
  <line num="12" count="1" type="stmt"/>
798
788
  </file>
799
789
  <file name="restore.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/restore.ts">
800
790
  <metrics statements="7" coveredstatements="7" conditionals="1" coveredconditionals="1" methods="1" coveredmethods="1"/>
801
- <line num="1" count="17" type="stmt"/>
802
- <line num="3" count="17" type="stmt"/>
803
- <line num="5" count="17" type="stmt"/>
791
+ <line num="1" count="18" type="stmt"/>
792
+ <line num="3" count="18" type="stmt"/>
793
+ <line num="5" count="18" type="stmt"/>
804
794
  <line num="6" count="2" type="cond" truecount="1" falsecount="0"/>
805
795
  <line num="7" count="1" type="stmt"/>
806
796
  <line num="9" count="1" type="stmt"/>
@@ -808,9 +798,9 @@
808
798
  </file>
809
799
  <file name="status.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/status.ts">
810
800
  <metrics statements="7" coveredstatements="7" conditionals="4" coveredconditionals="4" methods="2" coveredmethods="2"/>
811
- <line num="1" count="17" type="stmt"/>
812
- <line num="2" count="17" type="stmt"/>
813
- <line num="5" count="17" type="stmt"/>
801
+ <line num="1" count="18" type="stmt"/>
802
+ <line num="2" count="18" type="stmt"/>
803
+ <line num="5" count="18" type="stmt"/>
814
804
  <line num="6" count="2" type="cond" truecount="4" falsecount="0"/>
815
805
  <line num="7" count="1" type="stmt"/>
816
806
  <line num="8" count="1" type="stmt"/>
@@ -818,9 +808,9 @@
818
808
  </file>
819
809
  <file name="tenants.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/controllers/system/tenants.ts">
820
810
  <metrics statements="14" coveredstatements="12" conditionals="1" coveredconditionals="1" methods="2" coveredmethods="2"/>
821
- <line num="2" count="17" type="stmt"/>
822
- <line num="3" count="17" type="stmt"/>
823
- <line num="5" count="17" type="stmt"/>
811
+ <line num="2" count="18" type="stmt"/>
812
+ <line num="3" count="18" type="stmt"/>
813
+ <line num="5" count="18" type="stmt"/>
824
814
  <line num="6" count="2" type="stmt"/>
825
815
  <line num="7" count="2" type="stmt"/>
826
816
  <line num="9" count="2" type="cond" truecount="1" falsecount="0"/>
@@ -831,303 +821,309 @@
831
821
  <line num="16" count="1" type="stmt"/>
832
822
  <line num="18" count="0" type="stmt"/>
833
823
  <line num="19" count="0" type="stmt"/>
834
- <line num="23" count="17" type="stmt"/>
824
+ <line num="23" count="18" type="stmt"/>
835
825
  </file>
836
826
  </package>
837
827
  <package name="src.api.routes">
838
828
  <metrics statements="18" coveredstatements="18" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
839
829
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/index.ts">
840
830
  <metrics statements="18" coveredstatements="18" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
841
- <line num="2" count="17" type="stmt"/>
842
- <line num="3" count="17" type="stmt"/>
843
- <line num="4" count="17" type="stmt"/>
844
- <line num="5" count="17" type="stmt"/>
845
- <line num="6" count="17" type="stmt"/>
846
- <line num="7" count="17" type="stmt"/>
847
- <line num="8" count="17" type="stmt"/>
848
- <line num="9" count="17" type="stmt"/>
849
- <line num="10" count="17" type="stmt"/>
850
- <line num="11" count="17" type="stmt"/>
851
- <line num="12" count="17" type="stmt"/>
852
- <line num="13" count="17" type="stmt"/>
853
- <line num="14" count="17" type="stmt"/>
854
- <line num="15" count="17" type="stmt"/>
855
- <line num="16" count="17" type="stmt"/>
856
- <line num="17" count="17" type="stmt"/>
857
- <line num="19" count="17" type="stmt"/>
858
- <line num="20" count="17" type="stmt"/>
831
+ <line num="2" count="18" type="stmt"/>
832
+ <line num="3" count="18" type="stmt"/>
833
+ <line num="4" count="18" type="stmt"/>
834
+ <line num="5" count="18" type="stmt"/>
835
+ <line num="6" count="18" type="stmt"/>
836
+ <line num="7" count="18" type="stmt"/>
837
+ <line num="8" count="18" type="stmt"/>
838
+ <line num="9" count="18" type="stmt"/>
839
+ <line num="10" count="18" type="stmt"/>
840
+ <line num="11" count="18" type="stmt"/>
841
+ <line num="12" count="18" type="stmt"/>
842
+ <line num="13" count="18" type="stmt"/>
843
+ <line num="14" count="18" type="stmt"/>
844
+ <line num="15" count="18" type="stmt"/>
845
+ <line num="16" count="18" type="stmt"/>
846
+ <line num="17" count="18" type="stmt"/>
847
+ <line num="19" count="18" type="stmt"/>
848
+ <line num="20" count="18" type="stmt"/>
859
849
  </file>
860
850
  </package>
861
851
  <package name="src.api.routes.global">
862
852
  <metrics statements="88" coveredstatements="88" conditionals="2" coveredconditionals="2" methods="18" coveredmethods="18"/>
863
853
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/auth.ts">
864
854
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
865
- <line num="1" count="17" type="stmt"/>
866
- <line num="2" count="17" type="stmt"/>
867
- <line num="3" count="17" type="stmt"/>
868
- <line num="4" count="17" type="stmt"/>
869
- <line num="6" count="17" type="stmt"/>
870
- <line num="10" count="17" type="stmt"/>
871
- <line num="18" count="17" type="stmt"/>
872
- <line num="25" count="17" type="stmt"/>
873
- <line num="31" count="17" type="stmt"/>
874
- <line num="88" count="17" type="stmt"/>
855
+ <line num="1" count="18" type="stmt"/>
856
+ <line num="2" count="18" type="stmt"/>
857
+ <line num="3" count="18" type="stmt"/>
858
+ <line num="4" count="18" type="stmt"/>
859
+ <line num="6" count="18" type="stmt"/>
860
+ <line num="10" count="18" type="stmt"/>
861
+ <line num="18" count="18" type="stmt"/>
862
+ <line num="25" count="18" type="stmt"/>
863
+ <line num="31" count="18" type="stmt"/>
864
+ <line num="88" count="18" type="stmt"/>
875
865
  </file>
876
866
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/configs.ts">
877
867
  <metrics statements="15" coveredstatements="15" conditionals="0" coveredconditionals="0" methods="7" coveredmethods="7"/>
878
- <line num="1" count="17" type="stmt"/>
879
- <line num="2" count="17" type="stmt"/>
880
- <line num="3" count="17" type="stmt"/>
881
- <line num="4" count="17" type="stmt"/>
882
- <line num="5" count="17" type="stmt"/>
883
- <line num="7" count="17" type="stmt"/>
884
- <line num="11" count="17" type="stmt"/>
885
- <line num="26" count="17" type="stmt"/>
886
- <line num="36" count="17" type="stmt"/>
887
- <line num="45" count="17" type="stmt"/>
888
- <line num="63" count="17" type="stmt"/>
889
- <line num="86" count="17" type="stmt"/>
890
- <line num="94" count="34" type="stmt"/>
891
- <line num="99" count="17" type="stmt"/>
892
- <line num="124" count="17" type="stmt"/>
868
+ <line num="1" count="18" type="stmt"/>
869
+ <line num="2" count="18" type="stmt"/>
870
+ <line num="3" count="18" type="stmt"/>
871
+ <line num="4" count="18" type="stmt"/>
872
+ <line num="5" count="18" type="stmt"/>
873
+ <line num="7" count="18" type="stmt"/>
874
+ <line num="11" count="18" type="stmt"/>
875
+ <line num="26" count="18" type="stmt"/>
876
+ <line num="36" count="18" type="stmt"/>
877
+ <line num="45" count="18" type="stmt"/>
878
+ <line num="63" count="18" type="stmt"/>
879
+ <line num="86" count="18" type="stmt"/>
880
+ <line num="94" count="36" type="stmt"/>
881
+ <line num="99" count="18" type="stmt"/>
882
+ <line num="124" count="18" type="stmt"/>
893
883
  </file>
894
884
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/email.ts">
895
885
  <metrics statements="9" coveredstatements="9" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
896
- <line num="1" count="17" type="stmt"/>
897
- <line num="2" count="17" type="stmt"/>
898
- <line num="3" count="17" type="stmt"/>
899
- <line num="4" count="17" type="stmt"/>
900
- <line num="5" count="17" type="stmt"/>
901
- <line num="7" count="17" type="stmt"/>
902
- <line num="11" count="17" type="stmt"/>
903
- <line num="29" count="17" type="stmt"/>
904
- <line num="36" count="17" type="stmt"/>
886
+ <line num="1" count="18" type="stmt"/>
887
+ <line num="2" count="18" type="stmt"/>
888
+ <line num="3" count="18" type="stmt"/>
889
+ <line num="4" count="18" type="stmt"/>
890
+ <line num="5" count="18" type="stmt"/>
891
+ <line num="7" count="18" type="stmt"/>
892
+ <line num="11" count="18" type="stmt"/>
893
+ <line num="29" count="18" type="stmt"/>
894
+ <line num="36" count="18" type="stmt"/>
905
895
  </file>
906
896
  <file name="license.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/license.ts">
907
897
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
908
- <line num="1" count="17" type="stmt"/>
909
- <line num="2" count="17" type="stmt"/>
910
- <line num="4" count="17" type="stmt"/>
911
- <line num="6" count="17" type="stmt"/>
912
- <line num="13" count="17" type="stmt"/>
898
+ <line num="1" count="18" type="stmt"/>
899
+ <line num="2" count="18" type="stmt"/>
900
+ <line num="4" count="18" type="stmt"/>
901
+ <line num="6" count="18" type="stmt"/>
902
+ <line num="13" count="18" type="stmt"/>
913
903
  </file>
914
904
  <file name="roles.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/roles.ts">
915
905
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
916
- <line num="1" count="17" type="stmt"/>
917
- <line num="2" count="17" type="stmt"/>
918
- <line num="3" count="17" type="stmt"/>
919
- <line num="5" count="17" type="stmt"/>
920
- <line num="7" count="17" type="stmt"/>
921
- <line num="16" count="17" type="stmt"/>
906
+ <line num="1" count="18" type="stmt"/>
907
+ <line num="2" count="18" type="stmt"/>
908
+ <line num="3" count="18" type="stmt"/>
909
+ <line num="5" count="18" type="stmt"/>
910
+ <line num="7" count="18" type="stmt"/>
911
+ <line num="16" count="18" type="stmt"/>
922
912
  </file>
923
913
  <file name="self.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/self.ts">
924
914
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
925
- <line num="1" count="17" type="stmt"/>
926
- <line num="2" count="17" type="stmt"/>
927
- <line num="3" count="17" type="stmt"/>
928
- <line num="4" count="17" type="stmt"/>
929
- <line num="6" count="17" type="stmt"/>
930
- <line num="8" count="17" type="stmt"/>
931
- <line num="18" count="17" type="stmt"/>
915
+ <line num="1" count="18" type="stmt"/>
916
+ <line num="2" count="18" type="stmt"/>
917
+ <line num="3" count="18" type="stmt"/>
918
+ <line num="4" count="18" type="stmt"/>
919
+ <line num="6" count="18" type="stmt"/>
920
+ <line num="8" count="18" type="stmt"/>
921
+ <line num="18" count="18" type="stmt"/>
932
922
  </file>
933
923
  <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/templates.ts">
934
924
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
935
- <line num="1" count="17" type="stmt"/>
936
- <line num="2" count="17" type="stmt"/>
937
- <line num="3" count="17" type="stmt"/>
938
- <line num="4" count="17" type="stmt"/>
939
- <line num="5" count="17" type="stmt"/>
940
- <line num="6" count="17" type="stmt"/>
941
- <line num="8" count="17" type="stmt"/>
942
- <line num="12" count="17" type="stmt"/>
943
- <line num="23" count="17" type="stmt"/>
944
- <line num="37" count="17" type="stmt"/>
925
+ <line num="1" count="18" type="stmt"/>
926
+ <line num="2" count="18" type="stmt"/>
927
+ <line num="3" count="18" type="stmt"/>
928
+ <line num="4" count="18" type="stmt"/>
929
+ <line num="5" count="18" type="stmt"/>
930
+ <line num="6" count="18" type="stmt"/>
931
+ <line num="8" count="18" type="stmt"/>
932
+ <line num="12" count="18" type="stmt"/>
933
+ <line num="23" count="18" type="stmt"/>
934
+ <line num="37" count="18" type="stmt"/>
945
935
  </file>
946
936
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/users.ts">
947
937
  <metrics statements="18" coveredstatements="18" conditionals="2" coveredconditionals="2" methods="5" coveredmethods="5"/>
948
- <line num="1" count="17" type="stmt"/>
949
- <line num="2" count="17" type="stmt"/>
950
- <line num="3" count="17" type="stmt"/>
951
- <line num="4" count="17" type="stmt"/>
952
- <line num="5" count="17" type="stmt"/>
953
- <line num="6" count="17" type="stmt"/>
954
- <line num="7" count="17" type="stmt"/>
955
- <line num="9" count="17" type="stmt"/>
956
- <line num="12" count="17" type="stmt"/>
957
- <line num="25" count="17" type="stmt"/>
958
- <line num="33" count="17" type="stmt"/>
959
- <line num="41" count="17" type="stmt"/>
938
+ <line num="1" count="18" type="stmt"/>
939
+ <line num="2" count="18" type="stmt"/>
940
+ <line num="3" count="18" type="stmt"/>
941
+ <line num="4" count="18" type="stmt"/>
942
+ <line num="5" count="18" type="stmt"/>
943
+ <line num="6" count="18" type="stmt"/>
944
+ <line num="7" count="18" type="stmt"/>
945
+ <line num="9" count="18" type="stmt"/>
946
+ <line num="12" count="18" type="stmt"/>
947
+ <line num="25" count="18" type="stmt"/>
948
+ <line num="33" count="18" type="stmt"/>
949
+ <line num="41" count="18" type="stmt"/>
960
950
  <line num="42" count="23" type="cond" truecount="2" falsecount="0"/>
961
951
  <line num="43" count="11" type="stmt"/>
962
952
  <line num="45" count="12" type="stmt"/>
963
- <line num="51" count="17" type="stmt"/>
964
- <line num="57" count="17" type="stmt"/>
965
- <line num="116" count="17" type="stmt"/>
953
+ <line num="51" count="18" type="stmt"/>
954
+ <line num="57" count="18" type="stmt"/>
955
+ <line num="116" count="18" type="stmt"/>
966
956
  </file>
967
957
  <file name="workspaces.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/global/workspaces.ts">
968
958
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
969
- <line num="1" count="17" type="stmt"/>
970
- <line num="2" count="17" type="stmt"/>
971
- <line num="3" count="17" type="stmt"/>
972
- <line num="4" count="17" type="stmt"/>
973
- <line num="6" count="17" type="stmt"/>
974
- <line num="10" count="17" type="stmt"/>
975
- <line num="26" count="17" type="stmt"/>
976
- <line num="37" count="17" type="stmt"/>
959
+ <line num="1" count="18" type="stmt"/>
960
+ <line num="2" count="18" type="stmt"/>
961
+ <line num="3" count="18" type="stmt"/>
962
+ <line num="4" count="18" type="stmt"/>
963
+ <line num="6" count="18" type="stmt"/>
964
+ <line num="10" count="18" type="stmt"/>
965
+ <line num="26" count="18" type="stmt"/>
966
+ <line num="37" count="18" type="stmt"/>
977
967
  </file>
978
968
  </package>
979
969
  <package name="src.api.routes.system">
980
970
  <metrics statements="33" coveredstatements="33" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
981
971
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/accounts.ts">
982
972
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
983
- <line num="1" count="17" type="stmt"/>
984
- <line num="2" count="17" type="stmt"/>
985
- <line num="3" count="17" type="stmt"/>
986
- <line num="5" count="17" type="stmt"/>
987
- <line num="7" count="17" type="stmt"/>
988
- <line num="19" count="17" type="stmt"/>
973
+ <line num="1" count="18" type="stmt"/>
974
+ <line num="2" count="18" type="stmt"/>
975
+ <line num="3" count="18" type="stmt"/>
976
+ <line num="5" count="18" type="stmt"/>
977
+ <line num="7" count="18" type="stmt"/>
978
+ <line num="19" count="18" type="stmt"/>
989
979
  </file>
990
980
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/environment.ts">
991
981
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
992
- <line num="1" count="17" type="stmt"/>
993
- <line num="2" count="17" type="stmt"/>
994
- <line num="4" count="17" type="stmt"/>
995
- <line num="6" count="17" type="stmt"/>
996
- <line num="8" count="17" type="stmt"/>
982
+ <line num="1" count="18" type="stmt"/>
983
+ <line num="2" count="18" type="stmt"/>
984
+ <line num="4" count="18" type="stmt"/>
985
+ <line num="6" count="18" type="stmt"/>
986
+ <line num="8" count="18" type="stmt"/>
997
987
  </file>
998
988
  <file name="migrations.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/migrations.ts">
999
989
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1000
- <line num="1" count="17" type="stmt"/>
1001
- <line num="2" count="17" type="stmt"/>
1002
- <line num="3" count="17" type="stmt"/>
1003
- <line num="5" count="17" type="stmt"/>
1004
- <line num="7" count="17" type="stmt"/>
1005
- <line num="19" count="17" type="stmt"/>
990
+ <line num="1" count="18" type="stmt"/>
991
+ <line num="2" count="18" type="stmt"/>
992
+ <line num="3" count="18" type="stmt"/>
993
+ <line num="5" count="18" type="stmt"/>
994
+ <line num="7" count="18" type="stmt"/>
995
+ <line num="19" count="18" type="stmt"/>
1006
996
  </file>
1007
997
  <file name="restore.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/restore.ts">
1008
998
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1009
- <line num="1" count="17" type="stmt"/>
1010
- <line num="2" count="17" type="stmt"/>
1011
- <line num="4" count="17" type="stmt"/>
1012
- <line num="6" count="17" type="stmt"/>
1013
- <line num="8" count="17" type="stmt"/>
999
+ <line num="1" count="18" type="stmt"/>
1000
+ <line num="2" count="18" type="stmt"/>
1001
+ <line num="4" count="18" type="stmt"/>
1002
+ <line num="6" count="18" type="stmt"/>
1003
+ <line num="8" count="18" type="stmt"/>
1014
1004
  </file>
1015
1005
  <file name="status.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/status.ts">
1016
1006
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1017
- <line num="1" count="17" type="stmt"/>
1018
- <line num="2" count="17" type="stmt"/>
1019
- <line num="4" count="17" type="stmt"/>
1020
- <line num="6" count="17" type="stmt"/>
1021
- <line num="8" count="17" type="stmt"/>
1007
+ <line num="1" count="18" type="stmt"/>
1008
+ <line num="2" count="18" type="stmt"/>
1009
+ <line num="4" count="18" type="stmt"/>
1010
+ <line num="6" count="18" type="stmt"/>
1011
+ <line num="8" count="18" type="stmt"/>
1022
1012
  </file>
1023
1013
  <file name="tenants.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/system/tenants.ts">
1024
1014
  <metrics statements="6" coveredstatements="6" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1025
- <line num="1" count="17" type="stmt"/>
1026
- <line num="2" count="17" type="stmt"/>
1027
- <line num="3" count="17" type="stmt"/>
1028
- <line num="5" count="17" type="stmt"/>
1029
- <line num="7" count="17" type="stmt"/>
1030
- <line num="13" count="17" type="stmt"/>
1015
+ <line num="1" count="18" type="stmt"/>
1016
+ <line num="2" count="18" type="stmt"/>
1017
+ <line num="3" count="18" type="stmt"/>
1018
+ <line num="5" count="18" type="stmt"/>
1019
+ <line num="7" count="18" type="stmt"/>
1020
+ <line num="13" count="18" type="stmt"/>
1031
1021
  </file>
1032
1022
  </package>
1033
1023
  <package name="src.api.routes.validation">
1034
1024
  <metrics statements="13" coveredstatements="13" conditionals="4" coveredconditionals="4" methods="2" coveredmethods="2"/>
1035
1025
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/validation/index.ts">
1036
1026
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1037
- <line num="1" count="17" type="stmt"/>
1027
+ <line num="1" count="18" type="stmt"/>
1038
1028
  </file>
1039
1029
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/api/routes/validation/users.ts">
1040
1030
  <metrics statements="12" coveredstatements="12" conditionals="4" coveredconditionals="4" methods="2" coveredmethods="2"/>
1041
- <line num="1" count="17" type="stmt"/>
1042
- <line num="2" count="17" type="stmt"/>
1043
- <line num="4" count="17" type="stmt"/>
1044
- <line num="20" count="17" type="cond" truecount="1" falsecount="0"/>
1045
- <line num="21" count="51" type="cond" truecount="1" falsecount="0"/>
1046
- <line num="22" count="17" type="stmt"/>
1047
- <line num="28" count="51" type="stmt"/>
1048
- <line num="31" count="17" type="cond" truecount="1" falsecount="0"/>
1049
- <line num="32" count="17" type="cond" truecount="1" falsecount="0"/>
1050
- <line num="33" count="17" type="stmt"/>
1051
- <line num="39" count="17" type="stmt"/>
1052
- <line num="49" count="17" type="stmt"/>
1031
+ <line num="1" count="18" type="stmt"/>
1032
+ <line num="2" count="18" type="stmt"/>
1033
+ <line num="4" count="18" type="stmt"/>
1034
+ <line num="20" count="18" type="cond" truecount="1" falsecount="0"/>
1035
+ <line num="21" count="54" type="cond" truecount="1" falsecount="0"/>
1036
+ <line num="22" count="18" type="stmt"/>
1037
+ <line num="28" count="54" type="stmt"/>
1038
+ <line num="31" count="18" type="cond" truecount="1" falsecount="0"/>
1039
+ <line num="32" count="18" type="cond" truecount="1" falsecount="0"/>
1040
+ <line num="33" count="18" type="stmt"/>
1041
+ <line num="39" count="18" type="stmt"/>
1042
+ <line num="49" count="18" type="stmt"/>
1053
1043
  </file>
1054
1044
  </package>
1055
1045
  <package name="src.constants">
1056
- <metrics statements="39" coveredstatements="39" conditionals="10" coveredconditionals="10" methods="5" coveredmethods="5"/>
1046
+ <metrics statements="45" coveredstatements="45" conditionals="12" coveredconditionals="12" methods="6" coveredmethods="6"/>
1057
1047
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/constants/index.ts">
1058
- <metrics statements="39" coveredstatements="39" conditionals="10" coveredconditionals="10" methods="5" coveredmethods="5"/>
1059
- <line num="1" count="17" type="stmt"/>
1060
- <line num="3" count="17" type="stmt"/>
1061
- <line num="6" count="17" type="cond" truecount="2" falsecount="0"/>
1062
- <line num="7" count="17" type="stmt"/>
1063
- <line num="8" count="17" type="stmt"/>
1064
- <line num="11" count="17" type="stmt"/>
1065
- <line num="13" count="17" type="cond" truecount="2" falsecount="0"/>
1066
- <line num="14" count="17" type="stmt"/>
1067
- <line num="15" count="17" type="stmt"/>
1068
- <line num="18" count="17" type="cond" truecount="2" falsecount="0"/>
1069
- <line num="19" count="17" type="stmt"/>
1070
- <line num="22" count="17" type="cond" truecount="2" falsecount="0"/>
1071
- <line num="23" count="17" type="stmt"/>
1072
- <line num="24" count="17" type="stmt"/>
1073
- <line num="25" count="17" type="stmt"/>
1074
- <line num="26" count="17" type="stmt"/>
1075
- <line num="27" count="17" type="stmt"/>
1076
- <line num="30" count="17" type="cond" truecount="2" falsecount="0"/>
1077
- <line num="31" count="17" type="stmt"/>
1078
- <line num="32" count="17" type="stmt"/>
1079
- <line num="33" count="17" type="stmt"/>
1080
- <line num="34" count="17" type="stmt"/>
1081
- <line num="35" count="17" type="stmt"/>
1082
- <line num="36" count="17" type="stmt"/>
1083
- <line num="37" count="17" type="stmt"/>
1084
- <line num="38" count="17" type="stmt"/>
1085
- <line num="39" count="17" type="stmt"/>
1086
- <line num="40" count="17" type="stmt"/>
1087
- <line num="41" count="17" type="stmt"/>
1088
- <line num="42" count="17" type="stmt"/>
1089
- <line num="43" count="17" type="stmt"/>
1090
- <line num="44" count="17" type="stmt"/>
1091
- <line num="45" count="17" type="stmt"/>
1092
- <line num="46" count="17" type="stmt"/>
1093
- <line num="47" count="17" type="stmt"/>
1094
- <line num="50" count="17" type="stmt"/>
1095
- <line num="93" count="17" type="stmt"/>
1096
- <line num="175" count="17" type="stmt"/>
1097
- <line num="176" count="17" type="stmt"/>
1048
+ <metrics statements="45" coveredstatements="45" conditionals="12" coveredconditionals="12" methods="6" coveredmethods="6"/>
1049
+ <line num="1" count="18" type="stmt"/>
1050
+ <line num="3" count="18" type="stmt"/>
1051
+ <line num="6" count="18" type="cond" truecount="2" falsecount="0"/>
1052
+ <line num="7" count="18" type="stmt"/>
1053
+ <line num="8" count="18" type="stmt"/>
1054
+ <line num="11" count="18" type="stmt"/>
1055
+ <line num="13" count="18" type="cond" truecount="2" falsecount="0"/>
1056
+ <line num="14" count="18" type="stmt"/>
1057
+ <line num="15" count="18" type="stmt"/>
1058
+ <line num="18" count="18" type="cond" truecount="2" falsecount="0"/>
1059
+ <line num="19" count="18" type="stmt"/>
1060
+ <line num="22" count="18" type="cond" truecount="2" falsecount="0"/>
1061
+ <line num="23" count="18" type="stmt"/>
1062
+ <line num="24" count="18" type="stmt"/>
1063
+ <line num="25" count="18" type="stmt"/>
1064
+ <line num="26" count="18" type="stmt"/>
1065
+ <line num="27" count="18" type="stmt"/>
1066
+ <line num="30" count="18" type="cond" truecount="2" falsecount="0"/>
1067
+ <line num="31" count="18" type="stmt"/>
1068
+ <line num="32" count="18" type="stmt"/>
1069
+ <line num="33" count="18" type="stmt"/>
1070
+ <line num="34" count="18" type="stmt"/>
1071
+ <line num="35" count="18" type="stmt"/>
1072
+ <line num="38" count="18" type="cond" truecount="2" falsecount="0"/>
1073
+ <line num="39" count="18" type="stmt"/>
1074
+ <line num="40" count="18" type="stmt"/>
1075
+ <line num="41" count="18" type="stmt"/>
1076
+ <line num="42" count="18" type="stmt"/>
1077
+ <line num="43" count="18" type="stmt"/>
1078
+ <line num="44" count="18" type="stmt"/>
1079
+ <line num="45" count="18" type="stmt"/>
1080
+ <line num="46" count="18" type="stmt"/>
1081
+ <line num="47" count="18" type="stmt"/>
1082
+ <line num="48" count="18" type="stmt"/>
1083
+ <line num="49" count="18" type="stmt"/>
1084
+ <line num="50" count="18" type="stmt"/>
1085
+ <line num="51" count="18" type="stmt"/>
1086
+ <line num="52" count="18" type="stmt"/>
1087
+ <line num="53" count="18" type="stmt"/>
1088
+ <line num="54" count="18" type="stmt"/>
1089
+ <line num="55" count="18" type="stmt"/>
1090
+ <line num="58" count="18" type="stmt"/>
1091
+ <line num="101" count="18" type="stmt"/>
1092
+ <line num="183" count="18" type="stmt"/>
1093
+ <line num="184" count="18" type="stmt"/>
1098
1094
  </file>
1099
1095
  </package>
1100
1096
  <package name="src.constants.templates">
1101
- <metrics statements="29" coveredstatements="25" conditionals="9" coveredconditionals="5" methods="7" coveredmethods="5"/>
1097
+ <metrics statements="29" coveredstatements="28" conditionals="9" coveredconditionals="8" methods="7" coveredmethods="6"/>
1102
1098
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/constants/templates/index.ts">
1103
- <metrics statements="29" coveredstatements="25" conditionals="9" coveredconditionals="5" methods="7" coveredmethods="5"/>
1104
- <line num="1" count="17" type="stmt"/>
1105
- <line num="2" count="17" type="stmt"/>
1106
- <line num="8" count="17" type="stmt"/>
1107
- <line num="9" count="17" type="stmt"/>
1108
- <line num="12" count="17" type="stmt"/>
1109
- <line num="26" count="17" type="stmt"/>
1110
- <line num="28" count="14" type="cond" truecount="1" falsecount="1"/>
1099
+ <metrics statements="29" coveredstatements="28" conditionals="9" coveredconditionals="8" methods="7" coveredmethods="6"/>
1100
+ <line num="1" count="18" type="stmt"/>
1101
+ <line num="2" count="18" type="stmt"/>
1102
+ <line num="8" count="18" type="stmt"/>
1103
+ <line num="9" count="18" type="stmt"/>
1104
+ <line num="12" count="18" type="stmt"/>
1105
+ <line num="26" count="18" type="stmt"/>
1106
+ <line num="28" count="16" type="cond" truecount="2" falsecount="0"/>
1111
1107
  <line num="30" count="14" type="stmt"/>
1112
1108
  <line num="31" count="14" type="stmt"/>
1113
- <line num="33" count="0" type="stmt"/>
1114
- <line num="34" count="0" type="stmt"/>
1115
- <line num="36" count="14" type="stmt"/>
1116
- <line num="38" count="140" type="cond" truecount="0" falsecount="1"/>
1117
- <line num="39" count="0" type="stmt"/>
1118
- <line num="41" count="70" type="cond" truecount="1" falsecount="0"/>
1119
- <line num="42" count="70" type="stmt"/>
1120
- <line num="49" count="14" type="stmt"/>
1121
- <line num="52" count="17" type="cond" truecount="0" falsecount="1"/>
1122
- <line num="57" count="14" type="stmt"/>
1123
- <line num="58" count="14" type="stmt"/>
1124
- <line num="63" count="14" type="stmt"/>
1125
- <line num="65" count="14" type="cond" truecount="0" falsecount="1"/>
1109
+ <line num="33" count="2" type="stmt"/>
1110
+ <line num="34" count="2" type="stmt"/>
1111
+ <line num="36" count="16" type="stmt"/>
1112
+ <line num="38" count="162" type="cond" truecount="1" falsecount="0"/>
1113
+ <line num="39" count="2" type="stmt"/>
1114
+ <line num="41" count="78" type="cond" truecount="1" falsecount="0"/>
1115
+ <line num="42" count="78" type="stmt"/>
1116
+ <line num="49" count="16" type="stmt"/>
1117
+ <line num="52" count="18" type="cond" truecount="1" falsecount="0"/>
1118
+ <line num="57" count="16" type="stmt"/>
1119
+ <line num="58" count="16" type="stmt"/>
1120
+ <line num="63" count="16" type="stmt"/>
1121
+ <line num="65" count="16" type="cond" truecount="0" falsecount="1"/>
1126
1122
  <line num="66" count="0" type="stmt"/>
1127
- <line num="68" count="14" type="cond" truecount="1" falsecount="0"/>
1123
+ <line num="68" count="16" type="cond" truecount="1" falsecount="0"/>
1128
1124
  <line num="69" count="14" type="stmt"/>
1129
- <line num="71" count="14" type="stmt"/>
1130
- <line num="74" count="17" type="stmt"/>
1125
+ <line num="71" count="16" type="stmt"/>
1126
+ <line num="74" count="18" type="stmt"/>
1131
1127
  <line num="75" count="14" type="stmt"/>
1132
1128
  <line num="76" count="26" type="stmt"/>
1133
1129
  </file>
@@ -1136,22 +1132,22 @@
1136
1132
  <metrics statements="7" coveredstatements="7" conditionals="3" coveredconditionals="3" methods="1" coveredmethods="1"/>
1137
1133
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/db/index.ts">
1138
1134
  <metrics statements="7" coveredstatements="7" conditionals="3" coveredconditionals="3" methods="1" coveredmethods="1"/>
1139
- <line num="1" count="17" type="stmt"/>
1140
- <line num="2" count="17" type="stmt"/>
1141
- <line num="4" count="17" type="stmt"/>
1142
- <line num="5" count="34" type="stmt"/>
1143
- <line num="6" count="34" type="cond" truecount="3" falsecount="0"/>
1144
- <line num="7" count="34" type="stmt"/>
1145
- <line num="9" count="34" type="stmt"/>
1135
+ <line num="1" count="18" type="stmt"/>
1136
+ <line num="2" count="18" type="stmt"/>
1137
+ <line num="4" count="18" type="stmt"/>
1138
+ <line num="5" count="36" type="stmt"/>
1139
+ <line num="6" count="36" type="cond" truecount="3" falsecount="0"/>
1140
+ <line num="7" count="36" type="stmt"/>
1141
+ <line num="9" count="36" type="stmt"/>
1146
1142
  </file>
1147
1143
  </package>
1148
1144
  <package name="src.middleware">
1149
1145
  <metrics statements="8" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="2" coveredmethods="2"/>
1150
1146
  <file name="cloudRestricted.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/middleware/cloudRestricted.ts">
1151
1147
  <metrics statements="8" coveredstatements="7" conditionals="4" coveredconditionals="3" methods="2" coveredmethods="2"/>
1152
- <line num="1" count="17" type="stmt"/>
1153
- <line num="2" count="17" type="stmt"/>
1154
- <line num="9" count="17" type="stmt"/>
1148
+ <line num="1" count="18" type="stmt"/>
1149
+ <line num="2" count="18" type="stmt"/>
1150
+ <line num="9" count="18" type="stmt"/>
1155
1151
  <line num="10" count="6" type="cond" truecount="3" falsecount="0"/>
1156
1152
  <line num="11" count="6" type="stmt"/>
1157
1153
  <line num="12" count="6" type="cond" truecount="0" falsecount="1"/>
@@ -1163,25 +1159,25 @@
1163
1159
  <metrics statements="22" coveredstatements="16" conditionals="4" coveredconditionals="2" methods="7" coveredmethods="1"/>
1164
1160
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/migrations/index.ts">
1165
1161
  <metrics statements="22" coveredstatements="16" conditionals="4" coveredconditionals="2" methods="7" coveredmethods="1"/>
1166
- <line num="1" count="17" type="stmt"/>
1167
- <line num="2" count="17" type="stmt"/>
1168
- <line num="9" count="17" type="stmt"/>
1169
- <line num="12" count="17" type="stmt"/>
1170
- <line num="18" count="17" type="stmt"/>
1171
- <line num="19" count="17" type="stmt"/>
1172
- <line num="20" count="17" type="stmt"/>
1173
- <line num="22" count="17" type="stmt"/>
1174
- <line num="23" count="136" type="cond" truecount="1" falsecount="0"/>
1175
- <line num="26" count="17" type="cond" truecount="1" falsecount="0"/>
1176
- <line num="27" count="17" type="stmt"/>
1177
- <line num="32" count="17" type="stmt"/>
1178
- <line num="37" count="17" type="stmt"/>
1179
- <line num="40" count="17" type="stmt"/>
1180
- <line num="42" count="17" type="stmt"/>
1162
+ <line num="1" count="18" type="stmt"/>
1163
+ <line num="2" count="18" type="stmt"/>
1164
+ <line num="9" count="18" type="stmt"/>
1165
+ <line num="12" count="18" type="stmt"/>
1166
+ <line num="18" count="18" type="stmt"/>
1167
+ <line num="19" count="18" type="stmt"/>
1168
+ <line num="20" count="18" type="stmt"/>
1169
+ <line num="22" count="18" type="stmt"/>
1170
+ <line num="23" count="144" type="cond" truecount="1" falsecount="0"/>
1171
+ <line num="26" count="18" type="cond" truecount="1" falsecount="0"/>
1172
+ <line num="27" count="18" type="stmt"/>
1173
+ <line num="32" count="18" type="stmt"/>
1174
+ <line num="37" count="18" type="stmt"/>
1175
+ <line num="40" count="18" type="stmt"/>
1176
+ <line num="42" count="18" type="stmt"/>
1181
1177
  <line num="43" count="0" type="cond" truecount="0" falsecount="2"/>
1182
1178
  <line num="44" count="0" type="stmt"/>
1183
1179
  <line num="46" count="0" type="stmt"/>
1184
- <line num="50" count="17" type="stmt"/>
1180
+ <line num="50" count="18" type="stmt"/>
1185
1181
  <line num="51" count="0" type="stmt"/>
1186
1182
  <line num="58" count="0" type="stmt"/>
1187
1183
  <line num="59" count="0" type="stmt"/>
@@ -1191,8 +1187,8 @@
1191
1187
  <metrics statements="7" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
1192
1188
  <file name="globalInfoSyncUsers.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/migrations/functions/globalInfoSyncUsers.ts">
1193
1189
  <metrics statements="7" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="0"/>
1194
- <line num="2" count="17" type="stmt"/>
1195
- <line num="11" count="17" type="stmt"/>
1190
+ <line num="2" count="18" type="stmt"/>
1191
+ <line num="11" count="18" type="stmt"/>
1196
1192
  <line num="12" count="0" type="stmt"/>
1197
1193
  <line num="13" count="0" type="stmt"/>
1198
1194
  <line num="14" count="0" type="stmt"/>
@@ -1204,19 +1200,19 @@
1204
1200
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1205
1201
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/index.ts">
1206
1202
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1207
- <line num="1" count="17" type="stmt"/>
1208
- <line num="2" count="17" type="stmt"/>
1209
- <line num="4" count="17" type="stmt"/>
1203
+ <line num="1" count="18" type="stmt"/>
1204
+ <line num="2" count="18" type="stmt"/>
1205
+ <line num="4" count="18" type="stmt"/>
1210
1206
  </file>
1211
1207
  </package>
1212
1208
  <package name="src.sdk.accounts">
1213
1209
  <metrics statements="30" coveredstatements="26" conditionals="5" coveredconditionals="2" methods="13" coveredmethods="13"/>
1214
1210
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/accounts/accounts.ts">
1215
1211
  <metrics statements="29" coveredstatements="25" conditionals="5" coveredconditionals="2" methods="13" coveredmethods="13"/>
1216
- <line num="2" count="17" type="stmt"/>
1217
- <line num="10" count="17" type="stmt"/>
1212
+ <line num="2" count="18" type="stmt"/>
1213
+ <line num="10" count="18" type="stmt"/>
1218
1214
  <line num="11" count="6" type="stmt"/>
1219
- <line num="14" count="17" type="stmt"/>
1215
+ <line num="14" count="18" type="stmt"/>
1220
1216
  <line num="16" count="3" type="stmt"/>
1221
1217
  <line num="17" count="3" type="stmt"/>
1222
1218
  <line num="18" count="3" type="stmt"/>
@@ -1225,7 +1221,7 @@
1225
1221
  <line num="22" count="3" type="stmt"/>
1226
1222
  <line num="23" count="3" type="stmt"/>
1227
1223
  <line num="24" count="3" type="stmt"/>
1228
- <line num="28" count="17" type="stmt"/>
1224
+ <line num="28" count="18" type="stmt"/>
1229
1225
  <line num="30" count="7" type="stmt"/>
1230
1226
  <line num="31" count="7" type="stmt"/>
1231
1227
  <line num="32" count="7" type="stmt"/>
@@ -1233,7 +1229,7 @@
1233
1229
  <line num="35" count="5" type="cond" truecount="1" falsecount="1"/>
1234
1230
  <line num="37" count="5" type="stmt"/>
1235
1231
  <line num="39" count="0" type="stmt"/>
1236
- <line num="45" count="17" type="stmt"/>
1232
+ <line num="45" count="18" type="stmt"/>
1237
1233
  <line num="46" count="2" type="stmt"/>
1238
1234
  <line num="47" count="2" type="stmt"/>
1239
1235
  <line num="48" count="2" type="cond" truecount="1" falsecount="0"/>
@@ -1245,45 +1241,45 @@
1245
1241
  </file>
1246
1242
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/accounts/index.ts">
1247
1243
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1248
- <line num="1" count="17" type="stmt"/>
1244
+ <line num="1" count="18" type="stmt"/>
1249
1245
  </file>
1250
1246
  </package>
1251
1247
  <package name="src.sdk.users">
1252
- <metrics statements="328" coveredstatements="294" conditionals="121" coveredconditionals="103" methods="76" coveredmethods="67"/>
1248
+ <metrics statements="332" coveredstatements="301" conditionals="121" coveredconditionals="103" methods="78" coveredmethods="72"/>
1253
1249
  <file name="events.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/events.ts">
1254
1250
  <metrics statements="69" coveredstatements="68" conditionals="37" coveredconditionals="36" methods="18" coveredmethods="18"/>
1255
- <line num="1" count="17" type="stmt"/>
1256
- <line num="2" count="17" type="stmt"/>
1257
- <line num="5" count="17" type="stmt"/>
1251
+ <line num="1" count="18" type="stmt"/>
1252
+ <line num="2" count="18" type="stmt"/>
1253
+ <line num="5" count="18" type="stmt"/>
1258
1254
  <line num="6" count="6" type="stmt"/>
1259
1255
  <line num="8" count="6" type="cond" truecount="1" falsecount="0"/>
1260
1256
  <line num="9" count="4" type="stmt"/>
1261
1257
  <line num="12" count="6" type="cond" truecount="1" falsecount="0"/>
1262
1258
  <line num="13" count="2" type="stmt"/>
1263
- <line num="17" count="17" type="stmt"/>
1264
- <line num="21" count="92" type="stmt"/>
1265
- <line num="22" count="92" type="stmt"/>
1266
- <line num="24" count="10" type="cond" truecount="3" falsecount="0"/>
1267
- <line num="25" count="9" type="stmt"/>
1268
- <line num="30" count="17" type="stmt"/>
1269
- <line num="34" count="92" type="stmt"/>
1270
- <line num="35" count="92" type="cond" truecount="1" falsecount="0"/>
1271
- <line num="36" count="81" type="stmt"/>
1259
+ <line num="17" count="18" type="stmt"/>
1260
+ <line num="21" count="95" type="stmt"/>
1261
+ <line num="22" count="95" type="stmt"/>
1262
+ <line num="24" count="91" type="cond" truecount="3" falsecount="0"/>
1263
+ <line num="25" count="82" type="stmt"/>
1264
+ <line num="30" count="18" type="stmt"/>
1265
+ <line num="34" count="95" type="stmt"/>
1266
+ <line num="35" count="95" type="cond" truecount="1" falsecount="0"/>
1267
+ <line num="36" count="84" type="stmt"/>
1272
1268
  <line num="38" count="11" type="stmt"/>
1273
- <line num="40" count="4" type="cond" truecount="3" falsecount="0"/>
1274
- <line num="41" count="3" type="stmt"/>
1275
- <line num="46" count="92" type="stmt"/>
1276
- <line num="47" count="92" type="stmt"/>
1277
- <line num="48" count="92" type="cond" truecount="4" falsecount="0"/>
1278
- <line num="50" count="92" type="stmt"/>
1279
- <line num="51" count="92" type="stmt"/>
1280
- <line num="54" count="17" type="stmt"/>
1281
- <line num="57" count="92" type="stmt"/>
1282
- <line num="58" count="92" type="stmt"/>
1283
- <line num="60" count="92" type="cond" truecount="3" falsecount="0"/>
1284
- <line num="61" count="92" type="stmt"/>
1285
- <line num="63" count="92" type="stmt"/>
1286
- <line num="65" count="92" type="cond" truecount="2" falsecount="0"/>
1269
+ <line num="40" count="13" type="cond" truecount="3" falsecount="0"/>
1270
+ <line num="41" count="4" type="stmt"/>
1271
+ <line num="46" count="95" type="stmt"/>
1272
+ <line num="47" count="95" type="stmt"/>
1273
+ <line num="48" count="95" type="cond" truecount="4" falsecount="0"/>
1274
+ <line num="50" count="95" type="stmt"/>
1275
+ <line num="51" count="95" type="stmt"/>
1276
+ <line num="54" count="18" type="stmt"/>
1277
+ <line num="57" count="95" type="stmt"/>
1278
+ <line num="58" count="95" type="stmt"/>
1279
+ <line num="60" count="95" type="cond" truecount="3" falsecount="0"/>
1280
+ <line num="61" count="95" type="stmt"/>
1281
+ <line num="63" count="95" type="stmt"/>
1282
+ <line num="65" count="95" type="cond" truecount="2" falsecount="0"/>
1287
1283
  <line num="66" count="11" type="stmt"/>
1288
1284
  <line num="68" count="11" type="cond" truecount="1" falsecount="0"/>
1289
1285
  <line num="69" count="2" type="stmt"/>
@@ -1291,29 +1287,29 @@
1291
1287
  <line num="73" count="1" type="stmt"/>
1292
1288
  <line num="76" count="11" type="cond" truecount="1" falsecount="0"/>
1293
1289
  <line num="81" count="1" type="stmt"/>
1294
- <line num="84" count="81" type="stmt"/>
1295
- <line num="87" count="92" type="cond" truecount="1" falsecount="0"/>
1296
- <line num="88" count="54" type="stmt"/>
1297
- <line num="91" count="92" type="cond" truecount="1" falsecount="0"/>
1298
- <line num="92" count="46" type="stmt"/>
1299
- <line num="95" count="92" type="stmt"/>
1300
- <line num="98" count="120" type="cond" truecount="2" falsecount="0"/>
1301
- <line num="99" count="120" type="cond" truecount="2" falsecount="0"/>
1302
- <line num="101" count="17" type="stmt"/>
1303
- <line num="102" count="92" type="stmt"/>
1304
- <line num="105" count="17" type="stmt"/>
1290
+ <line num="84" count="84" type="stmt"/>
1291
+ <line num="87" count="95" type="cond" truecount="1" falsecount="0"/>
1292
+ <line num="88" count="56" type="stmt"/>
1293
+ <line num="91" count="95" type="cond" truecount="1" falsecount="0"/>
1294
+ <line num="92" count="48" type="stmt"/>
1295
+ <line num="95" count="95" type="stmt"/>
1296
+ <line num="98" count="123" type="cond" truecount="2" falsecount="0"/>
1297
+ <line num="99" count="123" type="cond" truecount="2" falsecount="0"/>
1298
+ <line num="101" count="18" type="stmt"/>
1299
+ <line num="102" count="95" type="stmt"/>
1300
+ <line num="105" count="18" type="stmt"/>
1305
1301
  <line num="106" count="11" type="stmt"/>
1306
- <line num="109" count="17" type="stmt"/>
1307
- <line num="110" count="92" type="stmt"/>
1308
- <line num="113" count="17" type="stmt"/>
1302
+ <line num="109" count="18" type="stmt"/>
1303
+ <line num="110" count="95" type="stmt"/>
1304
+ <line num="113" count="18" type="stmt"/>
1309
1305
  <line num="114" count="11" type="stmt"/>
1310
- <line num="120" count="17" type="stmt"/>
1311
- <line num="126" count="184" type="cond" truecount="1" falsecount="0"/>
1312
- <line num="127" count="82" type="stmt"/>
1313
- <line num="131" count="102" type="cond" truecount="3" falsecount="0"/>
1306
+ <line num="120" count="18" type="stmt"/>
1307
+ <line num="126" count="190" type="cond" truecount="1" falsecount="0"/>
1308
+ <line num="127" count="84" type="stmt"/>
1309
+ <line num="131" count="106" type="cond" truecount="3" falsecount="0"/>
1314
1310
  <line num="132" count="2" type="stmt"/>
1315
- <line num="136" count="100" type="stmt"/>
1316
- <line num="142" count="17" type="stmt"/>
1311
+ <line num="136" count="104" type="stmt"/>
1312
+ <line num="142" count="18" type="stmt"/>
1317
1313
  <line num="148" count="22" type="cond" truecount="1" falsecount="0"/>
1318
1314
  <line num="149" count="5" type="stmt"/>
1319
1315
  <line num="153" count="17" type="cond" truecount="0" falsecount="1"/>
@@ -1324,429 +1320,436 @@
1324
1320
  </file>
1325
1321
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/index.ts">
1326
1322
  <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1327
- <line num="1" count="17" type="stmt"/>
1323
+ <line num="1" count="18" type="stmt"/>
1328
1324
  </file>
1329
1325
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/sdk/users/users.ts">
1330
- <metrics statements="258" coveredstatements="225" conditionals="84" coveredconditionals="67" methods="58" coveredmethods="49"/>
1331
- <line num="1" count="17" type="stmt"/>
1332
- <line num="2" count="17" type="stmt"/>
1333
- <line num="3" count="17" type="stmt"/>
1334
- <line num="4" count="17" type="stmt"/>
1335
- <line num="19" count="17" type="stmt"/>
1336
- <line num="34" count="17" type="stmt"/>
1337
- <line num="35" count="17" type="stmt"/>
1338
- <line num="36" count="17" type="stmt"/>
1339
- <line num="38" count="17" type="stmt"/>
1340
- <line num="40" count="17" type="stmt"/>
1341
- <line num="41" count="0" type="stmt"/>
1342
- <line num="42" count="0" type="stmt"/>
1343
- <line num="47" count="0" type="stmt"/>
1344
- <line num="50" count="17" type="stmt"/>
1345
- <line num="51" count="0" type="stmt"/>
1326
+ <metrics statements="262" coveredstatements="232" conditionals="84" coveredconditionals="67" methods="60" coveredmethods="54"/>
1327
+ <line num="1" count="18" type="stmt"/>
1328
+ <line num="2" count="18" type="stmt"/>
1329
+ <line num="3" count="18" type="stmt"/>
1330
+ <line num="4" count="18" type="stmt"/>
1331
+ <line num="19" count="18" type="stmt"/>
1332
+ <line num="35" count="18" type="stmt"/>
1333
+ <line num="36" count="18" type="stmt"/>
1334
+ <line num="37" count="18" type="stmt"/>
1335
+ <line num="39" count="18" type="stmt"/>
1336
+ <line num="41" count="18" type="stmt"/>
1337
+ <line num="42" count="1" type="stmt"/>
1338
+ <line num="43" count="1" type="stmt"/>
1339
+ <line num="48" count="2" type="stmt"/>
1340
+ <line num="51" count="18" type="stmt"/>
1346
1341
  <line num="52" count="0" type="stmt"/>
1347
- <line num="57" count="17" type="cond" truecount="0" falsecount="1"/>
1348
- <line num="62" count="0" type="stmt"/>
1342
+ <line num="53" count="0" type="stmt"/>
1343
+ <line num="58" count="18" type="cond" truecount="0" falsecount="1"/>
1349
1344
  <line num="63" count="0" type="stmt"/>
1350
- <line num="65" count="0" type="stmt"/>
1351
- <line num="70" count="0" type="cond" truecount="0" falsecount="1"/>
1352
- <line num="71" count="0" type="stmt"/>
1353
- <line num="75" count="0" type="stmt"/>
1354
- <line num="77" count="0" type="cond" truecount="0" falsecount="2"/>
1355
- <line num="78" count="0" type="stmt"/>
1345
+ <line num="64" count="0" type="stmt"/>
1346
+ <line num="66" count="0" type="stmt"/>
1347
+ <line num="71" count="0" type="cond" truecount="0" falsecount="1"/>
1348
+ <line num="72" count="0" type="stmt"/>
1349
+ <line num="76" count="0" type="stmt"/>
1350
+ <line num="78" count="0" type="cond" truecount="0" falsecount="2"/>
1356
1351
  <line num="79" count="0" type="stmt"/>
1357
- <line num="80" count="0" type="cond" truecount="0" falsecount="2"/>
1358
- <line num="81" count="0" type="stmt"/>
1352
+ <line num="80" count="0" type="stmt"/>
1353
+ <line num="81" count="0" type="cond" truecount="0" falsecount="2"/>
1359
1354
  <line num="82" count="0" type="stmt"/>
1360
- <line num="85" count="0" type="stmt"/>
1355
+ <line num="83" count="0" type="stmt"/>
1361
1356
  <line num="86" count="0" type="stmt"/>
1362
- <line num="88" count="0" type="stmt"/>
1363
- <line num="98" count="17" type="stmt"/>
1364
- <line num="99" count="9" type="stmt"/>
1365
- <line num="100" count="9" type="stmt"/>
1366
- <line num="101" count="9" type="cond" truecount="1" falsecount="0"/>
1367
- <line num="102" count="9" type="stmt"/>
1368
- <line num="104" count="9" type="stmt"/>
1369
- <line num="113" count="17" type="stmt"/>
1370
- <line num="121" count="92" type="stmt"/>
1371
- <line num="122" count="92" type="stmt"/>
1372
- <line num="123" count="92" type="stmt"/>
1373
- <line num="126" count="92" type="cond" truecount="2" falsecount="0"/>
1374
- <line num="127" count="90" type="cond" truecount="1" falsecount="1"/>
1375
- <line num="128" count="2" type="cond" truecount="2" falsecount="0"/>
1376
- <line num="129" count="1" type="stmt"/>
1377
- <line num="130" count="1" type="cond" truecount="0" falsecount="1"/>
1378
- <line num="131" count="0" type="stmt"/>
1379
- <line num="134" count="92" type="cond" truecount="2" falsecount="0"/>
1380
- <line num="136" count="92" type="stmt"/>
1381
- <line num="145" count="92" type="cond" truecount="1" falsecount="0"/>
1382
- <line num="146" count="1" type="stmt"/>
1383
- <line num="149" count="92" type="cond" truecount="1" falsecount="0"/>
1384
- <line num="150" count="81" type="stmt"/>
1385
- <line num="153" count="92" type="stmt"/>
1386
- <line num="156" count="88" type="stmt"/>
1387
- <line num="158" count="88" type="cond" truecount="1" falsecount="0"/>
1388
- <line num="159" count="88" type="stmt"/>
1389
- <line num="160" count="88" type="cond" truecount="3" falsecount="0"/>
1390
- <line num="161" count="1" type="stmt"/>
1391
- <line num="166" count="87" type="cond" truecount="3" falsecount="0"/>
1392
- <line num="167" count="87" type="stmt"/>
1393
- <line num="168" count="87" type="cond" truecount="4" falsecount="0"/>
1394
- <line num="169" count="1" type="stmt"/>
1395
- <line num="174" count="17" type="stmt"/>
1396
- <line num="177" count="91" type="stmt"/>
1397
- <line num="179" count="91" type="cond" truecount="1" falsecount="0"/>
1398
- <line num="180" count="84" type="stmt"/>
1399
- <line num="182" count="91" type="cond" truecount="1" falsecount="0"/>
1400
- <line num="183" count="84" type="stmt"/>
1401
- <line num="185" count="91" type="stmt"/>
1402
- <line num="186" count="91" type="stmt"/>
1403
- <line num="188" count="91" type="cond" truecount="1" falsecount="0"/>
1404
- <line num="190" count="91" type="cond" truecount="1" falsecount="2"/>
1405
- <line num="191" count="0" type="stmt"/>
1406
- <line num="195" count="91" type="cond" truecount="1" falsecount="0"/>
1407
- <line num="197" count="13" type="stmt"/>
1408
- <line num="198" count="13" type="stmt"/>
1409
- <line num="199" count="12" type="cond" truecount="3" falsecount="0"/>
1410
- <line num="200" count="1" type="stmt"/>
1411
- <line num="202" count="11" type="stmt"/>
1412
- <line num="204" count="2" type="cond" truecount="2" falsecount="0"/>
1413
- <line num="207" count="1" type="stmt"/>
1414
- <line num="212" count="90" type="cond" truecount="3" falsecount="0"/>
1415
- <line num="214" count="79" type="stmt"/>
1416
- <line num="215" count="79" type="cond" truecount="3" falsecount="0"/>
1417
- <line num="216" count="2" type="stmt"/>
1418
- <line num="220" count="88" type="stmt"/>
1419
- <line num="222" count="86" type="stmt"/>
1420
- <line num="224" count="86" type="cond" truecount="7" falsecount="0"/>
1421
- <line num="225" count="1" type="stmt"/>
1422
- <line num="226" count="1" type="stmt"/>
1423
- <line num="227" count="1" type="stmt"/>
1424
- <line num="232" count="86" type="stmt"/>
1425
- <line num="233" count="86" type="cond" truecount="1" falsecount="0"/>
1426
- <line num="234" count="74" type="stmt"/>
1427
- <line num="236" count="74" type="cond" truecount="0" falsecount="1"/>
1428
- <line num="237" count="0" type="stmt"/>
1429
- <line num="238" count="0" type="stmt"/>
1430
- <line num="243" count="86" type="stmt"/>
1431
- <line num="245" count="86" type="stmt"/>
1432
- <line num="246" count="86" type="stmt"/>
1433
- <line num="248" count="86" type="stmt"/>
1434
- <line num="249" count="86" type="stmt"/>
1435
- <line num="250" count="86" type="stmt"/>
1436
- <line num="252" count="86" type="stmt"/>
1437
- <line num="254" count="86" type="stmt"/>
1438
- <line num="256" count="86" type="stmt"/>
1439
- <line num="262" count="0" type="cond" truecount="0" falsecount="2"/>
1440
- <line num="263" count="0" type="stmt"/>
1441
- <line num="265" count="0" type="stmt"/>
1442
- <line num="270" count="17" type="stmt"/>
1443
- <line num="274" count="92" type="stmt"/>
1444
- <line num="275" count="92" type="cond" truecount="1" falsecount="0"/>
1445
- <line num="276" count="92" type="stmt"/>
1446
- <line num="277" count="40" type="stmt"/>
1447
- <line num="281" count="92" type="stmt"/>
1448
- <line num="285" count="17" type="stmt"/>
1449
- <line num="286" count="16" type="stmt"/>
1450
- <line num="287" count="11" type="stmt"/>
1451
- <line num="292" count="11" type="stmt"/>
1452
- <line num="296" count="11" type="stmt"/>
1453
- <line num="304" count="17" type="stmt"/>
1454
- <line num="306" count="11" type="stmt"/>
1455
- <line num="307" count="16" type="stmt"/>
1456
- <line num="308" count="11" type="stmt"/>
1357
+ <line num="87" count="0" type="stmt"/>
1358
+ <line num="89" count="0" type="stmt"/>
1359
+ <line num="99" count="18" type="stmt"/>
1360
+ <line num="100" count="10" type="stmt"/>
1361
+ <line num="101" count="10" type="stmt"/>
1362
+ <line num="102" count="10" type="cond" truecount="1" falsecount="0"/>
1363
+ <line num="103" count="10" type="stmt"/>
1364
+ <line num="105" count="10" type="stmt"/>
1365
+ <line num="114" count="18" type="stmt"/>
1366
+ <line num="122" count="95" type="stmt"/>
1367
+ <line num="123" count="95" type="stmt"/>
1368
+ <line num="124" count="95" type="stmt"/>
1369
+ <line num="127" count="95" type="cond" truecount="2" falsecount="0"/>
1370
+ <line num="128" count="93" type="cond" truecount="1" falsecount="1"/>
1371
+ <line num="129" count="2" type="cond" truecount="2" falsecount="0"/>
1372
+ <line num="130" count="1" type="stmt"/>
1373
+ <line num="131" count="1" type="cond" truecount="0" falsecount="1"/>
1374
+ <line num="132" count="0" type="stmt"/>
1375
+ <line num="135" count="95" type="cond" truecount="2" falsecount="0"/>
1376
+ <line num="137" count="95" type="stmt"/>
1377
+ <line num="146" count="95" type="cond" truecount="1" falsecount="0"/>
1378
+ <line num="147" count="1" type="stmt"/>
1379
+ <line num="150" count="95" type="cond" truecount="1" falsecount="0"/>
1380
+ <line num="151" count="84" type="stmt"/>
1381
+ <line num="154" count="95" type="stmt"/>
1382
+ <line num="158" count="18" type="stmt"/>
1383
+ <line num="160" count="91" type="stmt"/>
1384
+ <line num="163" count="91" type="stmt"/>
1385
+ <line num="170" count="91" type="stmt"/>
1386
+ <line num="173" count="91" type="stmt"/>
1387
+ <line num="175" count="91" type="cond" truecount="1" falsecount="0"/>
1388
+ <line num="176" count="91" type="stmt"/>
1389
+ <line num="177" count="91" type="cond" truecount="3" falsecount="0"/>
1390
+ <line num="178" count="1" type="stmt"/>
1391
+ <line num="183" count="90" type="cond" truecount="3" falsecount="0"/>
1392
+ <line num="184" count="90" type="stmt"/>
1393
+ <line num="185" count="90" type="cond" truecount="4" falsecount="0"/>
1394
+ <line num="186" count="1" type="stmt"/>
1395
+ <line num="191" count="18" type="stmt"/>
1396
+ <line num="194" count="94" type="stmt"/>
1397
+ <line num="196" count="94" type="cond" truecount="1" falsecount="0"/>
1398
+ <line num="197" count="87" type="stmt"/>
1399
+ <line num="199" count="94" type="cond" truecount="1" falsecount="0"/>
1400
+ <line num="200" count="87" type="stmt"/>
1401
+ <line num="202" count="94" type="stmt"/>
1402
+ <line num="203" count="94" type="stmt"/>
1403
+ <line num="205" count="94" type="cond" truecount="1" falsecount="0"/>
1404
+ <line num="207" count="94" type="cond" truecount="1" falsecount="2"/>
1405
+ <line num="208" count="0" type="stmt"/>
1406
+ <line num="212" count="94" type="cond" truecount="1" falsecount="0"/>
1407
+ <line num="214" count="13" type="stmt"/>
1408
+ <line num="215" count="13" type="stmt"/>
1409
+ <line num="216" count="12" type="cond" truecount="3" falsecount="0"/>
1410
+ <line num="217" count="1" type="stmt"/>
1411
+ <line num="219" count="11" type="stmt"/>
1412
+ <line num="221" count="2" type="cond" truecount="2" falsecount="0"/>
1413
+ <line num="224" count="1" type="stmt"/>
1414
+ <line num="229" count="93" type="cond" truecount="3" falsecount="0"/>
1415
+ <line num="231" count="82" type="stmt"/>
1416
+ <line num="232" count="82" type="cond" truecount="3" falsecount="0"/>
1417
+ <line num="233" count="2" type="stmt"/>
1418
+ <line num="237" count="91" type="stmt"/>
1419
+ <line num="239" count="89" type="stmt"/>
1420
+ <line num="241" count="89" type="cond" truecount="7" falsecount="0"/>
1421
+ <line num="242" count="1" type="stmt"/>
1422
+ <line num="243" count="1" type="stmt"/>
1423
+ <line num="244" count="1" type="stmt"/>
1424
+ <line num="249" count="89" type="stmt"/>
1425
+ <line num="250" count="89" type="cond" truecount="1" falsecount="0"/>
1426
+ <line num="251" count="77" type="stmt"/>
1427
+ <line num="253" count="77" type="cond" truecount="0" falsecount="1"/>
1428
+ <line num="254" count="0" type="stmt"/>
1429
+ <line num="255" count="0" type="stmt"/>
1430
+ <line num="260" count="89" type="stmt"/>
1431
+ <line num="262" count="89" type="stmt"/>
1432
+ <line num="263" count="89" type="stmt"/>
1433
+ <line num="265" count="89" type="stmt"/>
1434
+ <line num="266" count="89" type="stmt"/>
1435
+ <line num="267" count="89" type="stmt"/>
1436
+ <line num="269" count="89" type="stmt"/>
1437
+ <line num="271" count="89" type="stmt"/>
1438
+ <line num="273" count="89" type="stmt"/>
1439
+ <line num="279" count="0" type="cond" truecount="0" falsecount="2"/>
1440
+ <line num="280" count="0" type="stmt"/>
1441
+ <line num="282" count="0" type="stmt"/>
1442
+ <line num="287" count="18" type="stmt"/>
1443
+ <line num="291" count="95" type="stmt"/>
1444
+ <line num="292" count="95" type="cond" truecount="1" falsecount="0"/>
1445
+ <line num="293" count="95" type="stmt"/>
1446
+ <line num="294" count="42" type="stmt"/>
1447
+ <line num="298" count="95" type="stmt"/>
1448
+ <line num="302" count="18" type="stmt"/>
1449
+ <line num="303" count="16" type="stmt"/>
1450
+ <line num="304" count="11" type="stmt"/>
1451
+ <line num="309" count="11" type="stmt"/>
1457
1452
  <line num="313" count="11" type="stmt"/>
1458
- <line num="316" count="11" type="stmt"/>
1459
- <line num="323" count="17" type="stmt"/>
1453
+ <line num="321" count="18" type="stmt"/>
1454
+ <line num="323" count="11" type="stmt"/>
1455
+ <line num="324" count="16" type="stmt"/>
1460
1456
  <line num="325" count="11" type="stmt"/>
1461
- <line num="326" count="16" type="stmt"/>
1462
- <line num="327" count="11" type="stmt"/>
1463
- <line num="332" count="11" type="stmt"/>
1464
- <line num="336" count="11" type="stmt"/>
1465
- <line num="350" count="17" type="stmt"/>
1466
- <line num="351" count="11" type="stmt"/>
1457
+ <line num="330" count="11" type="stmt"/>
1458
+ <line num="333" count="11" type="stmt"/>
1459
+ <line num="340" count="18" type="stmt"/>
1460
+ <line num="342" count="11" type="stmt"/>
1461
+ <line num="343" count="16" type="stmt"/>
1462
+ <line num="344" count="11" type="stmt"/>
1463
+ <line num="349" count="11" type="stmt"/>
1467
1464
  <line num="353" count="11" type="stmt"/>
1468
- <line num="354" count="11" type="stmt"/>
1469
- <line num="356" count="11" type="stmt"/>
1470
- <line num="357" count="11" type="stmt"/>
1471
- <line num="359" count="11" type="stmt"/>
1472
- <line num="360" count="11" type="stmt"/>
1473
- <line num="362" count="11" type="stmt"/>
1474
- <line num="365" count="17" type="stmt"/>
1475
- <line num="368" count="6" type="stmt"/>
1476
- <line num="369" count="6" type="stmt"/>
1477
- <line num="371" count="6" type="stmt"/>
1478
- <line num="372" count="6" type="stmt"/>
1479
- <line num="374" count="10" type="stmt"/>
1480
- <line num="375" count="6" type="stmt"/>
1481
- <line num="376" count="6" type="stmt"/>
1482
- <line num="378" count="6" type="stmt"/>
1483
- <line num="379" count="10" type="cond" truecount="1" falsecount="0"/>
1484
- <line num="381" count="6" type="stmt"/>
1485
- <line num="385" count="4" type="stmt"/>
1486
- <line num="389" count="4" type="stmt"/>
1487
- <line num="391" count="6" type="stmt"/>
1465
+ <line num="367" count="18" type="stmt"/>
1466
+ <line num="368" count="11" type="stmt"/>
1467
+ <line num="370" count="11" type="stmt"/>
1468
+ <line num="371" count="11" type="stmt"/>
1469
+ <line num="373" count="11" type="stmt"/>
1470
+ <line num="374" count="11" type="stmt"/>
1471
+ <line num="376" count="11" type="stmt"/>
1472
+ <line num="377" count="11" type="stmt"/>
1473
+ <line num="379" count="11" type="stmt"/>
1474
+ <line num="382" count="18" type="stmt"/>
1475
+ <line num="385" count="6" type="stmt"/>
1476
+ <line num="386" count="6" type="stmt"/>
1477
+ <line num="388" count="6" type="stmt"/>
1478
+ <line num="389" count="6" type="stmt"/>
1479
+ <line num="391" count="10" type="stmt"/>
1488
1480
  <line num="392" count="6" type="stmt"/>
1489
- <line num="396" count="6" type="stmt"/>
1490
- <line num="397" count="6" type="stmt"/>
1481
+ <line num="393" count="6" type="stmt"/>
1482
+ <line num="395" count="6" type="stmt"/>
1483
+ <line num="396" count="10" type="cond" truecount="1" falsecount="0"/>
1484
+ <line num="398" count="6" type="stmt"/>
1485
+ <line num="402" count="4" type="stmt"/>
1486
+ <line num="406" count="4" type="stmt"/>
1487
+ <line num="408" count="6" type="stmt"/>
1491
1488
  <line num="409" count="6" type="stmt"/>
1492
- <line num="410" count="6" type="stmt"/>
1493
1489
  <line num="413" count="6" type="stmt"/>
1494
- <line num="416" count="6" type="stmt"/>
1495
- <line num="417" count="6" type="stmt"/>
1496
- <line num="418" count="6" type="stmt"/>
1497
- <line num="421" count="6" type="stmt"/>
1498
- <line num="422" count="6" type="stmt"/>
1499
- <line num="429" count="6" type="cond" truecount="3" falsecount="0"/>
1490
+ <line num="414" count="6" type="stmt"/>
1491
+ <line num="426" count="6" type="stmt"/>
1492
+ <line num="427" count="6" type="stmt"/>
1500
1493
  <line num="430" count="6" type="stmt"/>
1501
- <line num="431" count="6" type="stmt"/>
1502
- <line num="432" count="6" type="stmt"/>
1503
- <line num="433" count="0" type="stmt"/>
1494
+ <line num="433" count="6" type="stmt"/>
1495
+ <line num="434" count="6" type="stmt"/>
1504
1496
  <line num="435" count="6" type="stmt"/>
1505
1497
  <line num="438" count="6" type="stmt"/>
1506
- <line num="447" count="17" type="stmt"/>
1507
- <line num="449" count="2" type="stmt"/>
1508
- <line num="450" count="2" type="cond" truecount="3" falsecount="0"/>
1509
- <line num="451" count="2" type="stmt"/>
1510
- <line num="452" count="2" type="stmt"/>
1511
- <line num="453" count="2" type="cond" truecount="0" falsecount="1"/>
1512
- <line num="454" count="0" type="stmt"/>
1513
- <line num="457" count="2" type="stmt"/>
1514
- <line num="458" count="2" type="cond" truecount="1" falsecount="0"/>
1515
- <line num="459" count="1" type="stmt"/>
1516
- <line num="464" count="17" type="stmt"/>
1498
+ <line num="439" count="6" type="stmt"/>
1499
+ <line num="446" count="6" type="cond" truecount="3" falsecount="0"/>
1500
+ <line num="447" count="6" type="stmt"/>
1501
+ <line num="448" count="6" type="stmt"/>
1502
+ <line num="449" count="6" type="stmt"/>
1503
+ <line num="450" count="0" type="stmt"/>
1504
+ <line num="452" count="6" type="stmt"/>
1505
+ <line num="455" count="6" type="stmt"/>
1506
+ <line num="464" count="18" type="stmt"/>
1517
1507
  <line num="466" count="2" type="stmt"/>
1518
- <line num="467" count="2" type="stmt"/>
1508
+ <line num="467" count="2" type="cond" truecount="3" falsecount="0"/>
1509
+ <line num="468" count="2" type="stmt"/>
1519
1510
  <line num="469" count="2" type="stmt"/>
1520
- <line num="475" count="2" type="stmt"/>
1521
- <line num="476" count="2" type="cond" truecount="1" falsecount="0"/>
1522
- <line num="477" count="1" type="stmt"/>
1523
- <line num="479" count="1" type="stmt"/>
1524
- <line num="487" count="2" type="stmt"/>
1525
- <line num="491" count="2" type="stmt"/>
1526
- <line num="493" count="3" type="stmt"/>
1527
- <line num="498" count="3" type="stmt"/>
1528
- <line num="502" count="2" type="stmt"/>
1529
- <line num="503" count="2" type="stmt"/>
1530
- <line num="504" count="3" type="stmt"/>
1531
- <line num="509" count="2" type="stmt"/>
1532
- <line num="510" count="2" type="stmt"/>
1533
- <line num="511" count="3" type="stmt"/>
1534
- <line num="512" count="3" type="stmt"/>
1535
- <line num="516" count="2" type="stmt"/>
1536
- <line num="517" count="3" type="stmt"/>
1537
- <line num="518" count="3" type="cond" truecount="1" falsecount="1"/>
1538
- <line num="519" count="3" type="stmt"/>
1539
- <line num="521" count="0" type="stmt"/>
1540
- <line num="529" count="2" type="stmt"/>
1541
- <line num="532" count="17" type="stmt"/>
1542
- <line num="533" count="4" type="stmt"/>
1543
- <line num="534" count="4" type="stmt"/>
1544
- <line num="535" count="4" type="stmt"/>
1545
- <line num="537" count="4" type="cond" truecount="3" falsecount="0"/>
1546
- <line num="539" count="4" type="stmt"/>
1547
- <line num="540" count="4" type="stmt"/>
1548
- <line num="541" count="4" type="cond" truecount="1" falsecount="0"/>
1549
- <line num="542" count="1" type="cond" truecount="1" falsecount="1"/>
1550
- <line num="543" count="0" type="stmt"/>
1551
- <line num="545" count="1" type="stmt"/>
1552
- <line num="550" count="3" type="stmt"/>
1553
- <line num="552" count="3" type="stmt"/>
1554
- <line num="554" count="3" type="stmt"/>
1555
- <line num="555" count="3" type="stmt"/>
1556
- <line num="556" count="3" type="stmt"/>
1557
- <line num="558" count="3" type="stmt"/>
1558
- <line num="561" count="17" type="stmt"/>
1559
- <line num="562" count="3" type="stmt"/>
1560
- <line num="563" count="3" type="stmt"/>
1561
- <line num="564" count="3" type="stmt"/>
1562
- <line num="565" count="3" type="stmt"/>
1563
- <line num="566" count="3" type="stmt"/>
1564
- <line num="568" count="3" type="stmt"/>
1565
- <line num="571" count="17" type="stmt"/>
1566
- <line num="573" count="5" type="stmt"/>
1567
- <line num="574" count="5" type="stmt"/>
1568
- <line num="579" count="6" type="stmt"/>
1569
- <line num="580" count="5" type="stmt"/>
1570
- <line num="583" count="5" type="stmt"/>
1571
- <line num="584" count="6" type="cond" truecount="2" falsecount="0"/>
1572
- <line num="585" count="2" type="stmt"/>
1573
- <line num="587" count="4" type="stmt"/>
1511
+ <line num="470" count="2" type="cond" truecount="0" falsecount="1"/>
1512
+ <line num="471" count="0" type="stmt"/>
1513
+ <line num="474" count="2" type="stmt"/>
1514
+ <line num="475" count="2" type="cond" truecount="1" falsecount="0"/>
1515
+ <line num="476" count="1" type="stmt"/>
1516
+ <line num="481" count="18" type="stmt"/>
1517
+ <line num="483" count="2" type="stmt"/>
1518
+ <line num="484" count="2" type="stmt"/>
1519
+ <line num="486" count="2" type="stmt"/>
1520
+ <line num="492" count="2" type="stmt"/>
1521
+ <line num="493" count="2" type="cond" truecount="1" falsecount="0"/>
1522
+ <line num="494" count="1" type="stmt"/>
1523
+ <line num="496" count="1" type="stmt"/>
1524
+ <line num="504" count="2" type="stmt"/>
1525
+ <line num="508" count="2" type="stmt"/>
1526
+ <line num="510" count="3" type="stmt"/>
1527
+ <line num="515" count="3" type="stmt"/>
1528
+ <line num="519" count="2" type="stmt"/>
1529
+ <line num="520" count="2" type="stmt"/>
1530
+ <line num="521" count="3" type="stmt"/>
1531
+ <line num="526" count="2" type="stmt"/>
1532
+ <line num="527" count="2" type="stmt"/>
1533
+ <line num="528" count="3" type="stmt"/>
1534
+ <line num="529" count="3" type="stmt"/>
1535
+ <line num="533" count="2" type="stmt"/>
1536
+ <line num="534" count="3" type="stmt"/>
1537
+ <line num="535" count="3" type="cond" truecount="1" falsecount="1"/>
1538
+ <line num="536" count="3" type="stmt"/>
1539
+ <line num="538" count="0" type="stmt"/>
1540
+ <line num="546" count="2" type="stmt"/>
1541
+ <line num="549" count="18" type="stmt"/>
1542
+ <line num="550" count="4" type="stmt"/>
1543
+ <line num="551" count="4" type="stmt"/>
1544
+ <line num="552" count="4" type="stmt"/>
1545
+ <line num="554" count="4" type="cond" truecount="3" falsecount="0"/>
1546
+ <line num="556" count="4" type="stmt"/>
1547
+ <line num="557" count="4" type="stmt"/>
1548
+ <line num="558" count="4" type="cond" truecount="1" falsecount="0"/>
1549
+ <line num="559" count="1" type="cond" truecount="1" falsecount="1"/>
1550
+ <line num="560" count="0" type="stmt"/>
1551
+ <line num="562" count="1" type="stmt"/>
1552
+ <line num="567" count="3" type="stmt"/>
1553
+ <line num="569" count="3" type="stmt"/>
1554
+ <line num="571" count="3" type="stmt"/>
1555
+ <line num="572" count="3" type="stmt"/>
1556
+ <line num="573" count="3" type="stmt"/>
1557
+ <line num="575" count="3" type="stmt"/>
1558
+ <line num="578" count="18" type="stmt"/>
1559
+ <line num="579" count="3" type="stmt"/>
1560
+ <line num="580" count="3" type="stmt"/>
1561
+ <line num="581" count="3" type="stmt"/>
1562
+ <line num="582" count="3" type="stmt"/>
1563
+ <line num="583" count="3" type="stmt"/>
1564
+ <line num="585" count="3" type="stmt"/>
1565
+ <line num="588" count="18" type="stmt"/>
1566
+ <line num="590" count="5" type="stmt"/>
1574
1567
  <line num="591" count="5" type="stmt"/>
1575
- <line num="594" count="5" type="stmt"/>
1576
- <line num="595" count="5" type="stmt"/>
1577
- <line num="596" count="4" type="stmt"/>
1578
- <line num="597" count="4" type="stmt"/>
1579
- <line num="598" count="4" type="cond" truecount="1" falsecount="0"/>
1580
- <line num="599" count="2" type="stmt"/>
1581
- <line num="601" count="4" type="stmt"/>
1582
- <line num="602" count="4" type="stmt"/>
1583
- <line num="606" count="4" type="stmt"/>
1584
- <line num="607" count="4" type="stmt"/>
1585
- <line num="608" count="4" type="stmt"/>
1586
- <line num="610" count="0" type="stmt"/>
1587
- <line num="611" count="0" type="stmt"/>
1588
- <line num="618" count="5" type="stmt"/>
1568
+ <line num="596" count="6" type="stmt"/>
1569
+ <line num="597" count="5" type="stmt"/>
1570
+ <line num="600" count="5" type="stmt"/>
1571
+ <line num="601" count="6" type="cond" truecount="2" falsecount="0"/>
1572
+ <line num="602" count="2" type="stmt"/>
1573
+ <line num="604" count="4" type="stmt"/>
1574
+ <line num="608" count="5" type="stmt"/>
1575
+ <line num="611" count="5" type="stmt"/>
1576
+ <line num="612" count="5" type="stmt"/>
1577
+ <line num="613" count="4" type="stmt"/>
1578
+ <line num="614" count="4" type="stmt"/>
1579
+ <line num="615" count="4" type="cond" truecount="1" falsecount="0"/>
1580
+ <line num="616" count="2" type="stmt"/>
1581
+ <line num="618" count="4" type="stmt"/>
1582
+ <line num="619" count="4" type="stmt"/>
1583
+ <line num="623" count="4" type="stmt"/>
1584
+ <line num="624" count="4" type="stmt"/>
1585
+ <line num="625" count="4" type="stmt"/>
1586
+ <line num="627" count="0" type="stmt"/>
1587
+ <line num="628" count="0" type="stmt"/>
1588
+ <line num="635" count="5" type="stmt"/>
1589
1589
  </file>
1590
1590
  </package>
1591
1591
  <package name="src.tests">
1592
- <metrics statements="124" coveredstatements="115" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1592
+ <metrics statements="127" coveredstatements="118" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1593
1593
  <file name="TestConfiguration.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/TestConfiguration.ts">
1594
- <metrics statements="111" coveredstatements="102" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1595
- <line num="1" count="17" type="stmt"/>
1596
- <line num="2" count="17" type="stmt"/>
1597
- <line num="3" count="17" type="stmt"/>
1598
- <line num="4" count="17" type="stmt"/>
1599
- <line num="5" count="17" type="stmt"/>
1600
- <line num="6" count="17" type="stmt"/>
1601
- <line num="7" count="17" type="stmt"/>
1602
- <line num="8" count="17" type="stmt"/>
1603
- <line num="16" count="17" type="stmt"/>
1604
- <line num="18" count="17" type="stmt"/>
1605
- <line num="20" count="17" type="cond" truecount="2" falsecount="0"/>
1606
- <line num="21" count="17" type="stmt"/>
1607
- <line num="22" count="17" type="stmt"/>
1608
- <line num="38" count="17" type="cond" truecount="1" falsecount="1"/>
1609
- <line num="39" count="17" type="stmt"/>
1610
- <line num="40" count="0" type="cond" truecount="0" falsecount="1"/>
1611
- <line num="41" count="0" type="stmt"/>
1612
- <line num="44" count="17" type="cond" truecount="1" falsecount="0"/>
1613
- <line num="45" count="17" type="stmt"/>
1614
- <line num="46" count="17" type="stmt"/>
1615
- <line num="48" count="17" type="stmt"/>
1616
- <line num="51" count="17" type="stmt"/>
1617
- <line num="55" count="0" type="stmt"/>
1618
- <line num="60" count="17" type="stmt"/>
1619
- <line num="61" count="25" type="stmt"/>
1620
- <line num="62" count="25" type="stmt"/>
1621
- <line num="65" count="17" type="stmt"/>
1622
- <line num="66" count="25" type="stmt"/>
1623
- <line num="67" count="25" type="stmt"/>
1624
- <line num="70" count="17" type="stmt"/>
1625
- <line num="71" count="21" type="stmt"/>
1626
- <line num="72" count="21" type="stmt"/>
1627
- <line num="75" count="17" type="stmt"/>
1628
- <line num="76" count="4" type="stmt"/>
1629
- <line num="77" count="4" type="stmt"/>
1630
- <line num="83" count="155" type="stmt"/>
1631
- <line num="85" count="155" type="stmt"/>
1632
- <line num="86" count="155" type="stmt"/>
1633
- <line num="87" count="155" type="stmt"/>
1634
- <line num="88" count="155" type="stmt"/>
1635
- <line num="89" count="155" type="stmt"/>
1636
- <line num="92" count="155" type="stmt"/>
1637
- <line num="93" count="16" type="stmt"/>
1638
- <line num="95" count="155" type="cond" truecount="1" falsecount="0"/>
1639
- <line num="96" count="72" type="stmt"/>
1640
- <line num="98" count="155" type="stmt"/>
1641
- <line num="99" count="155" type="stmt"/>
1642
- <line num="101" count="139" type="stmt"/>
1643
- <line num="107" count="17" type="stmt"/>
1644
- <line num="108" count="17" type="stmt"/>
1645
- <line num="110" count="17" type="stmt"/>
1646
- <line num="111" count="17" type="stmt"/>
1647
- <line num="112" count="17" type="stmt"/>
1648
- <line num="117" count="17" type="cond" truecount="1" falsecount="0"/>
1649
- <line num="118" count="17" type="stmt"/>
1650
- <line num="124" count="17" type="stmt"/>
1651
- <line num="126" count="6" type="stmt"/>
1652
- <line num="129" count="6" type="stmt"/>
1594
+ <metrics statements="114" coveredstatements="105" conditionals="16" coveredconditionals="12" methods="38" coveredmethods="33"/>
1595
+ <line num="1" count="18" type="stmt"/>
1596
+ <line num="4" count="18" type="stmt"/>
1597
+ <line num="5" count="18" type="stmt"/>
1598
+ <line num="8" count="18" type="stmt"/>
1599
+ <line num="10" count="18" type="stmt"/>
1600
+ <line num="11" count="18" type="stmt"/>
1601
+ <line num="12" count="18" type="stmt"/>
1602
+ <line num="13" count="18" type="stmt"/>
1603
+ <line num="14" count="18" type="stmt"/>
1604
+ <line num="15" count="18" type="stmt"/>
1605
+ <line num="16" count="18" type="stmt"/>
1606
+ <line num="24" count="18" type="stmt"/>
1607
+ <line num="26" count="18" type="stmt"/>
1608
+ <line num="28" count="18" type="cond" truecount="2" falsecount="0"/>
1609
+ <line num="29" count="18" type="stmt"/>
1610
+ <line num="30" count="18" type="stmt"/>
1611
+ <line num="46" count="18" type="cond" truecount="1" falsecount="1"/>
1612
+ <line num="47" count="18" type="stmt"/>
1613
+ <line num="48" count="0" type="cond" truecount="0" falsecount="1"/>
1614
+ <line num="49" count="0" type="stmt"/>
1615
+ <line num="52" count="18" type="cond" truecount="1" falsecount="0"/>
1616
+ <line num="53" count="18" type="stmt"/>
1617
+ <line num="54" count="18" type="stmt"/>
1618
+ <line num="56" count="18" type="stmt"/>
1619
+ <line num="59" count="18" type="stmt"/>
1620
+ <line num="63" count="0" type="stmt"/>
1621
+ <line num="68" count="18" type="stmt"/>
1622
+ <line num="69" count="26" type="stmt"/>
1623
+ <line num="70" count="26" type="stmt"/>
1624
+ <line num="73" count="18" type="stmt"/>
1625
+ <line num="74" count="26" type="stmt"/>
1626
+ <line num="75" count="26" type="stmt"/>
1627
+ <line num="78" count="18" type="stmt"/>
1628
+ <line num="79" count="22" type="stmt"/>
1629
+ <line num="80" count="22" type="stmt"/>
1630
+ <line num="83" count="18" type="stmt"/>
1631
+ <line num="84" count="4" type="stmt"/>
1632
+ <line num="85" count="4" type="stmt"/>
1633
+ <line num="91" count="158" type="stmt"/>
1634
+ <line num="93" count="158" type="stmt"/>
1635
+ <line num="94" count="158" type="stmt"/>
1636
+ <line num="95" count="158" type="stmt"/>
1637
+ <line num="96" count="158" type="stmt"/>
1638
+ <line num="97" count="158" type="stmt"/>
1639
+ <line num="100" count="158" type="stmt"/>
1640
+ <line num="101" count="16" type="stmt"/>
1641
+ <line num="103" count="158" type="cond" truecount="1" falsecount="0"/>
1642
+ <line num="104" count="72" type="stmt"/>
1643
+ <line num="106" count="158" type="stmt"/>
1644
+ <line num="107" count="158" type="stmt"/>
1645
+ <line num="109" count="142" type="stmt"/>
1646
+ <line num="115" count="18" type="stmt"/>
1647
+ <line num="116" count="18" type="stmt"/>
1648
+ <line num="118" count="18" type="stmt"/>
1649
+ <line num="119" count="18" type="stmt"/>
1650
+ <line num="120" count="18" type="stmt"/>
1651
+ <line num="125" count="18" type="cond" truecount="1" falsecount="0"/>
1652
+ <line num="126" count="18" type="stmt"/>
1653
+ <line num="132" count="18" type="stmt"/>
1654
+ <line num="134" count="6" type="stmt"/>
1653
1655
  <line num="137" count="6" type="stmt"/>
1654
- <line num="138" count="6" type="stmt"/>
1655
- <line num="140" count="6" type="stmt"/>
1656
- <line num="144" count="452" type="stmt"/>
1657
- <line num="145" count="452" type="stmt"/>
1658
- <line num="147" count="385" type="stmt"/>
1659
- <line num="160" count="46" type="stmt"/>
1660
- <line num="168" count="46" type="stmt"/>
1661
- <line num="172" count="73" type="cond" truecount="0" falsecount="1"/>
1662
- <line num="173" count="0" type="stmt"/>
1663
- <line num="175" count="73" type="stmt"/>
1664
- <line num="181" count="72" type="stmt"/>
1665
- <line num="186" count="72" type="stmt"/>
1666
- <line num="187" count="72" type="stmt"/>
1667
- <line num="195" count="64" type="stmt"/>
1668
- <line num="196" count="64" type="cond" truecount="2" falsecount="0"/>
1669
- <line num="197" count="62" type="stmt"/>
1670
- <line num="198" count="2" type="cond" truecount="1" falsecount="1"/>
1671
- <line num="199" count="2" type="stmt"/>
1672
- <line num="201" count="0" type="stmt"/>
1673
- <line num="206" count="19" type="stmt"/>
1674
- <line num="209" count="17" type="stmt"/>
1675
- <line num="210" count="1" type="stmt"/>
1676
- <line num="216" count="17" type="stmt"/>
1677
- <line num="220" count="17" type="stmt"/>
1678
- <line num="224" count="17" type="stmt"/>
1679
- <line num="228" count="17" type="stmt"/>
1680
- <line num="232" count="71" type="stmt"/>
1681
- <line num="233" count="71" type="stmt"/>
1682
- <line num="238" count="61" type="cond" truecount="1" falsecount="0"/>
1683
- <line num="239" count="17" type="stmt"/>
1684
- <line num="241" count="61" type="stmt"/>
1685
- <line num="242" count="61" type="stmt"/>
1686
- <line num="243" count="61" type="stmt"/>
1687
- <line num="249" count="36" type="stmt"/>
1688
- <line num="250" count="36" type="stmt"/>
1689
- <line num="257" count="36" type="cond" truecount="1" falsecount="0"/>
1656
+ <line num="145" count="6" type="stmt"/>
1657
+ <line num="146" count="6" type="stmt"/>
1658
+ <line num="148" count="6" type="stmt"/>
1659
+ <line num="152" count="475" type="stmt"/>
1660
+ <line num="153" count="475" type="stmt"/>
1661
+ <line num="155" count="405" type="stmt"/>
1662
+ <line num="168" count="48" type="stmt"/>
1663
+ <line num="176" count="48" type="stmt"/>
1664
+ <line num="180" count="87" type="cond" truecount="0" falsecount="1"/>
1665
+ <line num="181" count="0" type="stmt"/>
1666
+ <line num="183" count="87" type="stmt"/>
1667
+ <line num="189" count="86" type="stmt"/>
1668
+ <line num="194" count="86" type="stmt"/>
1669
+ <line num="195" count="86" type="stmt"/>
1670
+ <line num="203" count="78" type="stmt"/>
1671
+ <line num="204" count="78" type="cond" truecount="2" falsecount="0"/>
1672
+ <line num="205" count="76" type="stmt"/>
1673
+ <line num="206" count="2" type="cond" truecount="1" falsecount="1"/>
1674
+ <line num="207" count="2" type="stmt"/>
1675
+ <line num="209" count="0" type="stmt"/>
1676
+ <line num="214" count="19" type="stmt"/>
1677
+ <line num="217" count="18" type="stmt"/>
1678
+ <line num="218" count="1" type="stmt"/>
1679
+ <line num="224" count="18" type="stmt"/>
1680
+ <line num="228" count="18" type="stmt"/>
1681
+ <line num="232" count="18" type="stmt"/>
1682
+ <line num="236" count="18" type="stmt"/>
1683
+ <line num="240" count="74" type="stmt"/>
1684
+ <line num="241" count="74" type="stmt"/>
1685
+ <line num="246" count="64" type="cond" truecount="1" falsecount="0"/>
1686
+ <line num="247" count="17" type="stmt"/>
1687
+ <line num="249" count="64" type="stmt"/>
1688
+ <line num="250" count="64" type="stmt"/>
1689
+ <line num="251" count="64" type="stmt"/>
1690
+ <line num="257" count="36" type="stmt"/>
1690
1691
  <line num="258" count="36" type="stmt"/>
1691
- <line num="275" count="8" type="stmt"/>
1692
- <line num="276" count="8" type="stmt"/>
1693
- <line num="286" count="0" type="stmt"/>
1694
- <line num="287" count="0" type="stmt"/>
1695
- <line num="293" count="0" type="stmt"/>
1692
+ <line num="265" count="36" type="cond" truecount="1" falsecount="0"/>
1693
+ <line num="266" count="36" type="stmt"/>
1694
+ <line num="283" count="8" type="stmt"/>
1695
+ <line num="284" count="8" type="stmt"/>
1696
1696
  <line num="294" count="0" type="stmt"/>
1697
- <line num="298" count="2" type="stmt"/>
1698
- <line num="299" count="2" type="stmt"/>
1699
- <line num="301" count="2" type="stmt"/>
1700
- <line num="302" count="2" type="stmt"/>
1701
- <line num="308" count="9" type="stmt"/>
1702
- <line num="309" count="9" type="stmt"/>
1703
- <line num="313" count="3" type="stmt"/>
1704
- <line num="314" count="3" type="stmt"/>
1705
- <line num="322" count="17" type="stmt"/>
1697
+ <line num="295" count="0" type="stmt"/>
1698
+ <line num="301" count="0" type="stmt"/>
1699
+ <line num="302" count="0" type="stmt"/>
1700
+ <line num="306" count="2" type="stmt"/>
1701
+ <line num="307" count="2" type="stmt"/>
1702
+ <line num="309" count="2" type="stmt"/>
1703
+ <line num="310" count="2" type="stmt"/>
1704
+ <line num="316" count="9" type="stmt"/>
1705
+ <line num="317" count="9" type="stmt"/>
1706
+ <line num="321" count="3" type="stmt"/>
1707
+ <line num="322" count="3" type="stmt"/>
1708
+ <line num="330" count="18" type="stmt"/>
1706
1709
  </file>
1707
1710
  <file name="controllers.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/controllers.ts">
1708
1711
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1709
- <line num="1" count="17" type="stmt"/>
1710
- <line num="2" count="17" type="stmt"/>
1711
- <line num="3" count="17" type="stmt"/>
1712
- <line num="4" count="17" type="stmt"/>
1713
- <line num="5" count="17" type="stmt"/>
1712
+ <line num="1" count="18" type="stmt"/>
1713
+ <line num="2" count="18" type="stmt"/>
1714
+ <line num="3" count="18" type="stmt"/>
1715
+ <line num="4" count="18" type="stmt"/>
1716
+ <line num="5" count="18" type="stmt"/>
1714
1717
  </file>
1715
1718
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/index.ts">
1716
1719
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1717
- <line num="1" count="17" type="stmt"/>
1718
- <line num="2" count="17" type="stmt"/>
1719
- <line num="3" count="17" type="stmt"/>
1720
- <line num="4" count="17" type="stmt"/>
1721
- <line num="5" count="17" type="stmt"/>
1722
- <line num="6" count="17" type="stmt"/>
1723
- <line num="8" count="17" type="stmt"/>
1724
- <line num="18" count="17" type="stmt"/>
1720
+ <line num="1" count="18" type="stmt"/>
1721
+ <line num="2" count="18" type="stmt"/>
1722
+ <line num="3" count="18" type="stmt"/>
1723
+ <line num="4" count="18" type="stmt"/>
1724
+ <line num="5" count="18" type="stmt"/>
1725
+ <line num="6" count="18" type="stmt"/>
1726
+ <line num="8" count="18" type="stmt"/>
1727
+ <line num="18" count="18" type="stmt"/>
1725
1728
  </file>
1726
1729
  </package>
1727
1730
  <package name="src.tests.api">
1728
- <metrics statements="147" coveredstatements="147" conditionals="73" coveredconditionals="68" methods="48" coveredmethods="48"/>
1731
+ <metrics statements="185" coveredstatements="184" conditionals="127" coveredconditionals="104" methods="62" coveredmethods="60"/>
1729
1732
  <file name="accounts.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/accounts.ts">
1730
1733
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
1731
- <line num="3" count="17" type="stmt"/>
1732
- <line num="5" count="17" type="stmt"/>
1733
- <line num="7" count="17" type="stmt"/>
1734
- <line num="10" count="17" type="stmt"/>
1734
+ <line num="3" count="18" type="stmt"/>
1735
+ <line num="5" count="18" type="stmt"/>
1736
+ <line num="7" count="18" type="stmt"/>
1737
+ <line num="10" count="18" type="stmt"/>
1735
1738
  <line num="11" count="3" type="stmt"/>
1736
1739
  <line num="17" count="3" type="stmt"/>
1737
- <line num="20" count="17" type="stmt"/>
1740
+ <line num="20" count="18" type="stmt"/>
1738
1741
  <line num="21" count="2" type="stmt"/>
1739
1742
  </file>
1740
1743
  <file name="auth.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/auth.ts">
1741
1744
  <metrics statements="16" coveredstatements="16" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
1742
- <line num="2" count="17" type="stmt"/>
1743
- <line num="4" count="17" type="stmt"/>
1744
- <line num="6" count="17" type="stmt"/>
1745
- <line num="9" count="17" type="stmt"/>
1745
+ <line num="2" count="18" type="stmt"/>
1746
+ <line num="4" count="18" type="stmt"/>
1747
+ <line num="6" count="18" type="stmt"/>
1748
+ <line num="9" count="18" type="stmt"/>
1746
1749
  <line num="10" count="1" type="stmt"/>
1747
- <line num="20" count="17" type="stmt"/>
1750
+ <line num="20" count="18" type="stmt"/>
1748
1751
  <line num="21" count="1" type="stmt"/>
1749
- <line num="27" count="17" type="stmt"/>
1752
+ <line num="27" count="18" type="stmt"/>
1750
1753
  <line num="28" count="2" type="stmt"/>
1751
1754
  <line num="29" count="2" type="stmt"/>
1752
1755
  <line num="30" count="2" type="stmt"/>
@@ -1758,20 +1761,20 @@
1758
1761
  </file>
1759
1762
  <file name="base.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/base.ts">
1760
1763
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1761
- <line num="8" count="17" type="stmt"/>
1762
- <line num="13" count="187" type="stmt"/>
1763
- <line num="14" count="187" type="stmt"/>
1764
+ <line num="8" count="18" type="stmt"/>
1765
+ <line num="13" count="270" type="stmt"/>
1766
+ <line num="14" count="270" type="stmt"/>
1764
1767
  </file>
1765
1768
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/configs.ts">
1766
1769
  <metrics statements="17" coveredstatements="17" conditionals="0" coveredconditionals="0" methods="6" coveredmethods="6"/>
1767
- <line num="2" count="17" type="stmt"/>
1768
- <line num="4" count="17" type="stmt"/>
1769
- <line num="6" count="17" type="stmt"/>
1770
- <line num="9" count="17" type="stmt"/>
1770
+ <line num="2" count="18" type="stmt"/>
1771
+ <line num="4" count="18" type="stmt"/>
1772
+ <line num="6" count="18" type="stmt"/>
1773
+ <line num="9" count="18" type="stmt"/>
1771
1774
  <line num="10" count="1" type="stmt"/>
1772
- <line num="17" count="17" type="stmt"/>
1775
+ <line num="17" count="18" type="stmt"/>
1773
1776
  <line num="18" count="19" type="stmt"/>
1774
- <line num="26" count="17" type="stmt"/>
1777
+ <line num="26" count="18" type="stmt"/>
1775
1778
  <line num="27" count="1" type="stmt"/>
1776
1779
  <line num="28" count="1" type="stmt"/>
1777
1780
  <line num="29" count="3" type="stmt"/>
@@ -1779,103 +1782,153 @@
1779
1782
  <line num="32" count="1" type="stmt"/>
1780
1783
  <line num="35" count="1" type="stmt"/>
1781
1784
  <line num="36" count="1" type="stmt"/>
1782
- <line num="42" count="17" type="stmt"/>
1785
+ <line num="42" count="18" type="stmt"/>
1783
1786
  <line num="43" count="2" type="stmt"/>
1784
1787
  </file>
1785
1788
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/email.ts">
1786
1789
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
1787
- <line num="2" count="17" type="stmt"/>
1788
- <line num="4" count="17" type="stmt"/>
1789
- <line num="6" count="17" type="stmt"/>
1790
- <line num="9" count="17" type="stmt"/>
1790
+ <line num="2" count="18" type="stmt"/>
1791
+ <line num="4" count="18" type="stmt"/>
1792
+ <line num="6" count="18" type="stmt"/>
1793
+ <line num="9" count="18" type="stmt"/>
1791
1794
  <line num="10" count="1" type="stmt"/>
1792
1795
  </file>
1793
1796
  <file name="environment.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/environment.ts">
1794
1797
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
1795
- <line num="2" count="17" type="stmt"/>
1796
- <line num="4" count="17" type="stmt"/>
1797
- <line num="6" count="17" type="stmt"/>
1798
- <line num="9" count="17" type="stmt"/>
1798
+ <line num="2" count="18" type="stmt"/>
1799
+ <line num="4" count="18" type="stmt"/>
1800
+ <line num="6" count="18" type="stmt"/>
1801
+ <line num="9" count="18" type="stmt"/>
1799
1802
  <line num="10" count="1" type="stmt"/>
1800
1803
  </file>
1804
+ <file name="groups.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/groups.ts">
1805
+ <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1806
+ <line num="3" count="18" type="stmt"/>
1807
+ <line num="5" count="18" type="stmt"/>
1808
+ <line num="7" count="18" type="stmt"/>
1809
+ <line num="10" count="18" type="stmt"/>
1810
+ <line num="11" count="4" type="stmt"/>
1811
+ <line num="19" count="18" type="stmt"/>
1812
+ <line num="20" count="1" type="stmt"/>
1813
+ </file>
1801
1814
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/index.ts">
1802
- <metrics statements="23" coveredstatements="23" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1803
- <line num="2" count="17" type="stmt"/>
1804
- <line num="3" count="17" type="stmt"/>
1805
- <line num="4" count="17" type="stmt"/>
1806
- <line num="5" count="17" type="stmt"/>
1807
- <line num="6" count="17" type="stmt"/>
1808
- <line num="7" count="17" type="stmt"/>
1809
- <line num="8" count="17" type="stmt"/>
1810
- <line num="9" count="17" type="stmt"/>
1811
- <line num="10" count="17" type="stmt"/>
1812
- <line num="11" count="17" type="stmt"/>
1813
- <line num="12" count="17" type="stmt"/>
1814
- <line num="14" count="17" type="stmt"/>
1815
- <line num="28" count="17" type="stmt"/>
1816
- <line num="29" count="17" type="stmt"/>
1817
- <line num="30" count="17" type="stmt"/>
1818
- <line num="31" count="17" type="stmt"/>
1819
- <line num="32" count="17" type="stmt"/>
1820
- <line num="33" count="17" type="stmt"/>
1821
- <line num="34" count="17" type="stmt"/>
1822
- <line num="35" count="17" type="stmt"/>
1823
- <line num="36" count="17" type="stmt"/>
1824
- <line num="37" count="17" type="stmt"/>
1825
- <line num="38" count="17" type="stmt"/>
1815
+ <metrics statements="31" coveredstatements="31" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1816
+ <line num="2" count="18" type="stmt"/>
1817
+ <line num="3" count="18" type="stmt"/>
1818
+ <line num="4" count="18" type="stmt"/>
1819
+ <line num="5" count="18" type="stmt"/>
1820
+ <line num="6" count="18" type="stmt"/>
1821
+ <line num="7" count="18" type="stmt"/>
1822
+ <line num="8" count="18" type="stmt"/>
1823
+ <line num="9" count="18" type="stmt"/>
1824
+ <line num="10" count="18" type="stmt"/>
1825
+ <line num="11" count="18" type="stmt"/>
1826
+ <line num="12" count="18" type="stmt"/>
1827
+ <line num="13" count="18" type="stmt"/>
1828
+ <line num="14" count="18" type="stmt"/>
1829
+ <line num="15" count="18" type="stmt"/>
1830
+ <line num="16" count="18" type="stmt"/>
1831
+ <line num="17" count="18" type="stmt"/>
1832
+ <line num="35" count="18" type="stmt"/>
1833
+ <line num="36" count="18" type="stmt"/>
1834
+ <line num="37" count="18" type="stmt"/>
1835
+ <line num="38" count="18" type="stmt"/>
1836
+ <line num="39" count="18" type="stmt"/>
1837
+ <line num="40" count="18" type="stmt"/>
1838
+ <line num="41" count="18" type="stmt"/>
1839
+ <line num="42" count="18" type="stmt"/>
1840
+ <line num="43" count="18" type="stmt"/>
1841
+ <line num="44" count="18" type="stmt"/>
1842
+ <line num="45" count="18" type="stmt"/>
1843
+ <line num="46" count="18" type="stmt"/>
1844
+ <line num="47" count="18" type="stmt"/>
1845
+ <line num="48" count="18" type="stmt"/>
1846
+ <line num="49" count="18" type="stmt"/>
1847
+ </file>
1848
+ <file name="license.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/license.ts">
1849
+ <metrics statements="5" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="1"/>
1850
+ <line num="2" count="18" type="stmt"/>
1851
+ <line num="4" count="18" type="stmt"/>
1852
+ <line num="6" count="18" type="stmt"/>
1853
+ <line num="9" count="18" type="stmt"/>
1854
+ <line num="10" count="0" type="stmt"/>
1826
1855
  </file>
1827
1856
  <file name="migrations.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/migrations.ts">
1828
1857
  <metrics statements="7" coveredstatements="7" conditionals="24" coveredconditionals="24" methods="3" coveredmethods="3"/>
1829
- <line num="2" count="17" type="stmt"/>
1830
- <line num="4" count="17" type="stmt"/>
1831
- <line num="6" count="17" type="stmt"/>
1832
- <line num="9" count="17" type="stmt"/>
1858
+ <line num="2" count="18" type="stmt"/>
1859
+ <line num="4" count="18" type="stmt"/>
1860
+ <line num="6" count="18" type="stmt"/>
1861
+ <line num="9" count="18" type="stmt"/>
1833
1862
  <line num="10" count="2" type="stmt"/>
1834
- <line num="16" count="17" type="stmt"/>
1863
+ <line num="16" count="18" type="stmt"/>
1835
1864
  <line num="17" count="2" type="stmt"/>
1836
1865
  </file>
1837
1866
  <file name="restore.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/restore.ts">
1838
1867
  <metrics statements="5" coveredstatements="5" conditionals="6" coveredconditionals="6" methods="2" coveredmethods="2"/>
1839
- <line num="2" count="17" type="stmt"/>
1840
- <line num="4" count="17" type="stmt"/>
1841
- <line num="6" count="17" type="stmt"/>
1842
- <line num="9" count="17" type="stmt"/>
1868
+ <line num="2" count="18" type="stmt"/>
1869
+ <line num="4" count="18" type="stmt"/>
1870
+ <line num="6" count="18" type="stmt"/>
1871
+ <line num="9" count="18" type="stmt"/>
1843
1872
  <line num="10" count="2" type="stmt"/>
1844
1873
  </file>
1874
+ <file name="roles.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/roles.ts">
1875
+ <metrics statements="9" coveredstatements="9" conditionals="18" coveredconditionals="12" methods="4" coveredmethods="4"/>
1876
+ <line num="2" count="18" type="stmt"/>
1877
+ <line num="4" count="18" type="stmt"/>
1878
+ <line num="6" count="18" type="stmt"/>
1879
+ <line num="9" count="18" type="stmt"/>
1880
+ <line num="10" count="1" type="stmt"/>
1881
+ <line num="17" count="18" type="stmt"/>
1882
+ <line num="18" count="1" type="stmt"/>
1883
+ <line num="25" count="18" type="stmt"/>
1884
+ <line num="26" count="1" type="stmt"/>
1885
+ </file>
1845
1886
  <file name="self.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/self.ts">
1846
1887
  <metrics statements="7" coveredstatements="7" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
1847
- <line num="3" count="17" type="stmt"/>
1848
- <line num="5" count="17" type="stmt"/>
1849
- <line num="7" count="17" type="stmt"/>
1850
- <line num="10" count="17" type="stmt"/>
1888
+ <line num="3" count="18" type="stmt"/>
1889
+ <line num="5" count="18" type="stmt"/>
1890
+ <line num="7" count="18" type="stmt"/>
1891
+ <line num="10" count="18" type="stmt"/>
1851
1892
  <line num="11" count="2" type="stmt"/>
1852
- <line num="19" count="17" type="stmt"/>
1893
+ <line num="19" count="18" type="stmt"/>
1853
1894
  <line num="20" count="1" type="stmt"/>
1854
1895
  </file>
1855
1896
  <file name="status.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/status.ts">
1856
1897
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="2" coveredmethods="2"/>
1857
- <line num="2" count="17" type="stmt"/>
1858
- <line num="4" count="17" type="stmt"/>
1859
- <line num="6" count="17" type="stmt"/>
1860
- <line num="9" count="17" type="stmt"/>
1898
+ <line num="2" count="18" type="stmt"/>
1899
+ <line num="4" count="18" type="stmt"/>
1900
+ <line num="6" count="18" type="stmt"/>
1901
+ <line num="9" count="18" type="stmt"/>
1861
1902
  <line num="10" count="2" type="stmt"/>
1862
1903
  </file>
1904
+ <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/templates.ts">
1905
+ <metrics statements="9" coveredstatements="9" conditionals="36" coveredconditionals="24" methods="4" coveredmethods="4"/>
1906
+ <line num="2" count="18" type="stmt"/>
1907
+ <line num="4" count="18" type="stmt"/>
1908
+ <line num="6" count="18" type="stmt"/>
1909
+ <line num="9" count="18" type="stmt"/>
1910
+ <line num="10" count="2" type="stmt"/>
1911
+ <line num="16" count="18" type="stmt"/>
1912
+ <line num="17" count="2" type="stmt"/>
1913
+ <line num="23" count="18" type="stmt"/>
1914
+ <line num="24" count="1" type="stmt"/>
1915
+ </file>
1863
1916
  <file name="tenants.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/tenants.ts">
1864
1917
  <metrics statements="5" coveredstatements="5" conditionals="10" coveredconditionals="8" methods="2" coveredmethods="2"/>
1865
- <line num="2" count="17" type="stmt"/>
1866
- <line num="4" count="17" type="stmt"/>
1867
- <line num="6" count="17" type="stmt"/>
1868
- <line num="9" count="17" type="stmt"/>
1918
+ <line num="2" count="18" type="stmt"/>
1919
+ <line num="4" count="18" type="stmt"/>
1920
+ <line num="6" count="18" type="stmt"/>
1921
+ <line num="9" count="18" type="stmt"/>
1869
1922
  <line num="10" count="3" type="stmt"/>
1870
1923
  </file>
1871
1924
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/api/users.ts">
1872
1925
  <metrics statements="41" coveredstatements="41" conditionals="33" coveredconditionals="30" methods="15" coveredmethods="15"/>
1873
- <line num="8" count="17" type="stmt"/>
1874
- <line num="9" count="17" type="stmt"/>
1875
- <line num="11" count="17" type="stmt"/>
1876
- <line num="13" count="17" type="stmt"/>
1877
- <line num="15" count="17" type="stmt"/>
1878
- <line num="20" count="17" type="cond" truecount="1" falsecount="0"/>
1926
+ <line num="8" count="18" type="stmt"/>
1927
+ <line num="9" count="18" type="stmt"/>
1928
+ <line num="11" count="18" type="stmt"/>
1929
+ <line num="13" count="18" type="stmt"/>
1930
+ <line num="15" count="18" type="stmt"/>
1931
+ <line num="20" count="18" type="cond" truecount="1" falsecount="0"/>
1879
1932
  <line num="21" count="3" type="stmt"/>
1880
1933
  <line num="22" count="3" type="stmt"/>
1881
1934
  <line num="23" count="3" type="stmt"/>
@@ -1885,39 +1938,39 @@
1885
1938
  <line num="38" count="2" type="stmt"/>
1886
1939
  <line num="41" count="2" type="stmt"/>
1887
1940
  <line num="42" count="2" type="stmt"/>
1888
- <line num="45" count="17" type="stmt"/>
1941
+ <line num="45" count="18" type="stmt"/>
1889
1942
  <line num="46" count="1" type="stmt"/>
1890
- <line num="56" count="17" type="cond" truecount="1" falsecount="0"/>
1943
+ <line num="56" count="18" type="cond" truecount="1" falsecount="0"/>
1891
1944
  <line num="57" count="2" type="stmt"/>
1892
1945
  <line num="58" count="2" type="stmt"/>
1893
1946
  <line num="59" count="2" type="stmt"/>
1894
- <line num="69" count="17" type="cond" truecount="1" falsecount="0"/>
1947
+ <line num="69" count="18" type="cond" truecount="1" falsecount="0"/>
1895
1948
  <line num="70" count="6" type="stmt"/>
1896
1949
  <line num="71" count="6" type="stmt"/>
1897
1950
  <line num="78" count="6" type="stmt"/>
1898
- <line num="81" count="17" type="stmt"/>
1951
+ <line num="81" count="18" type="stmt"/>
1899
1952
  <line num="82" count="3" type="stmt"/>
1900
1953
  <line num="83" count="3" type="stmt"/>
1901
1954
  <line num="89" count="3" type="stmt"/>
1902
- <line num="94" count="17" type="stmt"/>
1955
+ <line num="94" count="18" type="stmt"/>
1903
1956
  <line num="97" count="6" type="stmt"/>
1904
1957
  <line num="98" count="6" type="cond" truecount="1" falsecount="0"/>
1905
1958
  <line num="99" count="6" type="stmt"/>
1906
1959
  <line num="105" count="6" type="stmt"/>
1907
1960
  <line num="112" count="6" type="stmt"/>
1908
- <line num="118" count="17" type="stmt"/>
1961
+ <line num="118" count="18" type="stmt"/>
1909
1962
  <line num="119" count="23" type="stmt"/>
1910
- <line num="127" count="17" type="stmt"/>
1963
+ <line num="127" count="18" type="stmt"/>
1911
1964
  <line num="128" count="5" type="stmt"/>
1912
- <line num="135" count="17" type="stmt"/>
1913
- <line num="136" count="8" type="stmt"/>
1965
+ <line num="135" count="18" type="stmt"/>
1966
+ <line num="136" count="9" type="stmt"/>
1914
1967
  </file>
1915
1968
  </package>
1916
1969
  <package name="src.tests.mocks">
1917
1970
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1918
- <file name="email.js" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/email.js">
1971
+ <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/email.ts">
1919
1972
  <metrics statements="5" coveredstatements="5" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
1920
- <line num="1" count="17" type="stmt"/>
1973
+ <line num="1" count="18" type="stmt"/>
1921
1974
  <line num="3" count="4" type="stmt"/>
1922
1975
  <line num="4" count="4" type="stmt"/>
1923
1976
  <line num="5" count="4" type="stmt"/>
@@ -1925,58 +1978,58 @@
1925
1978
  </file>
1926
1979
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/mocks/index.ts">
1927
1980
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1928
- <line num="1" count="17" type="stmt"/>
1929
- <line num="2" count="17" type="stmt"/>
1930
- <line num="4" count="17" type="stmt"/>
1981
+ <line num="1" count="18" type="stmt"/>
1982
+ <line num="2" count="18" type="stmt"/>
1983
+ <line num="4" count="18" type="stmt"/>
1931
1984
  </file>
1932
1985
  </package>
1933
1986
  <package name="src.tests.structures">
1934
- <metrics statements="35" coveredstatements="33" conditionals="0" coveredconditionals="0" methods="10" coveredmethods="9"/>
1987
+ <metrics statements="35" coveredstatements="35" conditionals="0" coveredconditionals="0" methods="10" coveredmethods="10"/>
1935
1988
  <file name="configs.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/configs.ts">
1936
1989
  <metrics statements="12" coveredstatements="12" conditionals="0" coveredconditionals="0" methods="5" coveredmethods="5"/>
1937
- <line num="1" count="17" type="stmt"/>
1938
- <line num="2" count="17" type="stmt"/>
1939
- <line num="4" count="17" type="stmt"/>
1990
+ <line num="1" count="18" type="stmt"/>
1991
+ <line num="2" count="18" type="stmt"/>
1992
+ <line num="4" count="18" type="stmt"/>
1940
1993
  <line num="5" count="8" type="stmt"/>
1941
- <line num="24" count="17" type="stmt"/>
1994
+ <line num="24" count="18" type="stmt"/>
1942
1995
  <line num="25" count="6" type="stmt"/>
1943
- <line num="36" count="17" type="stmt"/>
1996
+ <line num="36" count="18" type="stmt"/>
1944
1997
  <line num="37" count="12" type="stmt"/>
1945
- <line num="50" count="17" type="stmt"/>
1998
+ <line num="50" count="18" type="stmt"/>
1946
1999
  <line num="51" count="3" type="stmt"/>
1947
- <line num="66" count="17" type="stmt"/>
2000
+ <line num="66" count="18" type="stmt"/>
1948
2001
  <line num="67" count="12" type="stmt"/>
1949
2002
  </file>
1950
2003
  <file name="groups.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/groups.ts">
1951
- <metrics statements="3" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
1952
- <line num="1" count="17" type="stmt"/>
1953
- <line num="2" count="0" type="stmt"/>
1954
- <line num="10" count="0" type="stmt"/>
2004
+ <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
2005
+ <line num="1" count="18" type="stmt"/>
2006
+ <line num="2" count="3" type="stmt"/>
2007
+ <line num="10" count="3" type="stmt"/>
1955
2008
  </file>
1956
2009
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/index.ts">
1957
2010
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
1958
- <line num="1" count="17" type="stmt"/>
1959
- <line num="2" count="17" type="stmt"/>
1960
- <line num="3" count="17" type="stmt"/>
1961
- <line num="4" count="17" type="stmt"/>
1962
- <line num="5" count="17" type="stmt"/>
1963
- <line num="7" count="17" type="stmt"/>
1964
- <line num="8" count="17" type="stmt"/>
1965
- <line num="9" count="17" type="stmt"/>
1966
- <line num="11" count="17" type="stmt"/>
1967
- <line num="22" count="17" type="stmt"/>
2011
+ <line num="1" count="18" type="stmt"/>
2012
+ <line num="2" count="18" type="stmt"/>
2013
+ <line num="3" count="18" type="stmt"/>
2014
+ <line num="4" count="18" type="stmt"/>
2015
+ <line num="5" count="18" type="stmt"/>
2016
+ <line num="7" count="18" type="stmt"/>
2017
+ <line num="8" count="18" type="stmt"/>
2018
+ <line num="9" count="18" type="stmt"/>
2019
+ <line num="11" count="18" type="stmt"/>
2020
+ <line num="22" count="18" type="stmt"/>
1968
2021
  </file>
1969
2022
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/tests/structures/users.ts">
1970
2023
  <metrics statements="10" coveredstatements="10" conditionals="0" coveredconditionals="0" methods="4" coveredmethods="4"/>
1971
- <line num="1" count="17" type="stmt"/>
1972
- <line num="3" count="17" type="stmt"/>
1973
- <line num="5" count="17" type="stmt"/>
1974
- <line num="6" count="82" type="stmt"/>
1975
- <line num="9" count="17" type="stmt"/>
1976
- <line num="10" count="78" type="stmt"/>
1977
- <line num="18" count="17" type="stmt"/>
1978
- <line num="19" count="40" type="stmt"/>
1979
- <line num="30" count="17" type="stmt"/>
2024
+ <line num="1" count="18" type="stmt"/>
2025
+ <line num="3" count="18" type="stmt"/>
2026
+ <line num="5" count="18" type="stmt"/>
2027
+ <line num="6" count="85" type="stmt"/>
2028
+ <line num="9" count="18" type="stmt"/>
2029
+ <line num="10" count="81" type="stmt"/>
2030
+ <line num="18" count="18" type="stmt"/>
2031
+ <line num="19" count="42" type="stmt"/>
2032
+ <line num="30" count="18" type="stmt"/>
1980
2033
  <line num="31" count="8" type="stmt"/>
1981
2034
  </file>
1982
2035
  </package>
@@ -1984,12 +2037,12 @@
1984
2037
  <metrics statements="159" coveredstatements="130" conditionals="114" coveredconditionals="75" methods="23" coveredmethods="22"/>
1985
2038
  <file name="appService.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/appService.ts">
1986
2039
  <metrics statements="19" coveredstatements="9" conditionals="6" coveredconditionals="2" methods="2" coveredmethods="2"/>
1987
- <line num="1" count="17" type="stmt"/>
1988
- <line num="2" count="17" type="stmt"/>
1989
- <line num="3" count="17" type="stmt"/>
1990
- <line num="4" count="17" type="stmt"/>
1991
- <line num="7" count="98" type="cond" truecount="1" falsecount="0"/>
1992
- <line num="8" count="98" type="stmt"/>
2040
+ <line num="1" count="18" type="stmt"/>
2041
+ <line num="2" count="18" type="stmt"/>
2042
+ <line num="3" count="18" type="stmt"/>
2043
+ <line num="4" count="18" type="stmt"/>
2044
+ <line num="7" count="101" type="cond" truecount="1" falsecount="0"/>
2045
+ <line num="8" count="101" type="stmt"/>
1993
2046
  <line num="10" count="0" type="stmt"/>
1994
2047
  <line num="11" count="0" type="stmt"/>
1995
2048
  <line num="12" count="0" type="cond" truecount="0" falsecount="1"/>
@@ -1999,24 +2052,24 @@
1999
2052
  <line num="17" count="0" type="stmt"/>
2000
2053
  <line num="19" count="0" type="stmt"/>
2001
2054
  <line num="20" count="0" type="stmt"/>
2002
- <line num="23" count="17" type="stmt"/>
2003
- <line num="24" count="98" type="stmt"/>
2004
- <line num="29" count="98" type="cond" truecount="1" falsecount="2"/>
2055
+ <line num="23" count="18" type="stmt"/>
2056
+ <line num="24" count="101" type="stmt"/>
2057
+ <line num="29" count="101" type="cond" truecount="1" falsecount="2"/>
2005
2058
  <line num="30" count="0" type="stmt"/>
2006
2059
  </file>
2007
2060
  <file name="email.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/email.ts">
2008
2061
  <metrics statements="72" coveredstatements="60" conditionals="85" coveredconditionals="57" methods="7" coveredmethods="7"/>
2009
- <line num="1" count="17" type="stmt"/>
2010
- <line num="2" count="17" type="stmt"/>
2011
- <line num="3" count="17" type="stmt"/>
2012
- <line num="4" count="17" type="stmt"/>
2013
- <line num="5" count="17" type="stmt"/>
2014
- <line num="6" count="17" type="stmt"/>
2015
- <line num="8" count="17" type="stmt"/>
2016
- <line num="9" count="17" type="stmt"/>
2017
- <line num="29" count="17" type="stmt"/>
2018
- <line num="30" count="17" type="stmt"/>
2019
- <line num="32" count="17" type="stmt"/>
2062
+ <line num="1" count="18" type="stmt"/>
2063
+ <line num="2" count="18" type="stmt"/>
2064
+ <line num="3" count="18" type="stmt"/>
2065
+ <line num="4" count="18" type="stmt"/>
2066
+ <line num="5" count="18" type="stmt"/>
2067
+ <line num="6" count="18" type="stmt"/>
2068
+ <line num="8" count="18" type="stmt"/>
2069
+ <line num="9" count="18" type="stmt"/>
2070
+ <line num="29" count="18" type="stmt"/>
2071
+ <line num="30" count="18" type="stmt"/>
2072
+ <line num="32" count="18" type="stmt"/>
2020
2073
  <line num="41" count="22" type="stmt"/>
2021
2074
  <line num="43" count="22" type="cond" truecount="0" falsecount="1"/>
2022
2075
  <line num="44" count="0" type="stmt"/>
@@ -2052,13 +2105,13 @@
2052
2105
  <line num="159" count="9" type="stmt"/>
2053
2106
  <line num="163" count="0" type="cond" truecount="0" falsecount="3"/>
2054
2107
  <line num="164" count="0" type="stmt"/>
2055
- <line num="181" count="17" type="stmt"/>
2108
+ <line num="181" count="18" type="stmt"/>
2056
2109
  <line num="183" count="2" type="cond" truecount="2" falsecount="1"/>
2057
2110
  <line num="184" count="0" type="stmt"/>
2058
2111
  <line num="186" count="2" type="stmt"/>
2059
2112
  <line num="187" count="2" type="stmt"/>
2060
2113
  <line num="188" count="2" type="stmt"/>
2061
- <line num="200" count="17" type="stmt"/>
2114
+ <line num="200" count="18" type="stmt"/>
2062
2115
  <line num="205" count="7" type="stmt"/>
2063
2116
  <line num="207" count="7" type="cond" truecount="7" falsecount="3"/>
2064
2117
  <line num="208" count="7" type="cond" truecount="1" falsecount="2"/>
@@ -2075,24 +2128,24 @@
2075
2128
  <line num="241" count="7" type="cond" truecount="0" falsecount="1"/>
2076
2129
  <line num="242" count="0" type="stmt"/>
2077
2130
  <line num="244" count="7" type="stmt"/>
2078
- <line num="252" count="17" type="stmt"/>
2131
+ <line num="252" count="18" type="stmt"/>
2079
2132
  <line num="253" count="15" type="stmt"/>
2080
2133
  <line num="254" count="15" type="stmt"/>
2081
2134
  </file>
2082
2135
  <file name="fileSystem.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/fileSystem.ts">
2083
2136
  <metrics statements="3" coveredstatements="3" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
2084
- <line num="1" count="17" type="stmt"/>
2085
- <line num="3" count="17" type="stmt"/>
2086
- <line num="4" count="85" type="stmt"/>
2137
+ <line num="1" count="18" type="stmt"/>
2138
+ <line num="3" count="18" type="stmt"/>
2139
+ <line num="4" count="90" type="stmt"/>
2087
2140
  </file>
2088
2141
  <file name="index.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/index.ts">
2089
2142
  <metrics statements="2" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
2090
- <line num="7" count="17" type="stmt"/>
2143
+ <line num="7" count="18" type="stmt"/>
2091
2144
  <line num="8" count="21" type="stmt"/>
2092
2145
  </file>
2093
2146
  <file name="redis.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/redis.ts">
2094
2147
  <metrics statements="39" coveredstatements="33" conditionals="11" coveredconditionals="7" methods="10" coveredmethods="9"/>
2095
- <line num="1" count="17" type="stmt"/>
2148
+ <line num="1" count="18" type="stmt"/>
2096
2149
  <line num="4" count="7" type="cond" truecount="2" falsecount="0"/>
2097
2150
  <line num="7" count="2" type="stmt"/>
2098
2151
  <line num="10" count="5" type="stmt"/>
@@ -2110,35 +2163,35 @@
2110
2163
  <line num="38" count="2" type="cond" truecount="1" falsecount="0"/>
2111
2164
  <line num="39" count="2" type="stmt"/>
2112
2165
  <line num="41" count="2" type="stmt"/>
2113
- <line num="44" count="17" type="stmt"/>
2114
- <line num="45" count="17" type="stmt"/>
2115
- <line num="46" count="17" type="stmt"/>
2116
- <line num="47" count="17" type="stmt"/>
2117
- <line num="48" count="17" type="stmt"/>
2118
- <line num="54" count="17" type="stmt"/>
2166
+ <line num="44" count="18" type="stmt"/>
2167
+ <line num="45" count="18" type="stmt"/>
2168
+ <line num="46" count="18" type="stmt"/>
2169
+ <line num="47" count="18" type="stmt"/>
2170
+ <line num="48" count="18" type="stmt"/>
2171
+ <line num="54" count="18" type="stmt"/>
2119
2172
  <line num="55" count="0" type="cond" truecount="0" falsecount="1"/>
2120
2173
  <line num="56" count="0" type="cond" truecount="0" falsecount="1"/>
2121
2174
  <line num="57" count="0" type="stmt"/>
2122
- <line num="67" count="17" type="stmt"/>
2175
+ <line num="67" count="18" type="stmt"/>
2123
2176
  <line num="68" count="2" type="stmt"/>
2124
- <line num="77" count="17" type="stmt"/>
2177
+ <line num="77" count="18" type="stmt"/>
2125
2178
  <line num="81" count="1" type="stmt"/>
2126
2179
  <line num="82" count="1" type="stmt"/>
2127
2180
  <line num="84" count="0" type="stmt"/>
2128
- <line num="94" count="17" type="stmt"/>
2181
+ <line num="94" count="18" type="stmt"/>
2129
2182
  <line num="95" count="5" type="stmt"/>
2130
- <line num="104" count="17" type="stmt"/>
2183
+ <line num="104" count="18" type="stmt"/>
2131
2184
  <line num="108" count="1" type="stmt"/>
2132
2185
  <line num="109" count="1" type="stmt"/>
2133
2186
  <line num="111" count="0" type="stmt"/>
2134
2187
  </file>
2135
2188
  <file name="templates.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/templates.ts">
2136
2189
  <metrics statements="17" coveredstatements="17" conditionals="10" coveredconditionals="7" methods="1" coveredmethods="1"/>
2137
- <line num="1" count="17" type="stmt"/>
2138
- <line num="2" count="17" type="stmt"/>
2139
- <line num="8" count="17" type="stmt"/>
2140
- <line num="9" count="17" type="stmt"/>
2141
- <line num="11" count="17" type="stmt"/>
2190
+ <line num="1" count="18" type="stmt"/>
2191
+ <line num="2" count="18" type="stmt"/>
2192
+ <line num="8" count="18" type="stmt"/>
2193
+ <line num="9" count="18" type="stmt"/>
2194
+ <line num="11" count="18" type="stmt"/>
2142
2195
  <line num="15" count="7" type="stmt"/>
2143
2196
  <line num="18" count="7" type="cond" truecount="1" falsecount="1"/>
2144
2197
  <line num="19" count="7" type="stmt"/>
@@ -2154,8 +2207,8 @@
2154
2207
  </file>
2155
2208
  <file name="users.ts" path="/home/runner/work/budibase/budibase/packages/worker/src/utilities/users.ts">
2156
2209
  <metrics statements="7" coveredstatements="6" conditionals="2" coveredconditionals="2" methods="1" coveredmethods="1"/>
2157
- <line num="1" count="17" type="stmt"/>
2158
- <line num="3" count="17" type="stmt"/>
2210
+ <line num="1" count="18" type="stmt"/>
2211
+ <line num="3" count="18" type="stmt"/>
2159
2212
  <line num="4" count="10" type="stmt"/>
2160
2213
  <line num="5" count="10" type="stmt"/>
2161
2214
  <line num="6" count="10" type="stmt"/>