devin ivy af7d3912a3
Starter packs (#2553)
* lexicon: initial starter pack record lexicons

* lexicon: first pass on views for starter packs

* lexicon: add starter pack query endpoints, misc fixes

* lexicon: add starter pack related fields to profile views

* lexicon: codegen

* api prerelease

* bsky: protos for starter packs

* appview: implement starter pack endpoints in dataplane, protos update

* appview: starter pack hydration and view, mock dataplane indexing

* appview: wire-up starter pack graph endpoints

* appview: test basic starter packs functionality, update dev-env

* fix snaps for profile createdAt

* appview: fix list item count for starter packs in dataplane

* fix ozone snaps, tidy

* appview: reorg list aggs for starter packs

* appview: starter pack lexicon and proto tweaks, move around aggregations

* appview: fix views and snaps

* api prerelease

* fix snaps

* appview: misc proto updates for starter packs, snaps

* appview: add starter pack counts to profile detail

* build

* api prerelease

* pds: starter pack slur detection

* lexicon: starter pack notifications and batch fetch

* appview: starter pack notification and batch fetch

* appview: add starterpack-joined notif to dataplane and test

* api prerelease

* ozone: fix snaps

* pds build

*  Proxy starterpack requests through ozone and include takedowns (#2594)

*  Proxy starterpack requests through ozone and include takedowns

* 🧹 Cleanup

*  Commit snapshots

*  Update snapshot

* lexicon: move starterpacks back to TIDs

* changeset

---------

Co-authored-by: Foysal Ahamed <foysal@blueskyweb.xyz>
2024-06-24 21:04:33 -04:00

629 lines
18 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`pds follow views fetches followers 1`] = `
Object {
"cursor": "0000000000000__bafycid",
"followers": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-eve",
"did": "user(0)",
"displayName": "display-eve",
"handle": "eve.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-dan",
"did": "user(2)",
"displayName": "display-dan",
"handle": "dan.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-bob",
"did": "user(4)",
"displayName": "display-bob",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(5)",
"following": "record(4)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(7)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-carol",
"did": "user(6)",
"displayName": "display-carol",
"handle": "carol.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(7)",
"following": "record(6)",
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(9)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(8)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
}
`;
exports[`pds follow views fetches followers 2`] = `
Object {
"cursor": "0000000000000__bafycid",
"followers": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-dan",
"did": "user(0)",
"displayName": "display-dan",
"handle": "dan.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(2)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-bob",
"did": "user(4)",
"displayName": "display-bob",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches followers 3`] = `
Object {
"cursor": "0000000000000__bafycid",
"followers": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-eve",
"did": "user(0)",
"displayName": "display-eve",
"handle": "eve.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-bob",
"did": "user(2)",
"displayName": "display-bob",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(4)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(7)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-carol",
"did": "user(6)",
"displayName": "display-carol",
"handle": "carol.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(5)",
"following": "record(4)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches followers 4`] = `
Object {
"cursor": "0000000000000__bafycid",
"followers": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(0)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-dan",
"did": "user(2)",
"displayName": "display-dan",
"handle": "dan.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches followers 5`] = `
Object {
"cursor": "0000000000000__bafycid",
"followers": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-dan",
"did": "user(0)",
"displayName": "display-dan",
"handle": "dan.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(2)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-eve",
"did": "user(4)",
"displayName": "display-eve",
"handle": "eve.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches follows 1`] = `
Object {
"cursor": "0000000000000__bafycid",
"follows": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-eve",
"did": "user(0)",
"displayName": "display-eve",
"handle": "eve.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-dan",
"did": "user(2)",
"displayName": "display-dan",
"handle": "dan.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-carol",
"did": "user(4)",
"displayName": "display-carol",
"handle": "carol.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(5)",
"following": "record(4)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(7)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-bob",
"did": "user(6)",
"displayName": "display-bob",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(7)",
"following": "record(6)",
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(9)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(8)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
}
`;
exports[`pds follow views fetches follows 2`] = `
Object {
"cursor": "0000000000000__bafycid",
"follows": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-carol",
"did": "user(0)",
"displayName": "display-carol",
"handle": "carol.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(2)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-bob",
"did": "user(4)",
"displayName": "display-bob",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches follows 3`] = `
Object {
"cursor": "0000000000000__bafycid",
"follows": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(0)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-carol",
"did": "user(2)",
"displayName": "display-carol",
"handle": "carol.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches follows 4`] = `
Object {
"cursor": "0000000000000__bafycid",
"follows": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-eve",
"did": "user(0)",
"displayName": "display-eve",
"handle": "eve.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-bob",
"did": "user(2)",
"displayName": "display-bob",
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(4)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(7)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-dan",
"did": "user(6)",
"displayName": "display-dan",
"handle": "dan.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(5)",
"following": "record(4)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches follows 5`] = `
Object {
"cursor": "0000000000000__bafycid",
"follows": Array [
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(1)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-carol",
"did": "user(0)",
"displayName": "display-carol",
"handle": "carol.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(1)",
"following": "record(0)",
"muted": false,
},
},
Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(3)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-alice",
"did": "user(2)",
"displayName": "display-alice",
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
],
"subject": Object {
"avatar": "https://bsky.public.url/img/avatar/plain/user(5)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "descript-eve",
"did": "user(4)",
"displayName": "display-eve",
"handle": "eve.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"viewer": Object {
"blockedBy": false,
"followedBy": "record(3)",
"following": "record(2)",
"muted": false,
},
},
}
`;
exports[`pds follow views fetches relationships between users 1`] = `
Object {
"actor": "user(0)",
"relationships": Array [
Object {
"$type": "app.bsky.graph.defs#relationship",
"did": "user(1)",
"followedBy": "record(1)",
"following": "record(0)",
},
Object {
"$type": "app.bsky.graph.defs#relationship",
"did": "user(0)",
},
Object {
"$type": "app.bsky.graph.defs#relationship",
"did": "user(2)",
"following": "record(2)",
},
],
}
`;