-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Fix pipelineRunner can be undefined * Do not retry requests that were aborted * Add config for how many submissions should be posted at a time * Update docker publish gh action * Add title to config * Rough work around extracting metrics reporting to its own module * Update workflows ui to include deidcated report view * Fix regressions in package core * Drop log reporting threshhold for console transport to silly * Change visit form date-of-visit field to endtime Lay ground work to enable configuring the form field names via configs * Revert "Change visit form date-of-visit field to endtime" This reverts commit 259d178. * Modify date_of_visit field to endtime * Fix bug in colorDecider util, update backoff mechanism
- Loading branch information
1 parent
30c5289
commit 26e51b9
Showing
23 changed files
with
979 additions
and
383 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
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
24 changes: 24 additions & 0 deletions
24
apps/web/src/routes/workflows/reports/[slug]/+page.server.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
import { getClientSideSymbologyConfigs, pipelineController } from '$lib/server/appConfig'; | ||
import { getLastPipelineMetricForConfig } from '$lib/server/logger/configMetrics'; | ||
import type { ConfigRunner } from '@onaio/symbology-calc-core'; | ||
|
||
/** @type {import('./$types').PageLoad} */ | ||
export function load({params}) { | ||
const uuid = params.slug ?? ''; | ||
const configs = getClientSideSymbologyConfigs().filter(config => config.uuid === uuid); | ||
const ConfigsWithMetrics = configs.map((config) => { | ||
const configId = config.uuid; | ||
const metricForThisConfig = getLastPipelineMetricForConfig(configId); | ||
const pipeLineRunner = pipelineController.getPipelines(configId) as ConfigRunner; | ||
const isRunning = pipeLineRunner?.isRunning(); | ||
return { | ||
...config, | ||
metric: metricForThisConfig, | ||
isRunning, | ||
invalidityErrror: pipeLineRunner?.invalidError ?? null | ||
}; | ||
}); | ||
return { | ||
configs: ConfigsWithMetrics | ||
}; | ||
} |
Oops, something went wrong.