this repo has no description
0
fork

Configure Feed

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

labeler: test with CIDs; update some TODO comments

+14 -17
+10 -10
labeler/admin.go
··· 14 14 // This is probably only a temporary method 15 15 func (s *Server) hydrateRepoView(ctx context.Context, did, indexedAt string) *comatproto.AdminDefs_RepoView { 16 16 return &comatproto.AdminDefs_RepoView{ 17 - // XXX(bnewbold): populate more, or more correctly, from some backend? 17 + // TODO(bnewbold): populate more, or more correctly, from some backend? 18 18 Did: did, 19 19 Email: nil, 20 - Handle: "XXX", 20 + Handle: "TODO", 21 21 IndexedAt: indexedAt, 22 22 Moderation: nil, 23 23 RelatedRecords: nil, ··· 27 27 // This is probably only a temporary method 28 28 func (s *Server) hydrateRecordView(ctx context.Context, did string, uri, cid *string, indexedAt string) *comatproto.AdminDefs_RecordView { 29 29 repoView := s.hydrateRepoView(ctx, did, indexedAt) 30 - // XXX(bnewbold): populate more, or more correctly, from some backend? 30 + // TODO(bnewbold): populate more, or more correctly, from some backend? 31 31 recordView := comatproto.AdminDefs_RecordView{ 32 32 BlobCids: []string{}, 33 33 IndexedAt: indexedAt, 34 34 Moderation: nil, 35 35 Repo: repoView, 36 - // XXX: replace with actual record 36 + // TODO: replace with actual record (from proxied backend) 37 37 Value: &lexutil.LexiconTypeDecoder{&appbsky.FeedPost{}}, 38 38 } 39 39 if uri != nil { ··· 140 140 for _, row := range cidRows { 141 141 subjectBlobViews = append(subjectBlobViews, &comatproto.AdminDefs_BlobView{ 142 142 Cid: row.Cid, 143 - /* XXX: all these other fields 144 - CreatedAt string 145 - Details *AdminDefs_BlobView_Details 146 - MimeType string 147 - Moderation *AdminDefs_Moderation 148 - Size int64 143 + /* TODO(bnewbold): all these other blob fields (from another backed) 144 + CreatedAt string 145 + Details *AdminDefs_BlobView_Details 146 + MimeType string 147 + Moderation *AdminDefs_Moderation 148 + Size int64 149 149 */ 150 150 }) 151 151 }
+4 -7
labeler/xrpc_test.go
··· 202 202 Cid: cid, 203 203 }, 204 204 }, 205 - // XXX: cid support 206 - /* 207 - SubjectBlobCids: []string{ 208 - "abc", 209 - "onetwothree", 210 - }, 211 - */ 205 + SubjectBlobCids: []string{ 206 + "abc", 207 + "onetwothree", 208 + }, 212 209 } 213 210 actionOut := testCreateAction(t, e, lm, &action) 214 211 actionId := actionOut.Id