You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/firestore/test/integration/api/README.md
+18Lines changed: 18 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,3 +9,21 @@ put in test/integration/api_internal instead.
9
9
The line "import * as firebaseExport from '../util/firebase_export';" is
10
10
replaced via the gulpfile in 'integration/firestore' and should not be
11
11
modified.
12
+
13
+
14
+
## Testing composite index query against production
15
+
16
+
### Setting Up the Environment:
17
+
1. Create a `project.json` file in the `firebase-js-sdk/config` directory. This file should contain your target Firebase project's configuration.
18
+
2. If not already logged in, authenticate with your Google Cloud Platform (GCP) account using `gcloud auth application-default login`. You can check your logged-in accounts by running `gcloud auth list`.
19
+
3. Navigate to the `firebase-js-sdk/packages/firestore` directory, run:
Note: If the index creation encounters issues, such as concurrent operations, consider running the index creation process again. Error messages indicating that indexes have already been created can be safely disregarded.
25
+
26
+
27
+
### Adding new composite index query tests
28
+
1. To create a new composite index for local development, click on the provided link in the test error message, which will direct you to the Firebase Console.
29
+
2. Add the newly created composite index to the `firestore_index_config.tf` file. The "__name__" field is not required to be explicitly added to the file, as the index creation will auto complete it on behalf.
0 commit comments