chore: Analytics file lock stale time (#26276)
This commit is contained in:
parent
1aef2225aa
commit
ce78775277
|
|
@ -185,4 +185,6 @@ public class FieldNameCE {
|
|||
public static final String GIT_HOSTING_PROVIDER = "gitHostingProvider";
|
||||
|
||||
public static final String IS_MERGEABLE = "isMergeable";
|
||||
|
||||
public static final String FILE_LOCK_DURATION = "fileLockDuration";
|
||||
}
|
||||
|
|
|
|||
|
|
@ -339,6 +339,7 @@ public class GlobalExceptionHandler {
|
|||
analyticsProps.put(FieldName.APPLICATION_ID, appId);
|
||||
}
|
||||
if (!fileTime.equals(0L)) {
|
||||
analyticsProps.put(FieldName.FILE_LOCK_DURATION, fileTime);
|
||||
return sessionUserService
|
||||
.getCurrentUser()
|
||||
.flatMap(user -> analyticsService.sendEvent(
|
||||
|
|
|
|||
|
|
@ -2236,7 +2236,7 @@ public class GitServiceCEImpl implements GitServiceCE {
|
|||
.getGitApplicationMetadata()
|
||||
.getIsRepoPrivate(),
|
||||
false,
|
||||
true))
|
||||
mergeStatusDTO.isMergeAble()))
|
||||
.then(Mono.just(mergeStatusDTO))))
|
||||
.onErrorResume(error -> {
|
||||
try {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user