Skip to content
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

Ensure LiveQuery subscribes #878

Merged
merged 5 commits into from
Jul 31, 2019
Merged

Ensure LiveQuery subscribes #878

merged 5 commits into from
Jul 31, 2019

Conversation

dplewis
Copy link
Member

@dplewis dplewis commented Jul 31, 2019

Its a known issue that query.subscribe instantly returns a subscription without waiting until it subscribes. This PR fixes that.

This PR will make it easier to write Live Query tests on Parse Server.

@codecov
Copy link

codecov bot commented Jul 31, 2019

Codecov Report

Merging #878 into master will increase coverage by 0.05%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff            @@
##           master    #878      +/-   ##
=========================================
+ Coverage   92.05%   92.1%   +0.05%     
=========================================
  Files          54      54              
  Lines        5019    5026       +7     
  Branches     1126    1126              
=========================================
+ Hits         4620    4629       +9     
+ Misses        399     397       -2
Impacted Files Coverage Δ
src/LiveQuerySubscription.js 100% <100%> (ø) ⬆️
src/LiveQueryClient.js 87% <100%> (+1.45%) ⬆️
src/ParseQuery.js 95.86% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 81ddc94...3284853. Read the comment docs.

@dplewis dplewis requested a review from davimacedo July 31, 2019 07:38
Copy link
Member

@davimacedo davimacedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good to me. I am just adding some questions to think about.

@dplewis dplewis requested a review from acinader July 31, 2019 14:48
@dplewis dplewis merged commit 5829b4e into master Jul 31, 2019
@dplewis dplewis deleted the ensure-subscribe branch July 31, 2019 19:45
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.

2 participants