Skip to content

[PE-6156] Deprecate fetch collections #12148

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
May 25, 2025

Conversation

dylanjeffers
Copy link
Contributor

Description

Deprecates fetch collections similar to tracks.

Comment on lines 14 to 28
export function* queryTrack(id: ID | null | undefined, forceRetrieve = false) {
if (!id) return null
const queryClient = yield* getContext('queryClient')
return queryClient.getQueryData(getTrackQueryKey(id))
const sdk = yield* getSDK()
const currentUserId = yield* select(getUserId)
const dispatch = yield* getContext('dispatch')

const queryData = yield* call([queryClient, queryClient.fetchQuery], {
queryKey: getTrackQueryKey(id),
queryFn: async () =>
getTrackQueryFn(id!, currentUserId, queryClient, sdk, dispatch),
staleTime: forceRetrieve ? 0 : undefined
})

return queryData as TQTrack | undefined
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this stuff already on main?

Comment on lines +77 to +78
export const resetCollection = (): ResetCollectionAction => ({
type: RESET_COLLECTION
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whats the context here?


const TRACKS_BATCH_LIMIT = 200

export function* retrieveTracksForCollections(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since we're moving this around can we rename it queryTracksForCollection

trackIds: allSavedTrackIds.filter((id) => id !== null)
})
const tracks = yield* call(
// @ts-ignore - Mobile for some reason fails to type-check this
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😞

Copy link

changeset-bot bot commented May 25, 2025

⚠️ No Changeset found

Latest commit: d8fd751

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@dylanjeffers dylanjeffers merged commit ed9afdd into main May 25, 2025
4 of 5 checks passed
@dylanjeffers dylanjeffers deleted the pe-6156-deprecate-fetch-collections branch May 25, 2025 22:49
audius-infra pushed a commit that referenced this pull request May 31, 2025
[388f90c] Rework remix lineup loading into redux (#12254) JD Francis
[86979ce] Fix verified badge on settings page color (#12252) Ray Jacobson
[c3ecd8a] [API-174] Add label account settings (#12240) Ray Jacobson
[e69212a] E2E test: Better fix for collection edit timeouts on confirmation dialog (#12249) Marcus Pasell
[dd84d89] Fix mobile fan remix contest winners selected notif (#12248) Reed
[8e95a8b] [QA-2121] Fix track upload notification not linking to track page (#12247) JD Francis
[15ba274] Small UI fixes for remix contests (#12246) Reed
[d1a056f] Fix remix submission page loading (#12237) Dylan Jeffers
[89c9e64] Fix listening history (#12236) JD Francis
[eea0f83] Hotfix 400 messages crash (#12232) JD Francis
[a9fa900] Fix crash in connectedWallets modal (#12211) Marcus Pasell
[ad9599e] [PE-6046, PE-6283] Remove account collections selectors (#12208) Dylan Jeffers
[11e9e57] [PE-6154] Migrate tip reactions to tanstack query (#12109) Dylan Jeffers
[86f0b54] [PE-6272] Fix signed-out avatar account border (#12198) Dylan Jeffers
[bcb3709] [PE-6222] Update overflow text colors (#12228) Dylan Jeffers
[9dadb38] [PE-6253] Remix contest winner reward (#12220) Reed
[5ee8340] [PE-6295] Fix popup positioning (#12230) Dylan Jeffers
[d7df850] Skip album test (#12219) Dylan Jeffers
[b1a0cdd] [PE-6297] Fix notification UI update (#12229) Dylan Jeffers
[aba4efe] [PE-6294] Fix wallet UI breakpoint (#12227) Dylan Jeffers
[d2a899e] [PE-6301] Fix player controls (#12226) Dylan Jeffers
[7a4656b] [PE-6269] Fix write reactivity in updateTrackData (#12225) Dylan Jeffers
[10d904e] Basic profile page vitest test (#12159) JD Francis
[8fdfaf1] Fix search explore jitters + more (#12221) Isaac Solo
[c5a1c1c] Dedupe ids in tan-query batch fetches (#12224) Dylan Jeffers
[1f70f0b] [PE-6221] Remix contest winners selected notification (#12214) Reed
[be4c315] [PE-6281] Make remix submission artwork fill container (#12218) Dylan Jeffers
[ae76724] [PE-6289] Disable pick winners when no submissions (#12217) Dylan Jeffers
[870220e] [PE-6280] Fix optimistic updates for remix winners (#12215) Dylan Jeffers
[7bc2e70] Update BuySellFlow to have optimistic updates and fix M2 QA stuff (#12177) Farid Salau
[4e54e52] Fix image profile size test (#12216) Isaac Solo
[428c598] Fix min width and carousel buttons on explore (#12212) Isaac Solo
[4b327e0] Fix some USDC balances not updating (#12210) Reed
[c8f7466] [PE-6275, PE-6276, PE-6279, PE-6282] Pick Winners Milestone QA 1 (#12201) KJ
[9461619] Web search/explore merge QA third pass (#12200) Isaac Solo
[23e9bc6] Fix query track gc time (#12203) Dylan Jeffers
[ed9afdd] [PE-6156] Deprecate fetch collections (#12148) Dylan Jeffers
[e827fe2] [PE-6180] Web withdraw crypto UI updates (#12186) Reed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants