Firebase package parity#60
Draft
zdburrage wants to merge 1 commit into
Draft
Conversation
Phase 13 of the provider-parity plan. Adds package mode to the Firebase transformer alongside the existing single-CSV path. - New \`src/transformers/firebase/package-exporter.ts\` reads the Firebase Auth JSON export plus optional org/role mapping CSVs and emits the canonical migration-package layout: users, orgs, memberships, role definitions, role assignments, workos_upload/, manifest, warnings, and skipped-user sidecars. - Disabled users are skipped by default (with structured \`disabled_user\` skip records); \`--include-disabled\` keeps them. Missing scrypt parameters become structured \`missing_scrypt_parameters\` warnings instead of dropping passwords silently. - Package and upload-compatible files use the same Firebase \`localId\` and \`org_external_id\` so \`import-package\` resolves users/orgs from either projection. - \`transform-firebase\` CLI gains \`--package\` and \`--output-dir\` flags. Existing \`--output\` flow is unchanged. - Tests cover org/role mapping merge, disabled-user skip, missing scrypt warning, include-disabled, and the no-mapping baseline. - README adds the package flow and points at \`import-package\`.
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.
Summary
Phase 13 of the provider-parity execution plan. Firebase transformer now writes a migration package alongside the existing single-CSV path.
src/transformers/firebase/package-exporter.tsreads the Firebase Auth JSON export plus optional org/role mapping CSVs and emits the canonical migration-package layout.disabled_userskip records;--include-disabledkeeps them.missing_scrypt_parameterswarnings instead of dropping passwords silently.localIdandorg_external_idsoimport-packageresolves users/orgs from either projection.transform-firebaseCLI gains--packageand--output-dir. Existing--outputflow is unchanged.import-package.Test Plan
npm run lintnpm run format:checknpm run typechecknpm run buildnpm test— 272 passing across 24 suites.🤖 Generated with Claude Code