Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewSisley committed Oct 2, 2023
1 parent 3d4b4a0 commit 3b6b5c6
Show file tree
Hide file tree
Showing 14 changed files with 41 additions and 44 deletions.
7 changes: 2 additions & 5 deletions db/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,13 @@ func (db *db) createCollection(

// Local elements such as secondary indexes should be excluded
// from the (global) schemaId.
globalSchemaBuf, err := json.Marshal(struct {
Name string
Schema client.SchemaDescription
}{col.desc.Name, col.desc.Schema})
schemaBuf, err := json.Marshal(col.desc.Schema)
if err != nil {
return nil, err
}

// add a reference to this DB by desc hash
cid, err := ccid.NewSHA256CidV1(globalSchemaBuf)
cid, err := ccid.NewSHA256CidV1(schemaBuf)
if err != nil {
return nil, err
}
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/cli/client_schema_migration_set_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func TestSchemaMigrationSet_GivenCfgWithLenses_ShouldSucceedAndMigrateDoc(t *tes

stdout, _ = runDefraCommand(t, conf, []string{
"client", "schema", "migration", "set",
"bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
"bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
"bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
fmt.Sprintf(`{"lenses": [{"path":"%s","arguments":{"dst":"verified","value":true}}]}`, lenses.SetDefaultModulePath),
})
Expand Down Expand Up @@ -229,7 +229,7 @@ func TestSchemaMigrationSet_GivenCfgWithLenseError_ShouldError(t *testing.T) {

stdout, _ = runDefraCommand(t, conf, []string{
"client", "schema", "migration", "set",
"bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
"bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
"bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
// Do not set lens parameters in order to generate error
fmt.Sprintf(`{"lenses": [{"path":"%s"}]}`, lenses.SetDefaultModulePath),
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/query/one_to_many/with_cid_dockey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ func TestQueryOneToManyWithParentUpdateAndFirstCidAndDocKey(t *testing.T) {
Description: "One-to-many relation query from one side with parent update and parent cid and dockey",
Request: `query {
Book (
cid: "bafybeie3srbs3vyirntnaubjwn7i3cltht3mfbvpiiahxvkw5yvmte2fne",
cid: "bafybeiagqehqmtyxzcdujrrwho5uf7lxsewnb2hjy2gilbod26m7ybhja4",
dockey: "bae-b9b83269-1f28-5c3b-ae75-3fb4c00d559d"
) {
name
Expand Down Expand Up @@ -229,7 +229,7 @@ func TestQueryOneToManyWithParentUpdateAndLastCidAndDocKey(t *testing.T) {
Description: "One-to-many relation query from one side with parent update and parent cid and dockey",
Request: `query {
Book (
cid: "bafybeiavnr6gu2ccfm2ygc2m2nsqbhnoorhjf2p6f2rq4rkggjz55je5ym",
cid: "bafybeianxv6tvc4esjfh4aufbfv3skrpjd5djv5zl72xun43vvg27p326y",
dockey: "bae-b9b83269-1f28-5c3b-ae75-3fb4c00d559d"
) {
name
Expand Down
12 changes: 6 additions & 6 deletions tests/integration/query/simple/with_cid_dockey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestQuerySimpleWithCidAndDocKey(t *testing.T) {
Description: "Simple query with cid and dockey",
Request: `query {
Users (
cid: "bafybeicloiyf5zl5k54cjuhfg6rpsj7rnhxswvnuizpagd2kwq4px6aqn4",
cid: "bafybeigyyj2jvd4265aalvq6wctzz7jz36rluxrevlnx2hewvowlq672na",
dockey: "bae-52b9170d-b77a-5887-b877-cbdbb99b009f"
) {
Name
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestQuerySimpleWithUpdateAndFirstCidAndDocKey(t *testing.T) {
Description: "Simple query with (first) cid and dockey",
Request: `query {
Users (
cid: "bafybeicloiyf5zl5k54cjuhfg6rpsj7rnhxswvnuizpagd2kwq4px6aqn4",
cid: "bafybeigyyj2jvd4265aalvq6wctzz7jz36rluxrevlnx2hewvowlq672na",
dockey: "bae-52b9170d-b77a-5887-b877-cbdbb99b009f"
) {
Name
Expand Down Expand Up @@ -143,7 +143,7 @@ func TestQuerySimpleWithUpdateAndLastCidAndDocKey(t *testing.T) {
Description: "Simple query with (last) cid and dockey",
Request: `query {
Users (
cid: "bafybeih4is4so2tw47gfjsty6nk7fvcggd3uyq5tgiw4yjnobtbdwnqdoi"
cid: "bafybeihldrl36evcdi23igf3zjimmduhd65cgbnu25k5kw74yppou5x37a"
dockey: "bae-52b9170d-b77a-5887-b877-cbdbb99b009f"
) {
Name
Expand Down Expand Up @@ -184,7 +184,7 @@ func TestQuerySimpleWithUpdateAndMiddleCidAndDocKey(t *testing.T) {
Description: "Simple query with (middle) cid and dockey",
Request: `query {
Users (
cid: "bafybeigvkbbe6e5ztwz7qtwu3xg2zj4stpiwkhyj6qbu6ir3qdmrd3bhem",
cid: "bafybeidc7zcwnhto3pvsrtph3txv57no5xdjrca4jv5dzzacuedkr2osmm",
dockey: "bae-52b9170d-b77a-5887-b877-cbdbb99b009f"
) {
Name
Expand Down Expand Up @@ -225,7 +225,7 @@ func TestQuerySimpleWithUpdateAndFirstCidAndDocKeyAndSchemaVersion(t *testing.T)
Description: "Simple query with (first) cid and dockey and yielded schema version",
Request: `query {
Users (
cid: "bafybeicloiyf5zl5k54cjuhfg6rpsj7rnhxswvnuizpagd2kwq4px6aqn4",
cid: "bafybeigyyj2jvd4265aalvq6wctzz7jz36rluxrevlnx2hewvowlq672na",
dockey: "bae-52b9170d-b77a-5887-b877-cbdbb99b009f"
) {
Name
Expand Down Expand Up @@ -259,7 +259,7 @@ func TestQuerySimpleWithUpdateAndFirstCidAndDocKeyAndSchemaVersion(t *testing.T)
"Age": uint64(21),
"_version": []map[string]any{
{
"schemaVersionId": "bafkreicl3pjcorfcaexxmqcrilkhx7xl37o6b34nxgtiauygtl7hrqbhoq",
"schemaVersionId": "bafkreigrd4xdnprbzdh5bx3igtx2tayfbwp2f27pw3j3xjcbys7jekxfsm",
},
},
},
Expand Down
14 changes: 7 additions & 7 deletions tests/integration/query/simple/with_version_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ func TestQuerySimpleWithEmbeddedLatestCommit(t *testing.T) {
"Age": uint64(21),
"_version": []map[string]any{
{
"cid": "bafybeicloiyf5zl5k54cjuhfg6rpsj7rnhxswvnuizpagd2kwq4px6aqn4",
"cid": "bafybeigyyj2jvd4265aalvq6wctzz7jz36rluxrevlnx2hewvowlq672na",
"links": []map[string]any{
{
"cid": "bafybeieqi3u6kdbsb76qrfziiiabs52ztptecry34lo46cwfbqmf3u4kwi",
"cid": "bafybeidp5im7msb7ztltaiwfmnprmiljnmkelkif65gurq7fe5hweltjda",
"name": "Age",
},
{
"cid": "bafybeidoaqrpud2z2d4jnjqqmo3kn5rakr7yh2d2cdmjkvk5fcisy54jam",
"cid": "bafybeicjhyipphwodecw6pucrleohxeny4mnikjs3h5d3jrvdfs3cep6wu",
"name": "Name",
},
},
Expand Down Expand Up @@ -90,7 +90,7 @@ func TestQuerySimpleWithEmbeddedLatestCommitWithSchemaVersionId(t *testing.T) {
"Name": "John",
"_version": []map[string]any{
{
"schemaVersionId": "bafkreicl3pjcorfcaexxmqcrilkhx7xl37o6b34nxgtiauygtl7hrqbhoq",
"schemaVersionId": "bafkreigrd4xdnprbzdh5bx3igtx2tayfbwp2f27pw3j3xjcbys7jekxfsm",
},
},
},
Expand Down Expand Up @@ -171,14 +171,14 @@ func TestQuerySimpleWithMultipleAliasedEmbeddedLatestCommit(t *testing.T) {
"Age": uint64(21),
"_version": []map[string]any{
{
"cid": "bafybeicloiyf5zl5k54cjuhfg6rpsj7rnhxswvnuizpagd2kwq4px6aqn4",
"cid": "bafybeigyyj2jvd4265aalvq6wctzz7jz36rluxrevlnx2hewvowlq672na",
"L1": []map[string]any{
{
"cid": "bafybeieqi3u6kdbsb76qrfziiiabs52ztptecry34lo46cwfbqmf3u4kwi",
"cid": "bafybeidp5im7msb7ztltaiwfmnprmiljnmkelkif65gurq7fe5hweltjda",
"name": "Age",
},
{
"cid": "bafybeidoaqrpud2z2d4jnjqqmo3kn5rakr7yh2d2cdmjkvk5fcisy54jam",
"cid": "bafybeicjhyipphwodecw6pucrleohxeny4mnikjs3h5d3jrvdfs3cep6wu",
"name": "Name",
},
},
Expand Down
12 changes: 6 additions & 6 deletions tests/integration/schema/migrations/query/simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestSchemaMigrationQuery(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -115,7 +115,7 @@ func TestSchemaMigrationQueryMultipleDocs(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -178,7 +178,7 @@ func TestSchemaMigrationQueryWithMigrationRegisteredBeforeSchemaPatch(t *testing
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -254,7 +254,7 @@ func TestSchemaMigrationQueryMigratesToIntermediaryVersion(t *testing.T) {
// Register a migration from schema version 1 to schema version 2 **only** -
// there should be no migration from version 2 to version 3.
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -394,7 +394,7 @@ func TestSchemaMigrationQueryMigratesAcrossMultipleVersions(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -539,7 +539,7 @@ func TestSchemaMigrationQueryMigrationMutatesExistingScalarField(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/schema/migrations/query/with_dockey_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ func TestSchemaMigrationQueryByDocKey(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -158,7 +158,7 @@ func TestSchemaMigrationQueryMultipleQueriesByDocKey(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestSchemaMigrationQueryWithRestart(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/schema/migrations/query/with_txn_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ func TestSchemaMigrationQueryWithTxn(t *testing.T) {
testUtils.ConfigureMigration{
TransactionID: immutable.Some(0),
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -109,7 +109,7 @@ func TestSchemaMigrationQueryWithTxnAndCommit(t *testing.T) {
testUtils.ConfigureMigration{
TransactionID: immutable.Some(0),
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/schema/migrations/query/with_update_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestSchemaMigrationQueryWithUpdateRequest(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestSchemaMigrationQueryWithMigrationRegisteredAfterUpdate(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/schema/migrations/simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func TestSchemaMigrationGetMigrationsReturnsMultiple(t *testing.T) {
},
testUtils.ConfigureMigration{
LensConfig: client.LensConfig{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down Expand Up @@ -124,7 +124,7 @@ func TestSchemaMigrationGetMigrationsReturnsMultiple(t *testing.T) {
},
},
{
SourceSchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SourceSchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
DestinationSchemaVersionID: "bafkreia56p6i6o3l4jijayiqd5eiijsypjjokbldaxnmqgeav6fe576hcy",
Lens: model.Lens{
Lenses: []model.LensModule{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ import (
)

func TestSchemaUpdatesAddFieldWithCreateWithUpdateAfterSchemaUpdateAndVersionJoin(t *testing.T) {
initialSchemaVersionId := "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq"
updatedSchemaVersionId := "bafkreidejaxpsevyijnr4nah4e2l263emwhdaj57fwwv34eu5rea4ff54e"
initialSchemaVersionId := "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu"
updatedSchemaVersionId := "bafkreigbscmhyynybxtdvuszqvttgc425rwiy4uz4iiu4v7olrz5rg3oby"

test := testUtils.TestCase{
Description: "Test schema update, add field with update after schema update, verison join",
Expand Down Expand Up @@ -105,8 +105,8 @@ func TestSchemaUpdatesAddFieldWithCreateWithUpdateAfterSchemaUpdateAndVersionJoi
}

func TestSchemaUpdatesAddFieldWithCreateWithUpdateAfterSchemaUpdateAndCommitQuery(t *testing.T) {
initialSchemaVersionId := "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq"
updatedSchemaVersionId := "bafkreidejaxpsevyijnr4nah4e2l263emwhdaj57fwwv34eu5rea4ff54e"
initialSchemaVersionId := "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu"
updatedSchemaVersionId := "bafkreigbscmhyynybxtdvuszqvttgc425rwiy4uz4iiu4v7olrz5rg3oby"

test := testUtils.TestCase{
Description: "Test schema update, add field with update after schema update, commits query",
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/schema/updates/move/simple_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import (
)

func TestSchemaUpdatesMoveCollectionDoesNothing(t *testing.T) {
schemaVersionID := "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq"
schemaVersionID := "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu"

test := testUtils.TestCase{
Description: "Test schema update, move collection",
Expand Down
4 changes: 2 additions & 2 deletions tests/integration/schema/with_update_set_default_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ func TestSchema_WithUpdateAndSetDefaultVersionToOriginal_NewFieldIsNotQueriable(
SetAsDefaultVersion: immutable.Some(false),
},
testUtils.SetDefaultSchemaVersion{
SchemaVersionID: "bafkreihn4qameldz3j7rfundmd4ldhxnaircuulk6h2vcwnpcgxl4oqffq",
SchemaVersionID: "bafkreibqw2l325up2tljc5oyjpjzftg4x7nhluzqoezrmz645jto6tnylu",
},
testUtils.Request{
Request: `query {
Expand Down Expand Up @@ -129,7 +129,7 @@ func TestSchema_WithUpdateAndSetDefaultVersionToNew_AllowsQueryingOfNewField(t *
SetAsDefaultVersion: immutable.Some(false),
},
testUtils.SetDefaultSchemaVersion{
SchemaVersionID: "bafkreidejaxpsevyijnr4nah4e2l263emwhdaj57fwwv34eu5rea4ff54e",
SchemaVersionID: "bafkreigbscmhyynybxtdvuszqvttgc425rwiy4uz4iiu4v7olrz5rg3oby",
},
testUtils.Request{
Request: `query {
Expand Down

0 comments on commit 3b6b5c6

Please sign in to comment.