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

feat(serving): support scoped cross-references #5530

Merged
merged 2 commits into from Mar 9, 2023

Conversation

schroederc
Copy link
Contributor

This change only adds support to the ScopedReferences in the serving data, and the actual server will unwrap them into unscoped references. A future change will support ScopedReferences in the CrossReferences API.

This change only adds support to the ScopedReferences in the serving
data, and the actual server will unwrap them into unscoped references. A
future change will support ScopedReferences in the CrossReferences API.
@schroederc schroederc requested a review from a team March 9, 2023 17:32
@schroederc schroederc enabled auto-merge (squash) March 9, 2023 18:18
@schroederc schroederc merged commit 2387903 into kythe:master Mar 9, 2023
@@ -276,6 +276,20 @@ message PagedCrossReferences {
int32 ordinal = 2;
}

// References to the source node with an associated semantic scope.
message ScopedReference {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems like an interesting change! Will this require any schema changes for the indexers to generate the scope data?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not really. It requires the childof edges that are already part of the callsite relation. A couple of indexers already emit this data: #4187 and 0a3afc9

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very cool. 🥰

@schroederc schroederc deleted the scoped-ref branch March 9, 2023 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants