@budibase/server 1.0.46-alpha.5 → 1.0.46-alpha.6

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 (195) hide show
  1. package/builder/assets/{index.298ba3d3.js → index.00221ff2.js} +234 -234
  2. package/builder/assets/{index.243ca52c.css → index.dd9e386f.css} +1 -1
  3. package/builder/index.html +2 -2
  4. package/coverage/clover.xml +157 -145
  5. package/coverage/coverage-final.json +4 -4
  6. package/coverage/lcov-report/api/controllers/analytics.js.html +1 -1
  7. package/coverage/lcov-report/api/controllers/apikeys.js.html +1 -1
  8. package/coverage/lcov-report/api/controllers/application.js.html +1 -1
  9. package/coverage/lcov-report/api/controllers/auth.js.html +1 -1
  10. package/coverage/lcov-report/api/controllers/automation.js.html +1 -1
  11. package/coverage/lcov-report/api/controllers/backup.js.html +1 -1
  12. package/coverage/lcov-report/api/controllers/cloud.js.html +1 -1
  13. package/coverage/lcov-report/api/controllers/component.js.html +1 -1
  14. package/coverage/lcov-report/api/controllers/datasource.js.html +44 -8
  15. package/coverage/lcov-report/api/controllers/dev.js.html +1 -1
  16. package/coverage/lcov-report/api/controllers/index.html +15 -15
  17. package/coverage/lcov-report/api/controllers/integration.js.html +1 -1
  18. package/coverage/lcov-report/api/controllers/layout.js.html +1 -1
  19. package/coverage/lcov-report/api/controllers/metadata.js.html +1 -1
  20. package/coverage/lcov-report/api/controllers/permission.js.html +1 -1
  21. package/coverage/lcov-report/api/controllers/query/index.html +15 -15
  22. package/coverage/lcov-report/api/controllers/query/index.js.html +44 -11
  23. package/coverage/lcov-report/api/controllers/query/validation.js.html +1 -1
  24. package/coverage/lcov-report/api/controllers/role.js.html +1 -1
  25. package/coverage/lcov-report/api/controllers/routing.js.html +1 -1
  26. package/coverage/lcov-report/api/controllers/row/external.js.html +1 -1
  27. package/coverage/lcov-report/api/controllers/row/index.html +5 -5
  28. package/coverage/lcov-report/api/controllers/row/index.js.html +1 -1
  29. package/coverage/lcov-report/api/controllers/row/internal.js.html +1 -1
  30. package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +1 -1
  31. package/coverage/lcov-report/api/controllers/row/utils.js.html +5 -14
  32. package/coverage/lcov-report/api/controllers/screen.js.html +1 -1
  33. package/coverage/lcov-report/api/controllers/script.js.html +1 -1
  34. package/coverage/lcov-report/api/controllers/table/external.js.html +1 -1
  35. package/coverage/lcov-report/api/controllers/table/index.html +1 -1
  36. package/coverage/lcov-report/api/controllers/table/index.js.html +1 -1
  37. package/coverage/lcov-report/api/controllers/table/internal.js.html +1 -1
  38. package/coverage/lcov-report/api/controllers/table/utils.js.html +1 -1
  39. package/coverage/lcov-report/api/controllers/templates.js.html +1 -1
  40. package/coverage/lcov-report/api/controllers/user.js.html +1 -1
  41. package/coverage/lcov-report/api/controllers/view/exporters.js.html +1 -1
  42. package/coverage/lcov-report/api/controllers/view/index.html +1 -1
  43. package/coverage/lcov-report/api/controllers/view/index.js.html +1 -1
  44. package/coverage/lcov-report/api/controllers/view/utils.js.html +1 -1
  45. package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +1 -1
  46. package/coverage/lcov-report/api/controllers/webhook.js.html +1 -1
  47. package/coverage/lcov-report/api/index.html +1 -1
  48. package/coverage/lcov-report/api/index.js.html +1 -1
  49. package/coverage/lcov-report/api/routes/analytics.js.html +1 -1
  50. package/coverage/lcov-report/api/routes/apikeys.js.html +1 -1
  51. package/coverage/lcov-report/api/routes/application.js.html +1 -1
  52. package/coverage/lcov-report/api/routes/auth.js.html +1 -1
  53. package/coverage/lcov-report/api/routes/automation.js.html +1 -1
  54. package/coverage/lcov-report/api/routes/backup.js.html +1 -1
  55. package/coverage/lcov-report/api/routes/cloud.js.html +1 -1
  56. package/coverage/lcov-report/api/routes/component.js.html +1 -1
  57. package/coverage/lcov-report/api/routes/datasource.js.html +1 -1
  58. package/coverage/lcov-report/api/routes/deploy.js.html +1 -1
  59. package/coverage/lcov-report/api/routes/dev.js.html +1 -1
  60. package/coverage/lcov-report/api/routes/index.html +1 -1
  61. package/coverage/lcov-report/api/routes/index.js.html +1 -1
  62. package/coverage/lcov-report/api/routes/integration.js.html +1 -1
  63. package/coverage/lcov-report/api/routes/layout.js.html +1 -1
  64. package/coverage/lcov-report/api/routes/metadata.js.html +1 -1
  65. package/coverage/lcov-report/api/routes/permission.js.html +1 -1
  66. package/coverage/lcov-report/api/routes/query.js.html +1 -1
  67. package/coverage/lcov-report/api/routes/role.js.html +1 -1
  68. package/coverage/lcov-report/api/routes/routing.js.html +1 -1
  69. package/coverage/lcov-report/api/routes/row.js.html +1 -1
  70. package/coverage/lcov-report/api/routes/screen.js.html +1 -1
  71. package/coverage/lcov-report/api/routes/script.js.html +1 -1
  72. package/coverage/lcov-report/api/routes/static.js.html +1 -1
  73. package/coverage/lcov-report/api/routes/table.js.html +1 -1
  74. package/coverage/lcov-report/api/routes/templates.js.html +1 -1
  75. package/coverage/lcov-report/api/routes/user.js.html +1 -1
  76. package/coverage/lcov-report/api/routes/view.js.html +1 -1
  77. package/coverage/lcov-report/api/routes/webhook.js.html +1 -1
  78. package/coverage/lcov-report/automations/actions.js.html +1 -1
  79. package/coverage/lcov-report/automations/automationUtils.js.html +1 -1
  80. package/coverage/lcov-report/automations/bullboard.js.html +1 -1
  81. package/coverage/lcov-report/automations/index.html +1 -1
  82. package/coverage/lcov-report/automations/index.js.html +1 -1
  83. package/coverage/lcov-report/automations/steps/bash.js.html +1 -1
  84. package/coverage/lcov-report/automations/steps/createRow.js.html +1 -1
  85. package/coverage/lcov-report/automations/steps/delay.js.html +1 -1
  86. package/coverage/lcov-report/automations/steps/deleteRow.js.html +1 -1
  87. package/coverage/lcov-report/automations/steps/discord.js.html +1 -1
  88. package/coverage/lcov-report/automations/steps/executeQuery.js.html +1 -1
  89. package/coverage/lcov-report/automations/steps/executeScript.js.html +1 -1
  90. package/coverage/lcov-report/automations/steps/filter.js.html +1 -1
  91. package/coverage/lcov-report/automations/steps/index.html +1 -1
  92. package/coverage/lcov-report/automations/steps/integromat.js.html +1 -1
  93. package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +1 -1
  94. package/coverage/lcov-report/automations/steps/queryRows.js.html +1 -1
  95. package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +1 -1
  96. package/coverage/lcov-report/automations/steps/serverLog.js.html +1 -1
  97. package/coverage/lcov-report/automations/steps/slack.js.html +1 -1
  98. package/coverage/lcov-report/automations/steps/updateRow.js.html +1 -1
  99. package/coverage/lcov-report/automations/steps/utils.js.html +1 -1
  100. package/coverage/lcov-report/automations/steps/zapier.js.html +1 -1
  101. package/coverage/lcov-report/automations/triggerInfo/app.js.html +1 -1
  102. package/coverage/lcov-report/automations/triggerInfo/cron.js.html +1 -1
  103. package/coverage/lcov-report/automations/triggerInfo/index.html +1 -1
  104. package/coverage/lcov-report/automations/triggerInfo/index.js.html +1 -1
  105. package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +1 -1
  106. package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +1 -1
  107. package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +1 -1
  108. package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +1 -1
  109. package/coverage/lcov-report/automations/triggers.js.html +1 -1
  110. package/coverage/lcov-report/automations/utils.js.html +1 -1
  111. package/coverage/lcov-report/constants/index.html +5 -5
  112. package/coverage/lcov-report/constants/index.js.html +16 -4
  113. package/coverage/lcov-report/constants/layouts.js.html +1 -1
  114. package/coverage/lcov-report/constants/screens.js.html +1 -1
  115. package/coverage/lcov-report/db/client.js.html +1 -1
  116. package/coverage/lcov-report/db/inMemoryView.js.html +1 -1
  117. package/coverage/lcov-report/db/index.html +1 -1
  118. package/coverage/lcov-report/db/index.js.html +1 -1
  119. package/coverage/lcov-report/db/linkedRows/LinkController.js.html +1 -1
  120. package/coverage/lcov-report/db/linkedRows/index.html +1 -1
  121. package/coverage/lcov-report/db/linkedRows/index.js.html +1 -1
  122. package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +1 -1
  123. package/coverage/lcov-report/db/newid.js.html +1 -1
  124. package/coverage/lcov-report/db/utils.js.html +1 -1
  125. package/coverage/lcov-report/events/AutomationEmitter.js.html +1 -1
  126. package/coverage/lcov-report/events/index.html +1 -1
  127. package/coverage/lcov-report/events/index.js.html +1 -1
  128. package/coverage/lcov-report/events/utils.js.html +1 -1
  129. package/coverage/lcov-report/index.html +26 -26
  130. package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +1 -1
  131. package/coverage/lcov-report/integrations/tests/index.html +1 -1
  132. package/coverage/lcov-report/middleware/appInfo.js.html +1 -1
  133. package/coverage/lcov-report/middleware/authorized.js.html +1 -1
  134. package/coverage/lcov-report/middleware/builder.js.html +1 -1
  135. package/coverage/lcov-report/middleware/currentapp.js.html +1 -1
  136. package/coverage/lcov-report/middleware/index.html +1 -1
  137. package/coverage/lcov-report/middleware/joi-validator.js.html +1 -1
  138. package/coverage/lcov-report/middleware/resourceId.js.html +1 -1
  139. package/coverage/lcov-report/middleware/selfhost.js.html +1 -1
  140. package/coverage/lcov-report/middleware/usageQuota.js.html +1 -1
  141. package/coverage/lcov-report/middleware/utils.js.html +1 -1
  142. package/coverage/lcov-report/migrations/usageQuotas/index.html +1 -1
  143. package/coverage/lcov-report/migrations/usageQuotas/index.js.html +1 -1
  144. package/coverage/lcov-report/migrations/usageQuotas/syncApps.js.html +1 -1
  145. package/coverage/lcov-report/migrations/usageQuotas/syncRows.js.html +1 -1
  146. package/coverage/lcov-report/threads/automation.js.html +1 -1
  147. package/coverage/lcov-report/threads/index.html +1 -1
  148. package/coverage/lcov-report/threads/index.js.html +1 -1
  149. package/coverage/lcov-report/threads/query.js.html +1 -1
  150. package/coverage/lcov-report/threads/utils.js.html +1 -1
  151. package/coverage/lcov-report/utilities/bcrypt.js.html +1 -1
  152. package/coverage/lcov-report/utilities/budibaseDir.js.html +1 -1
  153. package/coverage/lcov-report/utilities/centralPath.js.html +1 -1
  154. package/coverage/lcov-report/utilities/csvParser.js.html +1 -1
  155. package/coverage/lcov-report/utilities/global.js.html +1 -1
  156. package/coverage/lcov-report/utilities/index.html +1 -1
  157. package/coverage/lcov-report/utilities/index.js.html +1 -1
  158. package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +1 -1
  159. package/coverage/lcov-report/utilities/queue/index.html +1 -1
  160. package/coverage/lcov-report/utilities/routing/index.html +1 -1
  161. package/coverage/lcov-report/utilities/routing/index.js.html +1 -1
  162. package/coverage/lcov-report/utilities/rowProcessor/index.html +1 -1
  163. package/coverage/lcov-report/utilities/rowProcessor/index.js.html +1 -1
  164. package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +1 -1
  165. package/coverage/lcov-report/utilities/scriptRunner.js.html +1 -1
  166. package/coverage/lcov-report/utilities/security.js.html +1 -1
  167. package/coverage/lcov-report/utilities/statusCodes.js.html +1 -1
  168. package/coverage/lcov-report/utilities/usageQuota/index.html +1 -1
  169. package/coverage/lcov-report/utilities/usageQuota/index.js.html +1 -1
  170. package/coverage/lcov-report/utilities/usageQuota/rows.js.html +1 -1
  171. package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +1 -1
  172. package/coverage/lcov-report/utilities/users.js.html +1 -1
  173. package/coverage/lcov-report/utilities/workerRequests.js.html +1 -1
  174. package/coverage/lcov.info +253 -226
  175. package/dist/api/controllers/datasource.js +11 -0
  176. package/dist/api/controllers/query/index.js +11 -3
  177. package/dist/api/controllers/row/utils.js +1 -2
  178. package/dist/constants/index.js +3 -0
  179. package/dist/definitions/datasource.js +1 -0
  180. package/dist/integrations/googlesheets.js +340 -0
  181. package/dist/integrations/index.js +3 -0
  182. package/dist/integrations/rest.js +5 -5
  183. package/dist/integrations/s3.js +1 -1
  184. package/dist/package.json +7 -4
  185. package/dist/tsconfig.tsbuildinfo +1 -1
  186. package/package.json +8 -5
  187. package/src/api/controllers/datasource.js +12 -0
  188. package/src/api/controllers/query/index.js +14 -3
  189. package/src/api/controllers/row/utils.js +1 -4
  190. package/src/constants/index.js +4 -0
  191. package/src/definitions/datasource.ts +3 -0
  192. package/src/integrations/googlesheets.ts +353 -0
  193. package/src/integrations/index.ts +3 -0
  194. package/src/integrations/rest.ts +28 -9
  195. package/src/integrations/s3.ts +1 -1
