refactor: migrate callsites to entity types and consolidate config#212
Closed
yushan8 wants to merge 4 commits into
Closed
refactor: migrate callsites to entity types and consolidate config#212yushan8 wants to merge 4 commits into
yushan8 wants to merge 4 commits into
Conversation
yushan8
marked this pull request as draft
July 17, 2026 04:11
3 tasks
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 17, 2026 05:13
9bd4bdf to
d05117c
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 17, 2026 05:13
94857f0 to
042586a
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 17, 2026 16:10
d05117c to
7025afd
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 17, 2026 16:10
042586a to
c367538
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 17, 2026 17:08
7025afd to
ecb2996
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 17, 2026 17:08
c367538 to
24ef6fd
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 17, 2026 22:57
ecb2996 to
36f3f33
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
2 times, most recently
from
July 17, 2026 23:07
36f5b20 to
89506ef
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 17, 2026 23:07
36f3f33 to
91d9a76
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 17, 2026 23:32
89506ef to
194fded
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
from
July 17, 2026 23:32
91d9a76 to
9e0abdd
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 18, 2026 00:23
194fded to
cb43482
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
2 times, most recently
from
July 20, 2026 02:03
b621c93 to
03833f5
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
2 times, most recently
from
July 20, 2026 03:20
9579e85 to
db209e2
Compare
yushan8
force-pushed
the
yushan/streaming-and-mappers
branch
2 times, most recently
from
July 20, 2026 03:28
8ba38ac to
6fc3266
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 20, 2026 03:28
db209e2 to
6c4ce11
Compare
yushan8
changed the base branch from
yushan/streaming-and-mappers
to
yushan/storage-json
July 20, 2026 03:28
This was referenced Jul 20, 2026
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 20, 2026 03:42
6c4ce11 to
abb1587
Compare
yushan8
force-pushed
the
yushan/storage-json
branch
from
July 20, 2026 03:42
dcd9bff to
1a54757
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 20, 2026 03:46
abb1587 to
8f18d39
Compare
yushan8
force-pushed
the
yushan/storage-json
branch
from
July 20, 2026 03:46
1a54757 to
2252f29
Compare
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
…code Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
yushan8
force-pushed
the
yushan/storage-json
branch
from
July 20, 2026 04:52
2252f29 to
8677311
Compare
yushan8
force-pushed
the
yushan/migrate-callsites
branch
from
July 20, 2026 04:52
8f18d39 to
3969f67
Compare
yushan8
force-pushed
the
yushan/storage-json
branch
from
July 20, 2026 05:27
8677311 to
614cddf
Compare
Contributor
Author
|
Merged into #222 — the storage and controller changes need to land together for CI to pass. |
yushan8
added a commit
that referenced
this pull request
Jul 20, 2026
…210) ## Summary - Add `entity.OptimizedTarget`, `entity.Metadata`, and `entity.GetTargetGraphResponse` as compact, proto-free representations of the target graph wire types - Add `entity.ChangedTarget` and `entity.GetChangedTargetsResponse` for the changed-targets path - These entity types mirror the proto definitions but live in a dependency-free package, preventing proto from leaking into storage, orchestrator, and other non-transport layers ## Test plan - [x] `make build && make test && make gazelle` ## Stack 1. **#210 — this PR** (entity types) 2. #211 (mappers + streaming) 3. #222 (storage JSON rewrite) 4. #212 (callsite migration + cleanup) --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
1 task
yushan8
added a commit
that referenced
this pull request
Jul 20, 2026
## Summary - Adds entity-proto mappers for target graph and changed targets responses - `ResultToTargetGraph` — converts `targethasher.Result` into ID-mapped entity types - `GetTargetGraphResponseToProto` / `ChangedTargetsResponseToProto` — entity→proto conversions for gRPC streaming - `ProtoToGetTargetGraphRequest` — proto→entity request conversion This PR is addresses this comment to split up the Result -> Optimized target entity conversion, and OptimizedTarget -> `GetTargetGraphResponseToProto` #206. These mappers are used to avoid leaking proto definitions into internals such as storage and orchestrator. ## Stack 1. #224 (streaming split utilities) 2. **This PR** (entity-proto mappers) 3. #222 (storage JSON rewrite) 4. #212 (callsite migration) ## Test plan - [x] `make build && make test && make gazelle` --------- Co-authored-by: Claude Sonnet 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
entity.GetTargetGraphResponseandentity.GetChangedTargetsResponseinternally, converting to proto via mapper only atstream.SendcompareTargetGraphs,serveChangedTargetsFromCache,cacheComparedTargets,sendTrimmedChangedTargets) fully migrated to entity typescore/common(ResultToGetTargetGraphResponse,ChunkMetadata,chunkTargets,splitMap, and associated tests)query-benchexample to usemapper.ResultToTargetGraphTest plan
make build && make test— all 19 test targets passgogiowrites replaced with JSON entity encodingmake gazelle— BUILD files in syncStack
🤖 Generated with Claude Code