[PR #6114] [MERGED] fix(mari-db): resolve capability package tables registered after load #7065

Closed
opened 2026-10-23 04:16:12 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/6114
Author: @Gunterlie
Created: 9/13/2026
Status: ✅ Merged
Merged: 9/13/2026
Merged by: @Gunterlie

Base: staging ← Head: fix/mari-db-package-tables


📝 Commits (1)

  • c8ce755 fix(mari-db): resolve capability package tables registered after load

📊 Changes

3 files changed (+45 additions, -21 deletions)

View changed files

📝 packages/server/src/db/file-backed-store.ts (+5 -0)
📝 packages/server/src/services/mari-db/mari-db.service.ts (+34 -21)
📝 scripts/regressions/package-table-registration.regression.ts (+6 -0)

📄 Description

Fixes #6113

  • file-backed-store.ts: export getRegisteredFileTable(name) (live registry lookup).
  • mari-db.service.ts: getMeta falls back to the live registry and caches the meta. Unregistered names still throw.
  • Regression: package-table-registration.regression.ts lists a registered package table through Mari.

Verified: server tsc --noEmit clean; regression passes with fix, fails without it with the exact prod error.

Existing users: update Engine and restart; no data repair.

Summary by CodeRabbit

  • Bug Fixes
    • Package-registered database tables are now recognized when accessed after startup.
    • The database listing command can now read and display data from tables registered by capability packages.
    • Unknown table requests continue to return an error.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/6114 **Author:** [@Gunterlie](https://github.com/Gunterlie) **Created:** 9/13/2026 **Status:** ✅ Merged **Merged:** 9/13/2026 **Merged by:** [@Gunterlie](https://github.com/Gunterlie) **Base:** `staging` ← **Head:** `fix/mari-db-package-tables` --- ### 📝 Commits (1) - [`c8ce755`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c8ce755179228264254e13d3a8dea98ea989987d) fix(mari-db): resolve capability package tables registered after load ### 📊 Changes **3 files changed** (+45 additions, -21 deletions) <details> <summary>View changed files</summary> 📝 `packages/server/src/db/file-backed-store.ts` (+5 -0) 📝 `packages/server/src/services/mari-db/mari-db.service.ts` (+34 -21) 📝 `scripts/regressions/package-table-registration.regression.ts` (+6 -0) </details> ### 📄 Description Fixes #6113 - `file-backed-store.ts`: export `getRegisteredFileTable(name)` (live registry lookup). - `mari-db.service.ts`: `getMeta` falls back to the live registry and caches the meta. Unregistered names still throw. - Regression: `package-table-registration.regression.ts` lists a registered package table through Mari. Verified: server `tsc --noEmit` clean; regression passes with fix, fails without it with the exact prod error. Existing users: update Engine and restart; no data repair. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **Bug Fixes** - Package-registered database tables are now recognized when accessed after startup. - The database listing command can now read and display data from tables registered by capability packages. - Unknown table requests continue to return an error. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:16:12 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#7065
No description provided.