@@ -10,10 +10,10 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro:wght@400;600;700&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/builder/assets/index.298ba3d3.js"></script>
13
+ <script type="module" crossorigin src="/builder/assets/index.00221ff2.js"></script>
14
14
  <link rel="modulepreload" href="/builder/assets/vendor.3bd2f661.js">
15
15
  <link rel="stylesheet" href="/builder/assets/vendor.5e1fe644.css">
16
- <link rel="stylesheet" href="/builder/assets/index.243ca52c.css">
16
+ <link rel="stylesheet" href="/builder/assets/index.dd9e386f.css">
17
17
  </head>
18
18
  <body id="app">
19
19
 
@@ -1,7 +1,7 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
- <coverage generated="1643209383132" clover="3.2.0">
3
- <project timestamp="1643209383132" name="All files">
4
- <metrics statements="4776" coveredstatements="3528" conditionals="1911" coveredconditionals="1031" methods="683" coveredmethods="482" elements="7370" coveredelements="5041" complexity="0" loc="4776" ncloc="4776" packages="23" files="144" classes="144"/>
2
+ <coverage generated="1643217088683" clover="3.2.0">
3
+ <project timestamp="1643217088683" name="All files">
4
+ <metrics statements="4788" coveredstatements="3536" conditionals="1926" coveredconditionals="1039" methods="683" coveredmethods="482" elements="7397" coveredelements="5057" complexity="0" loc="4788" ncloc="4788" packages="23" files="144" classes="144"/>
5
5
  <package name="api">
6
6
  <metrics statements="29" coveredstatements="27" conditionals="5" coveredconditionals="2" methods="5" coveredmethods="4"/>
7
7
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/index.js">
@@ -38,7 +38,7 @@
38
38
  </file>
39
39
  </package>
40
40
  <package name="api.controllers">
41
- <metrics statements="1079" coveredstatements="767" conditionals="351" coveredconditionals="160" methods="153" coveredmethods="108"/>
41
+ <metrics statements="1085" coveredstatements="771" conditionals="359" coveredconditionals="165" methods="153" coveredmethods="108"/>
42
42
  <file name="analytics.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/analytics.js">
43
43
  <metrics statements="13" coveredstatements="6" conditionals="13" coveredconditionals="4" methods="2" coveredmethods="1"/>
44
44
  <line num="1" count="23" type="stmt"/>
@@ -498,7 +498,7 @@
498
498
  <line num="34" count="1" type="stmt"/>
499
499
  </file>
500
500
  <file name="datasource.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/datasource.js">
501
- <metrics statements="123" coveredstatements="73" conditionals="45" coveredconditionals="15" methods="19" coveredmethods="11"/>
501
+ <metrics statements="129" coveredstatements="77" conditionals="53" coveredconditionals="20" methods="19" coveredmethods="11"/>
502
502
  <line num="1" count="37" type="stmt"/>
