Skip to content

Remove all SurrealDB references#986

Merged
pditommaso merged 3 commits intomasterfrom
remove-surrealdb-references
Mar 4, 2026
Merged

Remove all SurrealDB references#986
pditommaso merged 3 commits intomasterfrom
remove-surrealdb-references

Conversation

@pditommaso
Copy link
Collaborator

Summary

  • Delete SurrealDB client, persistence service, result model, and all related test files (11 files)
  • Delete entire migrate/ package (DataMigrationService, MigrationOnly annotation, DataMigrateCache) and its tests
  • Remove SurrealDB fallback logic from PostgresPersistentService — load methods now return null/empty instead of falling back to SurrealDB
  • Remove StringUtils.surrealId() method and all call sites in WaveScanRecord and ScanVulnerability
  • Remove @MigrationOnly annotation usage from FusionVersionStringDeserializer
  • Delete application-surrealdb.yml, application-surrealdb-legacy.yml, and docs/db-migration.md
  • Update LocalPersistenceService guard from notEnv=surrealdb to notEnv=postgres

Test plan

  • ./gradlew compileGroovy — passes
  • ./gradlew compileTestGroovy — passes
  • Full test suite (./gradlew test)

🤖 Generated with Claude Code

SurrealDB was replaced by PostgreSQL and the migration is complete.
This removes the SurrealDB client, persistence service, migration
tooling, config files, and all fallback logic in PostgresPersistentService.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@pditommaso pditommaso requested a review from munishchouhan March 3, 2026 21:36
pditommaso and others added 2 commits March 3, 2026 22:43
After removing SurrealDB fallback, these methods return an empty list
instead of null when no records are found.

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@munishchouhan
Copy link
Member

Tested successfully in local

@pditommaso
Copy link
Collaborator Author

nice!

@pditommaso pditommaso merged commit 860d2a1 into master Mar 4, 2026
4 checks passed
@pditommaso pditommaso deleted the remove-surrealdb-references branch March 4, 2026 08:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants