Skip to content

Retire the stored query metastore entity and its CRUD API - #467

Merged
em3s merged 3 commits into
mainfrom
feat/issue-466-retire-stored-query
Jul 24, 2026
Merged

em3s merged 3 commits into
mainfrom
feat/issue-466-retire-stored-query

Conversation

@em3s

@em3s em3s commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Remove the stored query metastore entity and its CRUD API, per decision #466. The stored query entity (query, alongside service/storage/label/alias) and its /graph/v2/service/{service}/query endpoints 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)

  • Step 1: Delete QueryEntity, QueryDdlService, ServiceQueryController
  • Step 2: Unwire Graph.kt — queryLabel constructor param, systemLabels entry, queries field, queryDdl, updateQueries() + update-loop call, queryEdges metadata sync, MetadataType.QUERY branch, builder bootstrap, dumpAll()
  • Step 3: Remove Metadata.sysQueryLabelName / queryLabelEntity and the MetadataType.QUERY enum value
  • Step 4: Remove the query migration step from MigrationTask20240416A and the checkQuery clause from LabelDdlService.canDeactivate
  • Step 5: Clean up AdminController (query sync endpoint), MirrorRequestFilter (stale /query/{query}/edge allowlist entry), and the v3v2-boundary-check allowlist
  • Step 6: Update tests (DdlServiceSpec, GraphFixtures, ReadOnlyRequestFilterTest) and run the full build

Progress

  • Steps 1–6 — claude code (fable 5) (commit 8a5a4ea). ./gradlew build green; :engine:test and :server:test pass. ReadOnlyRequestFilterTest's endpoint-exhaustiveness check required declaring the five removed endpoints out of the fixture, which was not in the original plan.
  • Post-removal grep sweep — claude code (fable 5) (commit 424ba49). Verified zero remaining references to the removed symbols, v2 query endpoint paths, the queries identifier, and the "query" label literal across Kotlin/Java/Go/docs/config. Swept up two leftovers: the dead QueryResultFormat enum (unreferenced even before this PR) and the stale Query column in the DdlService precondition matrix comment.

AI Assistance

  • This PR was written largely with AI assistance.
    • Tool / model: Claude Code (Fable 5)

em3s and others added 2 commits July 24, 2026 17:28
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
em3s marked this pull request as ready for review July 24, 2026 08:39
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. maintenance Maintenance work. labels Jul 24, 2026
…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]>
@em3s em3s self-assigned this Jul 24, 2026
@em3s

em3s commented Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Optimistic

@em3s
em3s merged commit c7deccc into main Jul 24, 2026
2 checks passed
@em3s
em3s deleted the feat/issue-466-retire-stored-query branch July 24, 2026 08:58
@zipdoki zipdoki mentioned this pull request Aug 12, 2026
5 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance Maintenance work. size:L This PR changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Retire the stored query API ahead of its redesign on Actionbase Query (multi-hop)

1 participant