Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

Wraps up syntactic usages in resolvers#63285

Merged
kritzcreek merged 3 commits into
mainfrom
christoph/syntactic-usage-resolver
Jun 21, 2024
Merged

Wraps up syntactic usages in resolvers#63285
kritzcreek merged 3 commits into
mainfrom
christoph/syntactic-usage-resolver

Conversation

@kritzcreek

@kritzcreek kritzcreek commented Jun 17, 2024

Copy link
Copy Markdown
Contributor

Fixes https://linear.app/sourcegraph/issue/GRAPH-667/wrap-up-usage-results-in-graphql-resolvers

This allows us to actually return syntactic usages from the occurrences API. It does not implement pagination yet, but I think that PR will be nicer to review after this one landed.

Requires #63268

Test plan

Running queries against the site-admin api console

@cla-bot cla-bot Bot added the cla-signed label Jun 17, 2024
@github-actions github-actions Bot added team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform labels Jun 17, 2024
@kritzcreek kritzcreek requested a review from a team June 18, 2024 07:59
@kritzcreek kritzcreek marked this pull request as ready for review June 18, 2024 07:59
@kritzcreek kritzcreek force-pushed the christoph/syntactic-usage-resolver branch 2 times, most recently from 9496a77 to 5a35aec Compare June 19, 2024 13:58
@kritzcreek kritzcreek requested a review from keynmol June 19, 2024 13:58
Comment thread internal/codeintel/codenav/transport/graphql/root_resolver_usages.go Outdated
Comment on lines 231 to 241

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We will need to change this later because remainingCount may be greater than 0, but it's OK to leave this in here for now.

@varungandhi-src varungandhi-src left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Minor non-blocking comments only.

@varungandhi-src

Copy link
Copy Markdown
Contributor

We need to update the code here once https://github.com/sourcegraph/sourcegraph/pull/63371 lands

@kritzcreek kritzcreek force-pushed the christoph/syntactic-usage-resolver branch from 5a35aec to f628f3e Compare June 21, 2024 09:44
@kritzcreek kritzcreek enabled auto-merge (squash) June 21, 2024 09:47
@kritzcreek kritzcreek disabled auto-merge June 21, 2024 09:47
@kritzcreek kritzcreek force-pushed the christoph/syntactic-usage-resolver branch from 2b3d440 to 361026f Compare June 21, 2024 10:05
@kritzcreek kritzcreek enabled auto-merge (squash) June 21, 2024 10:10
@kritzcreek kritzcreek merged commit 221f398 into main Jun 21, 2024
@kritzcreek kritzcreek deleted the christoph/syntactic-usage-resolver branch June 21, 2024 10:14
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla-signed team/graph Graph Team (previously Code Intel/Language Tools/Language Platform) team/product-platform

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants