-
-
Notifications
You must be signed in to change notification settings - Fork 596
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: LiveQueryClient.resubscribe
with Parse Server 7 causes many open connections
#2184
Conversation
Thanks for opening this pull request! |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## alpha #2184 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 64 64
Lines 6364 6365 +1
Branches 1535 1506 -29
=========================================
+ Hits 6364 6365 +1 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; @akichim21 do you want to try this out before we merge, to see whether it solves the reported bug?
keys
and watch
to LiveQueryClient.resubscribe
LiveQueryClient.resubscribe
with Parse Server 7 causes many open connections
@dplewis changed PR title to describe the issue; is the new title ok? |
The title is perfect! |
# [5.2.0-alpha.3](5.2.0-alpha.2...5.2.0-alpha.3) (2024-06-24) ### Bug Fixes * `LiveQueryClient.resubscribe` with Parse Server 7 causes many open connections ([#2184](#2184)) ([71b4d17](71b4d17))
🎉 This change has been released in version 5.2.0-alpha.3 |
# [5.2.0-beta.1](5.1.0...5.2.0-beta.1) (2024-06-24) ### Bug Fixes * `LiveQueryClient.resubscribe` with Parse Server 7 causes many open connections ([#2184](#2184)) ([71b4d17](71b4d17)) * `Parse.Installation` not working when installation is deleted on server ([#2126](#2126)) ([22360b4](22360b4)) * Duplicate pending operations on nested fields ([#2162](#2162)) ([df6df7c](df6df7c)) ### Features * Support dot notation on array fields ([#2120](#2120)) ([25ec684](25ec684))
🎉 This change has been released in version 5.2.0-beta.1 |
# [5.2.0](5.1.0...5.2.0) (2024-06-29) ### Bug Fixes * `LiveQueryClient.resubscribe` with Parse Server 7 causes many open connections ([#2184](#2184)) ([71b4d17](71b4d17)) * `Parse.Installation` not working when installation is deleted on server ([#2126](#2126)) ([22360b4](22360b4)) * Dot notation on JSON arrays doesn't work on `PushStatus` offset fields ([#2194](#2194)) ([e0eb6f0](e0eb6f0)) * Duplicate pending operations on nested fields ([#2162](#2162)) ([df6df7c](df6df7c)) ### Features * Support dot notation on array fields ([#2120](#2120)) ([25ec684](25ec684))
🎉 This change has been released in version 5.2.0 |
Pull Request
Issue
The
fields
attribute was changed tokeys
in Parse Server 7,watch
was added in version 6. Resubscribing doesn't subscribe to the same query as the initial subscription. It was discovered that resubscribing withfields
on version 7 will caused resubscribing every second which lead to many connections to the server ultimately resulting in a crash.Closes: #2180
Approach
Tasks