Repository navigation
Retire the stored query metastore entity and its CRUD API - #467
Merged
Merged
Conversation
Co-Authored-By: Claude Fable 5 <[email protected]>
Remove QueryEntity, QueryDdlService, and ServiceQueryController, and unwire the query label from Graph, Metadata, metadata sync, migration, label deactivation checks, admin endpoints, and the mirror allowlist. Prepared queries will be redesigned on top of Actionbase Query (#214). The general read path (/graph/v3/query, ActionbaseQuery, QueryService) is unaffected. Co-Authored-By: Claude Fable 5 <[email protected]>
em3s
marked this pull request as ready for review
July 24, 2026 08:39
…dlService docs Found by a post-removal grep sweep: QueryResultFormat had no references even before #466, and the DdlService precondition matrix still listed the removed Query entity. Co-Authored-By: Claude Fable 5 <[email protected]>
Contributor
Author
|
Optimistic |
Closed
8 of 21 tasks
5 tasks done
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
Remove the stored query metastore entity and its CRUD API, per decision #466. The stored query entity (
query, alongsideservice/storage/label/alias) and its/graph/v2/service/{service}/queryendpoints are deleted; prepared queries will be redefined later on top of Actionbase Query (#214).The general read path is untouched:
/graph/v3/query,ActionbaseQuery,QueryService,NamedQueryResult,Graph.singleStepQuery.Closes #466
Plan
Created by claude code (fable 5)
QueryEntity,QueryDdlService,ServiceQueryControllerGraph.kt—queryLabelconstructor param,systemLabelsentry,queriesfield,queryDdl,updateQueries()+ update-loop call,queryEdgesmetadata sync,MetadataType.QUERYbranch, builder bootstrap,dumpAll()Metadata.sysQueryLabelName/queryLabelEntityand theMetadataType.QUERYenum valueMigrationTask20240416Aand thecheckQueryclause fromLabelDdlService.canDeactivateAdminController(query sync endpoint),MirrorRequestFilter(stale/query/{query}/edgeallowlist entry), and the v3v2-boundary-check allowlistDdlServiceSpec,GraphFixtures,ReadOnlyRequestFilterTest) and run the full buildProgress
./gradlew buildgreen;:engine:testand:server:testpass.ReadOnlyRequestFilterTest's endpoint-exhaustiveness check required declaring the five removed endpoints out of the fixture, which was not in the original plan.queriesidentifier, and the"query"label literal across Kotlin/Java/Go/docs/config. Swept up two leftovers: the deadQueryResultFormatenum (unreferenced even before this PR) and the staleQuerycolumn in theDdlServiceprecondition matrix comment.AI Assistance