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
The __name__ to also be included, as that is the difference between both
[REQUIRED] Actual behavior
The current duplication is a problem because when you take the index file from the sandbox env and deploy it to production, you think all the indexes are created, but in fact only one of the 2 is. And thus you reach a FAILED_PRECONDITION on production
While this example is exaggerated in the sense that probably you would not have 2 indexes like this, the bigger issue is if you have an index with a __name__ order that is not exactly as the default sort order, then it's not properly generated when moving from sandbox to production
Hey @andreibarabas, thanks for the detailed report and sharing your observations! I was able to reproduce the issue you mentioned. Sharing the mcve here. Let me raise this to our engineering team so they can take a look. I’ll also mark this issue as reproducible .
Activity
aalej commentedon Sep 10, 2024
Hey @andreibarabas, thanks for the detailed report and sharing your observations! I was able to reproduce the issue you mentioned. Sharing the mcve here. Let me raise this to our engineering team so they can take a look. I’ll also mark this issue as reproducible .
andreibarabas commentedon Sep 11, 2024
thanks @aalej . the mcve looks solid. thanks for adding the extra touch ;)
tonyay163 commentedon Feb 28, 2025
@aalej, is this something that will be prioritized? Not being able to handle descending
__name__indexes means that this is not usable for meglumb commentedon Jul 10, 2025
@aalej its been a few weeks now. Is there anything missing to merge the PR?
Correct handling of __name__ in firestore indexes (#8862)