503
503
  <line num="9" count="37" type="stmt"/>
504
504
  <line num="10" count="37" type="stmt"/>
@@ -514,114 +514,120 @@
514
514
  <line num="33" count="2" type="stmt"/>
515
515
  <line num="39" count="1" type="stmt"/>
516
516
  <line num="41" count="2" type="stmt"/>
517
- <line num="44" count="37" type="stmt"/>
518
- <line num="45" count="0" type="stmt"/>
519
- <line num="46" count="0" type="stmt"/>
520
- <line num="48" count="0" type="stmt"/>
521
- <line num="49" count="0" type="stmt"/>
522
- <line num="51" count="0" type="stmt"/>
517
+ <line num="42" count="1" type="cond" truecount="3" falsecount="1"/>
518
+ <line num="44" count="0" type="stmt"/>
519
+ <line num="48" count="2" type="stmt"/>
520
+ <line num="51" count="37" type="stmt"/>
523
521
  <line num="52" count="0" type="stmt"/>
524
- <line num="54" count="0" type="stmt"/>
525
- <line num="55" count="0" type="cond" truecount="0" falsecount="2"/>
522
+ <line num="53" count="0" type="stmt"/>
523
+ <line num="55" count="0" type="stmt"/>
526
524
  <line num="56" count="0" type="stmt"/>
527
525
  <line num="58" count="0" type="stmt"/>
528
- <line num="64" count="37" type="stmt"/>
529
- <line num="65" count="6" type="stmt"/>
530
- <line num="66" count="6" type="stmt"/>
531
- <line num="67" count="6" type="stmt"/>
532
- <line num="69" count="6" type="cond" truecount="2" falsecount="0"/>
533
- <line num="70" count="5" type="stmt"/>
534
- <line num="73" count="1" type="cond" truecount="1" falsecount="1"/>
535
- <line num="75" count="0" type="stmt"/>
536
- <line num="78" count="1" type="stmt"/>
537
- <line num="79" count="1" type="stmt"/>
538
- <line num="81" count="0" type="cond" truecount="0" falsecount="3"/>
539
- <line num="85" count="1" type="cond" truecount="1" falsecount="1"/>
526
+ <line num="59" count="0" type="stmt"/>
527
+ <line num="61" count="0" type="stmt"/>
528
+ <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
529
+ <line num="63" count="0" type="stmt"/>
530
+ <line num="65" count="0" type="stmt"/>
531
+ <line num="71" count="37" type="stmt"/>
532
+ <line num="72" count="6" type="stmt"/>
533
+ <line num="73" count="6" type="stmt"/>
534
+ <line num="74" count="6" type="stmt"/>
535
+ <line num="76" count="6" type="cond" truecount="2" falsecount="0"/>
536
+ <line num="77" count="5" type="stmt"/>
537
+ <line num="80" count="1" type="cond" truecount="1" falsecount="1"/>
538
+ <line num="82" count="0" type="stmt"/>
539
+ <line num="85" count="1" type="stmt"/>
540
540
  <line num="86" count="1" type="stmt"/>
