an app.bsky.* indexer

Disable ActorProfile for now

Changed files
+22 -22
cmd
monarch
models
+4 -4
cmd/monarch/handlers.go
···
switch uri.Collection() {
case syntax.NSID("app.bsky.actor.profile"):
-
profile := models.NewActorProfile(uri, *rec)
-
if err := hs.store.Where(models.ActorProfile{ID: string(uri)}).Assign(profile).FirstOrCreate(&models.ActorProfile{}).Error; err != nil {
-
return fmt.Errorf("error upserting actor profile: %w", err)
-
}
+
// profile := models.NewActorProfile(uri, *rec)
+
// if err := hs.store.Where(models.ActorProfile{ID: string(uri)}).Assign(profile).FirstOrCreate(&models.ActorProfile{}).Error; err != nil {
+
// return fmt.Errorf("error upserting actor profile: %w", err)
+
// }
case syntax.NSID("app.bsky.actor.status"):
status := models.NewActorStatus(uri, *rec)
+18 -18
models/models.go
···
package models
-
// ActorProfile
-
// ActorStatus
-
// FeedGenerator
-
// FeedLike
-
// FeedPost
-
// FeedPostgate
-
// FeedRepost
-
// FeedThreadgate
-
// GraphBlock
-
// GraphFollow
-
// GraphList
-
// GraphListblock
-
// GraphListitem
-
// GraphStarterpack
-
// GraphVerification
-
// LabelerService
-
// ActorDeclaration
-
// LexiconSchema
+
// - [X] ActorProfile *
+
// - [X] ActorStatus *
+
// - [X] FeedGenerator *
+
// - [ ] FeedLike
+
// - [ ] FeedPost
+
// - [ ] FeedPostgate
+
// - [ ] FeedRepost
+
// - [ ] FeedThreadgate
+
// - [ ] GraphBlock *
+
// - [ ] GraphFollow
+
// - [ ] GraphList *
+
// - [ ] GraphListblock *
+
// - [ ] GraphListitem *
+
// - [ ] GraphStarterpack *
+
// - [ ] GraphVerification *
+
// - [ ] LabelerService *
+
// - [ ] ActorDeclaration
+
// - [ ] LexiconSchema *