firebase / firebase/firebase-tools

Allow database import at runtime

Open
#2,297 12 comments 15 reactions 1 assignee Claimed by @yuchenshi View on GitHub
emulator-suite emulators: firestore type: feature request
Dominant language
TypeScript
Stars
4.5k
Forks
1.3k
Avg merge
1d 12h
Merged PRs (30d)
84

Description

### [REQUIRED] Environment info

**firebase-tools:** 8.4.0

**Platform:** MacOS

### [REQUIRED] Test case

n/a

### [REQUIRED] Steps to reproduce

- start the emulator with --import to preload an already exported data set.
- check on the new ui that the data is imported
- clear the database using REST api described at https://firebase.google.com/docs/emulator-suite/connect_and_prototype#clear_your_database_between_tests
- check on the ui, the data is gone

### [REQUIRED] Expected behavior

The database is reset to its initial state with the imported data present

### [REQUIRED] Actual behavior

The database is empty, the initial data is not restored.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.