541
- <line num="90" count="1" type="stmt"/>
542
- <line num="93" count="37" type="stmt"/>
543
- <line num="94" count="6" type="stmt"/>
544
- <line num="95" count="6" type="stmt"/>
545
- <line num="96" count="6" type="stmt"/>
546
- <line num="97" count="6" type="stmt"/>
547
- <line num="98" count="6" type="stmt"/>
548
- <line num="100" count="6" type="stmt"/>
541
+ <line num="88" count="0" type="cond" truecount="0" falsecount="3"/>
542
+ <line num="92" count="1" type="cond" truecount="1" falsecount="1"/>
543
+ <line num="93" count="1" type="stmt"/>
544
+ <line num="97" count="1" type="stmt"/>
545
+ <line num="100" count="37" type="stmt"/>
549
546
  <line num="101" count="6" type="stmt"/>
550
- <line num="104" count="6" type="cond" truecount="1" falsecount="1"/>
547
+ <line num="102" count="6" type="stmt"/>
548
+ <line num="103" count="6" type="stmt"/>
549
+ <line num="104" count="6" type="stmt"/>
551
550
  <line num="105" count="6" type="stmt"/>
552
- <line num="106" count="6" type="cond" truecount="3" falsecount="1"/>
553
- <line num="107" count="0" type="stmt"/>
554
- <line num="111" count="6" type="stmt"/>
551
+ <line num="106" count="6" type="stmt"/>
552
+ <line num="107" count="6" type="cond" truecount="2" falsecount="2"/>
553
+ <line num="109" count="0" type="stmt"/>
555
554
  <line num="112" count="6" type="stmt"/>
556
555
  <line num="113" count="6" type="stmt"/>
557
- <line num="116" count="37" type="stmt"/>
558
- <line num="117" count="39" type="stmt"/>
559
- <line num="118" count="39" type="stmt"/>
560
- <line num="119" count="39" type="stmt"/>
561
- <line num="121" count="39" type="stmt"/>
562
- <line num="127" count="39" type="stmt"/>
563
- <line num="128" count="39" type="cond" truecount="1" falsecount="1"/>
564
- <line num="129" count="0" type="stmt"/>
565
- <line num="130" count="0" type="stmt"/>
566
- <line num="131" count="0" type="stmt"/>
567
- <line num="134" count="39" type="stmt"/>
568
- <line num="135" count="39" type="stmt"/>
569
- <line num="138" count="39" type="cond" truecount="1" falsecount="1"/>
556
+ <line num="116" count="6" type="cond" truecount="1" falsecount="1"/>
557
+ <line num="117" count="6" type="stmt"/>
558
+ <line num="118" count="6" type="cond" truecount="3" falsecount="1"/>
559
+ <line num="119" count="0" type="stmt"/>
560
+ <line num="123" count="6" type="stmt"/>
561
+ <line num="124" count="6" type="stmt"/>
562
+ <line num="125" count="6" type="stmt"/>
563
+ <line num="128" count="37" type="stmt"/>
564
+ <line num="129" count="39" type="stmt"/>
565
+ <line num="130" count="39" type="stmt"/>
566
+ <line num="131" count="39" type="stmt"/>
567
+ <line num="133" count="39" type="stmt"/>
570
568
  <line num="139" count="39" type="stmt"/>
571
- <line num="140" count="39" type="cond" truecount="3" falsecount="1"/>
569
+ <line num="140" count="39" type="cond" truecount="1" falsecount="1"/>
572
570
  <line num="141" count="0" type="stmt"/>
573
- <line num="145" count="39" type="stmt"/>
574
- <line num="146" count="39" type="cond" truecount="1" falsecount="1"/>
575
- <line num="147" count="0" type="stmt"/>
576
- <line num="149" count="39" type="stmt"/>
577
- <line num="152" count="37" type="stmt"/>
578
- <line num="153" count="1" type="stmt"/>
579
- <line num="156" count="1" type="stmt"/>
580
- <line num="159" count="1" type="stmt"/>
581
- <line num="160" count="1" type="stmt"/>
571
+ <line num="142" count="0" type="stmt"/>
572
+ <line num="143" count="0" type="stmt"/>
573
+ <line num="146" count="39" type="stmt"/>
574
+ <line num="147" count="39" type="stmt"/>
575
+ <line num="150" count="39" type="cond" truecount="1" falsecount="1"/>
576
+ <line num="151" count="39" type="stmt"/>
577
+ <line num="152" count="39" type="cond" truecount="3" falsecount="1"/>
578
+ <line num="153" count="0" type="stmt"/>
579
+ <line num="157" count="39" type="stmt"/>
580
+ <line num="158" count="39" type="cond" truecount="1" falsecount="1"/>
581
+ <line num="159" count="0" type="stmt"/>
582
+ <line num="161" count="39" type="stmt"/>
583
+ <line num="164" count="37" type="stmt"/>
584
+ <line num="165" count="1" type="stmt"/>
582
585
  <line num="168" count="1" type="stmt"/>
583
- <line num="170" count="1" type="stmt"/>
584
586
  <line num="171" count="1" type="stmt"/>
585
- <line num="174" count="37" type="stmt"/>
586
- <line num="175" count="1" type="stmt"/>
587
- <line num="176" count="1" type="stmt"/>
588
- <line num="180" count="37" type="stmt"/>
589
- <line num="181" count="1" type="stmt"/>
587
+ <line num="172" count="1" type="stmt"/>
588
+ <line num="180" count="1" type="stmt"/>
590
589
  <line num="182" count="1" type="stmt"/>
