File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/components/engagement/workflow Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -2,15 +2,15 @@ import { ModuleRef } from '@nestjs/core';
2
2
import { node , relation } from 'cypher-query-builder' ;
3
3
import { chunk } from 'lodash' ;
4
4
import { DateTime } from 'luxon' ;
5
- import { Disabled , ID } from '~/common' ;
5
+ import { ID } from '~/common' ;
6
6
import { BaseMigration , Migration } from '~/core/database' ;
7
7
import { ACTIVE , variable } from '~/core/database/query' ;
8
8
import { SystemAgentRepository } from '../../../user/system-agent.repository' ;
9
9
import { Engagement , EngagementStatus } from '../../dto' ;
10
10
import { EngagementWorkflowRepository } from '../engagement-workflow.repository' ;
11
11
import { EngagementWorkflowService } from '../engagement-workflow.service' ;
12
12
13
- @Disabled ( 'Until Carson reviews' ) ( Migration ( '2024-07-05T09:00:02' ) )
13
+ @Migration ( '2024-07-05T09:00:02' )
14
14
export class EngagementStatusHistoryToWorkflowEventsMigration extends BaseMigration {
15
15
constructor (
16
16
private readonly agents : SystemAgentRepository ,
Original file line number Diff line number Diff line change @@ -12,7 +12,11 @@ export const ProjectStep = (...steps: Step[]): Condition => {
12
12
[ ...stepSet ] . map ( ( step ) => Step . entry ( step ) . label ) . join ( ' / ' ) ;
13
13
return {
14
14
description,
15
- resolve ( { engagement } ) {
15
+ resolve ( { engagement, migrationPrevStates } ) {
16
+ if ( migrationPrevStates ) {
17
+ // Skip for migration, since it is easier and not applicable for historic data in current use.
18
+ return { status : 'ENABLED' } ;
19
+ }
16
20
return {
17
21
status : steps . includes ( engagement . project . step )
18
22
? 'ENABLED'
You can’t perform that action at this time.
0 commit comments