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

changeset 232
296e12ff8d1c
parent 231
dcb1d5a7ea3a
child 233
9219e2d4117b
     1.1 --- a/src/main/kotlin/de/uapcore/lightpit/entities/Issue.kt	Thu Aug 19 14:51:04 2021 +0200
     1.2 +++ b/src/main/kotlin/de/uapcore/lightpit/entities/Issue.kt	Thu Aug 19 17:20:43 2021 +0200
     1.3 @@ -52,5 +52,14 @@
     1.4       * An issue is overdue, if it is not done and the ETA is before the current time.
     1.5       */
     1.6      val overdue get() = status.phase != IssueStatusPhase.Done && eta?.before(Date(System.currentTimeMillis())) ?: false
     1.7 +
     1.8 +    fun hasChanged(reference: Issue) = !(component == reference.component &&
     1.9 +            status == reference.status &&
    1.10 +            category == reference.category &&
    1.11 +            subject == reference.subject &&
    1.12 +            description == reference.description &&
    1.13 +            eta == reference.eta &&
    1.14 +            affected == reference.affected &&
    1.15 +            resolved == reference.resolved)
    1.16  }
    1.17  

mercurial