Skip to content
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

Merged
merged 6 commits into from
Sep 25, 2023

Conversation

olivergrabinski
Copy link
Contributor

@olivergrabinski olivergrabinski commented Sep 25, 2023

Closes #4265

Screenshot 2023-09-25 at 15 34 12 Screenshot 2023-09-25 at 15 33 29

Copy link
Contributor

@imsdu imsdu left a 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

@olivergrabinski olivergrabinski marked this pull request as ready for review September 25, 2023 13:09
shinyhappydan
shinyhappydan previously approved these changes Sep 25, 2023
Copy link
Contributor

@shinyhappydan shinyhappydan left a 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)
Copy link
Contributor

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

Copy link
Contributor

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

Comment on lines +42 to +46
_ <- 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")
Copy link
Contributor

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

@olivergrabinski olivergrabinski merged commit 915fe3e into BlueBrain:master Sep 25, 2023
5 checks passed
@olivergrabinski olivergrabinski deleted the ga-remote-contexts branch September 25, 2023 15:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Index remote contexts in graph-analytics
3 participants