id: 1 unit: async function buildPayloadFor() file: grid-bridge-lambda/src/index.ts start line: 127 end line: 181 size: 54 LOC McCabe index: 6 number of parameters: 1 id: 2 unit: export async function migrateItemsAndLastItemSeenByUser() file: shared/database/local/runDatabaseMigration.ts start line: 53 end line: 109 size: 40 LOC McCabe index: 4 number of parameters: 3 id: 3 unit: export async function getDatabaseConnection() file: shared/database/databaseConnection.ts start line: 17 end line: 72 size: 39 LOC McCabe index: 5 number of parameters: 0 id: 4 unit: async function breakdownQuery() file: grid-bridge-lambda/src/index.ts start line: 81 end line: 125 size: 38 LOC McCabe index: 3 number of parameters: 1 id: 5 unit: export async function createDatabaseTunnel() file: shared/database/local/databaseTunnel.ts start line: 81 end line: 117 size: 31 LOC McCabe index: 3 number of parameters: 1 id: 6 unit: key: isGroup() file: client/src/itemInputBox.tsx start line: 273 end line: 301 size: 29 LOC McCabe index: 8 number of parameters: 1 id: 7 unit: responseMappingTemplate: resolverBugWorkaround() file: cdk/lib/stack.ts start line: 493 end line: 525 size: 28 LOC McCabe index: 1 number of parameters: 1 id: 8 unit: text: isGroup() file: client/src/itemInputBox.tsx start line: 276 end line: 301 size: 26 LOC McCabe index: 7 number of parameters: 1 id: 9 unit: await prompts() file: email-lambda/run.ts start line: 22 end line: 134 size: 24 LOC McCabe index: 1 number of parameters: 5 id: 10 unit: value: async() file: email-lambda/run.ts start line: 29 end line: 50 size: 22 LOC McCabe index: 2 number of parameters: 0 id: 11 unit: This step of the tour is currently not interactive() file: client/src/tour/tourStepMap.tsx start line: 200 end line: 220 size: 21 LOC McCabe index: 1 number of parameters: 1 id: 12 unit: value: async() file: email-lambda/run.ts start line: 54 end line: 73 size: 20 LOC McCabe index: 1 number of parameters: 0 id: 13 unit: value: async() file: email-lambda/run.ts start line: 112 end line: 131 size: 20 LOC McCabe index: 2 number of parameters: 0 id: 14 unit: export async function generateAppSyncConfig() file: bootstrapping-lambda/src/generateAppSyncConfig.ts start line: 9 end line: 33 size: 20 LOC McCabe index: 2 number of parameters: 2 id: 15 unit: await handler() file: notifications-lambda/run.ts start line: 27 end line: 45 size: 19 LOC McCabe index: 1 number of parameters: 9 id: 16 unit: export async function migrateUsers() file: shared/database/local/runDatabaseMigration.ts start line: 32 end line: 51 size: 19 LOC McCabe index: 3 number of parameters: 2 id: 17 unit: value: async() file: email-lambda/run.ts start line: 77 end line: 95 size: 19 LOC McCabe index: 1 number of parameters: 0 id: 18 unit: export function useTourStepRef() file: client/src/tour/tourState.tsx start line: 78 end line: 96 size: 17 LOC McCabe index: 2 number of parameters: 2 id: 19 unit: async function getDynamoRows() file: shared/database/local/runDatabaseMigration.ts start line: 13 end line: 30 size: 15 LOC McCabe index: 3 number of parameters: 1 id: 20 unit: await pinboardSecretPromiseGetter() file: users-refresher-lambda/src/index.ts start line: 90 end line: 105 size: 15 LOC McCabe index: 1 number of parameters: 1 id: 21 unit: dbProxyName: getDatabaseProxyName() file: cdk/lib/stack.ts start line: 138 end line: 154 size: 14 LOC McCabe index: 1 number of parameters: 1 id: 22 unit: export function useTourStepRef() file: client/src/tour/tourState.tsx start line: 82 end line: 96 size: 13 LOC McCabe index: 2 number of parameters: 2 id: 23 unit: ON CONFLICT() file: shared/database/local/runDatabaseMigration.ts start line: 81 end line: 92 size: 12 LOC McCabe index: 1 number of parameters: 1 id: 24 unit: throw Error() file: database-bridge-lambda/src/index.ts start line: 74 end line: 86 size: 11 LOC McCabe index: 2 number of parameters: 1 id: 25 unit: searchMentionableUsers() file: client/gql.ts start line: 136 end line: 146 size: 11 LOC McCabe index: 1 number of parameters: 1 id: 26 unit: sql: postgres() file: shared/database/databaseConnection.ts start line: 56 end line: 65 size: 10 LOC McCabe index: 2 number of parameters: 6 id: 27 unit: SELECT json_agg() file: database-bridge-lambda/src/sql/Item.ts start line: 28 end line: 37 size: 10 LOC McCabe index: 1 number of parameters: 3 id: 28 unit: getGridSearchSummary() file: client/gql.ts start line: 261 end line: 270 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 29 unit: This step of the tour is currently not interactive() file: client/src/tour/tourStepMap.tsx start line: 269 end line: 278 size: 10 LOC McCabe index: 1 number of parameters: 1 id: 30 unit: ON CONFLICT() file: shared/database/local/runDatabaseMigration.ts start line: 48 end line: 57 size: 9 LOC McCabe index: 1 number of parameters: 1 id: 31 unit: value: async() file: email-lambda/run.ts start line: 100 end line: 107 size: 8 LOC McCabe index: 1 number of parameters: 0 id: 32 unit: FunctionName: getDatabaseBridgeLambdaFunctionName() file: bootstrapping-lambda/src/reporting/reportingServiceClient.ts start line: 31 end line: 38 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 33 unit: getItemCounts() file: client/gql.ts start line: 48 end line: 55 size: 8 LOC McCabe index: 1 number of parameters: 1 id: 34 unit: SELECT json_agg() file: database-bridge-lambda/src/sql/User.ts start line: 23 end line: 29 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 35 unit: await sendEmail() file: email-lambda/src/index.ts start line: 103 end line: 109 size: 7 LOC McCabe index: 1 number of parameters: 3 id: 36 unit: src: url() file: client/fontNormaliser.ts start line: 90 end line: 96 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 37 unit: FunctionName: getWorkflowBridgeLambdaFunctionName() file: archiver-lambda/src/index.ts start line: 17 end line: 25 size: 7 LOC McCabe index: 2 number of parameters: 1 id: 38 unit: functionName: getEmailLambdaFunctionName() file: cdk/lib/stack.ts start line: 612 end line: 618 size: 7 LOC McCabe index: 1 number of parameters: 1 id: 39 unit: AND EXISTS() file: database-bridge-lambda/src/sql/Item.ts start line: 176 end line: 181 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 40 unit: SELECT json_agg() file: email-lambda/src/index.ts start line: 30 end line: 35 size: 6 LOC McCabe index: 1 number of parameters: 1 id: 41 unit: isConfirmingMode ? onClick() file: client/src/confirmableButton.tsx start line: 45 end line: 50 size: 6 LOC McCabe index: 4 number of parameters: 0 id: 42 unit: await waitUntilInstanceStatusOk() file: shared/database/local/getDatabaseJumpHost.ts start line: 59 end line: 63 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 43 unit: NOT EXISTS() file: database-bridge-lambda/src/sql/Item.ts start line: 165 end line: 169 size: 5 LOC McCabe index: 1 number of parameters: 0 id: 44 unit: FunctionName: getWorkflowBridgeLambdaFunctionName() file: email-lambda/src/index.ts start line: 69 end line: 73 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 45 unit: This step of the tour is currently not interactive() file: client/src/tour/tourStepMap.tsx start line: 227 end line: 231 size: 5 LOC McCabe index: 1 number of parameters: 1 id: 46 unit: SELECT json_agg() file: database-bridge-lambda/src/sql/Item.ts start line: 14 end line: 17 size: 4 LOC McCabe index: 1 number of parameters: 5 id: 47 unit: SELECT DATE_TRUNC() file: database-bridge-lambda/src/sql/Item.ts start line: 247 end line: 250 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 48 unit: OR EXISTS() file: database-bridge-lambda/src/sql/User.ts start line: 32 end line: 35 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 49 unit: createItem() file: client/gql.ts start line: 92 end line: 95 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 50 unit: editItem() file: client/gql.ts start line: 100 end line: 103 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 51 unit: deleteItem() file: client/gql.ts start line: 108 end line: 111 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 52 unit: getUsers() file: client/gql.ts start line: 152 end line: 155 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 53 unit: addManuallyOpenedPinboardIds() file: client/gql.ts start line: 177 end line: 180 size: 4 LOC McCabe index: 1 number of parameters: 2 id: 54 unit: removeManuallyOpenedPinboardIds() file: client/gql.ts start line: 185 end line: 188 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 55 unit: seenItem() file: client/gql.ts start line: 223 end line: 226 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 56 unit: functionName: getWorkflowBridgeLambdaFunctionName() file: cdk/lib/stack.ts start line: 206 end line: 209 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 57 unit: functionName: getDatabaseBridgeLambdaFunctionName() file: cdk/lib/stack.ts start line: 299 end line: 302 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 58 unit: functionName: getNotificationsLambdaFunctionName() file: cdk/lib/stack.ts start line: 391 end line: 394 size: 4 LOC McCabe index: 1 number of parameters: 1 id: 59 unit: await getPinboardPermissionOverrides() file: users-refresher-lambda/src/index.ts start line: 31 end line: 33 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 60 unit: subject: await pinboardSecretPromiseGetter() file: users-refresher-lambda/src/index.ts start line: 104 end line: 107 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 61 unit: process() file: users-refresher-lambda/fileTransformer.js start line: 4 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 4 id: 62 unit: getCacheKey() file: users-refresher-lambda/fileTransformer.js start line: 7 end line: 9 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 63 unit: script.onload = function() file: bootstrapping-lambda/src/loaderTemplate.ts start line: 12 end line: 14 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 64 unit: process() file: bootstrapping-lambda/fileTransformer.js start line: 4 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 4 id: 65 unit: getCacheKey() file: bootstrapping-lambda/fileTransformer.js start line: 7 end line: 9 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 66 unit: query MyQuery() file: client/gql.ts start line: 14 end line: 16 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 67 unit: query MyQuery() file: client/gql.ts start line: 19 end line: 21 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 68 unit: query MyQuery() file: client/gql.ts start line: 24 end line: 26 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 69 unit: query MyQuery() file: client/gql.ts start line: 29 end line: 31 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 70 unit: listItems() file: client/gql.ts start line: 85 end line: 87 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 71 unit: setWebPushSubscriptionForUser() file: client/gql.ts start line: 169 end line: 171 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 72 unit: onMyUserChanges() file: client/gql.ts start line: 194 end line: 196 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 73 unit: listLastItemSeenByUsers() file: client/gql.ts start line: 209 end line: 211 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 74 unit: claimItem() file: client/gql.ts start line: 242 end line: 244 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 75 unit: query AsGridPayload() file: client/gql.ts start line: 275 end line: 277 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 76 unit: visitTourStep() file: client/gql.ts start line: 282 end line: 284 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 77 unit: changeFeatureFlag() file: client/gql.ts start line: 290 end line: 292 size: 3 LOC McCabe index: 1 number of parameters: 2 id: 78 unit: onCompleted() file: client/src/grid/gridDynamicSearchDisplay.tsx start line: 39 end line: 41 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 79 unit: onError() file: client/src/scrollableItems.tsx start line: 133 end line: 135 size: 3 LOC McCabe index: 1 number of parameters: 1 id: 80 unit: clip: rect() file: client/src/panel.tsx start line: 240 end line: 242 size: 3 LOC McCabe index: 2 number of parameters: 4 id: 81 unit: process() file: client/fileTransformer.js start line: 4 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 4 id: 82 unit: getCacheKey() file: client/fileTransformer.js start line: 7 end line: 9 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 83 unit: process() file: cdk/fileTransformer.js start line: 4 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 4 id: 84 unit: getCacheKey() file: cdk/fileTransformer.js start line: 7 end line: 9 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 85 unit: process() file: fileTransformer.js start line: 4 end line: 6 size: 3 LOC McCabe index: 1 number of parameters: 4 id: 86 unit: getCacheKey() file: fileTransformer.js start line: 7 end line: 9 size: 3 LOC McCabe index: 1 number of parameters: 0 id: 87 unit: throw Error() file: notifications-lambda/run.ts start line: 22 end line: 23 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 88 unit: throw Error() file: shared/panDomainAuth.ts start line: 35 end line: 36 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 89 unit: throw Error() file: shared/database/local/databaseTunnel.ts start line: 34 end line: 35 size: 2 LOC McCabe index: 1 number of parameters: 0 id: 90 unit: FROM unnest() file: database-bridge-lambda/src/sql/User.ts start line: 34 end line: 35 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 91 unit: await pinboardConfigPromiseGetter() file: users-refresher-lambda/src/index.ts start line: 197 end line: 198 size: 2 LOC McCabe index: 2 number of parameters: 0 id: 92 unit: query MyQuery() file: client/gql.ts start line: 47 end line: 56 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 93 unit: query MyQuery() file: client/gql.ts start line: 84 end line: 88 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 94 unit: mutation SendMessage() file: client/gql.ts start line: 91 end line: 96 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 95 unit: mutation EditItem() file: client/gql.ts start line: 99 end line: 104 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 96 unit: mutation DeleteItem() file: client/gql.ts start line: 107 end line: 112 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 97 unit: query MyQuery() file: client/gql.ts start line: 151 end line: 156 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 98 unit: mutation SetWebPushSubscriptionForUser() file: client/gql.ts start line: 168 end line: 172 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 99 unit: mutation AddManuallyOpenedPinboardIds() file: client/gql.ts start line: 176 end line: 181 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 100 unit: mutation RemoveManuallyOpenedPinboardIds() file: client/gql.ts start line: 184 end line: 189 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 101 unit: mutation SeeItem() file: client/gql.ts start line: 222 end line: 227 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 102 unit: mutation ClaimItem() file: client/gql.ts start line: 241 end line: 245 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 103 unit: query MyQuery() file: client/gql.ts start line: 260 end line: 271 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 104 unit: mutation visitTourStep() file: client/gql.ts start line: 281 end line: 285 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 105 unit: mutation changeFeatureFlag() file: client/gql.ts start line: 289 end line: 293 size: 2 LOC McCabe index: 1 number of parameters: 2 id: 106 unit: transform: translate() file: client/src/fronts/suggestAlternateCrops.tsx start line: 194 end line: 195 size: 2 LOC McCabe index: 2 number of parameters: 0 id: 107 unit: query: gqlSearchMentionableUsers() file: client/src/itemInputBox.tsx start line: 172 end line: 173 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 108 unit: FROM unnest() file: archiver-lambda/src/index.ts start line: 50 end line: 51 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 109 unit: FROM unnest() file: archiver-lambda/src/index.ts start line: 82 end line: 83 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 110 unit: throw Error() file: archiver-lambda/src/index.ts start line: 92 end line: 93 size: 2 LOC McCabe index: 1 number of parameters: 1 id: 111 unit: ON CONFLICT() file: database-bridge-lambda/src/sql/LastItemSeenByUser.ts start line: 12 end line: 12 size: 1 LOC McCabe index: 1 number of parameters: 2 id: 112 unit: OR CONCAT() file: database-bridge-lambda/src/sql/User.ts start line: 16 end line: 16 size: 1 LOC McCabe index: 1 number of parameters: 3