Compare commits
2
Commits
ef5ccb9274
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
589649d9f6
|
||
|
|
ae7724b3c4
|
+5
-1
@@ -138,7 +138,11 @@ class ProjectVM(
|
||||
when(event) {
|
||||
ProjectEvent.Deleted -> back()
|
||||
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 -> {
|
||||
_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 }) }
|
||||
|
||||
@@ -7,7 +7,7 @@ plugins {
|
||||
}
|
||||
|
||||
group = "com.jaytux.phoebench"
|
||||
version = PhoebenchVersion(1, 2, 1, "patch0")
|
||||
version = PhoebenchVersion(1, 2, 1, "patch1")
|
||||
|
||||
if((version as PhoebenchVersion) < (rootProject.version as PhoebenchVersion))
|
||||
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))
|
||||
}
|
||||
}
|
||||
catch(e: ClosedReceiveChannelException) {
|
||||
finally {
|
||||
onClose(params, inter, extra)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user