fork of https://github.com/sourcegraph/zoekt
0

Configure Feed

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

api: add HasSymbols to Repository

We will use this to decide if an index contains symbols or not. This is needed
since symbol indexing can be present for none or some of the shards. For none
if symbol indexing is disabled (via a feature flag). Partially after a user
has switched on the feature flag and we are still indexing.

Change-Id: Id1c948367d0cf9fae988a94d06936faf9d911add

+7
+6
api.go
··· 217 217 // IndexOptions is a hash of the options used to create the index for the 218 218 // repo. 219 219 IndexOptions string 220 + 221 + // HasSymbols is true if this repository has indexed ctags 222 + // output. Sourcegraph specific: This field is more appropriate for 223 + // IndexMetadata. However, we store it here since the Sourcegraph frontend 224 + // can read this structure but not IndexMetadata. 225 + HasSymbols bool 220 226 } 221 227 222 228 // IndexMetadata holds metadata stored in the index file. It contains
+1
write.go
··· 156 156 }, &toc.metaData, w); err != nil { 157 157 return err 158 158 } 159 + b.repo.HasSymbols = len(b.runeDocSections) > 0 159 160 if err := b.writeJSON(b.repo, &toc.repoMetaData, w); err != nil { 160 161 return err 161 162 }