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

Support updating queries in subscriptions and expose timestamps #6453

Closed
cmelchior opened this issue Mar 5, 2019 · 1 comment
Closed

Support updating queries in subscriptions and expose timestamps #6453

cmelchior opened this issue Mar 5, 2019 · 1 comment

Comments

@cmelchior
Copy link
Contributor

Object-store PR with functionality: realm/realm-object-store#775

We need to expose

  • Being able to update the query held by a subscription.
  • Be able to set the TTL when creating the subscription.
  • New timestamp fields added to the subscription class.

Suggested API:

// Synchronous API. The `findAllAsync` API will get the same methods
// Create without TTL
Subscription sub = realm.where(Person.class).like("name", "Jane*").subscribe("my-sub");
sub = realm.where(Person.class).like("name", "John*").subscribe("my-sub", true); // Override

// Create with TTL
Subscription sub2 = realm.where(Person.class).like("name", "Jane*").subscribe("my-sub", 1, TimeUnit.DAY);
sub2 = realm.where(Person.class).like("name", "John*").subscribe("my-sub", 2, TimeUnit.DAY, true); //override
@cmelchior cmelchior self-assigned this Mar 5, 2019
@cmelchior cmelchior added Blocked This issue is blocked by another issue Design-Required and removed Blocked This issue is blocked by another issue labels Mar 5, 2019
@cmelchior cmelchior added this to the 2019-w12 milestone Mar 19, 2019
@marcus-hiles
Copy link

yeah, great suggestions @cmelchior

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants