5 changed files with 11 additions and 4 deletions

No files matched your search

@@ -138,7 +138,11 @@ class ProjectVM(
when(event) { when(event) {
ProjectEvent.Deleted -> back() ProjectEvent.Deleted -> back()
is ProjectEvent.EntryDeleted -> _benchmarks.value = _benchmarks.value.replace({ it.id == event.benchmarkId }) { it.remove(event.id) } is ProjectEvent.EntryDeleted -> _benchmarks.value = _benchmarks.value.replace({ it.id == event.benchmarkId }) { it.remove(event.id) }
is ProjectEvent.VersionChanged -> _labels.value += (event.label.id to Version.fromResponse(event.label)) is ProjectEvent.VersionChanged -> {
val updVersion = Version.fromResponse(event.label)
_labels.value += (event.label.id to updVersion)
_benchmarks.value = _benchmarks.value.map { b -> b.copy(entries = b.entries.map { e -> if(e.label.id == event.label.id) e.copy(label = updVersion) else e }) }
}
is ProjectEvent.VersionDeleted -> { is ProjectEvent.VersionDeleted -> {
_labels.value = _labels.value.filter { it.value.id != event.id } _labels.value = _labels.value.filter { it.value.id != event.id }
_benchmarks.value = _benchmarks.value.map { it.copy(entries = it.entries.filter { e -> e.label.id != event.id }) } _benchmarks.value = _benchmarks.value.map { it.copy(entries = it.entries.filter { e -> e.label.id != event.id }) }
+1 -1
View File
@@ -14,7 +14,7 @@ kotlinx-coroutines = "1.11.0"
ktor = "3.5.1" ktor = "3.5.1"
spring-sec = "7.1.0" spring-sec = "7.1.0"
atomic = "0.33.0" atomic = "0.33.0"
datetime = "0.8.0" datetime = "0.8.0-0.6.x-compat"
material = "1.9.0" material = "1.9.0"
java-keystore = "1.0.4" java-keystore = "1.0.4"
lucide = "2.2.1" lucide = "2.2.1"
+3
View File
@@ -0,0 +1,3 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json"
}
+1 -1
View File
@@ -7,7 +7,7 @@ plugins {
} }
group = "com.jaytux.phoebench" group = "com.jaytux.phoebench"
version = PhoebenchVersion(1, 2, 1, "patch0") version = PhoebenchVersion(1, 2, 1, "patch1")
if((version as PhoebenchVersion) < (rootProject.version as PhoebenchVersion)) if((version as PhoebenchVersion) < (rootProject.version as PhoebenchVersion))
throw GradleException("Server version must be at least as high as protocol/common version") throw GradleException("Server version must be at least as high as protocol/common version")
@@ -298,7 +298,7 @@ inline fun <reified TParams: Any, reified TEvent: Any, TInter, TExtra> Route.wra
handler(params, inter, extra, converter.deserialize<TEvent>(frame)) handler(params, inter, extra, converter.deserialize<TEvent>(frame))
} }
} }
catch(e: ClosedReceiveChannelException) { finally {
onClose(params, inter, extra) onClose(params, inter, extra)
} }
} }