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

Add support for flexible subscriptions #496

Merged
merged 49 commits into from
May 17, 2022
Merged

Commits on May 17, 2022

  1. Configuration menu
    Copy the full SHA
    4d2962e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    9dc0956 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    604e713 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    03c2a39 View commit details
    Browse the repository at this point in the history
  5. Add SubscriptionSet.waitForStateChangeSync.

    Only synchonous version for now, since async C-API doesn't allow userdata
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    1d8743c View commit details
    Browse the repository at this point in the history
  6. Align with kotlin naming

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    a349fea View commit details
    Browse the repository at this point in the history
  7. Support session stop policy

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    7008377 View commit details
    Browse the repository at this point in the history
  8. Support async SubscriptionSet.waitForStateChange

    This requires support for out-of-isolate callbacks. To do this a dart
    specific EventLoopDispatcher and DispatchFreeUserdata is introduced.
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    295f051 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    7b859e5 View commit details
    Browse the repository at this point in the history
  10. Add version & state properties to SubscriptionSet

    Also, SubscriptionSet.remove* are now void methods, and corresponding
    _RealmCore functions uses invokeGetBool.
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    5a135a6 View commit details
    Browse the repository at this point in the history
  11. Annoying hack

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    9e4b3da View commit details
    Browse the repository at this point in the history
  12. Fix SubscriptionSet.find* when nothing found

    When nothing is found we should return null on find. Hence we cannot use
    invokeGetPointer, and also we need to pass null up the conversion stack.
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    4d2da95 View commit details
    Browse the repository at this point in the history
  13. More tests

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    a976fea View commit details
    Browse the repository at this point in the history
  14. Add elementAt test

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    efffee0 View commit details
    Browse the repository at this point in the history
  15. Fix windows build

    fealebenpae authored and nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    0e2da68 View commit details
    Browse the repository at this point in the history
  16. Add subscription tests to flutter tests

    * Add subscription tests to test_driver/realm_test.dart
    * Allow network use from test_driver app on macos
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    e035788 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    f869a9e View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    3028bf0 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    0ca0779 View commit details
    Browse the repository at this point in the history
  20. Remove lifetime hack

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    0c3bdce View commit details
    Browse the repository at this point in the history
  21. Fix PR feedback

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    956d78c View commit details
    Browse the repository at this point in the history
  22. Rename addOrUpdate to add and return subscription

    The add method takes an optional update parameter, that default to
    false. If true, the add will update the existing subscription if any.
    Otherwise, it will fail if the subscription exists.
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    1963b08 View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    83ed6f1 View commit details
    Browse the repository at this point in the history
  24. Rework SubscriptionSet.remove*

    * remove is now called removeByQuery
    * remove instead takes a Subscription as an argument
    * removeAll is renamed to clear to match List.clear
    * all remove* methods now returns a boolean indicating whether a
      subscription was removed
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    722f000 View commit details
    Browse the repository at this point in the history
  25. More PR feedback

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    e391f59 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    1c190c1 View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    2f9843a View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    3e351b5 View commit details
    Browse the repository at this point in the history
  29. Fix PR feedback

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    b485a29 View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    81ba0f6 View commit details
    Browse the repository at this point in the history
  31. Avoid storing _queryHandle on RealmResult

    This is possible given recent changes to the C-API.
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    e6e469e View commit details
    Browse the repository at this point in the history
  32. Added sync roundtrip test

    Using delay instead of awaiting sync session upload/download, since
    SyncSession is not yet implemented.
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    d98ab3a View commit details
    Browse the repository at this point in the history
  33. Configuration menu
    Copy the full SHA
    9bd11fd View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    0fa5d04 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    52b1962 View commit details
    Browse the repository at this point in the history
  36. Configuration menu
    Copy the full SHA
    5adf8db View commit details
    Browse the repository at this point in the history
  37. Configuration menu
    Copy the full SHA
    55fe548 View commit details
    Browse the repository at this point in the history
  38. Configuration menu
    Copy the full SHA
    fe38805 View commit details
    Browse the repository at this point in the history
  39. Configuration menu
    Copy the full SHA
    b47d87c View commit details
    Browse the repository at this point in the history
  40. Configuration menu
    Copy the full SHA
    a90303d View commit details
    Browse the repository at this point in the history
  41. Configuration menu
    Copy the full SHA
    959e619 View commit details
    Browse the repository at this point in the history
  42. Add some missing docs

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    0e59769 View commit details
    Browse the repository at this point in the history
  43. A different way..

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    78fecfe View commit details
    Browse the repository at this point in the history
  44. Configuration menu
    Copy the full SHA
    8a4a758 View commit details
    Browse the repository at this point in the history
  45. Don't deprecate Configuration ctor, remove immediately

    Use Configuration.local factory instead.
    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    6e6ac2a View commit details
    Browse the repository at this point in the history
  46. Outcome of PR review

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    6d61652 View commit details
    Browse the repository at this point in the history
  47. Configuration menu
    Copy the full SHA
    e9ced16 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    734b3d1 View commit details
    Browse the repository at this point in the history
  49. Fix a doc comment

    nielsenko committed May 17, 2022
    Configuration menu
    Copy the full SHA
    48c8ab7 View commit details
    Browse the repository at this point in the history