src/main/kotlin/de/uapcore/lightpit/entities/Issue.kt

changeset 232
296e12ff8d1c
parent 231
dcb1d5a7ea3a
child 233
9219e2d4117b
equal deleted inserted replaced
231:dcb1d5a7ea3a 232:296e12ff8d1c
50 50
51 /** 51 /**
52 * An issue is overdue, if it is not done and the ETA is before the current time. 52 * An issue is overdue, if it is not done and the ETA is before the current time.
53 */ 53 */
54 val overdue get() = status.phase != IssueStatusPhase.Done && eta?.before(Date(System.currentTimeMillis())) ?: false 54 val overdue get() = status.phase != IssueStatusPhase.Done && eta?.before(Date(System.currentTimeMillis())) ?: false
55
56 fun hasChanged(reference: Issue) = !(component == reference.component &&
57 status == reference.status &&
58 category == reference.category &&
59 subject == reference.subject &&
60 description == reference.description &&
61 eta == reference.eta &&
62 affected == reference.affected &&
63 resolved == reference.resolved)
55 } 64 }
56 65

mercurial