591
590
  <line num="183" count="1" type="stmt"/>
592
- <line num="185" count="0" type="stmt"/>
593
- <line num="190" count="0" type="stmt"/>
594
- <line num="191" count="0" type="stmt"/>
595
- <line num="192" count="0" type="stmt"/>
596
- <line num="196" count="0" type="cond" truecount="0" falsecount="2"/>
591
+ <line num="186" count="37" type="stmt"/>
592
+ <line num="187" count="1" type="stmt"/>
593
+ <line num="188" count="1" type="stmt"/>
594
+ <line num="192" count="37" type="stmt"/>
595
+ <line num="193" count="1" type="stmt"/>
596
+ <line num="194" count="1" type="stmt"/>
597
+ <line num="195" count="1" type="stmt"/>
597
598
  <line num="197" count="0" type="stmt"/>
598
- <line num="199" count="0" type="cond" truecount="0" falsecount="2"/>
599
- <line num="200" count="0" type="stmt"/>
600
599
  <line num="202" count="0" type="stmt"/>
601
600
  <line num="203" count="0" type="stmt"/>
602
- <line num="206" count="37" type="stmt"/>
603
- <line num="207" count="0" type="stmt"/>
604
- <line num="210" count="0" type="stmt"/>
605
- <line num="211" count="0" type="stmt"/>
601
+ <line num="204" count="0" type="stmt"/>
602
+ <line num="208" count="0" type="cond" truecount="0" falsecount="2"/>
603
+ <line num="209" count="0" type="stmt"/>
604
+ <line num="211" count="0" type="cond" truecount="0" falsecount="2"/>
606
605
  <line num="212" count="0" type="stmt"/>
606
+ <line num="214" count="0" type="stmt"/>
607
607
  <line num="215" count="0" type="stmt"/>
608
- <line num="216" count="0" type="cond" truecount="0" falsecount="2"/>
609
- <line num="217" count="0" type="stmt"/>
608
+ <line num="218" count="37" type="stmt"/>
610
609
  <line num="219" count="0" type="stmt"/>
611
- <line num="220" count="0" type="stmt"/>
612
- <line num="222" count="0" type="cond" truecount="0" falsecount="2"/>
610
+ <line num="222" count="0" type="stmt"/>
613
611
  <line num="223" count="0" type="stmt"/>
612
+ <line num="224" count="0" type="stmt"/>
614
613
  <line num="227" count="0" type="stmt"/>
615
- <line num="228" count="0" type="stmt"/>
616
- <line num="229" count="0" type="cond" truecount="0" falsecount="4"/>
617
- <line num="230" count="0" type="stmt"/>
614
+ <line num="228" count="0" type="cond" truecount="0" falsecount="2"/>
615
+ <line num="229" count="0" type="stmt"/>
618
616
  <line num="231" count="0" type="stmt"/>
619
- <line num="232" count="0" type="cond" truecount="0" falsecount="2"/>
620
- <line num="233" count="0" type="stmt"/>
621
- <line num="239" count="0" type="cond" truecount="0" falsecount="2"/>
617
+ <line num="232" count="0" type="stmt"/>
618
+ <line num="234" count="0" type="cond" truecount="0" falsecount="2"/>
619
+ <line num="235" count="0" type="stmt"/>
620
+ <line num="239" count="0" type="stmt"/>
622
621
  <line num="240" count="0" type="stmt"/>
623
- <line num="241" count="0" type="stmt"/>
624
- <line num="248" count="0" type="stmt"/>
622
+ <line num="241" count="0" type="cond" truecount="0" falsecount="4"/>
623
+ <line num="242" count="0" type="stmt"/>
624
+ <line num="243" count="0" type="stmt"/>
625
+ <line num="244" count="0" type="cond" truecount="0" falsecount="2"/>
626
+ <line num="245" count="0" type="stmt"/>
627
+ <line num="251" count="0" type="cond" truecount="0" falsecount="2"/>
628
+ <line num="252" count="0" type="stmt"/>
629
+ <line num="253" count="0" type="stmt"/>
630
+ <line num="260" count="0" type="stmt"/>
625
631
  </file>
626
632
  <file name="dev.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/dev.js">
627
633
  <metrics statements="63" coveredstatements="18" conditionals="15" coveredconditionals="0" methods="10" coveredmethods="3"/>
@@ -1183,9 +1189,9 @@
1183
1189
  </file>
1184
1190
  </package>
1185
1191
  <package name="api.controllers.query">
1186
- <metrics statements="97" coveredstatements="80" conditionals="21" coveredconditionals="15" methods="17" coveredmethods="15"/>
1192
+ <metrics statements="102" coveredstatements="83" conditionals="29" coveredconditionals="19" methods="17" coveredmethods="15"/>
1187
1193
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/index.js">
1188
- <metrics statements="89" coveredstatements="72" conditionals="21" coveredconditionals="15" methods="14" coveredmethods="12"/>
1194
+ <metrics statements="94" coveredstatements="75" conditionals="29" coveredconditionals="19" methods="14" coveredmethods="12"/>
1189
1195
  <line num="1" count="37" type="stmt"/>
1190
1196
  <line num="6" count="37" type="stmt"/>
1191
1197
  <line num="7" count="37" type="stmt"/>
