@budibase/server 1.0.123 → 1.0.125
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.
- package/builder/assets/index.3d890df7.js +1299 -0
- package/builder/assets/index.89795487.css +6 -0
- package/builder/assets/{vendor.8e34a169.js → vendor.5240f480.js} +1 -1
- package/builder/index.html +3 -3
- package/coverage/clover.xml +695 -1678
- package/coverage/coverage-final.json +28 -43
- package/coverage/lcov-report/api/controllers/analytics.js.html +8 -3
- package/coverage/lcov-report/api/controllers/apikeys.js.html +9 -4
- package/coverage/lcov-report/api/controllers/auth.js.html +8 -3
- package/coverage/lcov-report/api/controllers/automation.js.html +8 -3
- package/coverage/lcov-report/api/controllers/backup.js.html +8 -3
- package/coverage/lcov-report/api/controllers/cloud.js.html +8 -3
- package/coverage/lcov-report/api/controllers/component.js.html +8 -3
- package/coverage/lcov-report/api/controllers/datasource.js.html +11 -6
- package/coverage/lcov-report/api/controllers/dev.js.html +8 -3
- package/coverage/lcov-report/api/controllers/index.html +16 -26
- package/coverage/lcov-report/api/controllers/integration.js.html +8 -3
- package/coverage/lcov-report/api/controllers/layout.js.html +8 -3
- package/coverage/lcov-report/api/controllers/metadata.js.html +8 -3
- package/coverage/lcov-report/api/controllers/migrations.js.html +8 -3
- package/coverage/lcov-report/api/controllers/permission.js.html +8 -3
- package/coverage/lcov-report/api/controllers/query/index.html +16 -26
- package/coverage/lcov-report/api/controllers/query/validation.js.html +8 -3
- package/coverage/lcov-report/api/controllers/role.js.html +10 -5
- package/coverage/lcov-report/api/controllers/routing.js.html +9 -4
- package/coverage/lcov-report/api/controllers/row/external.js.html +8 -3
- package/coverage/lcov-report/api/controllers/row/index.html +25 -35
- package/coverage/lcov-report/api/controllers/row/internal.js.html +32 -24
- package/coverage/lcov-report/api/controllers/row/internalSearch.js.html +21 -16
- package/coverage/lcov-report/api/controllers/row/staticFormula.js.html +24 -19
- package/coverage/lcov-report/api/controllers/row/utils.js.html +33 -19
- package/coverage/lcov-report/api/controllers/screen.js.html +9 -4
- package/coverage/lcov-report/api/controllers/script.js.html +8 -3
- package/coverage/lcov-report/api/controllers/table/bulkFormula.js.html +55 -50
- package/coverage/lcov-report/api/controllers/table/external.js.html +8 -3
- package/coverage/lcov-report/api/controllers/table/index.html +19 -44
- package/coverage/lcov-report/api/controllers/table/index.js.html +20 -15
- package/coverage/lcov-report/api/controllers/templates.js.html +8 -3
- package/coverage/lcov-report/api/controllers/user.js.html +8 -3
- package/coverage/lcov-report/api/controllers/view/exporters.js.html +8 -3
- package/coverage/lcov-report/api/controllers/view/index.html +8 -3
- package/coverage/lcov-report/api/controllers/view/index.js.html +10 -5
- package/coverage/lcov-report/api/controllers/view/utils.js.html +8 -3
- package/coverage/lcov-report/api/controllers/view/viewBuilder.js.html +8 -3
- package/coverage/lcov-report/api/controllers/webhook.js.html +10 -5
- package/coverage/lcov-report/api/index.html +18 -13
- package/coverage/lcov-report/api/index.js.html +28 -8
- package/coverage/lcov-report/api/routes/analytics.js.html +8 -3
- package/coverage/lcov-report/api/routes/apikeys.js.html +8 -3
- package/coverage/lcov-report/api/routes/auth.js.html +8 -3
- package/coverage/lcov-report/api/routes/automation.js.html +8 -3
- package/coverage/lcov-report/api/routes/backup.js.html +8 -3
- package/coverage/lcov-report/api/routes/cloud.js.html +8 -3
- package/coverage/lcov-report/api/routes/component.js.html +8 -3
- package/coverage/lcov-report/api/routes/datasource.js.html +8 -3
- package/coverage/lcov-report/api/routes/deploy.js.html +8 -3
- package/coverage/lcov-report/api/routes/dev.js.html +9 -4
- package/coverage/lcov-report/api/routes/index.html +13 -68
- package/coverage/lcov-report/api/routes/integration.js.html +8 -3
- package/coverage/lcov-report/api/routes/layout.js.html +8 -3
- package/coverage/lcov-report/api/routes/metadata.js.html +8 -3
- package/coverage/lcov-report/api/routes/migrations.js.html +8 -3
- package/coverage/lcov-report/api/routes/permission.js.html +8 -3
- package/coverage/lcov-report/api/routes/query.js.html +8 -3
- package/coverage/lcov-report/api/routes/role.js.html +8 -3
- package/coverage/lcov-report/api/routes/routing.js.html +8 -3
- package/coverage/lcov-report/api/routes/screen.js.html +8 -3
- package/coverage/lcov-report/api/routes/script.js.html +8 -3
- package/coverage/lcov-report/api/routes/table.js.html +8 -3
- package/coverage/lcov-report/api/routes/templates.js.html +8 -3
- package/coverage/lcov-report/api/routes/user.js.html +8 -3
- package/coverage/lcov-report/api/routes/utils/index.html +8 -3
- package/coverage/lcov-report/api/routes/utils/validators.js.html +8 -3
- package/coverage/lcov-report/api/routes/view.js.html +8 -3
- package/coverage/lcov-report/api/routes/webhook.js.html +8 -3
- package/coverage/lcov-report/automations/actions.js.html +21 -7
- package/coverage/lcov-report/automations/automationUtils.js.html +64 -23
- package/coverage/lcov-report/automations/bullboard.js.html +8 -3
- package/coverage/lcov-report/automations/index.html +27 -37
- package/coverage/lcov-report/automations/index.js.html +8 -3
- package/coverage/lcov-report/automations/steps/bash.js.html +8 -3
- package/coverage/lcov-report/automations/steps/delay.js.html +8 -3
- package/coverage/lcov-report/automations/steps/discord.js.html +8 -3
- package/coverage/lcov-report/automations/steps/executeQuery.js.html +8 -3
- package/coverage/lcov-report/automations/steps/executeScript.js.html +8 -3
- package/coverage/lcov-report/automations/steps/filter.js.html +8 -3
- package/coverage/lcov-report/automations/steps/index.html +31 -41
- package/coverage/lcov-report/automations/steps/integromat.js.html +8 -3
- package/coverage/lcov-report/{api/routes/static.js.html → automations/steps/loop.js.html} +70 -80
- package/coverage/lcov-report/automations/steps/outgoingWebhook.js.html +9 -4
- package/coverage/lcov-report/automations/steps/queryRows.js.html +9 -4
- package/coverage/lcov-report/automations/steps/sendSmtpEmail.js.html +8 -3
- package/coverage/lcov-report/automations/steps/serverLog.js.html +8 -3
- package/coverage/lcov-report/automations/steps/slack.js.html +8 -3
- package/coverage/lcov-report/automations/steps/updateRow.js.html +8 -3
- package/coverage/lcov-report/automations/steps/utils.js.html +14 -9
- package/coverage/lcov-report/automations/steps/zapier.js.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/app.js.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/cron.js.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/index.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/index.js.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/rowDeleted.js.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/rowSaved.js.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/rowUpdated.js.html +8 -3
- package/coverage/lcov-report/automations/triggerInfo/webhook.js.html +8 -3
- package/coverage/lcov-report/automations/triggers.js.html +16 -11
- package/coverage/lcov-report/block-navigation.js +8 -0
- package/coverage/lcov-report/constants/index.html +12 -7
- package/coverage/lcov-report/constants/index.js.html +55 -32
- package/coverage/lcov-report/constants/layouts.js.html +8 -3
- package/coverage/lcov-report/constants/screens.js.html +8 -3
- package/coverage/lcov-report/db/inMemoryView.js.html +8 -3
- package/coverage/lcov-report/db/index.html +8 -3
- package/coverage/lcov-report/db/index.js.html +9 -4
- package/coverage/lcov-report/db/linkedRows/LinkController.js.html +20 -15
- package/coverage/lcov-report/db/linkedRows/index.html +8 -3
- package/coverage/lcov-report/db/linkedRows/index.js.html +22 -17
- package/coverage/lcov-report/db/linkedRows/linkUtils.js.html +12 -7
- package/coverage/lcov-report/db/newid.js.html +11 -6
- package/coverage/lcov-report/db/utils.js.html +84 -79
- package/coverage/lcov-report/events/AutomationEmitter.js.html +14 -9
- package/coverage/lcov-report/events/index.html +8 -3
- package/coverage/lcov-report/events/index.js.html +9 -4
- package/coverage/lcov-report/events/utils.js.html +18 -13
- package/coverage/lcov-report/index.html +125 -120
- package/coverage/lcov-report/integrations/tests/TestConfiguration.js.html +8 -3
- package/coverage/lcov-report/integrations/tests/index.html +8 -3
- package/coverage/lcov-report/middleware/appInfo.js.html +8 -3
- package/coverage/lcov-report/middleware/builder.js.html +8 -3
- package/coverage/lcov-report/middleware/currentapp.js.html +65 -15
- package/coverage/lcov-report/middleware/index.html +25 -50
- package/coverage/lcov-report/middleware/joi-validator.js.html +9 -4
- package/coverage/lcov-report/middleware/publicApi.js.html +8 -3
- package/coverage/lcov-report/middleware/resourceId.js.html +8 -3
- package/coverage/lcov-report/middleware/selfhost.js.html +9 -4
- package/coverage/lcov-report/middleware/utils.js.html +8 -3
- package/coverage/lcov-report/sorter.js +26 -0
- package/coverage/lcov-report/threads/automation.js.html +581 -90
- package/coverage/lcov-report/threads/index.html +30 -40
- package/coverage/lcov-report/threads/query.js.html +9 -4
- package/coverage/lcov-report/threads/utils.js.html +17 -9
- package/coverage/lcov-report/utilities/bcrypt.js.html +8 -3
- package/coverage/lcov-report/utilities/budibaseDir.js.html +8 -3
- package/coverage/lcov-report/utilities/centralPath.js.html +8 -3
- package/coverage/lcov-report/utilities/csvParser.js.html +10 -5
- package/coverage/lcov-report/utilities/global.js.html +9 -4
- package/coverage/lcov-report/utilities/index.html +8 -3
- package/coverage/lcov-report/utilities/index.js.html +11 -6
- package/coverage/lcov-report/utilities/queue/inMemoryQueue.js.html +32 -9
- package/coverage/lcov-report/utilities/queue/index.html +12 -7
- package/coverage/lcov-report/utilities/routing/index.html +8 -3
- package/coverage/lcov-report/utilities/routing/index.js.html +8 -3
- package/coverage/lcov-report/utilities/rowProcessor/index.html +8 -3
- package/coverage/lcov-report/utilities/rowProcessor/index.js.html +48 -43
- package/coverage/lcov-report/utilities/rowProcessor/utils.js.html +18 -13
- package/coverage/lcov-report/utilities/scriptRunner.js.html +8 -3
- package/coverage/lcov-report/utilities/security.js.html +9 -4
- package/coverage/lcov-report/utilities/statusCodes.js.html +8 -3
- package/coverage/lcov-report/utilities/usageQuota/index.html +24 -34
- package/coverage/lcov-report/utilities/usageQuota/rows.js.html +44 -39
- package/coverage/lcov-report/utilities/usageQuota/usageQuoteReset.js.html +8 -3
- package/coverage/lcov-report/utilities/users.js.html +8 -3
- package/coverage/lcov-report/utilities/workerRequests.js.html +9 -4
- package/coverage/lcov.info +1144 -2875
- package/dist/api/controllers/application.js +145 -73
- package/dist/api/controllers/deploy/index.js +68 -36
- package/dist/api/controllers/public/applications.js +29 -9
- package/dist/api/controllers/public/queries.js +27 -7
- package/dist/api/controllers/public/rows.js +32 -12
- package/dist/api/controllers/public/tables.js +2 -2
- package/dist/api/controllers/public/users.js +8 -8
- package/dist/api/controllers/public/utils.js +1 -1
- package/dist/api/controllers/query/import/index.js +3 -3
- package/dist/api/controllers/query/index.js +57 -44
- package/dist/api/controllers/row/ExternalRequest.js +27 -27
- package/dist/api/controllers/row/index.js +83 -60
- package/dist/api/controllers/row/internal.js +2 -1
- package/dist/api/controllers/row/utils.js +2 -1
- package/dist/api/controllers/static/templates/BudibaseApp.svelte +3 -0
- package/dist/api/controllers/table/bulkFormula.js +2 -1
- package/dist/api/controllers/table/internal.js +41 -35
- package/dist/api/controllers/table/utils.js +271 -229
- package/dist/api/index.js +5 -0
- package/dist/api/routes/application.js +39 -13
- package/dist/api/routes/index.js +61 -56
- package/dist/api/routes/public/index.js +6 -9
- package/dist/api/routes/public/queries.js +1 -1
- package/dist/api/routes/public/rows.js +1 -1
- package/dist/api/routes/public/tables.js +3 -3
- package/dist/api/routes/public/users.js +1 -1
- package/dist/api/routes/row.js +43 -17
- package/dist/api/routes/static.js +40 -13
- package/dist/api/routes/tests/utilities/TestFunctions.js +75 -33
- package/dist/app.js +8 -4
- package/dist/automations/actions.js +3 -0
- package/dist/automations/automationUtils.js +10 -0
- package/dist/automations/steps/createRow.js +12 -12
- package/dist/automations/steps/deleteRow.js +13 -16
- package/dist/automations/steps/loop.js +51 -0
- package/dist/automations/tests/utilities/index.js +13 -11
- package/dist/automations/utils.js +187 -133
- package/dist/constants/index.js +5 -0
- package/dist/definitions/datasource.js +1 -0
- package/dist/environment.js +2 -3
- package/dist/index.js +4 -0
- package/dist/integrations/base/sql.js +2 -2
- package/dist/integrations/base/sqlTable.js +2 -2
- package/dist/integrations/googlesheets.js +1 -1
- package/dist/integrations/index.js +4 -0
- package/dist/integrations/microsoftSqlServer.js +8 -8
- package/dist/integrations/mysql.js +9 -9
- package/dist/integrations/oracle.js +7 -7
- package/dist/integrations/postgres.js +7 -7
- package/dist/integrations/queries/sql.js +2 -2
- package/dist/integrations/redis.js +158 -0
- package/dist/integrations/rest.js +1 -1
- package/dist/middleware/authorized.js +51 -51
- package/dist/middleware/currentapp.js +15 -1
- package/dist/migrations/functions/appUrls.js +1 -1
- package/dist/migrations/functions/developerQuota.js +49 -0
- package/dist/migrations/functions/publishedAppsQuota.js +47 -0
- package/dist/migrations/functions/quotas1.js +6 -2
- package/dist/migrations/functions/usageQuotas/index.js +0 -4
- package/dist/migrations/functions/usageQuotas/syncApps.js +4 -7
- package/dist/migrations/functions/usageQuotas/syncDevelopers.js +24 -0
- package/dist/migrations/functions/usageQuotas/syncPublishedApps.js +26 -0
- package/dist/migrations/functions/usageQuotas/syncRows.js +5 -8
- package/dist/migrations/index.js +17 -1
- package/dist/package.json +14 -8
- package/dist/threads/automation.js +149 -27
- package/dist/threads/index.js +36 -10
- package/dist/threads/utils.js +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/dist/utilities/queue/inMemoryQueue.js +6 -1
- package/nodemon.json +1 -1
- package/package.json +15 -9
- package/scripts/dev/manage.js +2 -0
- package/src/api/controllers/{application.js → application.ts} +118 -51
- package/src/api/controllers/deploy/{index.js → index.ts} +53 -29
- package/src/api/controllers/public/applications.ts +2 -2
- package/src/api/controllers/public/queries.ts +1 -1
- package/src/api/controllers/public/rows.ts +1 -1
- package/src/api/controllers/query/{index.js → index.ts} +51 -48
- package/src/api/controllers/row/ExternalRequest.ts +1 -1
- package/src/api/controllers/row/{index.js → index.ts} +24 -17
- package/src/api/controllers/row/internal.js +2 -1
- package/src/api/controllers/row/utils.js +4 -1
- package/src/api/controllers/static/templates/BudibaseApp.svelte +3 -0
- package/src/api/controllers/table/bulkFormula.js +1 -1
- package/src/api/controllers/table/{internal.js → internal.ts} +30 -26
- package/src/api/controllers/table/{utils.js → utils.ts} +86 -69
- package/src/api/index.js +5 -0
- package/src/api/routes/{application.js → application.ts} +8 -14
- package/src/api/routes/index.ts +60 -0
- package/src/api/routes/public/index.ts +1 -4
- package/src/api/routes/{row.js → row.ts} +7 -15
- package/src/api/routes/{static.js → static.ts} +11 -11
- package/src/api/routes/tests/misc.spec.js +39 -37
- package/src/api/routes/tests/utilities/{TestFunctions.js → TestFunctions.ts} +57 -33
- package/src/app.ts +1 -2
- package/src/automations/actions.js +3 -0
- package/src/automations/automationUtils.js +12 -0
- package/src/automations/steps/{createRow.js → createRow.ts} +9 -15
- package/src/automations/steps/{deleteRow.js → deleteRow.ts} +10 -16
- package/src/automations/steps/loop.js +50 -0
- package/src/automations/tests/automation.spec.js +0 -1
- package/src/automations/tests/{createRow.spec.js → createRow.spec.ts} +4 -15
- package/src/automations/tests/{deleteRow.spec.js → deleteRow.spec.ts} +3 -5
- package/src/automations/tests/utilities/index.js +12 -10
- package/src/automations/{utils.js → utils.ts} +39 -28
- package/src/constants/index.js +6 -0
- package/src/definitions/common.ts +1 -0
- package/src/definitions/datasource.ts +1 -0
- package/src/environment.js +2 -3
- package/src/index.ts +3 -0
- package/src/integrations/index.ts +4 -0
- package/src/integrations/redis.ts +152 -0
- package/src/integrations/tests/redis.spec.js +60 -0
- package/src/middleware/{authorized.js → authorized.ts} +20 -14
- package/src/middleware/currentapp.js +16 -1
- package/src/middleware/tests/currentapp.spec.js +8 -4
- package/src/migrations/functions/developerQuota.ts +15 -0
- package/src/migrations/functions/publishedAppsQuota.ts +13 -0
- package/src/migrations/functions/tests/quotas1.spec.js +0 -2
- package/src/migrations/functions/usageQuotas/index.ts +0 -5
- package/src/migrations/functions/usageQuotas/syncApps.ts +3 -6
- package/src/migrations/functions/usageQuotas/syncDevelopers.ts +19 -0
- package/src/migrations/functions/usageQuotas/syncPublishedApps.ts +21 -0
- package/src/migrations/functions/usageQuotas/syncRows.ts +3 -6
- package/src/migrations/functions/usageQuotas/tests/syncApps.spec.ts +34 -0
- package/src/migrations/functions/usageQuotas/tests/syncRows.spec.ts +40 -0
- package/src/migrations/index.ts +13 -1
- package/src/threads/automation.js +196 -34
- package/src/threads/{index.js → index.ts} +18 -14
- package/src/threads/utils.js +1 -0
- package/src/utilities/queue/inMemoryQueue.js +7 -1
- package/tsconfig.build.json +10 -0
- package/tsconfig.json +2 -2
- package/builder/assets/index.68a7f4e3.css +0 -6
- package/builder/assets/index.8d4a5b33.js +0 -1291
- package/coverage/lcov-report/api/controllers/application.js.html +0 -1436
- package/coverage/lcov-report/api/controllers/query/index.js.html +0 -713
- package/coverage/lcov-report/api/controllers/row/index.js.html +0 -524
- package/coverage/lcov-report/api/controllers/table/internal.js.html +0 -620
- package/coverage/lcov-report/api/controllers/table/utils.js.html +0 -1331
- package/coverage/lcov-report/api/routes/application.js.html +0 -179
- package/coverage/lcov-report/api/routes/index.js.html +0 -266
- package/coverage/lcov-report/api/routes/row.js.html +0 -908
- package/coverage/lcov-report/automations/steps/createRow.js.html +0 -380
- package/coverage/lcov-report/automations/steps/deleteRow.js.html +0 -347
- package/coverage/lcov-report/automations/utils.js.html +0 -665
- package/coverage/lcov-report/middleware/authorized.js.html +0 -458
- package/coverage/lcov-report/middleware/usageQuota.js.html +0 -572
- package/coverage/lcov-report/threads/index.js.html +0 -296
- package/coverage/lcov-report/utilities/usageQuota/index.js.html +0 -359
- package/dist/middleware/usageQuota.js +0 -154
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/utilities/usageQuota/index.js +0 -86
- package/src/api/routes/index.js +0 -62
- package/src/middleware/tests/usageQuota.spec.js +0 -120
- package/src/middleware/usageQuota.js +0 -164
- package/src/migrations/functions/usageQuotas/tests/syncApps.spec.js +0 -41
- package/src/migrations/functions/usageQuotas/tests/syncRows.spec.js +0 -45
- package/src/utilities/tests/usageQuota/usageQuota.spec.js +0 -72
- package/src/utilities/usageQuota/index.js +0 -93
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
26
|
<span class="strong">100% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>28/28</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
47
|
<span class="strong">100% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>28/28</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line high'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -259,15 +265,25 @@
|
|
|
259
265
|
<a name='L200'></a><a href='#L200'>200</a>
|
|
260
266
|
<a name='L201'></a><a href='#L201'>201</a>
|
|
261
267
|
<a name='L202'></a><a href='#L202'>202</a>
|
|
262
|
-
<a name='L203'></a><a href='#L203'>203</a
|
|
263
|
-
<
|
|
264
|
-
<
|
|
268
|
+
<a name='L203'></a><a href='#L203'>203</a>
|
|
269
|
+
<a name='L204'></a><a href='#L204'>204</a>
|
|
270
|
+
<a name='L205'></a><a href='#L205'>205</a>
|
|
271
|
+
<a name='L206'></a><a href='#L206'>206</a>
|
|
272
|
+
<a name='L207'></a><a href='#L207'>207</a>
|
|
273
|
+
<a name='L208'></a><a href='#L208'>208</a>
|
|
274
|
+
<a name='L209'></a><a href='#L209'>209</a></td><td class="line-coverage quiet"><span class="cline-any cline-yes">48x</span>
|
|
275
|
+
<span class="cline-any cline-yes">48x</span>
|
|
276
|
+
<span class="cline-any cline-yes">48x</span>
|
|
277
|
+
<span class="cline-any cline-neutral"> </span>
|
|
278
|
+
<span class="cline-any cline-yes">48x</span>
|
|
279
|
+
<span class="cline-any cline-neutral"> </span>
|
|
280
|
+
<span class="cline-any cline-neutral"> </span>
|
|
281
|
+
<span class="cline-any cline-neutral"> </span>
|
|
282
|
+
<span class="cline-any cline-yes">48x</span>
|
|
265
283
|
<span class="cline-any cline-neutral"> </span>
|
|
266
|
-
<span class="cline-any cline-yes">49x</span>
|
|
267
284
|
<span class="cline-any cline-neutral"> </span>
|
|
268
285
|
<span class="cline-any cline-neutral"> </span>
|
|
269
286
|
<span class="cline-any cline-neutral"> </span>
|
|
270
|
-
<span class="cline-any cline-yes">49x</span>
|
|
271
287
|
<span class="cline-any cline-neutral"> </span>
|
|
272
288
|
<span class="cline-any cline-neutral"> </span>
|
|
273
289
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -276,21 +292,21 @@
|
|
|
276
292
|
<span class="cline-any cline-neutral"> </span>
|
|
277
293
|
<span class="cline-any cline-neutral"> </span>
|
|
278
294
|
<span class="cline-any cline-neutral"> </span>
|
|
295
|
+
<span class="cline-any cline-yes">48x</span>
|
|
296
|
+
<span class="cline-any cline-yes">48x</span>
|
|
279
297
|
<span class="cline-any cline-neutral"> </span>
|
|
280
298
|
<span class="cline-any cline-neutral"> </span>
|
|
281
299
|
<span class="cline-any cline-neutral"> </span>
|
|
282
300
|
<span class="cline-any cline-neutral"> </span>
|
|
283
|
-
<span class="cline-any cline-yes">49x</span>
|
|
284
|
-
<span class="cline-any cline-yes">49x</span>
|
|
285
301
|
<span class="cline-any cline-neutral"> </span>
|
|
286
302
|
<span class="cline-any cline-neutral"> </span>
|
|
287
303
|
<span class="cline-any cline-neutral"> </span>
|
|
288
304
|
<span class="cline-any cline-neutral"> </span>
|
|
305
|
+
<span class="cline-any cline-yes">48x</span>
|
|
289
306
|
<span class="cline-any cline-neutral"> </span>
|
|
290
307
|
<span class="cline-any cline-neutral"> </span>
|
|
291
308
|
<span class="cline-any cline-neutral"> </span>
|
|
292
309
|
<span class="cline-any cline-neutral"> </span>
|
|
293
|
-
<span class="cline-any cline-yes">49x</span>
|
|
294
310
|
<span class="cline-any cline-neutral"> </span>
|
|
295
311
|
<span class="cline-any cline-neutral"> </span>
|
|
296
312
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -302,58 +318,58 @@
|
|
|
302
318
|
<span class="cline-any cline-neutral"> </span>
|
|
303
319
|
<span class="cline-any cline-neutral"> </span>
|
|
304
320
|
<span class="cline-any cline-neutral"> </span>
|
|
321
|
+
<span class="cline-any cline-yes">48x</span>
|
|
305
322
|
<span class="cline-any cline-neutral"> </span>
|
|
306
323
|
<span class="cline-any cline-neutral"> </span>
|
|
307
324
|
<span class="cline-any cline-neutral"> </span>
|
|
308
325
|
<span class="cline-any cline-neutral"> </span>
|
|
309
|
-
<span class="cline-any cline-yes">49x</span>
|
|
310
326
|
<span class="cline-any cline-neutral"> </span>
|
|
327
|
+
<span class="cline-any cline-yes">48x</span>
|
|
328
|
+
<span class="cline-any cline-yes">96x</span>
|
|
311
329
|
<span class="cline-any cline-neutral"> </span>
|
|
312
330
|
<span class="cline-any cline-neutral"> </span>
|
|
331
|
+
<span class="cline-any cline-yes">48x</span>
|
|
313
332
|
<span class="cline-any cline-neutral"> </span>
|
|
314
333
|
<span class="cline-any cline-neutral"> </span>
|
|
315
|
-
<span class="cline-any cline-yes">49x</span>
|
|
316
|
-
<span class="cline-any cline-yes">98x</span>
|
|
317
334
|
<span class="cline-any cline-neutral"> </span>
|
|
318
335
|
<span class="cline-any cline-neutral"> </span>
|
|
319
|
-
<span class="cline-any cline-yes">49x</span>
|
|
320
336
|
<span class="cline-any cline-neutral"> </span>
|
|
337
|
+
<span class="cline-any cline-yes">48x</span>
|
|
321
338
|
<span class="cline-any cline-neutral"> </span>
|
|
322
339
|
<span class="cline-any cline-neutral"> </span>
|
|
323
340
|
<span class="cline-any cline-neutral"> </span>
|
|
324
341
|
<span class="cline-any cline-neutral"> </span>
|
|
325
|
-
<span class="cline-any cline-yes">
|
|
342
|
+
<span class="cline-any cline-yes">48x</span>
|
|
326
343
|
<span class="cline-any cline-neutral"> </span>
|
|
327
344
|
<span class="cline-any cline-neutral"> </span>
|
|
328
345
|
<span class="cline-any cline-neutral"> </span>
|
|
329
346
|
<span class="cline-any cline-neutral"> </span>
|
|
330
|
-
<span class="cline-any cline-yes">49x</span>
|
|
331
347
|
<span class="cline-any cline-neutral"> </span>
|
|
348
|
+
<span class="cline-any cline-yes">48x</span>
|
|
332
349
|
<span class="cline-any cline-neutral"> </span>
|
|
333
350
|
<span class="cline-any cline-neutral"> </span>
|
|
334
351
|
<span class="cline-any cline-neutral"> </span>
|
|
335
352
|
<span class="cline-any cline-neutral"> </span>
|
|
336
|
-
<span class="cline-any cline-yes">49x</span>
|
|
337
353
|
<span class="cline-any cline-neutral"> </span>
|
|
338
354
|
<span class="cline-any cline-neutral"> </span>
|
|
339
355
|
<span class="cline-any cline-neutral"> </span>
|
|
340
356
|
<span class="cline-any cline-neutral"> </span>
|
|
341
357
|
<span class="cline-any cline-neutral"> </span>
|
|
342
358
|
<span class="cline-any cline-neutral"> </span>
|
|
359
|
+
<span class="cline-any cline-yes">48x</span>
|
|
343
360
|
<span class="cline-any cline-neutral"> </span>
|
|
344
361
|
<span class="cline-any cline-neutral"> </span>
|
|
345
362
|
<span class="cline-any cline-neutral"> </span>
|
|
363
|
+
<span class="cline-any cline-yes">48x</span>
|
|
346
364
|
<span class="cline-any cline-neutral"> </span>
|
|
347
|
-
<span class="cline-any cline-yes">49x</span>
|
|
348
365
|
<span class="cline-any cline-neutral"> </span>
|
|
349
366
|
<span class="cline-any cline-neutral"> </span>
|
|
350
367
|
<span class="cline-any cline-neutral"> </span>
|
|
351
|
-
<span class="cline-any cline-yes">
|
|
368
|
+
<span class="cline-any cline-yes">48x</span>
|
|
352
369
|
<span class="cline-any cline-neutral"> </span>
|
|
353
370
|
<span class="cline-any cline-neutral"> </span>
|
|
354
371
|
<span class="cline-any cline-neutral"> </span>
|
|
355
372
|
<span class="cline-any cline-neutral"> </span>
|
|
356
|
-
<span class="cline-any cline-yes">49x</span>
|
|
357
373
|
<span class="cline-any cline-neutral"> </span>
|
|
358
374
|
<span class="cline-any cline-neutral"> </span>
|
|
359
375
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -411,56 +427,58 @@
|
|
|
411
427
|
<span class="cline-any cline-neutral"> </span>
|
|
412
428
|
<span class="cline-any cline-neutral"> </span>
|
|
413
429
|
<span class="cline-any cline-neutral"> </span>
|
|
430
|
+
<span class="cline-any cline-yes">48x</span>
|
|
414
431
|
<span class="cline-any cline-neutral"> </span>
|
|
415
432
|
<span class="cline-any cline-neutral"> </span>
|
|
416
433
|
<span class="cline-any cline-neutral"> </span>
|
|
417
434
|
<span class="cline-any cline-neutral"> </span>
|
|
418
|
-
<span class="cline-any cline-yes">49x</span>
|
|
419
435
|
<span class="cline-any cline-neutral"> </span>
|
|
420
436
|
<span class="cline-any cline-neutral"> </span>
|
|
421
437
|
<span class="cline-any cline-neutral"> </span>
|
|
438
|
+
<span class="cline-any cline-yes">48x</span>
|
|
422
439
|
<span class="cline-any cline-neutral"> </span>
|
|
423
440
|
<span class="cline-any cline-neutral"> </span>
|
|
424
441
|
<span class="cline-any cline-neutral"> </span>
|
|
425
442
|
<span class="cline-any cline-neutral"> </span>
|
|
426
|
-
<span class="cline-any cline-yes">49x</span>
|
|
427
443
|
<span class="cline-any cline-neutral"> </span>
|
|
428
444
|
<span class="cline-any cline-neutral"> </span>
|
|
429
445
|
<span class="cline-any cline-neutral"> </span>
|
|
446
|
+
<span class="cline-any cline-yes">48x</span>
|
|
447
|
+
<span class="cline-any cline-yes">48x</span>
|
|
430
448
|
<span class="cline-any cline-neutral"> </span>
|
|
431
449
|
<span class="cline-any cline-neutral"> </span>
|
|
432
450
|
<span class="cline-any cline-neutral"> </span>
|
|
433
451
|
<span class="cline-any cline-neutral"> </span>
|
|
434
|
-
<span class="cline-any cline-yes">49x</span>
|
|
435
|
-
<span class="cline-any cline-yes">49x</span>
|
|
436
452
|
<span class="cline-any cline-neutral"> </span>
|
|
437
453
|
<span class="cline-any cline-neutral"> </span>
|
|
454
|
+
<span class="cline-any cline-yes">48x</span>
|
|
438
455
|
<span class="cline-any cline-neutral"> </span>
|
|
439
456
|
<span class="cline-any cline-neutral"> </span>
|
|
440
457
|
<span class="cline-any cline-neutral"> </span>
|
|
441
458
|
<span class="cline-any cline-neutral"> </span>
|
|
442
|
-
<span class="cline-any cline-yes">
|
|
459
|
+
<span class="cline-any cline-yes">48x</span>
|
|
443
460
|
<span class="cline-any cline-neutral"> </span>
|
|
444
461
|
<span class="cline-any cline-neutral"> </span>
|
|
445
462
|
<span class="cline-any cline-neutral"> </span>
|
|
446
463
|
<span class="cline-any cline-neutral"> </span>
|
|
447
|
-
<span class="cline-any cline-yes">49x</span>
|
|
448
464
|
<span class="cline-any cline-neutral"> </span>
|
|
465
|
+
<span class="cline-any cline-yes">48x</span>
|
|
449
466
|
<span class="cline-any cline-neutral"> </span>
|
|
450
467
|
<span class="cline-any cline-neutral"> </span>
|
|
451
468
|
<span class="cline-any cline-neutral"> </span>
|
|
452
469
|
<span class="cline-any cline-neutral"> </span>
|
|
453
|
-
<span class="cline-any cline-yes">
|
|
470
|
+
<span class="cline-any cline-yes">48x</span>
|
|
454
471
|
<span class="cline-any cline-neutral"> </span>
|
|
455
472
|
<span class="cline-any cline-neutral"> </span>
|
|
456
473
|
<span class="cline-any cline-neutral"> </span>
|
|
474
|
+
<span class="cline-any cline-yes">48x</span>
|
|
457
475
|
<span class="cline-any cline-neutral"> </span>
|
|
458
|
-
<span class="cline-any cline-yes">49x</span>
|
|
459
476
|
<span class="cline-any cline-neutral"> </span>
|
|
460
477
|
<span class="cline-any cline-neutral"> </span>
|
|
461
478
|
<span class="cline-any cline-neutral"> </span>
|
|
462
479
|
<span class="cline-any cline-neutral"> </span>
|
|
463
|
-
<span class="cline-any cline-
|
|
480
|
+
<span class="cline-any cline-neutral"> </span>
|
|
481
|
+
<span class="cline-any cline-yes">48x</span>
|
|
464
482
|
<span class="cline-any cline-neutral"> </span></td><td class="text"><pre class="prettyprint lang-js">const { BUILTIN_ROLE_IDS } = require("@budibase/backend-core/roles")
|
|
465
483
|
const { UserStatus } = require("@budibase/backend-core/constants")
|
|
466
484
|
const { ObjectStoreBuckets } = require("@budibase/backend-core/objectStore")
|
|
@@ -661,6 +679,12 @@ exports.WebhookType = {
|
|
|
661
679
|
AUTOMATION: "automation",
|
|
662
680
|
}
|
|
663
681
|
|
|
682
|
+
exports.AutomationErrors = {
|
|
683
|
+
INCORRECT_TYPE: "INCORRECT_TYPE",
|
|
684
|
+
MAX_ITERATIONS: "MAX_ITERATIONS_REACHED",
|
|
685
|
+
FAILURE_CONDITION: "FAILURE_CONDITION_MET",
|
|
686
|
+
}
|
|
687
|
+
|
|
664
688
|
// pass through the list from the auth/core lib
|
|
665
689
|
exports.ObjectStoreBuckets = ObjectStoreBuckets
|
|
666
690
|
</pre></td></tr></table></pre>
|
|
@@ -669,10 +693,9 @@ exports.ObjectStoreBuckets = ObjectStoreBuckets
|
|
|
669
693
|
</div><!-- /wrapper -->
|
|
670
694
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
671
695
|
Code coverage generated by
|
|
672
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
673
|
-
at
|
|
696
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
697
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
674
698
|
</div>
|
|
675
|
-
</div>
|
|
676
699
|
<script src="../prettify.js"></script>
|
|
677
700
|
<script>
|
|
678
701
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line high'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -522,10 +528,9 @@ module.exports = {
|
|
|
522
528
|
</div><!-- /wrapper -->
|
|
523
529
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
524
530
|
Code coverage generated by
|
|
525
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
526
|
-
at
|
|
531
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
532
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
527
533
|
</div>
|
|
528
|
-
</div>
|
|
529
534
|
<script src="../prettify.js"></script>
|
|
530
535
|
<script>
|
|
531
536
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line high'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -201,10 +207,9 @@ exports.createHomeScreen = () => ({
|
|
|
201
207
|
</div><!-- /wrapper -->
|
|
202
208
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
203
209
|
Code coverage generated by
|
|
204
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
205
|
-
at
|
|
210
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
211
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
206
212
|
</div>
|
|
207
|
-
</div>
|
|
208
213
|
<script src="../prettify.js"></script>
|
|
209
214
|
<script>
|
|
210
215
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line low'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -210,10 +216,9 @@ exports.runView = <span class="fstat-no" title="function not covered" >as</span>
|
|
|
210
216
|
</div><!-- /wrapper -->
|
|
211
217
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
212
218
|
Code coverage generated by
|
|
213
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
214
|
-
at
|
|
219
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
220
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
215
221
|
</div>
|
|
216
|
-
</div>
|
|
217
222
|
<script src="../prettify.js"></script>
|
|
218
223
|
<script>
|
|
219
224
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line medium'></div>
|
|
59
65
|
<div class="pad1">
|
|
@@ -139,10 +145,9 @@
|
|
|
139
145
|
</div><!-- /wrapper -->
|
|
140
146
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
141
147
|
Code coverage generated by
|
|
142
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
143
|
-
at
|
|
148
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
149
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
144
150
|
</div>
|
|
145
|
-
</div>
|
|
146
151
|
<script src="../prettify.js"></script>
|
|
147
152
|
<script>
|
|
148
153
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line high'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -98,7 +104,7 @@ exports.init = () => {
|
|
|
98
104
|
find: true,
|
|
99
105
|
}
|
|
100
106
|
|
|
101
|
-
if (env.isTest()) {
|
|
107
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (env.isTest()) {
|
|
102
108
|
dbConfig.inMemory = true
|
|
103
109
|
dbConfig.allDbs = true
|
|
104
110
|
}
|
|
@@ -111,10 +117,9 @@ exports.init = () => {
|
|
|
111
117
|
</div><!-- /wrapper -->
|
|
112
118
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
113
119
|
Code coverage generated by
|
|
114
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
115
|
-
at
|
|
120
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
121
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
116
122
|
</div>
|
|
117
|
-
</div>
|
|
118
123
|
<script src="../prettify.js"></script>
|
|
119
124
|
<script>
|
|
120
125
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line high'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -577,11 +583,11 @@
|
|
|
577
583
|
<span class="cline-any cline-neutral"> </span>
|
|
578
584
|
<span class="cline-any cline-neutral"> </span>
|
|
579
585
|
<span class="cline-any cline-neutral"> </span>
|
|
580
|
-
<span class="cline-any cline-yes">
|
|
581
|
-
<span class="cline-any cline-yes">
|
|
582
|
-
<span class="cline-any cline-yes">
|
|
583
|
-
<span class="cline-any cline-yes">
|
|
584
|
-
<span class="cline-any cline-yes">
|
|
586
|
+
<span class="cline-any cline-yes">199x</span>
|
|
587
|
+
<span class="cline-any cline-yes">199x</span>
|
|
588
|
+
<span class="cline-any cline-yes">199x</span>
|
|
589
|
+
<span class="cline-any cline-yes">199x</span>
|
|
590
|
+
<span class="cline-any cline-yes">199x</span>
|
|
585
591
|
<span class="cline-any cline-neutral"> </span>
|
|
586
592
|
<span class="cline-any cline-neutral"> </span>
|
|
587
593
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -605,16 +611,16 @@
|
|
|
605
611
|
<span class="cline-any cline-neutral"> </span>
|
|
606
612
|
<span class="cline-any cline-neutral"> </span>
|
|
607
613
|
<span class="cline-any cline-neutral"> </span>
|
|
608
|
-
<span class="cline-any cline-yes">
|
|
614
|
+
<span class="cline-any cline-yes">193x</span>
|
|
609
615
|
<span class="cline-any cline-yes">6x</span>
|
|
610
616
|
<span class="cline-any cline-neutral"> </span>
|
|
611
|
-
<span class="cline-any cline-yes">
|
|
612
|
-
<span class="cline-any cline-yes">
|
|
613
|
-
<span class="cline-any cline-yes">
|
|
617
|
+
<span class="cline-any cline-yes">193x</span>
|
|
618
|
+
<span class="cline-any cline-yes">475x</span>
|
|
619
|
+
<span class="cline-any cline-yes">475x</span>
|
|
614
620
|
<span class="cline-any cline-yes">41x</span>
|
|
615
621
|
<span class="cline-any cline-neutral"> </span>
|
|
616
622
|
<span class="cline-any cline-neutral"> </span>
|
|
617
|
-
<span class="cline-any cline-yes">
|
|
623
|
+
<span class="cline-any cline-yes">152x</span>
|
|
618
624
|
<span class="cline-any cline-neutral"> </span>
|
|
619
625
|
<span class="cline-any cline-neutral"> </span>
|
|
620
626
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -1157,7 +1163,7 @@ class LinkController {
|
|
|
1157
1163
|
} else if (linkerField.relationshipType === RelationshipTypes.MANY_TO_ONE) {
|
|
1158
1164
|
// Ensure that the other side of the relationship is locked to one record
|
|
1159
1165
|
linkedField.relationshipType = RelationshipTypes.ONE_TO_MANY
|
|
1160
|
-
} else if (linkerField.relationshipType === RelationshipTypes.ONE_TO_MANY) {
|
|
1166
|
+
} else <span class="missing-if-branch" title="else path not taken" >E</span>if (linkerField.relationshipType === RelationshipTypes.ONE_TO_MANY) {
|
|
1161
1167
|
linkedField.relationshipType = RelationshipTypes.MANY_TO_ONE
|
|
1162
1168
|
}
|
|
1163
1169
|
return { linkerField, linkedField }
|
|
@@ -1234,7 +1240,7 @@ class LinkController {
|
|
|
1234
1240
|
}
|
|
1235
1241
|
}
|
|
1236
1242
|
|
|
1237
|
-
if (linkId && linkId !== "" && linkDocIds.indexOf(linkId) === -1) {
|
|
1243
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (linkId && linkId !== "" && linkDocIds.indexOf(linkId) === -1) {
|
|
1238
1244
|
// first check the doc we're linking to exists
|
|
1239
1245
|
try {
|
|
1240
1246
|
await this._db.get(linkId)
|
|
@@ -1458,10 +1464,9 @@ module.exports = LinkController
|
|
|
1458
1464
|
</div><!-- /wrapper -->
|
|
1459
1465
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
1460
1466
|
Code coverage generated by
|
|
1461
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
1462
|
-
at
|
|
1467
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
1468
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
1463
1469
|
</div>
|
|
1464
|
-
</div>
|
|
1465
1470
|
<script src="../../prettify.js"></script>
|
|
1466
1471
|
<script>
|
|
1467
1472
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line high'></div>
|
|
59
65
|
<div class="pad1">
|
|
@@ -124,10 +130,9 @@
|
|
|
124
130
|
</div><!-- /wrapper -->
|
|
125
131
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
126
132
|
Code coverage generated by
|
|
127
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
128
|
-
at
|
|
133
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
134
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
129
135
|
</div>
|
|
130
|
-
</div>
|
|
131
136
|
<script src="../../prettify.js"></script>
|
|
132
137
|
<script>
|
|
133
138
|
window.onload = function () {
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line high'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -373,20 +379,20 @@
|
|
|
373
379
|
<span class="cline-any cline-neutral"> </span>
|
|
374
380
|
<span class="cline-any cline-neutral"> </span>
|
|
375
381
|
<span class="cline-any cline-yes">41x</span>
|
|
376
|
-
<span class="cline-any cline-yes">
|
|
377
|
-
<span class="cline-any cline-yes">
|
|
382
|
+
<span class="cline-any cline-yes">189x</span>
|
|
383
|
+
<span class="cline-any cline-yes">189x</span>
|
|
378
384
|
<span class="cline-any cline-neutral"> </span>
|
|
379
|
-
<span class="cline-any cline-yes">
|
|
380
|
-
<span class="cline-any cline-yes">
|
|
385
|
+
<span class="cline-any cline-yes">189x</span>
|
|
386
|
+
<span class="cline-any cline-yes">108x</span>
|
|
381
387
|
<span class="cline-any cline-neutral"> </span>
|
|
382
|
-
<span class="cline-any cline-yes">
|
|
383
|
-
<span class="cline-any cline-yes">
|
|
384
|
-
<span class="cline-any cline-yes">
|
|
388
|
+
<span class="cline-any cline-yes">189x</span>
|
|
389
|
+
<span class="cline-any cline-yes">189x</span>
|
|
390
|
+
<span class="cline-any cline-yes">189x</span>
|
|
385
391
|
<span class="cline-any cline-neutral"> </span>
|
|
386
392
|
<span class="cline-any cline-neutral"> </span>
|
|
387
393
|
<span class="cline-any cline-neutral"> </span>
|
|
388
394
|
<span class="cline-any cline-neutral"> </span>
|
|
389
|
-
<span class="cline-any cline-yes">
|
|
395
|
+
<span class="cline-any cline-yes">148x</span>
|
|
390
396
|
<span class="cline-any cline-neutral"> </span>
|
|
391
397
|
<span class="cline-any cline-neutral"> </span>
|
|
392
398
|
<span class="cline-any cline-no"> </span>
|
|
@@ -416,9 +422,9 @@
|
|
|
416
422
|
<span class="cline-any cline-neutral"> </span>
|
|
417
423
|
<span class="cline-any cline-neutral"> </span>
|
|
418
424
|
<span class="cline-any cline-yes">41x</span>
|
|
419
|
-
<span class="cline-any cline-yes">
|
|
420
|
-
<span class="cline-any cline-yes">
|
|
421
|
-
<span class="cline-any cline-yes">
|
|
425
|
+
<span class="cline-any cline-yes">112x</span>
|
|
426
|
+
<span class="cline-any cline-yes">112x</span>
|
|
427
|
+
<span class="cline-any cline-yes">82x</span>
|
|
422
428
|
<span class="cline-any cline-neutral"> </span>
|
|
423
429
|
<span class="cline-any cline-neutral"> </span>
|
|
424
430
|
<span class="cline-any cline-yes">30x</span>
|
|
@@ -642,15 +648,15 @@ exports.attachFullLinkedDocs = async (table, rows) => {
|
|
|
642
648
|
const linkedTables = []
|
|
643
649
|
for (let row of rows) {
|
|
644
650
|
for (let link of links.filter(link => link.thisId === row._id)) {
|
|
645
|
-
if (row[link.fieldName] == null) {
|
|
651
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (row[link.fieldName] == null) {
|
|
646
652
|
row[link.fieldName] = []
|
|
647
653
|
}
|
|
648
654
|
const linkedRow = linked.find(row => row._id === link.id)
|
|
649
|
-
if (linkedRow) {
|
|
655
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (linkedRow) {
|
|
650
656
|
const linkedTableId =
|
|
651
657
|
linkedRow.tableId || <span class="branch-1 cbranch-no" title="branch not covered" >getRelatedTableForField(table, link.fieldName)</span>
|
|
652
658
|
const linkedTable = await getLinkedTable(linkedTableId, linkedTables)
|
|
653
|
-
if (linkedTable) {
|
|
659
|
+
<span class="missing-if-branch" title="else path not taken" >E</span>if (linkedTable) {
|
|
654
660
|
row[link.fieldName].push(processFormulas(linkedTable, linkedRow))
|
|
655
661
|
}
|
|
656
662
|
}
|
|
@@ -696,10 +702,9 @@ exports.squashLinksToPrimaryDisplay = async (table, enriched) => {
|
|
|
696
702
|
</div><!-- /wrapper -->
|
|
697
703
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
698
704
|
Code coverage generated by
|
|
699
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
700
|
-
at
|
|
705
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener noreferrer">istanbul</a>
|
|
706
|
+
at Wed Apr 27 2022 09:28:42 GMT+0000 (Coordinated Universal Time)
|
|
701
707
|
</div>
|
|
702
|
-
</div>
|
|
703
708
|
<script src="../../prettify.js"></script>
|
|
704
709
|
<script>
|
|
705
710
|
window.onload = function () {
|