Skip to content

Still encountering duplicate index issue with 14.11.1 #8910

@jflemingframe

Description

@jflemingframe

Still encountering duplicate index issue with 14.11.1

Anonymized data below

something that stands out is i have indices that use sub-object fields like "data.fieldname", where data is a map field.
Also theres 2 sections, indexes, and fieldOverrides.

firestore.indexes.anonymized.json

made this with AI
run like this cat <json file> | node <script.js> or whatever else does stdin to the next command
it will output to command line.
it attempts to do some kind of verification. Didnt look through all that in gross detail, but the diff and the resulting file length makes alot of sense. good enough for us probably?
anonymize-firebase-indexes.js.txt

Hey @jflemingframe, I'm trying to reproduce the issue using v14.11.1 but so far I haven't encountered any errors with firebase deploy --only firestore:indexes

$ firebase deploy --only firestore:indexes

=== Deploying to 'PROJECT_ID'...

i  deploying firestore
i  firestore: reading indexes from firestore.indexes.json...
i  cloud.firestore: checking firestore.rules for compilation errors...
✔  cloud.firestore: rules file firestore.rules compiled successfully
i  firestore: deploying indexes...
✔  firestore: deployed indexes in firestore.indexes.json successfully for (default) database

✔  Deploy complete!

Project Console: https://console.firebase.google.com/project/PROJECT_ID/overview
$ firebase --version
14.11.1

It's possible that we may have missed a scenario here - could you please open up a new report and share a sample of what your indexes look like? This will help us reproduce and investigate the cause or the error. If there are any PIIs, please omit those values

Originally posted by @aalej in #8859

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions