mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[pycharm] PY-84800 Jupyter: update topics list
Merge-request: IJ-MR-208094 Merged-by: Ekaterina Itsenko <ekaterina.itsenko@jetbrains.com> GitOrigin-RevId: 24b3a5fce58abd9ebdaddd21093b8a55b61189c2
This commit is contained in:
committed by
intellij-monorepo-bot
parent
d5f777257e
commit
36d7575fa3
@@ -8,13 +8,18 @@ import org.jetbrains.annotations.ApiStatus
|
||||
|
||||
@ApiStatus.Internal
|
||||
object JupyterHelpUsageCollector : CounterUsagesCollector() {
|
||||
private val GROUP = EventLogGroup("jupyter.help.usage", 1)
|
||||
private val GROUP = EventLogGroup("jupyter.help.usage", 2)
|
||||
private val JUPYTER_HELP_TOPICS = listOf(
|
||||
"jupyter.settings.page",
|
||||
"reference.settings.jupyter",
|
||||
"tool_window.jupyter_server_log",
|
||||
"reference.jupyter.vcs",
|
||||
"how.to.work.with.tables"
|
||||
"how.to.work.with.tables",
|
||||
"use.expression.input",
|
||||
"adjust.table.formatting",
|
||||
"jupyter.data.issues",
|
||||
"reference.settings.tables",
|
||||
"preferences.database.dataViews"
|
||||
)
|
||||
private val HELP_ID_FIELD = EventFields.String("help_id", JUPYTER_HELP_TOPICS)
|
||||
private val HELP_OPENED_EVENT = GROUP.registerEvent("opened", HELP_ID_FIELD)
|
||||
@@ -23,7 +28,7 @@ object JupyterHelpUsageCollector : CounterUsagesCollector() {
|
||||
|
||||
@JvmStatic
|
||||
fun logOpened(helpId: String?) {
|
||||
if (!helpId.isNullOrBlank()) {
|
||||
if (!helpId.isNullOrBlank() && helpId in JUPYTER_HELP_TOPICS) {
|
||||
HELP_OPENED_EVENT.log(helpId)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user