FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: normalize firestore document path by russellwheatley · Pull Request #106 · firebase/firebase-functions-python · GitHub

fix: normalize firestore document path - #106

Merged
exaby73 merged 4 commits into
mainfrom
issue-91
Jun 20, 2023
Merged

fix: normalize firestore document path#106
exaby73 merged 4 commits into
mainfrom
issue-91

Conversation

russellwheatley commented Jun 19, 2023
edited
Loading

Copy link
Copy Markdown
Member

This PR should be merged first to fix the formatting CI failure: #108

Created a util function for normalizing Firestore document paths for each Firestore event listener.

fix #91

We tested the implementation by running Functions emulator. Here is a sample log of the path coming into the function before and after the path is normalized:

Print logs to show before and after we normalize the path:

Output on the console for "created", "written", "updated" & "deleted":

We've also created a unit test for the normalize function here

Salakar marked this pull request as ready for review June 19, 2023 16:23
exaby73 merged commit 0ae6070 into main Jun 20, 2023
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

Firestore functions doesn't ignore / prefix

3 participants


Back | FazBrowse Home | New Git URL