Skip to content

Commit 22eeb48

Browse files
committed
More diff fixes
1 parent 5b1b3a7 commit 22eeb48

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

shared.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32086,9 +32086,11 @@ func editDistance(a, b string) int {
3208632086
dp[i] = make([]int, m+1)
3208732087
dp[i][0] = i
3208832088
}
32089+
3208932090
for j := 0; j <= m; j++ {
3209032091
dp[0][j] = j
3209132092
}
32093+
3209232094
for i := 1; i <= n; i++ {
3209332095
for j := 1; j <= m; j++ {
3209432096
if a[i-1] == b[j-1] {
@@ -32098,6 +32100,7 @@ func editDistance(a, b string) int {
3209832100
}
3209932101
}
3210032102
}
32103+
3210132104
return dp[n][m]
3210232105
}
3210332106

@@ -32160,6 +32163,10 @@ func cleanupProtectedKeys(exec WorkflowExecution) WorkflowExecution {
3216032163
return exec
3216132164
}
3216232165

32166+
if exec.Status == "FINISHED" || exec.Status == "ABORTED" {
32167+
return exec
32168+
}
32169+
3216332170
protectedKeys, _, err := GetAllCacheKeys(context.Background(), exec.ExecutionOrg, "protected", 100, "")
3216432171
if err != nil {
3216532172
//log.Printf("[ERROR] Failed getting protected keys for org %s: %s", exec.ExecutionOrg, err)
@@ -32180,6 +32187,8 @@ func cleanupProtectedKeys(exec WorkflowExecution) WorkflowExecution {
3218032187

3218132188
if len(protectedKey.Value) <= 8 {
3218232189
exec.Results[resultKey].Result = strings.ReplaceAll(exec.Results[resultKey].Result, protectedKey.Value, "***")
32190+
} else if len(protectedKey.Value) > 2000000 {
32191+
exec.Results[resultKey].Result = strings.ReplaceAll(exec.Results[resultKey].Result, protectedKey.Value, "***")
3218332192
} else {
3218432193
exec.Results[resultKey].Result = SanitizeFuzzySubstring(exec.Results[resultKey].Result, protectedKey.Value, 2)
3218532194
}

0 commit comments

Comments
 (0)