-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add pre and post synaptic pathways to BG -> ES projection #4424
Add pre and post synaptic pathways to BG -> ES projection #4424
Conversation
7d63947
to
a7fb6a8
Compare
...iews/src/main/scala/ch/epfl/bluebrain/nexus/delta/plugins/compositeviews/CompositeSink.scala
Outdated
Show resolved
Hide resolved
@@ -33,8 +33,9 @@ final class GraphResourceToDocument(context: ContextValue, includeContext: Boole | |||
|
|||
/** Given a [[GraphResource]] returns a JSON-LD created from the merged graph and metadata graph */ | |||
def graphToDocument(element: GraphResource): Task[Option[Json]] = { | |||
val graph = element.graph ++ element.metadataGraph | |||
val json = | |||
implicit val jsonLdOptions = JsonLdOptions.AlwaysEmbed |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to set this here? Is it not possible to make it an argument to the whole class, so that we can set it to be @always
only from the CompositeSink?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let me have a think about this one
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did what you suggested and it works. I think given that this is the smallest possible scope of change, you're right
delta/sdk/src/main/scala/ch/epfl/bluebrain/nexus/delta/sdk/ResourceShift.scala
Outdated
Show resolved
Hide resolved
a7fb6a8
to
215fb0f
Compare
215fb0f
to
2cdfc35
Compare
No description provided.