Skip to content

Commit

Permalink
update to schema main
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronc committed Aug 28, 2024
1 parent b2c0fe2 commit c4f9251
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions collections/indexing.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (s Schema) ModuleCodec(opts IndexingOptions) (schema.ModuleCodec, error) {
retainDeletions[collName] = true
}

var objectTypes []schema.ObjectType
var types []schema.Type

Check failure on line 32 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / dependency-review

undefined: schema.Type

Check failure on line 32 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (00)

undefined: schema.Type

Check failure on line 32 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (03)

undefined: schema.Type

Check failure on line 32 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: schema.Type

Check failure on line 32 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (01)

undefined: schema.Type

Check failure on line 32 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (02)

undefined: schema.Type
for _, collName := range s.collectionsOrdered {
coll := s.collectionsByName[collName]

Expand All @@ -47,15 +47,18 @@ func (s Schema) ModuleCodec(opts IndexingOptions) (schema.ModuleCodec, error) {
cdc.objectType.RetainDeletions = true
}

objectTypes = append(objectTypes, cdc.objectType)
types = append(types, cdc.objectType)

decoder.collectionLookup.Set(string(coll.GetPrefix()), cdc)
}

modSchema, err := schema.NewModuleSchema(types...)

Check failure on line 55 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / dependency-review

undefined: schema.NewModuleSchema

Check failure on line 55 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (00)

undefined: schema.NewModuleSchema

Check failure on line 55 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (03)

undefined: schema.NewModuleSchema

Check failure on line 55 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / golangci-lint

undefined: schema.NewModuleSchema

Check failure on line 55 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (01)

undefined: schema.NewModuleSchema

Check failure on line 55 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (02)

undefined: schema.NewModuleSchema
if err != nil {
return schema.ModuleCodec{}, err
}

return schema.ModuleCodec{
Schema: schema.ModuleSchema{
ObjectTypes: objectTypes,
},
Schema: modSchema,
KVDecoder: decoder.decodeKV,
}, nil
}
Expand Down Expand Up @@ -98,7 +101,7 @@ func (c collectionSchemaCodec) decodeKVPair(update schema.KVPairUpdate) ([]schem

}

if update.Delete {
if update.Remove {

Check failure on line 104 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / dependency-review

update.Remove undefined (type schema.KVPairUpdate has no field or method Remove)

Check failure on line 104 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (00)

update.Remove undefined (type schema.KVPairUpdate has no field or method Remove)

Check failure on line 104 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (03)

update.Remove undefined (type schema.KVPairUpdate has no field or method Remove)

Check failure on line 104 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / golangci-lint

update.Remove undefined (type schema.KVPairUpdate has no field or method Remove)) (typecheck)

Check failure on line 104 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (01)

update.Remove undefined (type schema.KVPairUpdate has no field or method Remove)

Check failure on line 104 in collections/indexing.go

View workflow job for this annotation

GitHub Actions / tests (02)

update.Remove undefined (type schema.KVPairUpdate has no field or method Remove)
return []schema.ObjectUpdate{
{TypeName: c.coll.GetName(), Key: k, Delete: true},
}, nil
Expand Down

0 comments on commit c4f9251

Please sign in to comment.