File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/Exceptionless.Core/Migrations Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ public override async Task RunAsync(MigrationContext context) {
3131
3232 _logger . LogInformation ( "Start migrating stacks status" ) ;
3333 var sw = Stopwatch . StartNew ( ) ;
34- const string script = "if (ctx._source.is_regressed == true) ctx._source.status = 'regressed'; else if (ctx._source.is_hidden == true) ctx._source.status = 'ignored'; else if (ctx._source.disable_notifications == true) ctx._source.status = 'ignored'; else if (ctx._source.is_fixed == true) ctx._source.status = 'fixed'; else ctx._source.status = 'open';" ;
34+ const string script = "if (ctx._source.is_regressed == true) ctx._source.status = 'regressed'; else if (ctx._source.is_hidden == true) ctx._source.status = 'ignored'; else if (ctx._source.disable_notifications == true) ctx._source.status = 'ignored'; else if (ctx._source.is_fixed == true) ctx._source.status = 'fixed'; else if (ctx._source.containsKey('date_fixed')) ctx._source.status = 'fixed'; else ctx._source.status = 'open';" ;
3535 var stackResponse = await _client . UpdateByQueryAsync < Stack > ( x => x
3636 . QueryOnQueryString ( "NOT _exists_:status" )
3737 . Script ( s => s . Source ( script ) . Lang ( ScriptLang . Painless ) )
You can’t perform that action at this time.
0 commit comments