-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(subs,deno): advanced filters + context util + replay aware logger (
#930) Solves [MET-720](https://linear.app/metatypedev/issue/MET-720/subs-advanced-filters-for-workflows), [MET-749](https://linear.app/metatypedev/issue/MET-749/subs-durable-logger) and [MET-760](https://linear.app/metatypedev/issue/MET-760/gate-allow-user-to-fetchdebug-the-context-easily). #### Basic overview Given an expression tree, a field can represent either an operator (e.g., and, or, lte, etc.) or a 'special' field (started_at, ended_at, status). We can now answer queries such as: 'List all failed runs that started between x and y but did not end at z, where the value is not null, or alternatively completed but returned null' Example: ```js { or: [ { and: [ { status: { contains: '"ERROR"' } }, { started_at: { gte: <x> } }, { started_at: { lt: <y> } }, { ended_at: { not: { eq: <z> } } } ] }, { and: [ { status: { eq: '"COMPLETED"' } }, { eq: 'null' } ] } ] } ``` #### Migration notes None - [x] The change comes with new or modified tests - [x] Hard-to-understand functions have explanatory comments - [ ] End-user documentation is updated to reflect the change
- Loading branch information
1 parent
4037040
commit 2ea7a48
Showing
20 changed files
with
909 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.