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
Incorrect warning about missing index #6840
Comments
Hello @ottob. Do you have indexes defined from the Firebase console that haven't been added to the index file here? |
No, then I think we would get a warning about it. |
It's possible this is related to how the Document ID is included in the index. Can you check the indexes that are created in the console and pay attention to the direction of the The Firebase CLI has an issue where it currently compares indexes with the However the Firestore SDKs perform order by normalization where if the Basically your index might be getting created from the CLI as If this is indeed the issue, then you may be able to work around it by explicitly stating the order by. i.e.
|
[REQUIRED] Environment info
firebase-tools:
13.4.0
Platform:
macOS
[REQUIRED] Test case
Haven't been able to create one.
We have over 100 indexes. They all work fine except this one where we get the warning.
We have a similar index that is almost the same except that the final field is reversed. Could this cause an issue?
[REQUIRED] Steps to reproduce
firebase deploy --only firestore:indexes
Index defined in indexes.json
[REQUIRED] Expected behavior
Deploy without warning
[REQUIRED] Actual behavior
i firestore: The following indexes are defined in your project but are not present in your firestore indexes file:
(cases) --
(userRoles,CONTAINS)
(caregiverId,ASCENDING)
(snoozed,ASCENDING)
(status,ASCENDING)
(userOrganizationId,ASCENDING)
(visibility,ASCENDING)
(unsigned,DESCENDING)
(updated,DESCENDING)
The text was updated successfully, but these errors were encountered: