implement reposts by user handle #12
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes
FullUsersKeyed,FullTracksKeyed,FullPlaylistsKeyed. Since we often need those things keyed by ID.app.resolveUserHandleToIdfunction. Since we have several routes that support both handle and ID, they can be the same and the handle variant just needs to resolve ID first. We can add an in memory cache for handle resolutions (we do this in mediorum)Feels
This PR code is all in one func instead of two... but compare it to this very similar elemental code:
The typescript version also does date based cursor pagination... and postgres.js makes it easy enough to do arbitrary sort stuff, since it's just tagged templates at end of day.
Seems pretty slick by comparison... Not saying we go back... but ya know.