Skip to content

Commit 8b3ae60

Browse files
Changed routing (#2006)
Co-authored-by: oleksandrh <[email protected]>
1 parent 361348a commit 8b3ae60

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/kotlin/org/digma/intellij/plugin/ui/highlights/HighlightsMessageRouterHandler.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class HighlightsMessageRouterHandler(project: Project) : AbstractInsightsMessage
1616
override fun doOnQuery(project: Project, browser: CefBrowser, requestJsonNode: JsonNode, rawRequest: String, action: String): Boolean {
1717

1818
when (action) {
19-
"HIGHLIGHTS/GET_PERFORMANCE" -> getHighlightsPerformance(browser, requestJsonNode)
19+
"MAIN/GET_HIGHLIGHTS_PERFORMANCE_DATA" -> getHighlightsPerformance(browser, requestJsonNode)
2020
"MAIN/GET_HIGHLIGHTS_TOP_ISSUES_DATA" -> getHighlightsTopInsights(browser, requestJsonNode)
2121

2222
else -> {
@@ -36,7 +36,7 @@ class HighlightsMessageRouterHandler(project: Project) : AbstractInsightsMessage
3636
val backendQueryParams = getQueryMapFromPayload(requestJsonNode, objectMapper)
3737
val payload = HighlightsService.getInstance(project).getHighlightsPerformance(backendQueryParams)
3838
val message = SetHighlightsPerformanceMessage(payload)
39-
Log.log(logger::trace, project, "sending HIGHLIGHTS/SET_PERFORMANCE message")
39+
Log.log(logger::trace, project, "sending MAIN/GET_HIGHLIGHTS_TOP_ISSUES_DATA message")
4040
serializeAndExecuteWindowPostMessageJavaScript(browser, message)
4141
}
4242

@@ -46,7 +46,7 @@ class HighlightsMessageRouterHandler(project: Project) : AbstractInsightsMessage
4646
val backendQueryParams = getQueryMapFromPayload(requestJsonNode, objectMapper)
4747
val payload = HighlightsService.getInstance(project).getHighlightsTopInsights(backendQueryParams)
4848
val message = SetHighlightsTopInsightsMessage(payload)
49-
Log.log(logger::trace, project, "sending HIGHLIGHTS/SET_PERFORMANCE message")
49+
Log.log(logger::trace, project, "sending MAIN/GET_HIGHLIGHTS_TOP_ISSUES_DATA message")
5050
serializeAndExecuteWindowPostMessageJavaScript(browser, message)
5151
}
5252
}

src/main/kotlin/org/digma/intellij/plugin/ui/highlights/model/SetHighlightsPerformanceMessage.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import org.digma.intellij.plugin.ui.jcef.JCEFGlobalConstants
55

66
data class SetHighlightsPerformanceMessage(val payload: List<HighlightsPerformanceResponse>?) {
77
val type = JCEFGlobalConstants.REQUEST_MESSAGE_TYPE
8-
val action = "HIGHLIGHTS/SET_PERFORMANCE"
8+
val action = "MAIN/SET_HIGHLIGHTS_PERFORMANCE_DATA"
99
}

0 commit comments

Comments
 (0)