-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle deserialization of empty remote contexts in
ResourceEvent
s a…
…nd `ResourceState` (#4317)
- Loading branch information
1 parent
bf0e1f1
commit 523ff52
Showing
8 changed files
with
265 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
54 changes: 54 additions & 0 deletions
54
delta/sdk/src/test/resources/resources/database/resource-created-no-remote-contexts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"project": "myorg/myproj", | ||
"schema": "https://bluebrain.github.io/nexus/schemas/unconstrained.json?rev=1", | ||
"schemaProject": "myorg/myproj", | ||
"types": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"source": { | ||
"@context": [ | ||
"https://neuroshapes.org", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
{ | ||
"@vocab": "https://bluebrain.github.io/nexus/vocabulary/" | ||
} | ||
], | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": "Morphology", | ||
"name": "Morphology 001" | ||
}, | ||
"compacted": { | ||
"@context": [ | ||
"https://neuroshapes.org", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
{ | ||
"@vocab": "https://bluebrain.github.io/nexus/vocabulary/" | ||
} | ||
], | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": "Morphology", | ||
"name": "Morphology 001" | ||
}, | ||
"expanded": [ | ||
{ | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"https://bluebrain.github.io/nexus/vocabulary/name": [ | ||
{ | ||
"@value": "Morphology 001" | ||
} | ||
] | ||
} | ||
], | ||
"rev": 1, | ||
"instant": "1970-01-01T00:00:00Z", | ||
"subject": { | ||
"subject": "username", | ||
"realm": "myrealm", | ||
"@type": "User" | ||
}, | ||
"@type": "ResourceCreated" | ||
} |
42 changes: 42 additions & 0 deletions
42
delta/sdk/src/test/resources/resources/database/resource-refreshed-no-remote-contexts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
{ | ||
"id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"project": "myorg/myproj", | ||
"schema": "https://bluebrain.github.io/nexus/schemas/unconstrained.json?rev=1", | ||
"schemaProject": "myorg/myproj", | ||
"types" : [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"compacted": { | ||
"@context": [ | ||
"https://neuroshapes.org", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
{ | ||
"@vocab": "https://bluebrain.github.io/nexus/vocabulary/" | ||
} | ||
], | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": "Morphology", | ||
"name": "Morphology 001" | ||
}, | ||
"expanded": [ | ||
{ | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"https://bluebrain.github.io/nexus/vocabulary/name": [ | ||
{ | ||
"@value": "Morphology 001" | ||
} | ||
] | ||
} | ||
], | ||
"rev": 2, | ||
"instant": "1970-01-01T00:00:00Z", | ||
"subject": { | ||
"subject": "username", | ||
"realm": "myrealm", | ||
"@type": "User" | ||
}, | ||
"@type": "ResourceRefreshed" | ||
} |
54 changes: 54 additions & 0 deletions
54
delta/sdk/src/test/resources/resources/database/resource-updated-no-remote-contexts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
{ | ||
"id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"project": "myorg/myproj", | ||
"schema": "https://bluebrain.github.io/nexus/schemas/unconstrained.json?rev=1", | ||
"schemaProject": "myorg/myproj", | ||
"types": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"source": { | ||
"@context": [ | ||
"https://neuroshapes.org", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
{ | ||
"@vocab": "https://bluebrain.github.io/nexus/vocabulary/" | ||
} | ||
], | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": "Morphology", | ||
"name": "Morphology 001" | ||
}, | ||
"compacted": { | ||
"@context": [ | ||
"https://neuroshapes.org", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
{ | ||
"@vocab": "https://bluebrain.github.io/nexus/vocabulary/" | ||
} | ||
], | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": "Morphology", | ||
"name": "Morphology 001" | ||
}, | ||
"expanded": [ | ||
{ | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"https://bluebrain.github.io/nexus/vocabulary/name": [ | ||
{ | ||
"@value": "Morphology 001" | ||
} | ||
] | ||
} | ||
], | ||
"rev": 2, | ||
"instant": "1970-01-01T00:00:00Z", | ||
"subject": { | ||
"subject": "username", | ||
"realm": "myrealm", | ||
"@type": "User" | ||
}, | ||
"@type": "ResourceUpdated" | ||
} |
63 changes: 63 additions & 0 deletions
63
delta/sdk/src/test/resources/resources/resource-state-no-remote-contexts.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{ | ||
"id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"project": "myorg/myproj", | ||
"schemaProject": "myorg/myproj", | ||
"source": { | ||
"@context": [ | ||
"https://neuroshapes.org", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
{ | ||
"@vocab": "https://bluebrain.github.io/nexus/vocabulary/" | ||
} | ||
], | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": "Morphology", | ||
"name": "Morphology 001" | ||
}, | ||
"compacted": { | ||
"@context": [ | ||
"https://neuroshapes.org", | ||
"https://bluebrain.github.io/nexus/contexts/metadata.json", | ||
{ | ||
"@vocab": "https://bluebrain.github.io/nexus/vocabulary/" | ||
} | ||
], | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": "Morphology", | ||
"name": "Morphology 001" | ||
}, | ||
"expanded": [ | ||
{ | ||
"@id": "https://bluebrain.github.io/nexus/vocabulary/myId", | ||
"@type": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"https://bluebrain.github.io/nexus/vocabulary/name": [ | ||
{ | ||
"@value": "Morphology 001" | ||
} | ||
] | ||
} | ||
], | ||
"rev": 2, | ||
"deprecated": false, | ||
"schema": "https://bluebrain.github.io/nexus/schemas/unconstrained.json?rev=1", | ||
"types": [ | ||
"https://neuroshapes.org/Morphology" | ||
], | ||
"tags": { | ||
"mytag": 3 | ||
}, | ||
"createdAt": "1970-01-01T00:00:00Z", | ||
"createdBy": { | ||
"subject": "username", | ||
"realm": "myrealm", | ||
"@type": "User" | ||
}, | ||
"updatedAt": "1970-01-01T00:00:00Z", | ||
"updatedBy": { | ||
"subject": "username", | ||
"realm": "myrealm", | ||
"@type": "User" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 0 additions & 14 deletions
14
...sourcing-psql/src/main/resources/scripts/postgres/init/V1_09_M05_002__remote_contexts.ddl
This file was deleted.
Oops, something went wrong.