Skip to content

Commit f9b895e

Browse files
author
Doris Lam
committed
make previous commit null for demo
1 parent 46b2562 commit f9b895e

2 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/main/kotlin/org/openmbee/flexo/sysmlv2/apis/CommitApi.kt

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,10 @@ fun FlexoModelHandler.commitFromModel(
4747
created = OffsetDateTime.parse(properties[MMS.submitted]!!.literal()!!),
4848
description = properties[DCTerms.description]?.literal()?: "",
4949
owningProject = Identified(atId = projectUuid),
50-
previousCommit = properties[MMS.parent]?.map {
51-
Identified(atId = UUID.fromString(it.asResource().uri.uriSuffix))
52-
}?: emptyList()
50+
//previousCommit = properties[MMS.parent]?.map {
51+
// Identified(atId = UUID.fromString(it.asResource().uri.uriSuffix))
52+
//}?: emptyList()
53+
previousCommit = null
5354
)
5455
}
5556

@@ -246,7 +247,7 @@ fun Route.CommitApi() {
246247
created = OffsetDateTime.now(),
247248
description = "",
248249
owningProject = Identified(atId = getCommits.projectId),
249-
previousCommit = emptyList()
250+
previousCommit = null
250251
))
251252
}
252253

@@ -278,7 +279,7 @@ fun Route.CommitApi() {
278279
created = OffsetDateTime.now(),
279280
description = "",
280281
owningProject = Identified(atId = getCommits.projectId),
281-
previousCommit = emptyList()
282+
previousCommit = null
282283
)))
283284
}
284285

@@ -518,7 +519,7 @@ fun Route.CommitApi() {
518519
created = OffsetDateTime.now(),
519520
description = "",
520521
owningProject = Identified(atId = UUID.fromString(projectId)),
521-
previousCommit = emptyList()
522+
previousCommit = null
522523
))
523524
}
524525
}

src/main/kotlin/org/openmbee/flexo/sysmlv2/models/Commit.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@ data class Commit(
3939
val created: java.time.OffsetDateTime,
4040
val description: kotlin.String,
4141
val owningProject: Identified,
42-
val previousCommit: kotlin.collections.List<Identified>
42+
//val previousCommit: kotlin.collections.List<Identified>
43+
val previousCommit: Identified?
4344
)
4445
{
4546
/**

0 commit comments

Comments
 (0)