A lexicon-driven AppView for ATProto. happyview.dev
backfill firehose jetstream atproto appview oauth lexicon
8
fork

Configure Feed

Select the types of activity you want to include in your feed.

test: fix the stats test

Trezy 7f7105ee 56a35a9e

+14
+14
tests/e2e_admin.rs
··· 397 397 let app = TestApp::new().await; 398 398 app.mock_admin_userinfo().await; 399 399 400 + // Seed a lexicon so the stats query can join against it 401 + sqlx::query( 402 + "INSERT INTO lexicons (id, lexicon_json) VALUES ($1, $2)", 403 + ) 404 + .bind("test.collection") 405 + .bind(serde_json::json!({ 406 + "lexicon": 1, 407 + "id": "test.collection", 408 + "defs": { "main": { "type": "record", "key": "tid", "record": { "type": "object", "properties": {} } } } 409 + })) 410 + .execute(&app.state.db) 411 + .await 412 + .unwrap(); 413 + 400 414 // Seed records directly 401 415 sqlx::query( 402 416 "INSERT INTO records (uri, did, collection, rkey, record, cid) VALUES ($1, $2, $3, $4, $5, $6)",