Skip to content

Commit 20716ed

Browse files
authored
Merge pull request #2310 from digma-ai/person-site
person site Closes #2309
2 parents 5d2f44a + 40d87c5 commit 20716ed

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

ide-common/src/main/kotlin/org/digma/intellij/plugin/posthog/ActivityMonitor.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -663,14 +663,15 @@ class ActivityMonitor(private val project: Project) : Disposable {
663663

664664

665665
fun registerServerInfo(serverInfo: AboutResult) {
666-
//AboutResult is a data class and equals should work correctly
666+
//AboutResult is a data class , equals should work correctly
667667
if (this.serverInfo != serverInfo) {
668668
this.serverInfo = serverInfo
669669
postHog?.set(
670670
userId,
671671
mapOf(
672672
"server.version" to serverInfo.applicationVersion,
673-
"server.deploymentType" to (serverInfo.deploymentType ?: BackendDeploymentType.Unknown)
673+
"server.deploymentType" to (serverInfo.deploymentType ?: BackendDeploymentType.Unknown),
674+
"site" to (serverInfo.site ?: "")
674675
)
675676
)
676677
}

model/src/main/kotlin/org/digma/intellij/plugin/model/rest/AboutResult.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@ import java.beans.ConstructorProperties
88

99
@JsonIgnoreProperties(ignoreUnknown = true)
1010
data class AboutResult @JsonCreator(mode = JsonCreator.Mode.PROPERTIES)
11-
@ConstructorProperties("applicationVersion", "deploymentType", "isCentralize")
11+
@ConstructorProperties("applicationVersion", "deploymentType", "isCentralize","site")
1212
constructor(
1313
val applicationVersion: String,
1414
val deploymentType: BackendDeploymentType? = BackendDeploymentType.Unknown,
1515
val isCentralize: Boolean?,
16+
val site: String?
1617
)

0 commit comments

Comments
 (0)