firebase / firebase/firebase-tools
Firestore emulator does not reload rules, even though it indicates it does.
- Dominant language
- TypeScript
- Stars
- 4.5k
- Forks
- 1.3k
- Avg merge
- 1d 12h
- Merged PRs (30d)
- 84
Description
### [REQUIRED] Environment info
**firebase-tools:**11.20.0
**Platform:**Ubuntu: 22.04
### [REQUIRED] Test case
```
match /myCol/{id} {
allow read: if true;
allow write: if false;
}
```
### [REQUIRED] Steps to reproduce
1. Create a rule on a document with a value of false for read.
```
match /myCol/{id} {
allow read: if false;
allow write: if false;
}
```
2. Start the firestore emulator:
`firebase emulators:start --import .firebase-export --export-on-exit`
3. Read the document with a client, then in the Firestore emulator UI, observe request, and it highlights the line where the permission failure occured.
4. Update the rules to true.
```
match /myCol/{id} {
allow read: if true;
allow write: if false;
}
```
5. Read the document with a client, then in the Firestore emulator UI, and observe the request. It will show a failed request and still highlight the changes lines as failing with false.
### [REQUIRED] Expected behavior
The rules will be updated like the emulator out states they are.
### [REQUIRED] Actual behavior
The rules are not updated.
Contributor guide
Assessment
This issue has not been assessed yet.