Skip to content
This repository has been archived by the owner on Oct 4, 2023. It is now read-only.

Remove usages of CN /health_check/verbose #3769

Merged
merged 3 commits into from
Jul 20, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 14 additions & 19 deletions packages/common/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"url": "https://github.com/AudiusProject/audius-client/issues"
},
"dependencies": {
"@audius/sdk": "3.0.3-beta.76",
"@audius/sdk": "3.0.3-beta.84",
"@fingerprintjs/fingerprintjs-pro": "3.5.6",
"@metaplex-foundation/mpl-token-metadata": "2.5.2",
"@optimizely/optimizely-sdk": "4.0.0",
Expand Down
8 changes: 0 additions & 8 deletions packages/common/src/models/Analytics.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1110,13 +1110,6 @@ type DiscoveryProviderSelection = {
reason: string
}

type CreatorNodeSelection = {
eventName: Name.CREATOR_NODE_SELECTION
selectedAs: 'primary' | 'secondary'
endpoint: string
reason: string
}

type StemCompleteUpload = {
eventName: Name.STEM_COMPLETE_UPLOAD
id: number
Expand Down Expand Up @@ -1777,7 +1770,6 @@ export type AllTrackingEvents =
| BrowserNotificationSetting
| TweetFirstUpload
| DiscoveryProviderSelection
| CreatorNodeSelection
| WebVitals
| Performance
| StemCompleteUpload
Expand Down
42 changes: 0 additions & 42 deletions packages/common/src/services/audius-backend/AudiusBackend.ts
Original file line number Diff line number Diff line change
Expand Up @@ -571,31 +571,6 @@ export const audiusBackend = ({
)
}

function creatorNodeSelectionCallback(
primary: string,
secondaries: string[],
reason: string
) {
recordAnalytics({
eventName: Name.CREATOR_NODE_SELECTION,
properties: {
endpoint: primary,
selectedAs: 'primary',
reason
}
})
secondaries.forEach((secondary) => {
recordAnalytics({
eventName: Name.CREATOR_NODE_SELECTION,
properties: {
endpoint: secondary,
selectedAs: 'secondary',
reason
}
})
})
}

async function sanityChecks(audiusLibs: any) {
try {
const sanityChecks = new SanityChecks(audiusLibs)
Expand Down Expand Up @@ -813,20 +788,6 @@ export const audiusBackend = ({
return audiusLibs.ServiceProvider.listCreatorNodes()
}

async function autoSelectCreatorNodes() {
return audiusLibs.ServiceProvider.autoSelectCreatorNodes({})
}

async function getSelectableCreatorNodes() {
const contentNodeBlockList = getBlockList(
StringKeys.CONTENT_NODE_BLOCK_LIST
)
return audiusLibs.ServiceProvider.getSelectableCreatorNodes(
/* whitelist */ null,
/* blacklist */ contentNodeBlockList
)
}

async function getAccount() {
await waitForLibsInit()
try {
Expand Down Expand Up @@ -3204,12 +3165,10 @@ export const audiusBackend = ({
associateInstagramAccount,
associateTwitterAccount,
associateTikTokAccount,
autoSelectCreatorNodes,
changePassword,
clearNotificationBadges,
confirmCredentials,
createPlaylist,
creatorNodeSelectionCallback,
currentDiscoveryProvider,
dangerouslySetPlaylistOrder,
deleteAlbum,
Expand Down Expand Up @@ -3252,7 +3211,6 @@ export const audiusBackend = ({
getRandomFeePayer,
getSafariBrowserPushEnabled,
getSavedTracks,
getSelectableCreatorNodes,
getSignature,
getTrackImages,
getUserEmail,
Expand Down
6 changes: 3 additions & 3 deletions packages/embed/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/embed/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"webpack-cli": "4.5.0"
},
"dependencies": {
"@audius/sdk": "3.0.3-beta.76",
"@audius/sdk": "3.0.3-beta.84",
"@audius/stems": "1.5.32",
"amplitude-js": "8.11.1",
"axios": "0.19.2",
Expand Down
18 changes: 9 additions & 9 deletions packages/mobile/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/mobile/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"dependencies": {
"@amplitude/react-native": "2.6.0",
"@audius/common": "1.5.32",
"@audius/sdk": "3.0.3-beta.76",
"@audius/sdk": "3.0.3-beta.84",
"@fingerprintjs/fingerprintjs-pro-react-native": "2.0.0-test.2",
"@gorhom/portal": "1.0.9",
"@hcaptcha/react-native-hcaptcha": "1.3.4",
Expand Down
12 changes: 6 additions & 6 deletions packages/web/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@
},
"dependencies": {
"@audius/common": "1.5.32",
"@audius/sdk": "3.0.3-beta.76",
"@audius/sdk": "3.0.3-beta.84",
"@audius/stems": "1.5.32",
"@coinbase/cbpay-js": "1.2.0",
"@craco/craco": "7.0.0-alpha.3",
Expand Down
1 change: 0 additions & 1 deletion packages/web/src/utils/route/userRouteParser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ jest.mock('@audius/common', () => {

AudiusBackend: {
recordTrackListen: jest.fn(),
getSelectableCreatorNodes: jest.fn(),
submitAndEvaluateAttestations: jest.fn()
}
}
Expand Down