-
Notifications
You must be signed in to change notification settings - Fork 554
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
Custom feeds #1001
Custom feeds #1001
Conversation
Here’s a nicer emoji for WIP: 🚧 |
* Fix the public url used by dev-env * move publicUrl location --------- Co-authored-by: dholms <dtholmgren@gmail.com>
* implement some starter bsky algos * add team dids * tidy * add quotepost check to whats hot classic * tests * carve out feedgen section of pds * apply limits * add describeFeedGenerator route * Whats hot new (#1060) * map out new whats hot * only available in postgres * Fix dev env public url (#1058) * Fix the public url used by dev-env * move publicUrl location --------- Co-authored-by: dholms <dtholmgren@gmail.com> * add defs for feed gen prefs & decrease displayName length * build branch * updated how saved feeds works * build algos branch * remove relative imports to @atproto/api * update hot classic name * rm build --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com>
// T = time since submission (in hours) | ||
// G = Gravity, defaults to 1.8 in news.arc | ||
|
||
const computeScore = sql<number>`${ref( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok can i just say i love this it's so obvious in hindsight and yet. i am so excited about this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hahaha yes 😁
.whereNotExists(accountService.mutedQb(requester, [ref('post.creator')])) | ||
.whereNotExists(graphService.blockQb(requester, [ref('post.creator')])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May just be missing a fine detail on this— but is the mute and block filtering necessary in our custom algos? I ask because I expected the user's PDS to do the work to filter-out bad results in getFeed
(or at least the private mutes).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not necessary, but you could get smaller pages without this
basically blocked/muted posts will count against the pagination
feed gens should probably be encouraged to take blocks into account (tho obvs not required)
import { AlgoHandler, AlgoResponse } from './types' | ||
import { FeedKeyset } from '../app-view/api/app/bsky/util/feed' | ||
|
||
const handler: AlgoHandler = async ( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's a TODO on this one to sort out an issue it has when running with sqlite.
* actor type in profiles * skeleton lex * more schemas * first pass at feed composition * cleanup services * more tidying * fix up tests * bookmarking schemas * make feeds records instead of actors * some cleanup * fleshing out feeds as records * wip * working into cfg & dev-env * fix appview test util * bookmarking + views * tidy * add displayName * db migration * wip test * blob processing * first test working! * Sync-up snapshots * wip * Fix pds ctx type * Sync lexicons on pds and api * wip * fully refactor * Prep for open union in reply data in bsky appview, sync-up snapshots * msgs & ports * Make pds did cache sqlite-friendly * Start scaffolding more feedgen tests * revamp appview tests * revamp pds tests * merge in dev env utils * ensure plc close * add feed gen to dev-env * second feed gen * named feeds in mock * fix issue with dev-env pds appview * update bsky snaps * Flesh-out some feed gen tests * Fix feed gen reply test * Test feed bookmarking * update skeleton defs * merge * Sync-up pds with updated feed skeleton contract * Fix feed bookmark viewer state * add feed embeds * Test inaccurate feed gen repost * Tighten some error behaviors around feed gens * generator view in record embed * test * bookmarked/subscribed -> saved * updated snaps * name & descript on alices feed * add like counts * proposed lex * tweak * fetch feed generator details * add describeFeedGen to dev-env * adds tests for getFeedGenerator * Update lexicons/app/bsky/feed/getFeedGenerator.json Co-authored-by: devin ivy <devinivy@gmail.com> * update describe * add cid to feed gen view * add alice feed gen avatar * generator displayName required * update snaps * Fix dev env public url (bluesky-social#1058) * Fix the public url used by dev-env * move publicUrl location --------- Co-authored-by: dholms <dtholmgren@gmail.com> * add defs for feed gen prefs & decrease displayName length * build branch * updated how saved feeds works * cleanup lex * mount route * Starter bsky algos (bluesky-social#1046) * implement some starter bsky algos * add team dids * tidy * add quotepost check to whats hot classic * tests * carve out feedgen section of pds * apply limits * add describeFeedGenerator route * Whats hot new (bluesky-social#1060) * map out new whats hot * only available in postgres * Fix dev env public url (bluesky-social#1058) * Fix the public url used by dev-env * move publicUrl location --------- Co-authored-by: dholms <dtholmgren@gmail.com> * add defs for feed gen prefs & decrease displayName length * build branch * updated how saved feeds works * build algos branch * remove relative imports to @atproto/api * update hot classic name * rm build --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * v0.3.6 * v0.3.7 * v0.1.10 * update name of skyline * build branch * aws build * getFeedGenerators test * For now only use new replyRef union for custom feeds, for compat * Don't use replyRef union on new feeds yet --------- Co-authored-by: Devin Ivy <devinivy@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
* actor type in profiles * skeleton lex * more schemas * first pass at feed composition * cleanup services * more tidying * fix up tests * bookmarking schemas * make feeds records instead of actors * some cleanup * fleshing out feeds as records * wip * working into cfg & dev-env * fix appview test util * bookmarking + views * tidy * add displayName * db migration * wip test * blob processing * first test working! * Sync-up snapshots * wip * Fix pds ctx type * Sync lexicons on pds and api * wip * fully refactor * Prep for open union in reply data in bsky appview, sync-up snapshots * msgs & ports * Make pds did cache sqlite-friendly * Start scaffolding more feedgen tests * revamp appview tests * revamp pds tests * merge in dev env utils * ensure plc close * add feed gen to dev-env * second feed gen * named feeds in mock * fix issue with dev-env pds appview * update bsky snaps * Flesh-out some feed gen tests * Fix feed gen reply test * Test feed bookmarking * update skeleton defs * merge * Sync-up pds with updated feed skeleton contract * Fix feed bookmark viewer state * add feed embeds * Test inaccurate feed gen repost * Tighten some error behaviors around feed gens * generator view in record embed * test * bookmarked/subscribed -> saved * updated snaps * name & descript on alices feed * add like counts * proposed lex * tweak * fetch feed generator details * add describeFeedGen to dev-env * adds tests for getFeedGenerator * Update lexicons/app/bsky/feed/getFeedGenerator.json Co-authored-by: devin ivy <devinivy@gmail.com> * update describe * add cid to feed gen view * add alice feed gen avatar * generator displayName required * update snaps * Fix dev env public url (bluesky-social#1058) * Fix the public url used by dev-env * move publicUrl location --------- Co-authored-by: dholms <dtholmgren@gmail.com> * add defs for feed gen prefs & decrease displayName length * build branch * updated how saved feeds works * cleanup lex * mount route * Starter bsky algos (bluesky-social#1046) * implement some starter bsky algos * add team dids * tidy * add quotepost check to whats hot classic * tests * carve out feedgen section of pds * apply limits * add describeFeedGenerator route * Whats hot new (bluesky-social#1060) * map out new whats hot * only available in postgres * Fix dev env public url (bluesky-social#1058) * Fix the public url used by dev-env * move publicUrl location --------- Co-authored-by: dholms <dtholmgren@gmail.com> * add defs for feed gen prefs & decrease displayName length * build branch * updated how saved feeds works * build algos branch * remove relative imports to @atproto/api * update hot classic name * rm build --------- Co-authored-by: Paul Frazee <pfrazee@gmail.com> * v0.3.6 * v0.3.7 * v0.1.10 * update name of skyline * build branch * aws build * getFeedGenerators test * For now only use new replyRef union for custom feeds, for compat * Don't use replyRef union on new feeds yet --------- Co-authored-by: Devin Ivy <devinivy@gmail.com> Co-authored-by: Paul Frazee <pfrazee@gmail.com>
No description provided.