mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3751] [MERGED] feat(noodle): isolate private accounts #6087
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6087
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3751
Author: @Gunterlie
Created: 7/17/2026
Status: ✅ Merged
Merged: 7/17/2026
Merged by: @SpicyMarinara
Base:
staging← Head:noodl-split-1b-private-account-schema📝 Commits (2)
ae235effeat(noodle): isolate private accounts8288594fix(noodle): address private account review📊 Changes
8 files changed (+370 additions, -43 deletions)
View changed files
📝
docs/noodle/settings.md(+7 -0)📝
packages/client/src/components/noodle/NoodleView.tsx(+30 -0)📝
packages/client/src/hooks/use-noodle.ts(+10 -0)📝
packages/server/src/db/schema/noodle.ts(+21 -13)📝
packages/server/src/routes/noodle.routes.ts(+26 -0)📝
packages/server/src/services/storage/noodle.storage.ts(+267 -30)📝
packages/shared/src/schemas/noodle.schema.ts(+5 -0)📝
packages/shared/src/types/noodle.ts(+4 -0)📄 Description
Linked issue
Closes #3754
Why this change
NoodleR private-account creation previously required inserting a private row and separately writing a reverse link onto the public account. A failure between those writes could leave an orphan, while concurrent requests could create duplicate private accounts.
Private records also need a hard boundary from existing public Noodle queries and mutations before later NoodleR features build on them.
What changed
visibilityand nullablepublicAccountIdfields to Noodle account rows.publicAccountId.409when concurrent creation loses the unique-constraint race.Storage impact
This changes the persisted
noodle_accountsrow shape. No standalone migration script is required for the file-native backend: existing rows are normalized on load tovisibility: "public"andpublicAccountId: null.Validation
pnpm check.pnpm guard:installer-artifacts.pnpm version:check.pnpm regression.Automated evidence gathered while preparing this PR:
pnpm checkpassed, including TypeScript, ESLint, and production builds.pnpm guard:installer-artifactspassed.pnpm version:checkpassed.pnpm regressionpassed, including all Noodle regressions.pnpm regression:noodlepassed after isolation hardening.smoke:uicould not run because the Playwright Chromium host is missinglibnspr4.so; no browser automation host was connected for a substitute browser check.Controlled concurrency and isolation proof
A temporary proof script was run against isolated file-native storage and removed before handoff. It used
Promise.allfor two HTTP creation requests against the same public account and verified:201and the other returned409.publicAccountId; no reverse-link write or orphan was created.404.Manual verification needed
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.