-
Notifications
You must be signed in to change notification settings - Fork 13
feat(firestore): initial support #245
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
31 commits
Select commit
Hold shift + click to select a range
f8eecfa
feat(firestore): initial support
brianquinlan 25cf756
More work
brianquinlan d8e93c7
fix hash
brianquinlan 62b1e4d
project
brianquinlan 902b3d5
rename
brianquinlan 99c14d9
fix
brianquinlan 433b071
fixes
brianquinlan 3488b1a
remove async
brianquinlan 775e804
Note
brianquinlan 536a000
fix
brianquinlan 4fffcab
test updates
brianquinlan 99e6a74
chore: upgrade to lastest sidekick
brianquinlan 6fe7676
fixes
brianquinlan 742de95
new version
brianquinlan 86780fd
chore: upgrade to latest sidekick (better fakes)
brianquinlan a2c4279
fixes
brianquinlan a5848b1
fix
brianquinlan 9e35c82
ci
brianquinlan 5e59648
Merge branch 'main' into fake_tests
brianquinlan 5a76aa8
merge
brianquinlan 14f99d3
fix
brianquinlan 76e38ef
fakes
brianquinlan c79509e
merge
brianquinlan 32c2bc8
work
brianquinlan b30046c
test
brianquinlan 174879d
fix
brianquinlan 0b93ca9
Merge branch 'main' into firestore
brianquinlan 0e1a1b0
reorder
brianquinlan 107b93e
deps
brianquinlan c6925b8
order
brianquinlan b3ffe91
Merge branch 'main' into firestore
brianquinlan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes.
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| # Firebase Emulator Tests | ||
|
|
||
| This directory contains configuration for running tests that target | ||
| the [Firebase Emulators Suite][]. | ||
|
|
||
| ## Running Tests Locally | ||
|
|
||
| To run these tests on your machine, you need to have the emulator running in | ||
| one terminal session and execute the tests in another. | ||
|
|
||
| ### 1. Start the Firebase Emulator | ||
|
|
||
| Navigate to this directory and start the emulator: | ||
|
|
||
| ```bash | ||
| firebase emulators:start | ||
| ``` | ||
|
|
||
| ### 2. Run the Tests | ||
|
|
||
| In a separate terminal, navigate to the root of the repository and run the | ||
| tests: | ||
|
|
||
| ```bash | ||
| GOOGLE_CLOUD_PROJECT=test-project \ | ||
| FIRESTORE_EMULATOR_HOST=127.0.0.1:8080 \ | ||
| STORAGE_EMULATOR_HOST=127.0.0.1:9199 \ | ||
| dart test -P firebase-emulator . | ||
| ``` | ||
|
|
||
| [Firebase Emulators Suite]: https://firebase.google.com/docs/emulator-suite |
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
File renamed without changes.
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| lib/firestore.dart linguist-generated=true | ||
| lib/testing.dart linguist-generated=true | ||
| lib/src/api.g.dart linguist-generated=true |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
location_idis hardcoded tous-central1. Since aregionvariable is already defined and used for other resources in this file, it should be used here as well to ensure consistency and allow for easier multi-region deployments.