-
-
Notifications
You must be signed in to change notification settings - Fork 598
feat: add options to enable polling and set the polling interval; fixes excessive polling #1419
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
Conversation
Thanks for opening this pull request!
|
I will reformat the title to use the proper commit message syntax. |
I will reformat the title to use the proper commit message syntax. |
Codecov Report
@@ Coverage Diff @@
## alpha #1419 +/- ##
=======================================
Coverage 99.94% 99.94%
=======================================
Files 61 61
Lines 5943 5948 +5
Branches 1350 1354 +4
=======================================
+ Hits 5940 5945 +5
Misses 3 3
Continue to review full report at Codecov.
|
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!
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 - so it was "after", not "before"? just to make sure...
Its after there must have been a typo before. All the example show that you call |
Actually we still need a manual changelog entry in this repo, could you add one? |
@dplewis does this contain a bugfix? from the description it seems this is rather a new feature/improvement because it adds parameters to enable polling and set the polling interval. |
Its an improvement on an existing feature that fixes a bug in the process |
ok, and what is the bug it fixes? |
I can break this up into 2 PRs if it helps. In this PR there is a fix for side effect from a previous feature and the PR also adds an improvement to the same feature. |
Ideally it would be 2 PRs, but I guess we can leave this in 1 PR if it relates to the same feature. It adds a feature so I have to merge it as |
# [3.4.0-alpha.1](3.3.2-alpha.1...3.4.0-alpha.1) (2021-10-27) ### Features * add options to enable polling and set the polling interval; fixes excessive polling ([#1419](#1419)) ([0f804b8](0f804b8))
🎉 This change has been released in version 3.4.0-alpha.1 |
# [3.4.0](3.3.1...3.4.0) (2021-11-01) ### Bug Fixes * update parse server dependency branch; recreate package lock ([#1424](#1424)) ([38455ef](38455ef)) * upgrade @babel/runtime from 7.14.8 to 7.15.3 ([#1404](#1404)) ([8cb321c](8cb321c)) ### Features * add options to enable polling and set the polling interval; fixes excessive polling ([#1419](#1419)) ([0f804b8](0f804b8))
🎉 This change has been released in version 3.4.0 |
New Pull Request Checklist
Issue Description
Related issue: #1378
Many Parse Server hosting providers charge based on API calls so the constant polling increases the API calls count per client to the point where it becomes cost-prohibitive to use.
Approach
Parse.enableLocalDatastore
Parse.initialize
is called beforeParse.enableLocalDatastore
TODOs before merging