Skip to content

refactor(admin-api): validate dep aliases at handler edge#1875

Merged
LNSD merged 1 commit intomainfrom
lnsd/refactor-manifest-early-deps-check
Feb 27, 2026
Merged

refactor(admin-api): validate dep aliases at handler edge#1875
LNSD merged 1 commit intomainfrom
lnsd/refactor-manifest-early-deps-check

Conversation

@LNSD
Copy link
Contributor

@LNSD LNSD commented Feb 27, 2026

Move dependency alias checks from catalog creation (where missing aliases panicked or returned deep errors) to the handler layer, enforcing the validate-at-the-edge principle.

  • Check table and function dep aliases in common.rs and schema.rs before catalog creation
  • Replace DependencyAliasNotFound error variants in catalog modules with expect() panics guarded by precondition docs
  • Inline DependencyAliasNotFound fields into ManifestValidationError and schema Error
  • Add integration test for missing function dependency alias

Move dependency alias checks from catalog creation (where missing aliases panicked or returned deep errors) to the handler layer, enforcing the validate-at-the-edge principle.

- Check table and function dep aliases in `common.rs` and `schema.rs` before catalog creation
- Replace `DependencyAliasNotFound` error variants in catalog modules with `expect()` panics guarded by precondition docs
- Inline `DependencyAliasNotFound` fields into `ManifestValidationError` and schema `Error`
- Add integration test for missing function dependency alias

Signed-off-by: Lorenzo Delgado <lorenzo@edgeandnode.com>
@LNSD LNSD requested review from leoyvens and shiyasmohd February 27, 2026 07:02
@LNSD LNSD self-assigned this Feb 27, 2026
@LNSD
Copy link
Contributor Author

LNSD commented Feb 27, 2026

This is a spinoff of #1849

Copy link
Contributor

@shiyasmohd shiyasmohd left a comment

Choose a reason for hiding this comment

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

LGTM ✅

@LNSD LNSD merged commit 9f3c012 into main Feb 27, 2026
17 of 18 checks passed
@LNSD LNSD deleted the lnsd/refactor-manifest-early-deps-check branch February 27, 2026 07:15
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