mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
What's New: drop legacy FUS collectors
GitOrigin-RevId: 4ec12db13740dbc8184aa11b6614f816cb45bafa
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a75c11f9f8
commit
43ceecb6cb
@@ -3,8 +3,6 @@
|
||||
<postStartupActivity implementation="com.intellij.platform.whatsNew.WhatsNewShowOnStartCheckService" order="last"/>
|
||||
<applicationService serviceImplementation="com.intellij.platform.whatsNew.WhatsNewInVisionContentProvider" />
|
||||
<statistics.counterUsagesCollector implementationClass="com.intellij.platform.whatsNew.reaction.ReactionCollector"/>
|
||||
<statistics.counterUsagesCollector implementationClass="com.intellij.platform.whatsNew.reaction.LegacyReactionCollector"/>
|
||||
<statistics.counterUsagesCollector implementationClass="com.intellij.platform.whatsNew.collectors.LegacyRiderWhatsNewCounterUsagesCollector"/>
|
||||
<statistics.counterUsagesCollector implementationClass="com.intellij.platform.whatsNew.collectors.WhatsNewCounterUsageCollector"/>
|
||||
|
||||
<registryKey defaultValue="false" description="Whats new test mode" key="whats.new.test.mode" restartRequired="false" />
|
||||
|
||||
-21
@@ -1,21 +0,0 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.platform.whatsNew.collectors
|
||||
|
||||
import com.intellij.internal.statistic.collectors.fus.actions.persistence.ActionRuleValidator
|
||||
import com.intellij.internal.statistic.eventLog.EventLogGroup
|
||||
import com.intellij.internal.statistic.eventLog.events.EventFields
|
||||
import com.intellij.internal.statistic.service.fus.collectors.CounterUsagesCollector
|
||||
import kotlin.jvm.java
|
||||
|
||||
internal object LegacyRiderWhatsNewCounterUsagesCollector : CounterUsagesCollector() {
|
||||
private val eventLogGroup: EventLogGroup = EventLogGroup("rider.whatsnew.eap", 4)
|
||||
internal val opened = eventLogGroup.registerEvent("tab_opened", EventFields.Enum(("type"), OpenedType::class.java))
|
||||
internal val closed = eventLogGroup.registerEvent("tab_closed")
|
||||
internal val actionId = EventFields.StringValidatedByCustomRule("action_id", ActionRuleValidator::class.java)
|
||||
internal val perform = eventLogGroup.registerEvent("action_performed", actionId)
|
||||
internal val failed = eventLogGroup.registerEvent("action_failed", actionId, EventFields.Enum(("type"), ActionFailedReason::class.java))
|
||||
|
||||
override fun getGroup(): EventLogGroup {
|
||||
return eventLogGroup
|
||||
}
|
||||
}
|
||||
+1
-6
@@ -1,4 +1,4 @@
|
||||
// Copyright 2000-2024 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.platform.whatsNew.collectors
|
||||
|
||||
import com.intellij.internal.statistic.collectors.fus.actions.persistence.ActionRuleValidator
|
||||
@@ -21,27 +21,22 @@ internal object WhatsNewCounterUsageCollector : CounterUsagesCollector() {
|
||||
|
||||
fun openedPerformed(project: Project?, byClient: Boolean) {
|
||||
opened.log(project, if (byClient) OpenedType.ByClient else OpenedType.Auto)
|
||||
LegacyRiderWhatsNewCounterUsagesCollector.opened.log(project, if (byClient) OpenedType.ByClient else OpenedType.Auto)
|
||||
}
|
||||
|
||||
fun closedPerformed(project: Project?) {
|
||||
closed.log(project)
|
||||
LegacyRiderWhatsNewCounterUsagesCollector.closed.log(project)
|
||||
}
|
||||
|
||||
fun actionPerformed(project: Project?, id: String) {
|
||||
perform.log(project, id)
|
||||
LegacyRiderWhatsNewCounterUsagesCollector.perform.log(project, id)
|
||||
}
|
||||
|
||||
fun actionNotAllowed(project: Project?, id: String) {
|
||||
failed.log(project, id, ActionFailedReason.Not_Allowed)
|
||||
LegacyRiderWhatsNewCounterUsagesCollector.failed.log(project, id, ActionFailedReason.Not_Allowed)
|
||||
}
|
||||
|
||||
fun actionNotFound(project: Project?, id: String) {
|
||||
failed.log(project, id, ActionFailedReason.Not_Found)
|
||||
LegacyRiderWhatsNewCounterUsagesCollector.failed.log(project, id, ActionFailedReason.Not_Found)
|
||||
}
|
||||
|
||||
fun visionActionPerformed(project: Project?, id: String) {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
// Copyright 2000-2025 JetBrains s.r.o. and contributors. Use of this source code is governed by the Apache 2.0 license.
|
||||
package com.intellij.platform.whatsNew.reaction
|
||||
|
||||
import com.intellij.internal.statistic.eventLog.EventLogGroup
|
||||
@@ -18,18 +19,7 @@ internal object ReactionCollector : CounterUsagesCollector() {
|
||||
|
||||
fun reactedPerformed(project: Project?, place: String?, type: ReactionType, action: ReationAction) {
|
||||
reacted.log(project, place, type, action)
|
||||
LegacyReactionCollector.reacted.log(project, place, type, action)
|
||||
}
|
||||
|
||||
override fun getGroup(): EventLogGroup = eventLogGroup
|
||||
}
|
||||
|
||||
internal object LegacyReactionCollector : CounterUsagesCollector() {
|
||||
private val eventLogGroup: EventLogGroup = EventLogGroup("rider.reactions", 3)
|
||||
internal val reacted = eventLogGroup.registerEvent("reacted",
|
||||
EventFields.ActionPlace,
|
||||
EventFields.Enum(("type"), ReactionType::class.java),
|
||||
EventFields.Enum("action", ReationAction::class.java))
|
||||
|
||||
override fun getGroup(): EventLogGroup = eventLogGroup
|
||||
}
|
||||
Reference in New Issue
Block a user