-
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 remote contexts to Graph Analytics indices #4297
Add remote contexts to Graph Analytics indices #4297
Conversation
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.
The elasticsearch mapping needs to be updated too with remoteContexts
being a nested field
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.
Should there be a test where we query to see which resources were created with an "outdated" remote context, as per the use case from the story?
case s => | ||
JsonLdDocument.fromExpanded(s.expanded, findRelationships(project, xas, relationshipBatch)).map { d => | ||
Index.active(s.project, s.id, s.rev, s.types, s.createdAt, s.createdBy, s.updatedAt, s.updatedBy, d) | ||
case state if state.deprecated => deprecatedIndex(state) |
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 really like that s
became state
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.
This whole change is nice
_ <- postResource("/kg/graph-analytics/context-test.json") | ||
_ <- postResource("/kg/graph-analytics/person1.json") | ||
_ <- postResource("/kg/graph-analytics/person2.json") | ||
_ <- postResource("/kg/graph-analytics/person3.json") | ||
_ <- postResource("/kg/graph-analytics/organization.json") |
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.
This is much nicer, good one
Closes #4265