@@ -1248,33 +1254,38 @@
1248
1254
  <line num="139" count="2" type="stmt"/>
1249
1255
  <line num="141" count="2" type="stmt"/>
1250
1256
  <line num="142" count="2" type="stmt"/>
1251
- <line num="145" count="2" type="stmt"/>
1252
- <line num="146" count="2" type="stmt"/>
1253
- <line num="156" count="1" type="cond" truecount="3" falsecount="1"/>
1254
- <line num="157" count="1" type="stmt"/>
1255
- <line num="159" count="0" type="stmt"/>
1256
- <line num="162" count="1" type="stmt"/>
1257
- <line num="166" count="37" type="stmt"/>
1258
- <line num="167" count="2" type="stmt"/>
1259
- <line num="170" count="37" type="stmt"/>
1260
- <line num="171" count="0" type="stmt"/>
1261
- <line num="174" count="37" type="stmt"/>
1262
- <line num="175" count="2" type="stmt"/>
1263
- <line num="176" count="2" type="stmt"/>
1257
+ <line num="144" count="2" type="cond" truecount="1" falsecount="1"/>
1258
+ <line num="146" count="2" type="cond" truecount="3" falsecount="1"/>
1259
+ <line num="147" count="2" type="stmt"/>
1260
+ <line num="148" count="0" type="cond" truecount="0" falsecount="2"/>
1261
+ <line num="149" count="0" type="stmt"/>
1262
+ <line num="155" count="2" type="stmt"/>
1263
+ <line num="156" count="2" type="stmt"/>
1264
+ <line num="166" count="1" type="cond" truecount="3" falsecount="1"/>
1265
+ <line num="167" count="1" type="stmt"/>
1266
+ <line num="169" count="0" type="stmt"/>
1267
+ <line num="172" count="1" type="stmt"/>
1268
+ <line num="176" count="37" type="stmt"/>
1264
1269
  <line num="177" count="2" type="stmt"/>
1265
- <line num="179" count="2" type="cond" truecount="2" falsecount="0"/>
1266
- <line num="181" count="1" type="stmt"/>
1267
- <line num="182" count="1" type="stmt"/>
1268
- <line num="183" count="1" type="stmt"/>
1269
- <line num="186" count="1" type="stmt"/>
1270
- <line num="187" count="1" type="stmt"/>
1271
- <line num="189" count="1" type="stmt"/>
1272
- <line num="193" count="37" type="stmt"/>
1273
- <line num="194" count="2" type="stmt"/>
1274
- <line num="195" count="2" type="stmt"/>
1275
- <line num="196" count="2" type="stmt"/>
1276
- <line num="197" count="2" type="stmt"/>
1277
- <line num="198" count="2" type="stmt"/>
1270
+ <line num="180" count="37" type="stmt"/>
1271
+ <line num="181" count="0" type="stmt"/>
1272
+ <line num="184" count="37" type="stmt"/>
1273
+ <line num="185" count="2" type="stmt"/>
1274
+ <line num="186" count="2" type="stmt"/>
1275
+ <line num="187" count="2" type="stmt"/>
1276
+ <line num="189" count="2" type="cond" truecount="2" falsecount="0"/>
1277
+ <line num="191" count="1" type="stmt"/>
1278
+ <line num="192" count="1" type="stmt"/>
1279
+ <line num="194" count="1" type="stmt"/>
1280
+ <line num="197" count="1" type="stmt"/>
1281
+ <line num="198" count="1" type="stmt"/>
1282
+ <line num="200" count="1" type="stmt"/>
1283
+ <line num="204" count="37" type="stmt"/>
1284
+ <line num="205" count="2" type="stmt"/>
1285
+ <line num="206" count="2" type="stmt"/>
1286
+ <line num="207" count="2" type="stmt"/>
1287
+ <line num="208" count="2" type="stmt"/>
1288
+ <line num="209" count="2" type="stmt"/>
1278
1289
  </file>
1279
1290
  <file name="validation.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/query/validation.js">
1280
1291
  <metrics statements="8" coveredstatements="8" conditionals="0" coveredconditionals="0" methods="3" coveredmethods="3"/>
@@ -1289,7 +1300,7 @@
1289
1300
  </file>
1290
1301
  </package>
1291
1302
  <package name="api.controllers.row">
1292
- <metrics statements="596" coveredstatements="314" conditionals="258" coveredconditionals="85" methods="88" coveredmethods="38"/>
1303
+ <metrics statements="596" coveredstatements="314" conditionals="257" coveredconditionals="84" methods="88" coveredmethods="38"/>
1293
1304
  <file name="external.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/external.js">
1294
1305
  <metrics statements="99" coveredstatements="15" conditionals="42" coveredconditionals="0" methods="13" coveredmethods="0"/>
1295
1306
  <line num="6" count="37" type="stmt"/>
@@ -1848,7 +1859,7 @@
1848
1859
  <line num="388" count="0" type="stmt"/>
1849
1860
  </file>
1850
1861
  <file name="utils.js" path="/home/runner/work/budibase/budibase/packages/server/src/api/controllers/row/utils.js">
