af7d3912a3
* 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>
169 lines
3.8 KiB
Plaintext
169 lines
3.8 KiB
Plaintext
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
|
|
exports[`views with thread gating applies gate after root post is deleted. 1`] = `undefined`;
|
|
|
|
exports[`views with thread gating applies gate for empty rules. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"allow": Array [],
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|
|
|
|
exports[`views with thread gating applies gate for following rule. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"allow": Array [
|
|
Object {
|
|
"$type": "app.bsky.feed.threadgate#followingRule",
|
|
},
|
|
],
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|
|
|
|
exports[`views with thread gating applies gate for list rule. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [
|
|
Object {
|
|
"cid": "cids(1)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"listItemCount": 1,
|
|
"name": "list a",
|
|
"purpose": "app.bsky.graph.defs#modlist",
|
|
"uri": "record(2)",
|
|
"viewer": Object {
|
|
"muted": false,
|
|
},
|
|
},
|
|
Object {
|
|
"cid": "cids(2)",
|
|
"indexedAt": "1970-01-01T00:00:00.000Z",
|
|
"labels": Array [],
|
|
"listItemCount": 1,
|
|
"name": "list b",
|
|
"purpose": "app.bsky.graph.defs#modlist",
|
|
"uri": "record(3)",
|
|
"viewer": Object {
|
|
"muted": false,
|
|
},
|
|
},
|
|
],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"allow": Array [
|
|
Object {
|
|
"$type": "app.bsky.feed.threadgate#listRule",
|
|
"list": "record(2)",
|
|
},
|
|
Object {
|
|
"$type": "app.bsky.feed.threadgate#listRule",
|
|
"list": "record(3)",
|
|
},
|
|
],
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|
|
|
|
exports[`views with thread gating applies gate for mention rule. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"allow": Array [
|
|
Object {
|
|
"$type": "app.bsky.feed.threadgate#mentionRule",
|
|
},
|
|
],
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|
|
|
|
exports[`views with thread gating applies gate for missing rules, takes no action. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|
|
|
|
exports[`views with thread gating applies gate for multiple rules. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"allow": Array [
|
|
Object {
|
|
"$type": "app.bsky.feed.threadgate#mentionRule",
|
|
},
|
|
Object {
|
|
"$type": "app.bsky.feed.threadgate#followingRule",
|
|
},
|
|
],
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|
|
|
|
exports[`views with thread gating applies gate for unknown list rule. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"allow": Array [
|
|
Object {
|
|
"$type": "app.bsky.feed.threadgate#listRule",
|
|
"list": "record(1)",
|
|
},
|
|
],
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|
|
|
|
exports[`views with thread gating does not apply gate to original poster. 1`] = `
|
|
Object {
|
|
"cid": "cids(0)",
|
|
"lists": Array [],
|
|
"record": Object {
|
|
"$type": "app.bsky.feed.threadgate",
|
|
"allow": Array [],
|
|
"createdAt": "1970-01-01T00:00:00.000Z",
|
|
"post": "record(1)",
|
|
},
|
|
"uri": "record(0)",
|
|
}
|
|
`;
|