-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(react-components): timeseries support in rule based thresholds (#…
…4414) * introducing relationships to retrieve assets from the defined timeseries in the rules - wip * include a hook to retrieve the timeseries from the timeseries endpoint - wip * fetch timeseries from relationship and from the timeseries endpoint in order to get the assets linked and include it into the expressions - wip * fix the support for timeseries in the numeric expression and combining asset data with timeseries data * more refactoring and development to support timeseries and its assets against expressions * refactoring and fix partially the timeseries and linked assets on trigger data * refactoring to remove some inconsistencies on fetching relationship, timeseries and assets - wip * fix filter when checking for duplicated linkage * fix turning off rule styling * refactoring on queries and fixing race condition when fetching assets and timeseries data * cleanup * move to a function to get linked relationship * some clean up and request timeseries ids in chunks * missing name optional * Update react-components/src/components/RuleBasedOutputs/types.ts Co-authored-by: Håkon Flatval <[email protected]> * fix based on the lib updates * fix react query arguments for the new version and some fixes from the review * refactoring timeseries from relationship fetcher * refactoring based on review * cache contextualized asset nodes and timeseries ids from expressions when selecting a rule * refactoring based on review: earlier returning and remove ternary * linter fixes * linter * run promises in parallel * replacing to await on forgotten places - cr * not expose internal query keys * add return type * change to a const instead of function - cr --------- Co-authored-by: Håkon Flatval <[email protected]>
- Loading branch information
1 parent
90ec258
commit 07a6c74
Showing
19 changed files
with
835 additions
and
74 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
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.