1851
- <metrics statements="51" coveredstatements="35" conditionals="31" coveredconditionals="14" methods="6" coveredmethods="4"/>
1862
+ <metrics statements="51" coveredstatements="35" conditionals="30" coveredconditionals="13" methods="6" coveredmethods="4"/>
1852
1863
  <line num="1" count="37" type="stmt"/>
1853
1864
  <line num="2" count="37" type="stmt"/>
1854
1865
  <line num="3" count="37" type="stmt"/>
@@ -1882,24 +1893,24 @@
1882
1893
  <line num="51" count="77" type="stmt"/>
1883
1894
  <line num="52" count="212" type="stmt"/>
1884
1895
  <line num="53" count="212" type="stmt"/>
1885
- <line num="55" count="212" type="cond" truecount="1" falsecount="1"/>
1886
- <line num="59" count="0" type="stmt"/>
1887
- <line num="64" count="212" type="cond" truecount="2" falsecount="2"/>
1888
- <line num="65" count="0" type="cond" truecount="0" falsecount="2"/>
1889
- <line num="66" count="0" type="stmt"/>
1890
- <line num="67" count="0" type="cond" truecount="0" falsecount="2"/>
1891
- <line num="68" count="0" type="stmt"/>
1892
- <line num="71" count="0" type="cond" truecount="0" falsecount="4"/>
1893
- <line num="73" count="0" type="stmt"/>
1894
- <line num="75" count="212" type="cond" truecount="2" falsecount="2"/>
1896
+ <line num="55" count="212" type="cond" truecount="2" falsecount="2"/>
1897
+ <line num="56" count="0" type="stmt"/>
1898
+ <line num="61" count="212" type="cond" truecount="2" falsecount="2"/>
1899
+ <line num="62" count="0" type="cond" truecount="0" falsecount="2"/>
1900
+ <line num="63" count="0" type="stmt"/>
1901
+ <line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
1902
+ <line num="65" count="0" type="stmt"/>
1903
+ <line num="68" count="0" type="cond" truecount="0" falsecount="4"/>
1904
+ <line num="70" count="0" type="stmt"/>
1905
+ <line num="72" count="212" type="cond" truecount="2" falsecount="2"/>
1906
+ <line num="74" count="0" type="stmt"/>
1907
+ <line num="75" count="0" type="stmt"/>
1895
1908
  <line num="77" count="0" type="stmt"/>
1896
- <line num="78" count="0" type="stmt"/>
1909
+ <line num="79" count="212" type="cond" truecount="1" falsecount="1"/>
1897
1910
  <line num="80" count="0" type="stmt"/>
1898
- <line num="82" count="212" type="cond" truecount="1" falsecount="1"/>
1899
- <line num="83" count="0" type="stmt"/>
1900
- <line num="88" count="212" type="stmt"/>
1901
- <line num="90" count="212" type="cond" truecount="2" falsecount="0"/>
1902
- <line num="92" count="77" type="stmt"/>
1911
+ <line num="85" count="212" type="stmt"/>
1912
+ <line num="87" count="212" type="cond" truecount="2" falsecount="0"/>
1913
+ <line num="89" count="77" type="stmt"/>
1903
1914
  </file>
1904
1915
  </package>
1905
1916
  <package name="api.controllers.table">
@@ -3462,9 +3473,9 @@
3462
3473
  </file>
3463
3474
  </package>
3464
3475
  <package name="constants">
3465
- <metrics statements="28" coveredstatements="28" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3476
+ <metrics statements="29" coveredstatements="29" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="1"/>
3466
3477
  <file name="index.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/index.js">
3467
- <metrics statements="21" coveredstatements="21" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3478
+ <metrics statements="22" coveredstatements="22" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
3468
3479
  <line num="1" count="45" type="stmt"/>
3469
3480
  <line num="2" count="45" type="stmt"/>
3470
3481
  <line num="3" count="45" type="stmt"/>
@@ -3478,14 +3489,15 @@
3478
3489
  <line num="61" count="45" type="stmt"/>
3479
3490
  <line num="67" count="45" type="stmt"/>
3480
3491
  <line num="78" count="45" type="stmt"/>
3481
- <line num="83" count="45" type="stmt"/>
3482
- <line num="145" count="45" type="stmt"/>
3483
- <line num="153" count="45" type="stmt"/>
3484
- <line num="154" count="45" type="stmt"/>
3485
- <line num="161" count="45" type="stmt"/>
3486
- <line num="166" count="45" type="stmt"/>
3487
- <line num="172" count="45" type="stmt"/>
3488
- <line num="178" count="45" type="stmt"/>
3492
+ <line num="82" count="45" type="stmt"/>
3493
+ <line num="87" count="45" type="stmt"/>
3494
+ <line num="149" count="45" type="stmt"/>
3495
+ <line num="157" count="45" type="stmt"/>
3496
+ <line num="158" count="45" type="stmt"/>
3497
+ <line num="165" count="45" type="stmt"/>
3498
+ <line num="170" count="45" type="stmt"/>
3499
+ <line num="176" count="45" type="stmt"/>
3500
+ <line num="182" count="45" type="stmt"/>
3489
3501
  </file>
3490
3502
  <file name="layouts.js" path="/home/runner/work/budibase/budibase/packages/server/src/constants/layouts.js">
3491
3503
  <metrics statements="4" coveredstatements="4" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>