Skip to content

calls listDocuments to also get refs to empty documents#55

Open
kitfit-dave wants to merge 1 commit into
willhlaw:masterfrom
kitfit-dave:feature/backup-empty-documents
Open

calls listDocuments to also get refs to empty documents#55
kitfit-dave wants to merge 1 commit into
willhlaw:masterfrom
kitfit-dave:feature/backup-empty-documents

Conversation

@kitfit-dave

Copy link
Copy Markdown

can backup collections that only contain other collections

the api seems to have added listDocuments() to CollectionReference (it's not in the documentation that I can see though...), it returns an array of ~DocumentReferences. When you get()one of those, empty documents will haveexists === true`.

needs newer version of firebase-admin

looks like there could be some refactoring of the promise code, it's is getting a bit deeply nested.
could also stop logging out the "restore" message when there will be no actual restore

there are 2 broken tests, but they seem to have already been broken...

see:
/issues/52
/issues/40
also (in the other parent fork):
steadyequipment/issues/43
steadyequipment/issues/28
and probably:
steadyequipment/issues/13
steadyequipment/issues/12

and about the restore logging:
/issues/41

can backup collections that only contain other collections
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant