You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.
At some point Corona should support reverse queries.
I picture letting the user save queries with names. Then execute a reverse query on each document insert or modification (easy to do when in a managed context, could still use triggers and CPF when not). Let the user indicate what should happen on a new match. Expose some decent primitives for them to choose from: invoke a url, email out, make note in a way that can be polled later, run some uploaded code, etc.
The text was updated successfully, but these errors were encountered:
Each alert gets a string or structured query dictating which docs match
Each alerts also gets a URL to callback to, with optional auth, when a doc matches.
Each doc insert or modification through Corona does a reverse query to check on matches.
Any match hit invokes the callback URL, passing the name of the alert and the doc uri that matches.
It'd be good if the post to the callback URL could optionally pass the doc itself, with all the regular options that document fetching provides (extractPath, applyTransform, include options, etc). The wrapper of the data posted should look like a regular document fetch, except it'll need a the alert name added I suppose.
On reuse... Great point! If queries can be persisted with a name, it would be natural to be able to include them in other queries (i.e. structured queries or even string queries) referenced by name. I could see people doing a lot of that actually. Slick.
Yes, we should register them. I don't think that should be the only path to registration, but should be one.
Scoping... Seems like since you can limit to a directory or collection or both in the query itself (i.e. alert me when a doc in this directory in this collection appears with this word), so I don't think that needs to be broken out. Just put it in the query. At least that's what the user's view should be.
At some point Corona should support reverse queries.
I picture letting the user save queries with names. Then execute a reverse query on each document insert or modification (easy to do when in a managed context, could still use triggers and CPF when not). Let the user indicate what should happen on a new match. Expose some decent primitives for them to choose from: invoke a url, email out, make note in a way that can be polled later, run some uploaded code, etc.
The text was updated successfully, but these errors were encountered: