[GH-ISSUE #3754] [Feature]: Isolate NoodleR private accounts from public Noodle data #2023

Closed
opened 2026-10-21 05:44:40 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Jul 17, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3754

Originally assigned to: @Gunterlie on GitHub.

What problem does this solve?

NoodleR private-account creation previously required a private-row insert followed by a separate reverse-link write on the public account. A failure or concurrent request could leave an orphan or duplicate. Private rows, posts, and interactions also need a hard boundary from existing public Noodle queries and mutations before later NoodleR features build on them.

Proposed solution

Store explicit account visibility and a nullable public-account owner on the private row, enforce one private account per public account with a conditional unique constraint, derive the reverse relationship instead of writing it separately, and keep private-account access behind a default-off NoodleR gate. Public Noodle reads, mutations, resets, posts, interactions, and digests must exclude private data.

Implementation owner: @Gunterlie in #3751. Maintainer integration: @SpicyMarinara.

Alternatives considered

Keeping the reverse link in the public account settings and relying on application-level duplicate checks was considered, but it retains the two-write failure window and does not provide a storage-level concurrency guarantee.

Additional context

Implementation PR: #3751. This follows the NoodleR direction and review findings discussed in closed PR #3618.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @SpicyMarinara on GitHub (Jul 17, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/3754 Originally assigned to: @Gunterlie on GitHub. ## What problem does this solve? NoodleR private-account creation previously required a private-row insert followed by a separate reverse-link write on the public account. A failure or concurrent request could leave an orphan or duplicate. Private rows, posts, and interactions also need a hard boundary from existing public Noodle queries and mutations before later NoodleR features build on them. ## Proposed solution Store explicit account visibility and a nullable public-account owner on the private row, enforce one private account per public account with a conditional unique constraint, derive the reverse relationship instead of writing it separately, and keep private-account access behind a default-off NoodleR gate. Public Noodle reads, mutations, resets, posts, interactions, and digests must exclude private data. Implementation owner: @Gunterlie in #3751. Maintainer integration: @SpicyMarinara. ## Alternatives considered Keeping the reverse link in the public account settings and relying on application-level duplicate checks was considered, but it retains the two-write failure window and does not provide a storage-level concurrency guarantee. ## Additional context Implementation PR: #3751. This follows the NoodleR direction and review findings discussed in closed PR #3618. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [x] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 05:44:40 +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#2023
No description provided.