Added pluginName in execute_ACTION_TRIGGERED analytics event (#4610)
This commit is contained in:
parent
c156560313
commit
1845de739e
|
|
@ -756,12 +756,14 @@ public class NewActionServiceImpl extends BaseService<NewActionRepository, NewAc
|
||||||
.flatMap(application -> Mono.zip(
|
.flatMap(application -> Mono.zip(
|
||||||
Mono.just(application),
|
Mono.just(application),
|
||||||
sessionUserService.getCurrentUser(),
|
sessionUserService.getCurrentUser(),
|
||||||
newPageService.getNameByPageId(actionDTO.getPageId(), viewMode)
|
newPageService.getNameByPageId(actionDTO.getPageId(), viewMode),
|
||||||
|
pluginService.getById(action.getPluginId())
|
||||||
))
|
))
|
||||||
.map(tuple -> {
|
.map(tuple -> {
|
||||||
final Application application = tuple.getT1();
|
final Application application = tuple.getT1();
|
||||||
final User user = tuple.getT2();
|
final User user = tuple.getT2();
|
||||||
final String pageName = tuple.getT3();
|
final String pageName = tuple.getT3();
|
||||||
|
final Plugin plugin = tuple.getT4();
|
||||||
|
|
||||||
final PluginType pluginType = action.getPluginType();
|
final PluginType pluginType = action.getPluginType();
|
||||||
final Map<String, Object> data = new HashMap<>();
|
final Map<String, Object> data = new HashMap<>();
|
||||||
|
|
@ -769,6 +771,7 @@ public class NewActionServiceImpl extends BaseService<NewActionRepository, NewAc
|
||||||
data.putAll(Map.of(
|
data.putAll(Map.of(
|
||||||
"username", user.getUsername(),
|
"username", user.getUsername(),
|
||||||
"type", pluginType,
|
"type", pluginType,
|
||||||
|
"pluginName", plugin.getName(),
|
||||||
"name", actionDTO.getName(),
|
"name", actionDTO.getName(),
|
||||||
"datasource", Map.of(
|
"datasource", Map.of(
|
||||||
"name", datasource.getName()
|
"name", datasource.getName()
|
||||||
|
|
@ -777,11 +780,11 @@ public class NewActionServiceImpl extends BaseService<NewActionRepository, NewAc
|
||||||
"appId", action.getApplicationId(),
|
"appId", action.getApplicationId(),
|
||||||
"appMode", TRUE.equals(viewMode) ? "view" : "edit",
|
"appMode", TRUE.equals(viewMode) ? "view" : "edit",
|
||||||
"appName", application.getName(),
|
"appName", application.getName(),
|
||||||
"isExampleApp", application.isAppIsExample(),
|
"isExampleApp", application.isAppIsExample()
|
||||||
"request", request
|
|
||||||
));
|
));
|
||||||
|
|
||||||
data.putAll(Map.of(
|
data.putAll(Map.of(
|
||||||
|
"request", request,
|
||||||
"pageId", ObjectUtils.defaultIfNull(actionDTO.getPageId(), ""),
|
"pageId", ObjectUtils.defaultIfNull(actionDTO.getPageId(), ""),
|
||||||
"pageName", pageName,
|
"pageName", pageName,
|
||||||
"isSuccessfulExecution", ObjectUtils.defaultIfNull(actionExecutionResult.getIsExecutionSuccess(), false),
|
"isSuccessfulExecution", ObjectUtils.defaultIfNull(actionExecutionResult.getIsExecutionSuccess(), false),
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user