Skip to content

Commit 1698a47

Browse files
committed
chore(model-client): added @DeprecationInfo to IModelClientV2.loadVersion
1 parent 586513b commit 1698a47

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

model-client/src/commonMain/kotlin/org/modelix/model/client2/IModelClientV2.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414
package org.modelix.model.client2
1515

16+
import org.modelix.kotlin.utils.DeprecationInfo
1617
import org.modelix.model.IVersion
1718
import org.modelix.model.api.IIdGenerator
1819
import org.modelix.model.api.INode
@@ -44,6 +45,7 @@ interface IModelClientV2 {
4445
suspend fun listBranches(repository: RepositoryId): List<BranchReference>
4546

4647
@Deprecated("repository ID is required for permission checks")
48+
@DeprecationInfo("3.7.0", "May be removed with the next major release. Also remove the endpoint from the model-server.")
4749
suspend fun loadVersion(versionHash: String, baseVersion: IVersion?): IVersion
4850

4951
suspend fun loadVersion(repositoryId: RepositoryId, versionHash: String, baseVersion: IVersion?): IVersion

model-client/src/commonMain/kotlin/org/modelix/model/client2/ModelClientV2.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ import io.ktor.serialization.kotlinx.json.json
3232
import kotlinx.coroutines.CoroutineScope
3333
import kotlinx.coroutines.launch
3434
import kotlinx.serialization.json.Json
35+
import org.modelix.kotlin.utils.DeprecationInfo
3536
import org.modelix.model.IVersion
3637
import org.modelix.model.api.IIdGenerator
3738
import org.modelix.model.api.INode
@@ -123,6 +124,7 @@ class ModelClientV2(
123124
}
124125

125126
@Deprecated("repository ID is required for permission checks")
127+
@DeprecationInfo("3.7.0", "May be removed with the next major release. Also remove the endpoint from the model-server.")
126128
override suspend fun loadVersion(versionHash: String, baseVersion: IVersion?): IVersion {
127129
val response = httpClient.post {
128130
url {

0 commit comments

Comments
 (0)