Skip to content

Remove the dead Datastore abstraction (Step 0 of #422) - #423

Merged
em3s merged 1 commit into
mainfrom
refactor/issue-422-remove-datastore
Jul 16, 2026
Merged

em3s merged 1 commit into
mainfrom
refactor/issue-422-remove-datastore

Conversation

@em3s

@em3s em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Summary

Step 0 of #422 (unify store-backend acquisition): remove the dead Datastore abstraction so the store backend can consolidate on StorageBackend/StorageTable.

The Datastore/DatastoreBucket/MemoryDatastore family carried no data. Its only consumer chain was ActionbaseProvider → Actionbase → GraphController.getV3(), which merely read the engine class name as a string (MemoryDatastoreBucket itself just wrapped a ByteArrayStore).

Part of #422.

Changes

  • Delete Datastore, DatastoreBucket, MemoryDatastore, MemoryDatastoreBucket, Actionbase, and ActionbaseProvider.
  • GraphController drops the Actionbase dependency; getV3() returns a constant ({"engine": "v3"}).

Not touched

  • DatastoreDescriptor / DatastoreType (core) and the GET /graph/v3/datastore endpoint (DatastoreController) — they use only the core descriptor, not the deleted engine classes.
  • The datastore compatibility tests (DatastoreCompatibilityTest and subclasses) — they exercise ByteArrayStore and raw HBase through a test-only StorageOperations interface, not the deleted classes, so they keep their coverage.

How to Test

./gradlew :engine:test :server:test — all green; spotless clean. No remaining reference to the deleted classes (the surviving "Actionbase" mentions are the product name in comments/logs).

AI Assistance

  • This PR was written with AI assistance.
    • Tool / model: Claude Code (Opus 4.8)

The Datastore/DatastoreBucket/MemoryDatastore family carried no data: its only
consumer chain was ActionbaseProvider -> Actionbase -> GraphController.getV3(),
which read the class name as a string. Remove it (Step 0 of #422) so the store
backend consolidates on StorageBackend/StorageTable.

- Delete Datastore, DatastoreBucket, MemoryDatastore, MemoryDatastoreBucket,
  Actionbase, and ActionbaseProvider.
- GraphController drops the Actionbase dependency; getV3() returns a constant.

DatastoreDescriptor/DatastoreType (core) and the DatastoreController v3 endpoint
are unaffected. The datastore compatibility tests exercise ByteArrayStore/HBase
directly (not the deleted classes) and are left in place.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
@dosubot dosubot Bot added size:L This PR changes 100-499 lines, ignoring generated files. maintenance Maintenance work. labels Jul 16, 2026
@em3s

em3s commented Jul 16, 2026

Copy link
Copy Markdown
Contributor Author

Optimistic

@em3s
em3s merged commit 3d346e3 into main Jul 16, 2026
3 checks passed
@em3s
em3s deleted the refactor/issue-422-remove-datastore branch July 16, 2026 08:47
@em3s em3s self-assigned this Jul 20, 2026
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.

1 participant