Skip to content

Commit 42f7535

Browse files
refactor: location (#3289)
1 parent 67f96d3 commit 42f7535

File tree

18 files changed

+623
-1095
lines changed

18 files changed

+623
-1095
lines changed

.env

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,3 +92,6 @@ CLICKHOUSE_USER=default
9292
CLICKHOUSE_PASSWORD=changeme
9393
RESUME_BUCKET_NAME=bucket-name
9494
EMPLOYMENT_AGREEMENT_BUCKET_NAME=other-bucket-name
95+
96+
MAPBOX_GEOCODING_URL=https://api.mapbox.com/search/geocode/v6/forward
97+
MAPBOX_ACCESS_TOKEN=topsecret

.infra/Pulumi.prod.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ config:
66
secure: AAABAGND38ZY4hSe1YR2RTh/JyY3g3pBsK8Ovm4FCs6Et4ihLMPkAvZUKDy+T6N1Wg1OEmO3q9JMeB3dNGZ3ptLDTEDZ8bpAh7FBBMuZGxeC81i1XwzCNAMPzKwm2m3ZJkSSWRdxkEp8m+0qfpiPCscYGpeKCmRJUZqDHuMUl1S+kMAK4CQn+xdCtDLhI+9EqujfNyyGXaPzw1UkEMAF7RZs5GSWvoTOWIwN5N4TC7Uwi3dZq2COQcGJ2RdjCFDtbq3uDoq7kLsgQsCxG02hJnjzxlbRzpm+CVq6Alkj1v0FgpzY7kdX2xpBnjNz9Rd7ILOYni6PMcvF+uM1FJRnUxcZMExM8sS7Lm14CPdi/IjTRXvu7ie+FNmRbotEypb2fBLHLxrcrn4EtB/6ihTFfg2mCOMY3I74laKihU3hjpUR3YpVS3Eio+cEYB5SBdxIexA2Ff7TIyJe6dY3VwoeB9Ln3VqU4KtWEvOIKArZK+lR4GL1qmlEFshB8OvjHoLBnBWoMKXSXkyO9kTaQUEPRjyrxKgLLkRVHsp04aTW95VZQRkykUvzGGAFkUwiTKeC4/SPPkOpbl41dHfQL2lWGvMlfuwoi0lDwM1vbM/XEmASjVghvReZYE9/qnY09VnI1E8=
77
api:clickhouseSync:
88
keys:
9-
slot.name: "clickhouse_sync"
9+
slot.name: 'clickhouse_sync'
1010
vars:
1111
clickhouse_database:
1212
secure: AAABAFXhGil+ZGIYbGEIU71Q2eQslzMjGAkeeW0LumXI3GA=
@@ -22,7 +22,7 @@ config:
2222
secure: AAABAHdC/62trKcIoEduX+v3nBKj/KJ1XDNPRwwEwqcq33TLhqLrVq9oJfFsq/aX
2323
api:debeziumDbUser:
2424
secure: AAABAO0E/09gCux4t78RzYaMt9h+ZVFXNo6KS9mwLuKX11/HvmX7sg==
25-
api:enablePersonalizedDigest: "true"
25+
api:enablePersonalizedDigest: 'true'
2626
api:env:
2727
accessSecret:
2828
secure: AAABALdzzBMEk2sKYDjFrWsbsdYJDOvfDfmnOmaj6lvRkds8E6SYw1RNgQ/hpCky9W8BeJXFzu2b0W6jD30KkA==
@@ -183,6 +183,9 @@ config:
183183
secure: AAABANouDkXZrXKlBhPnSmgjwQS/mb+qPaFmD/vpxeEkdCx4pfnsjYOsdOQFvsH6KcXb7BNGnnEtpEBUaeb3CNNMUbc2/JP80iNsnJSrF4hx5zBEYEPlMi0rmTXAJ4nc087FooqlV031idBJLxyNLDU=
184184
snotraOrigin:
185185
secure: AAABAGav+Zu5sB3oCBC6iBCp1igmACgiKlwl0YkDsLawDBUGaPKulWIr8v/hUnwuTsLgaVS3A1azmw50v+PRKhJPblETkKZpqNB4JCnrQ92k
186+
mapboxAccessToken:
187+
secure: AAABAGQ/EX6kte5JXzyFrBmYlob0zx+IyG7RIbbcpySfexg2C6aqhoAJQ+aaXCw9UaVXMbMlncgnVvCWnhmR361glY6aDeNfUFXEBYARRJRnZJjXWPXw6KJEWinueHakjMeTpTelCQ2bCBXS0TzEtEE/n0HDqynumezR7A==
188+
mapboxGeocodingUrl: https://api.mapbox.com/search/geocode/v6/forward
186189
api:k8s:
187190
host: subs.daily.dev
188191
namespace: daily

__tests__/boot.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ import {
7676
} from '../src/common';
7777
import { saveReturnAlerts } from '../src/schema/alerts';
7878
import { CoresRole, UserVote } from '../src/types';
79-
import { BootAlerts, excludeProperties, FunnelBoot } from '../src/routes/boot';
79+
import { BootAlerts, FunnelBoot } from '../src/routes/boot';
80+
import { excludeProperties } from '../src/routes/boot';
8081
import { SubscriptionCycles } from '../src/paddle';
8182
import * as njordCommon from '../src/common/njord';
8283
import { Credits, EntityType } from '@dailydotdev/schema';
@@ -424,6 +425,7 @@ describe('logged in boot', () => {
424425
iso2: 'US',
425426
iso3: 'USA',
426427
timezone: 'America/Los_Angeles',
428+
externalId: '123',
427429
ranking: 1,
428430
});
429431

@@ -444,6 +446,7 @@ describe('logged in boot', () => {
444446
city: 'San Francisco',
445447
subdivision: 'California',
446448
country: 'United States',
449+
externalId: '123',
447450
});
448451
});
449452

0 commit comments

Comments
 (0)