V25 · Firebase emulator thật hơn

Seed Firestore emulator bằng plan có boundary rõ ràng.

V25 chuẩn bị seed bằng Firebase Admin SDK/emulator, nhưng chặn seed phá hủy và không dùng production data.

Seed plan

6 document demo · mode firebase-admin-emulator-seed

  • Seed bằng Firebase Admin SDK chỉ được bật khi FIRESTORE_EMULATOR_HOST tồn tại hoặc EXIXT_ALLOW_FIREBASE_DEV_SEED=true.
  • Seed không dùng delete trước khi ghi. Nếu cần reset emulator, reset ở cấp emulator, không viết script phá hủy mặc định.
  • Mọi document seed đều khai báo boundary để audit và review dễ hơn.
participant-private

participants/p-demo-001

destructive: false

participant-consent

participants/p-demo-001/consentRecords/consent-v1

destructive: false

submission-private

participants/p-demo-001/r4Submissions/sub-demo-001

destructive: false

report-private

participants/p-demo-001/reports/report-demo-001

destructive: false

aggregate-only

cohorts/cohort-demo-001/aggregateSnapshots/snapshot-demo-001

destructive: false

audit-append-only

auditEvents/audit-demo-001

destructive: false