Skip to content

Commit

Permalink
Pause fix (#103)
Browse files Browse the repository at this point in the history
* [ML4SE-591] Added survey for AI hints. Fixed some issues related to the survey

* [ML4SE-591] Fix detekt

* [ML4SE-591] Fix text of the pause button

* [ML4SE-591] Added checkbox type, fixed borders in html. Deleted index from the database for survey table

* [ML4SE-627] Send files after pause button has been pressed. Changed pluginUntilBuild version.
  • Loading branch information
mikrise2 authored May 10, 2024
1 parent c9af873 commit 0c6b94e
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 378 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pluginVersion = 0.0.1

# Supported build number ranges and IntelliJ Platform versions -> https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
pluginSinceBuild = 223
pluginUntilBuild = 233.*
pluginUntilBuild = 242

# IntelliJ Platform Properties -> https://plugins.jetbrains.com/docs/intellij/tools-gradle-intellij-plugin.html#configuration-intellij-extension
platformType = IC
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@ object TaskFileHandler {
}
}

fun disposeAllTasks() {
projectToTaskToFiles.forEach { (project, projectFiles) ->
projectFiles.keys.forEach {
disposeTask(project, it)
}
}
}

// TODO not forget to remove from document loggers hashmap, flush data
fun disposeTask(project: Project, task: Task) {
projectToTaskToFiles[project]?.let {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ fun Panel.processScenario() {
fun Panel.stopTracking() {
TaskTrackerPlugin.mainConfig.scenarioConfig?.scenario?.reset()
loadBasePage(LoadTemplate())
TaskFileHandler.disposeAllTasks()
ApplicationManager.getApplication().invokeLater {
trackingService.stopTracking(::finalPage, ::serverErrorPage)
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
pluginName: "Kotlin Refactoring course"
pluginDescription: "We want to track your progress through the kotlin refactoring course in order to collect data on file changes during the course completion. Please, when you are ready, press the next button."
researchId: "Kotlin Refactoring"
pluginName: "Kotlin Introduction"
pluginDescription: "We want to track your progress through the kotlin introduction course in order to collect data on file changes during the course completion. Please, when you are ready, press the next button."
researchId: "Kotlin Introduction"
logs:
- logPaths:
- "edu-assistant/eduAssistant.log"
- "edu-assistant/hintTiming.log"
- "edu-assistant/taskAnalysisTiming.log"
type: "assistant"
isInPluginDirectory: true
Loading

0 comments on commit 0c6b94e

Please sign in to comment.