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

Added deltaset tests #294

Conversation

Martin-Hristov
Copy link
Contributor

Adding integration tests for deltaset

@Martin-Hristov Martin-Hristov force-pushed the mhristov/deltaset-integration-tests branch from 6a59baf to 575b3a3 Compare May 16, 2018 14:26
@Martin-Hristov Martin-Hristov force-pushed the mhristov/deltaset-integration-tests branch from 575b3a3 to d29b076 Compare May 16, 2018 14:34
@thomasconner thomasconner force-pushed the mhristov/deltaset-integration-tests branch from 45cf5a3 to f5080c6 Compare May 18, 2018 16:00
@thomasconner thomasconner merged commit 5152da3 into MLIBZ-2316_server_side_delta_set May 18, 2018
@thomasconner thomasconner deleted the mhristov/deltaset-integration-tests branch May 18, 2018 17:57
thomasconner added a commit that referenced this pull request May 18, 2018
* MLIBZ-2316: Delete deltaFetch.js

* MLIBZ-2316: Add deltaset.js

* MLIBZ-2316: Remove export of deltaFetch

* MLIBZ-2316: Use new deltaSet function in NetworkRepository

* Remove TODO comment

* MLIBZ-2316: Add clearDeltaSet function

* MLIBZ-2316: Add tests for using delta set with a CacheStore

* MLIBZ-2316: Rename useDeltaFetch to useDeltaSet

* MLIBZ-2316: Add delta set constants

* MLIBZ-2316: Split delta set logic into smaller functions

* MLIBZ-2316: Add tests for delta set

* Update package versions to 3.10.1-beta.1

* Make requested changes from code review for delta set

* Don't perform _replaceOfflineEntities() when using delta set

* Fix typo and change name from xKinveyRequestStartHeader to kinveyRequestStartHeader

* Don't duplicate function calls in SyncManager.pull()

* Fix check for if statment for SyncManager.pull()

* Only replace entities if useDeltaSet is not true

* Default options to an empty object in SyncManager.pull()

* Fix failing unit tests related to changes

* Add checks for skip amd limit modifiers to delta set

* MLIBZ-2316: Handle skip and limit for Delta Set

We will log that the skip and limit modifiers will be ignored for a delta set request. These modifiers will be appliead to the cache after the delta set request has completed. A find() and pull() on a data store will now honor skip and limit modifiers preventing the user from keeping track of when they can and cannot use a specific query.

* Update logged message for delta set

* Use original query when performing regular GET request for delta set

* MLIBZ-2316: Send a regular GET request if a query contains a skip and/or limit modifier

* MLIBZ-2437: Send a regular GET request if a ParamaterValueOutOfRangeError is received from a delta set request

* Add missing curly brace

* Fixing failing tests

* Add InvalidCachedQuery error

* Export InvalidCachedQuery error

* Add querycache.js

* Add a getter for X-Kinvey-Request-Start header to Headers class

* Remove constants

* Refactor SyncManager to use new deltaset and querycache files

* Use requestStart getter from headers

* Fix failing unit tests

* Bug fixes for Delta Set

* Fix some bugs found during testing

* Fix skipped unit tests

* MLIBZ-2478: Return count of items changed when making a _deltaset request with pull()

* MLIBZ-2477: Handle NotFoundError when deleting a cachedQuery

* MLIBZ-2486: Ignore limit and skip for auto pagination and update tests

* MLIBZ-2493: Perform delta set delete and then delta set changed serially instead of in parallel.

* MLIBZ-2449: Do not filter out _QueryCache table or __testSupport__ table when get all tables for WebSQL

* MLIBZ-2495: Ignore deleting entities when limit and skip are used to pull entities

* Update _queryCache after auto pagination has completed

* MLIBZ-2512: Ignore skip value of query for auto pagination

* Fix failing unit test that checks if skip is ignored for auto pagination

* Added deltaset tests (#294)

* Added deltaset tests

* added new tests for limit and skip and some unit tests

* skipped tests that use websql to not run on other than html5 and removed a .only

* removed another .only

* did some refactoring and fixed tests failing for Nativescript and Phonegap

* Fix status code set with nock for failing unit test

* Added deltaset tests

* added new tests for limit and skip and some unit tests

* skipped tests that use websql to not run on other than html5 and removed a .only

* removed another .only

* did some refactoring and fixed tests failing for Nativescript and Phonegap

* Fix status code set with nock for failing unit test

* added a test for autopagination with skip and limit

* fixing an expectation string and wrong expectation for deltaset test

* Added deltaset tests

* added new tests for limit and skip and some unit tests

* skipped tests that use websql to not run on other than html5 and removed a .only

* removed another .only

* did some refactoring and fixed tests failing for Nativescript and Phonegap

* Fix status code set with nock for failing unit test

* removed .only again
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