Skip to content

Commit

Permalink
Merge branch 'main' into update-explain-feature
Browse files Browse the repository at this point in the history
Signed-off-by: Joseph Cook <33655003+jmcook1186@users.noreply.github.com>
  • Loading branch information
jmcook1186 authored Oct 31, 2024
2 parents 50fe84e + f4259da commit c2bb2ac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/if-run/lib/initialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import * as path from 'node:path';
import {ERRORS} from '@grnsft/if-core/utils';
import {PluginInterface} from '@grnsft/if-core/types';

import {storeAggregationMetrics} from './aggregate';

import {logger} from '../../common/util/logger';
import {memoizedLog} from '../util/log-memoize';
import {pluginStorage} from '../util/plugin-storage';
Expand All @@ -11,7 +13,6 @@ import {CONFIG, STRINGS} from '../config';

import {Context, PluginOptions} from '../../common/types/manifest';
import {PluginStorageInterface} from '../types/plugin-storage';
import {storeAggregationMetrics} from './aggregate';

const {
PluginInitializationError,
Expand Down
4 changes: 2 additions & 2 deletions src/if-run/util/aggregation-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,12 @@ export const aggregateOutputsIntoOne = (
const aggregationType = isTemporal ? 'component' : 'time';

if (aggregationParams[aggregationType] === 'none') {
return acc;
continue;
}

if (aggregationParams[aggregationType] === 'copy') {
acc[metric] = output[metric];
return acc;
continue;
}

acc[metric] = acc[metric] ?? 0;
Expand Down

0 comments on commit c2bb2ac

Please sign in to comment.