Title: [WIP] Adding stream listener to stream changes in child nodes by the-c0d3r · Pull Request #183 · firebase/firebase-admin-python · GitHub
Open Graph Title: [WIP] Adding stream listener to stream changes in child nodes by the-c0d3r · Pull Request #183 · firebase/firebase-admin-python
X Title: [WIP] Adding stream listener to stream changes in child nodes by the-c0d3r · Pull Request #183 · firebase/firebase-admin-python
Description: Hi, This PR's original intent is to add stream listener function to fire a callback function when changes in the database is detected. It is a revival of this #50 1-year-old PR and also based on the code contributed by @rizasif and @Aqsa-K in that PR. This PR is mainly to serve 3 purposes. Update the old PR with a rebase on master Clean up, refactor & fix lint errors Write tests For now, I have completed the first and second of the above. Please advise me on how to properly write the test in PyTest. I tested the code manually by defining callback and manually modifiying data in my firebase demo project. And it seems to be fired everytime I made changes. I read through the existing test suite and I cannot think of a way to write into it yet. Changes: lint.sh : Ignore directive for "protected-access" firebase_admin/sseclient.py : SSE client module firebase_admin/db.py : Streaming functionality New API call: database.reference('/xxx').stream(callbackFunc) Regards
Open Graph Description: Hi, This PR's original intent is to add stream listener function to fire a callback function when changes in the database is detected. It is a revival of this #50 1-year-old PR and also based o...
X Description: Hi, This PR's original intent is to add stream listener function to fire a callback function when changes in the database is detected. It is a revival of this #50 1-year-old PR and also bas...
Opengraph URL: https://github.com/firebase/firebase-admin-python/pull/183
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/checks(.:format) |
| route-controller | pull_requests |
| route-action | checks |
| fetch-nonce | v2:abdc553f-a713-9d72-c6b2-8a3fe43348b4 |
| current-catalog-service-hash | 87dc3bc62d9b466312751bfd5f889726f4f1337bdff4e8be7da7c93d6c00a25a |
| request-id | D590:1B3397:6C7DD1:8A66A9:699226E3 |
| html-safe-nonce | 2edefc1ff936012315331016724fddd6e14e12a46d9fdbca18f9513467714a0b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENTkwOjFCMzM5Nzo2QzdERDE6OEE2NkE5OjY5OTIyNkUzIiwidmlzaXRvcl9pZCI6IjcxNjQxNTQ4ODkzNTIwODY3NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | eec3411e8ec38004da492f57c7c1ef185674c58527e26c01707ebe77664d7300 |
| hovercard-subject-tag | pull_request:203011594 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,checks,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/firebase/firebase-admin-python/pull/183/checks |
| twitter:image | https://avatars.githubusercontent.com/u/4526565?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/4526565?s=400&v=4 |
| og:image:alt | Hi, This PR's original intent is to add stream listener function to fire a callback function when changes in the database is detected. It is a revival of this #50 1-year-old PR and also based o... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42c603b9d642c4a9065a51770f75e5e27132fef0e858607f5c9cb7e422831a7b |
| turbo-cache-control | no-preview |
| go-import | github.com/firebase/firebase-admin-python git https://github.com/firebase/firebase-admin-python.git |
| octolytics-dimension-user_id | 1335026 |
| octolytics-dimension-user_login | firebase |
| octolytics-dimension-repository_id | 84979152 |
| octolytics-dimension-repository_nwo | firebase/firebase-admin-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 84979152 |
| octolytics-dimension-repository_network_root_nwo | firebase/firebase-admin-python |
| turbo-body-classes | logged-out env-production page-responsive full-width full-width-p-0 |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 848bc6032dcc93a9a7301dcc3f379a72ba13b96e |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width