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

689 lines
18 KiB
Plaintext

// Jest Snapshot v1, https://goo.gl/fbAQLP
exports[`team management addMember only allows admins to add member 1`] = `
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
}
`;
exports[`team management listMembers allows all members to list all members 1`] = `
Array [
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(2)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(3)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(4)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(1)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": true,
"lists": 0,
"starterPacks": 0,
},
"description": "The pretend version of mod.bsky.app",
"did": "user(1)",
"displayName": "Dev-env Moderation",
"followersCount": 0,
"followsCount": 0,
"handle": "mod-authority.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 0,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(5)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(6)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(5)",
"displayName": "ali",
"followersCount": 2,
"followsCount": 3,
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-a",
},
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-b",
},
],
"postsCount": 4,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(7)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(8)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(7)",
"displayName": "bobby",
"followersCount": 2,
"followsCount": 2,
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 3,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(9)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"did": "user(9)",
"followersCount": 2,
"followsCount": 1,
"handle": "carol.test",
"labels": Array [],
"postsCount": 2,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
]
`;
exports[`team management listMembers allows all members to list all members 2`] = `
Array [
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(2)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(3)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(4)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(1)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": true,
"lists": 0,
"starterPacks": 0,
},
"description": "The pretend version of mod.bsky.app",
"did": "user(1)",
"displayName": "Dev-env Moderation",
"followersCount": 0,
"followsCount": 0,
"handle": "mod-authority.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 0,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(5)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(6)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(5)",
"displayName": "ali",
"followersCount": 2,
"followsCount": 3,
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-a",
},
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-b",
},
],
"postsCount": 4,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(7)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(8)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(7)",
"displayName": "bobby",
"followersCount": 2,
"followsCount": 2,
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 3,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(9)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"did": "user(9)",
"followersCount": 2,
"followsCount": 1,
"handle": "carol.test",
"labels": Array [],
"postsCount": 2,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
]
`;
exports[`team management listMembers allows all members to list all members 3`] = `
Array [
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(2)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(3)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(4)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(1)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": true,
"lists": 0,
"starterPacks": 0,
},
"description": "The pretend version of mod.bsky.app",
"did": "user(1)",
"displayName": "Dev-env Moderation",
"followersCount": 0,
"followsCount": 0,
"handle": "mod-authority.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 0,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(5)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(6)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(5)",
"displayName": "ali",
"followersCount": 2,
"followsCount": 3,
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-a",
},
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-b",
},
],
"postsCount": 4,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(7)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(8)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(7)",
"displayName": "bobby",
"followersCount": 2,
"followsCount": 2,
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 3,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(9)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"did": "user(9)",
"followersCount": 2,
"followsCount": 1,
"handle": "carol.test",
"labels": Array [],
"postsCount": 2,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
]
`;
exports[`team management listMembers allows all members to list all members 4`] = `
Array [
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(0)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(2)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(3)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(4)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(1)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": true,
"lists": 0,
"starterPacks": 0,
},
"description": "The pretend version of mod.bsky.app",
"did": "user(1)",
"displayName": "Dev-env Moderation",
"followersCount": 0,
"followsCount": 0,
"handle": "mod-authority.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 0,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(5)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(6)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "its me!",
"did": "user(5)",
"displayName": "ali",
"followersCount": 2,
"followsCount": 3,
"handle": "alice.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-a",
},
Object {
"cid": "cids(1)",
"cts": "1970-01-01T00:00:00.000Z",
"src": "user(5)",
"uri": "record(0)",
"val": "self-label-b",
},
],
"postsCount": 4,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleAdmin",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(7)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"avatar": "https://bsky.public.url/img/avatar/plain/user(8)/cids(0)@jpeg",
"createdAt": "1970-01-01T00:00:00.000Z",
"description": "hi im bob label_me",
"did": "user(7)",
"displayName": "bobby",
"followersCount": 2,
"followsCount": 2,
"handle": "bob.test",
"indexedAt": "1970-01-01T00:00:00.000Z",
"labels": Array [],
"postsCount": 3,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleModerator",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
Object {
"createdAt": "1970-01-01T00:00:00.000Z",
"did": "user(9)",
"disabled": false,
"lastUpdatedBy": "user(1)",
"profile": Object {
"associated": Object {
"feedgens": 0,
"labeler": false,
"lists": 0,
"starterPacks": 0,
},
"did": "user(9)",
"followersCount": 2,
"followsCount": 1,
"handle": "carol.test",
"labels": Array [],
"postsCount": 2,
"viewer": Object {
"blockedBy": false,
"muted": false,
},
},
"role": "tools.ozone.team.defs#roleTriage",
"updatedAt": "1970-01-01T00:00:00.000Z",
},
]
`;