Skip to content

chore: move all schema version crud logic from legacy storage module to dedicated class#8029

Draft
n1ru4l wants to merge 9 commits intomainfrom
chore-refactor-schema-version-store
Draft

chore: move all schema version crud logic from legacy storage module to dedicated class#8029
n1ru4l wants to merge 9 commits intomainfrom
chore-refactor-schema-version-store

Conversation

@n1ru4l
Copy link
Copy Markdown
Contributor

@n1ru4l n1ru4l commented May 7, 2026

Background

Storage module toooo big; we want to add more logic due to graph variants (#7821) and promotion (#4021); thus we break it down

Description

Introduces a new class SchemaVersionStore and moves all schema version related crud operations from the legacy Storage class over there.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

🚀 Snapshot Release (alpha)

The latest changes of this PR are available as alpha on npm (based on the declared changesets):

Package Version Info
hive 11.1.0-alpha-20260508072944-9b463a8f2d6ee30bed21685837187e44ed04b840 npm ↗︎ unpkg ↗︎

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 7, 2026

🐋 This PR was built and pushed to the following Docker images:

Targets: build

Platforms: linux/amd64

Image Tag: 9b463a8f2d6ee30bed21685837187e44ed04b840

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors schema version management by migrating database logic from the legacy storage module to a new SchemaVersionStore class. Feedback highlights critical regressions in schema coordinate tracking during subgraph deletion and version creation. Additionally, a logic error in ResourceSelector incorrectly allows non-composable versions, and a security vulnerability was identified in SchemaManager where schema version lookups are no longer properly scoped to a target, potentially leading to unauthorized access.

Comment thread packages/services/api/src/modules/schema/providers/schema-publisher.ts Outdated
Comment thread packages/services/api/src/modules/schema/providers/schema-manager.ts Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant