Commit Graph

18 Commits

Author SHA1 Message Date
Thomas Goyne bfb06ac0df Restore support for opening query-based sync Realms with a dynamic schema (#2065)
* Restore support for opening query-based sync Realms with a dynamic schema

* Adjust how the schema is extended for query-based Realms

* Register constructors for permissions types even no schema is supplied

* Remove some cruft from tests

* Fix a use-after-free in dynamic schema mode

* Fix a test
2018-10-16 09:49:16 +02:00
Kenneth Geisshirt ffb48ec2ed
Enhancements of subscription api (#2060)
* Adding Realm.subscriptions() and Realm.unsubscribe()
* Update changelog
* RN support
2018-10-10 12:00:04 +02:00
Christian Melchior 434e8ca2bc
Align permission API's with Java/Swift (#2036) 2018-10-04 10:09:31 +02:00
Nabil Hachicha 111e9c223f Adding permission schema for query based sync (#2027)
* Adding permission schema when opening the Realm
* Adding permission schema implicitly for query based Realms
* Remove old code
* Remove outdated test
2018-09-19 16:16:44 +02:00
Nikola Irinchev 80cde7a5b0 Redesign user auth (#2002)
* Refactor user auth
* Allow to override the jwt provider name
* Add custom provider and changelog
* Remove the callback argument from docs
2018-09-13 08:45:06 +02:00
Kenneth Geisshirt 1b1b51ded2
BUG FIX: A schema is required when Realm is opened in a query-based sync situation (#1985) 2018-08-24 08:50:27 +02:00
Christian Melchior 4cb9c77f46
Query-based sync as the default sync mode (#1830) 2018-05-30 12:54:51 +02:00
Kenneth Geisshirt c370ef4d86
Testing against ROS 3.0.0. (#1712)
* Testing against ROS 3.0.0.
* Adding Realm.Sync.Subscription.removeAllListeners. Refactor partial sync tests.
* Refactoring partial sync tests.
2018-03-21 18:18:37 +01:00
Thomas Goyne 9da59d8f04 Reformat permissions-tests.js to a consistent 4-space indent 2018-03-05 09:46:24 -08:00
Thomas Goyne d1a4e899d8 Fix the Permissions typescript definitions 2018-03-02 15:36:45 -08:00
Thomas Goyne 384f43c637 Make testOfferPermissions more reliable
The order of the permissions is undefined and will vary based on what order
things happen to resolve on the server.
2018-03-02 13:44:56 -08:00
Thomas Goyne 0047ffba13 Add object-level permissions tests 2018-03-01 16:16:58 -08:00
blagoev 7f75b72a09 fix permission tests 2017-11-20 13:26:47 +02:00
Thomas Goyne 8972a20459 Update tests to not use deprecated APIs
Switch to the newer promise-based APIs rather than the callback versions.
2017-11-10 18:12:21 -08:00
blagoev fe09dc0d5f disable failing permission test 2017-10-02 11:33:56 +03:00
Thomas Goyne e8e23bbee7 Make permission tests better handle server delays
Retry a few times if the request hasn't been processed yet rather than hoping
that a 100ms sleep will suffice.
2017-09-19 13:14:49 -07:00
blagoev 4d1762025f Fix possible sporadic test failure 2017-09-12 11:21:15 +03:00
Kristian Dupont 402bf48f88 Permissions api (#1244)
* Add basic permissions skeleton

* ...

* Update permissions api

* Wait for server to process management realm, add offer api

* Fix test of apply and get permissions, add offer test

* Accept permission offer

* Accept permission offer test

* Invalidate permission offer

* Add basic docs (still need some links etc)

* Refactor tests

* Only run permission tests where sync is enabled

* Use legal syntax for user name generation

* Add changelog entry

* Streamline permission tests

* Fix casing for access level names etc.

* Add basic definitions to index.d.ts

* Use settimeout for resolving promise from listener

* Complete typescript defs

* Improve docs

* Allow 'any' as default recipient in getGrantedPermissions

* Fix getSpecialPurposeRealm on iOS

* Response to PR comments

* Respond to PR comments

* Fix offer description

* Skip permission tests in chrome debugger :-/
2017-08-29 15:23:22 +02:00