Repository navigation
Add public forums with inherited access rules and Vanilla migration - #16
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Companion UI: topcoder-platform/platform-ui#2444
Public forums now share the existing topic/post engine while applying inherited category permissions to reads, writes, search, counts, watches and notification recipients. Anonymous visitors can read accessible content; authenticated members can participate, with explicit copilot/reviewer and imported Vanilla-only membership restrictions.
This adds an insert-only production-Vanilla importer for dev testing and eventual production cutover. It excludes challenge/group subtrees, maps authors against the target Members database, preserves nested Markdown posts and follows/read states, refuses source/target conflicts, and verifies unchanged challenge fingerprints within the import transaction. The Prisma migration only adds metadata/provenance tables.
Validation:
pnpm lintandpnpm buildpass.Deployment and cutover instructions are in
docs/public-forums.md. Deploy this API before importing restricted content or enabling the companion Platform UI app. Production cutover remains gated on dev acceptance. Do not roll back to an API version that ignores category ACLs after importing private categories.Dev rollout and migration verified: task revision 18, 21,440 inserted rows, immediate rerun inserted zero. All 6,437 existing challenge topics and related-row fingerprints remained unchanged. Live guest/member/copilot/reviewer catalogs and direct-access denials matched the source ACL projection. The audit, including unmapped dev identities and production gates, is in
docs/public-forums-dev-migration.md. Production was not written to.