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
@samtstern asked me to post this here, so here I am following orders :)
We have a production and dev. project. We keep our rules in git repository. I was hoping to be able to sync the rules by doing
firebase firestore:indexex > firestore.indexes.json
then compare the changes, approve and deploy.
However when I export the rules they seem to be ordered by I don't know what. Maybe the creation time of each rule. So I end up with a json file that is impossible to compare.
Is it possible to sort the rules alphabetically based on the collection name and then on the fieldPath - I'm not sure if the ordering in the field path is important, but if it is, then sorting only on collection name should do it.
The text was updated successfully, but these errors were encountered:
@samtstern asked me to post this here, so here I am following orders :)
We have a production and dev. project. We keep our rules in git repository. I was hoping to be able to sync the rules by doing
firebase firestore:indexex > firestore.indexes.json
then compare the changes, approve and deploy.
However when I export the rules they seem to be ordered by I don't know what. Maybe the creation time of each rule. So I end up with a json file that is impossible to compare.
Is it possible to sort the rules alphabetically based on the collection name and then on the fieldPath - I'm not sure if the ordering in the field path is important, but if it is, then sorting only on collection name should do it.
The text was updated successfully, but these errors were encountered: