diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Api.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Api.kt index acc2d08..f919c1c 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Api.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Api.kt @@ -20,7 +20,6 @@ data class NewObservation( val site: Long, val type: TrainingType, val observed: String, - val whom: String, val scenarios: List, val tutors: List, val person: String diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt index ab994dd..8936894 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Controller.kt @@ -87,7 +87,6 @@ class Controller { date = LocalDate.now(), type = newObservation.type, observed = newObservation.scenarios.joinToString { it.title }, - whom = newObservation.whom, monitoring = newObservation.scenarios.map { it.monitoring.rating }.average(), conservatism = newObservation.scenarios.map { it.conservatism.rating }.average(), controlProcedural = newObservation.scenarios.map { it.controlProcedural.rating }.average(), @@ -116,34 +115,19 @@ class Controller { fun getObservations(@Valid @RequestBody observationsRequest: ObservationsRequest): List { if (observationsRequest.tutor != null) { return tutorRepository.findById(observationsRequest.tutor).map { - when { - (observationsRequest.whom == null || observationsRequest.whom.isEmpty()) -> observationRepository.findByTutorsAndDateBetweenOrderByDateAsc(tutor = it, + observationRepository.findByTutorsAndDateBetweenOrderByDateAsc(tutor = it, startDate = observationsRequest.startDate, endDate = observationsRequest.endDate) - else -> observationRepository.findByTutorsAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(tutor = it, - whom = observationsRequest.whom, - startDate = observationsRequest.startDate, - endDate = observationsRequest.endDate) - } }.orElse(listOf()) } else if (observationsRequest.person != null && observationsRequest.person.isNotEmpty() && observationsRequest.site != null) { val person = personRepository.findFirstByNameLike(observationsRequest.person.toUpperCase()) ?: return listOf() val site = siteRepository.findById(observationsRequest.site).get() - return if (observationsRequest.whom == null || observationsRequest.whom.isEmpty()) - observationRepository.findBySiteAndPersonAndDateBetweenOrderByDateAsc(site, person, observationsRequest.startDate, observationsRequest.endDate) - else - observationRepository.findBySiteAndWhomIgnoreCaseAndPersonAndDateBetweenOrderByDateAsc(site, observationsRequest.whom, person, observationsRequest.startDate, observationsRequest.endDate) + return observationRepository.findBySiteAndPersonAndDateBetweenOrderByDateAsc(site, person, observationsRequest.startDate, observationsRequest.endDate) } else if (observationsRequest.site != null) { return siteRepository.findById(observationsRequest.site).map { - when { - (observationsRequest.whom == null || observationsRequest.whom.isEmpty()) -> observationRepository.findBySiteAndDateBetweenOrderByDateAsc(site = it, + observationRepository.findBySiteAndDateBetweenOrderByDateAsc(site = it, startDate = observationsRequest.startDate, endDate = observationsRequest.endDate) - else -> observationRepository.findBySiteAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(site = it, - whom = observationsRequest.whom, - startDate = observationsRequest.startDate, - endDate = observationsRequest.endDate) - } }.orElse(listOf()) } return listOf() diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt index 41181fc..cb34340 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Entity.kt @@ -3,8 +3,8 @@ package uk.co.neviyn.observationdatabase import com.fasterxml.jackson.annotation.JsonIgnore import com.fasterxml.jackson.annotation.JsonProperty import org.joda.time.LocalDate +import javax.persistence.CascadeType import javax.persistence.Column -import javax.persistence.ElementCollection import javax.persistence.Entity import javax.persistence.FetchType import javax.persistence.GeneratedValue @@ -76,8 +76,6 @@ data class Observation( @Column(nullable = false) val type: TrainingType, @Column(nullable = false) - val whom: String, - @Column(nullable = false) val observed: String, val monitoring: Double?, val controlProcedural: Double?, @@ -87,7 +85,7 @@ data class Observation( val teamworkLeadership: Double?, val teamworkWorkload: Double?, val knowledge: Double?, - @ElementCollection + @OneToMany(cascade = [CascadeType.ALL]) val scenarios: List, @ManyToMany(mappedBy = "observations") val tutors: Set, @@ -132,21 +130,21 @@ data class Scenario( @GeneratedValue(strategy = GenerationType.IDENTITY) val id: Long = 0, val title: String, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val monitoring: RatingComponent, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val controlProcedural: RatingComponent, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val control: RatingComponent, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val conservatism: RatingComponent, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val teamworkCommunications: RatingComponent, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val teamworkLeadership: RatingComponent, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val teamworkWorkload: RatingComponent, - @OneToOne + @OneToOne(cascade = [CascadeType.ALL]) val knowledge: RatingComponent ) diff --git a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Repository.kt b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Repository.kt index c9ddd9f..0d27186 100644 --- a/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Repository.kt +++ b/backend/src/main/kotlin/uk/co/neviyn/observationdatabase/Repository.kt @@ -17,13 +17,7 @@ interface ObservationRepository : CrudRepository { fun findByTutorsAndDateBetweenOrderByDateAsc(tutor: Tutor, startDate: LocalDate, endDate: LocalDate): List - fun findBySiteAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(site: Site, whom: String, startDate: LocalDate, endDate: LocalDate): List - - fun findByTutorsAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(tutor: Tutor, whom: String, startDate: LocalDate, endDate: LocalDate): List - fun findBySiteAndPersonAndDateBetweenOrderByDateAsc(site: Site, person: Person, startDate: LocalDate, endDate: LocalDate): List - - fun findBySiteAndWhomIgnoreCaseAndPersonAndDateBetweenOrderByDateAsc(site: Site, whom: String, person: Person, startDate: LocalDate, endDate: LocalDate): List } @Repository diff --git a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt index 78e328e..b20c57e 100644 --- a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt +++ b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/ControllerTest.kt @@ -112,11 +112,11 @@ class ControllerTest { } @Test - fun testGetObservations_WithSite_TutorNull_NoWhom() { + fun testGetObservations_WithSite_TutorNull() { val request = ObservationsRequest(1, null, "", "", LocalDate.now(), LocalDate.now()) val site = Site(1, "Area 51") val observation = Observation(site = site, date = LocalDate.now(), - type = TrainingType.INITIAL, observed = "1", whom = "G1", monitoring = 5.0, controlProcedural = 3.0, + type = TrainingType.INITIAL, observed = "1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, conservatism = 3.0, teamworkCommunications = 2.0, teamworkLeadership = 3.0, teamworkWorkload = 1.0, knowledge = 1.0, scenarios = listOf(), tutors = setOf(), person = Person(name = "noone")) doReturn(Optional.of(site)).`when`(siteRepository).findById(1) @@ -128,28 +128,12 @@ class ControllerTest { } @Test - fun testGetObservations_WithSite_TutorNull_WithWhom() { - val request = ObservationsRequest(1, null, "Group A", "", LocalDate.now(), LocalDate.now()) - val site = Site(1, "Area 51") - val observation = Observation(site = site, date = LocalDate.now(), - type = TrainingType.INITIAL, observed = "1", whom = "Group A", monitoring = 5.0, controlProcedural = 3.0, - control = 4.0, conservatism = 3.0, teamworkCommunications = 2.0, teamworkLeadership = 3.0, - teamworkWorkload = 1.0, knowledge = 1.0, scenarios = listOf(), tutors = setOf(), person = Person(name = "noone")) - doReturn(Optional.of(site)).`when`(siteRepository).findById(1) - doReturn(listOf(observation)) - .`when`(observationRepository).findBySiteAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(site, "Group A", LocalDate.now(), LocalDate.now()) - val result = controller.getObservations(request) - assertEquals(1, result.size) - assertEquals(observation, result[0]) - } - - @Test - fun testGetObservations_WithSite_WithTutor_NoWhom() { + fun testGetObservations_WithSite_WithTutor() { val request = ObservationsRequest(null, 1, "", "", LocalDate.now(), LocalDate.now()) val site = Site(1, "Area 51") val tutor = Tutor(1, "Mr Unknown", site) val observation = Observation(site = site, date = LocalDate.now(), - type = TrainingType.INITIAL, observed = "1", whom = "G1", monitoring = 5.0, controlProcedural = 3.0, + type = TrainingType.INITIAL, observed = "1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, conservatism = 3.0, teamworkCommunications = 2.0, teamworkLeadership = 3.0, teamworkWorkload = 1.0, knowledge = 1.0, scenarios = listOf(), tutors = setOf(tutor), person = Person(name = "noone")) doReturn(Optional.of(tutor)).`when`(tutorRepository).findById(1) @@ -160,23 +144,6 @@ class ControllerTest { assertEquals(observation, result[0]) } - @Test - fun testGetObservations_WithSite_WithTutor_WithWhom() { - val request = ObservationsRequest(null, 1, "Group A", "", LocalDate.now(), LocalDate.now()) - val site = Site(1, "Area 51") - val tutor = Tutor(1, "Mr Unknown", site) - val observation = Observation(site = site, date = LocalDate.now(), - type = TrainingType.INITIAL, observed = "1", whom = "Group A", monitoring = 5.0, controlProcedural = 3.0, - control = 4.0, conservatism = 3.0, teamworkCommunications = 2.0, teamworkLeadership = 3.0, - teamworkWorkload = 1.0, knowledge = 1.0, scenarios = listOf(), tutors = setOf(tutor), person = Person(name = "noone")) - doReturn(Optional.of(tutor)).`when`(tutorRepository).findById(1) - doReturn(listOf(observation)) - .`when`(observationRepository).findByTutorsAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(tutor, "Group A", LocalDate.now(), LocalDate.now()) - val result = controller.getObservations(request) - assertEquals(1, result.size) - assertEquals(observation, result[0]) - } - @Test fun testGetObservations_WithPerson() { val request = ObservationsRequest(1, null, null, "Foo Bar", LocalDate.now(), LocalDate.now()) @@ -184,7 +151,7 @@ class ControllerTest { val tutor = Tutor(1, "Mr Unknown", site) val person = Person(1, "Foo Bar") val observation = Observation(site = site, date = LocalDate.now(), - type = TrainingType.INITIAL, observed = "1", whom = "Group A", monitoring = 5.0, controlProcedural = 3.0, + type = TrainingType.INITIAL, observed = "1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, conservatism = 3.0, teamworkCommunications = 2.0, teamworkLeadership = 3.0, teamworkWorkload = 1.0, knowledge = 1.0, scenarios = listOf(), tutors = setOf(tutor), person = person) doReturn(Optional.of(site)).`when`(siteRepository).findById(1) diff --git a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/RepositoryTest.kt b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/RepositoryTest.kt index a081aa0..cd236db 100644 --- a/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/RepositoryTest.kt +++ b/backend/src/test/kotlin/uk/co/neviyn/observationdatabase/RepositoryTest.kt @@ -31,15 +31,6 @@ class RepositoryTest { assertTrue(result.isEmpty()) } - @Test - fun testFindBySiteAndWhomIgnoreCaseAndDateBetween_EmptyRepository() { - val result = observationRepository.findBySiteAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(Site( - id = 1, - name = "x" - ), "none", LocalDate.now(), LocalDate.now()) - assertTrue(result.isEmpty()) - } - @Test fun testFindByTutorsAndDateBetween_EmptyRepository() { val result = observationRepository.findByTutorsAndDateBetweenOrderByDateAsc(Tutor( @@ -50,16 +41,6 @@ class RepositoryTest { assertTrue(result.isEmpty()) } - @Test - fun testFindByTutorsAndWhomIgnoreCaseAndDateBetween_EmptyRepository() { - val result = observationRepository.findByTutorsAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc(Tutor( - id = 1, - name = "x", - site = Site(1, "x") - ), "none", LocalDate.now(), LocalDate.now()) - assertTrue(result.isEmpty()) - } - @Test fun testFindBySiteAndDateBetween() { val correctSite = entityManager.persist(Site(name = "Correct")) @@ -72,7 +53,6 @@ class RepositoryTest { date = LocalDate.now().minusDays(5), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -90,7 +70,6 @@ class RepositoryTest { date = LocalDate.now().plusDays(5), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -108,7 +87,6 @@ class RepositoryTest { date = LocalDate.now(), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -126,7 +104,6 @@ class RepositoryTest { date = LocalDate.now(), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -152,118 +129,6 @@ class RepositoryTest { assertEquals(justRight, result.first()) } - @Test - fun testFindBySiteAndWhomIgnoreCaseAndDateBetween() { - val correctSite = entityManager.persist(Site(name = "Correct")) - val incorrectSite = entityManager.persist(Site(name = "Incorrect")) - val person = entityManager.persist(Person(name = "Foo Bar")) - val tutor = entityManager.persist(Tutor(name = "X", site = correctSite)) - val tutor2 = entityManager.persist(Tutor(name = "N", site = incorrectSite)) - val tooEarly = Observation( - site = correctSite, - date = LocalDate.now().minusDays(5), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(tutor), - person = person - ) - val tooLate = Observation( - site = correctSite, - date = LocalDate.now().plusDays(5), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(tutor), - person = person - ) - val wrongSite = Observation( - site = incorrectSite, - date = LocalDate.now(), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(tutor2), - person = person - ) - val justRight = Observation( - site = correctSite, - date = LocalDate.now(), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(tutor), - person = person - ) - val wrongWhom = Observation( - site = correctSite, - date = LocalDate.now(), - type = TrainingType.INITIAL, - observed = "1", - whom = "G2", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(tutor), - person = person - ) - entityManager.persist(tooEarly) - entityManager.persist(tooLate) - entityManager.persist(wrongSite) - entityManager.persist(justRight) - entityManager.persist(wrongWhom) - val result = observationRepository.findBySiteAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc( - site = correctSite, - startDate = LocalDate.now().minusDays(1), - endDate = LocalDate.now().plusDays(1), - whom = "G1" - ) - assertEquals(1, result.size) - assertEquals(justRight, result.first()) - } - @Test fun testFindByTutorsAndDateBetween() { val site = entityManager.persist(Site(name = "Correct")) @@ -275,7 +140,6 @@ class RepositoryTest { date = LocalDate.now().minusDays(5), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -293,7 +157,6 @@ class RepositoryTest { date = LocalDate.now().plusDays(5), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -311,7 +174,6 @@ class RepositoryTest { date = LocalDate.now(), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -329,7 +191,6 @@ class RepositoryTest { date = LocalDate.now(), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -347,7 +208,6 @@ class RepositoryTest { date = LocalDate.now(), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -380,143 +240,6 @@ class RepositoryTest { assertFalse(result.contains(wrongTutor)) } - @Test - fun testFindByTutorsAndWhomIgnoreCaseAndDateBetween() { - val site = entityManager.persist(Site(name = "Correct")) - val person = entityManager.persist(Person(name = "Foo Bar")) - val correctTutor = entityManager.persist(Tutor(name = "X", site = site)) - val incorrectTutor = entityManager.persist(Tutor(name = "N", site = site)) - val tooEarly = Observation( - site = site, - date = LocalDate.now().minusDays(5), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(correctTutor), - person = person - ) - val tooLate = Observation( - site = site, - date = LocalDate.now().plusDays(5), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(correctTutor), - person = person - ) - val wrongTutor = Observation( - site = site, - date = LocalDate.now(), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(incorrectTutor), - person = person - ) - val justRight = Observation( - site = site, - date = LocalDate.now(), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(correctTutor), - person = person - ) - val wrongGroup = Observation( - site = site, - date = LocalDate.now(), - type = TrainingType.INITIAL, - observed = "1", - whom = "G2", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(correctTutor), - person = person - ) - val justRightMultipleTutors = Observation( - site = site, - date = LocalDate.now(), - type = TrainingType.INITIAL, - observed = "1", - whom = "G1", - monitoring = 5.0, - controlProcedural = 3.0, - control = 4.0, - conservatism = 3.0, - teamworkCommunications = 2.0, - teamworkLeadership = 3.0, - teamworkWorkload = 1.0, - knowledge = 1.0, - scenarios = listOf(), - tutors = setOf(correctTutor, incorrectTutor), - person = person - ) - entityManager.persist(tooEarly) - entityManager.persist(tooLate) - entityManager.persist(wrongTutor) - entityManager.persist(justRight) - entityManager.persist(wrongGroup) - entityManager.persist(justRightMultipleTutors) - correctTutor.observations.addAll(listOf(tooEarly, tooLate, justRight, justRightMultipleTutors, wrongGroup)) - entityManager.persist(correctTutor) - incorrectTutor.observations.addAll(listOf(wrongTutor, justRightMultipleTutors)) - entityManager.persist(incorrectTutor) - val result = observationRepository.findByTutorsAndWhomIgnoreCaseAndDateBetweenOrderByDateAsc( - tutor = correctTutor, - startDate = LocalDate.now().minusDays(1), - endDate = LocalDate.now().plusDays(1), - whom = "G1" - ) - assertEquals(2, result.size) - assertTrue(result.contains(justRight)) - assertTrue(result.contains(justRightMultipleTutors)) - assertFalse(result.contains(wrongTutor)) - assertFalse(result.contains(wrongGroup)) - } - @Test fun testFindBySiteAndPersonsAndDateBetween() { val person = entityManager.persist(Person(name = "Foo Bar")) @@ -528,7 +251,6 @@ class RepositoryTest { date = LocalDate.now().minusDays(5), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -546,7 +268,6 @@ class RepositoryTest { date = LocalDate.now().plusDays(5), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -564,7 +285,6 @@ class RepositoryTest { date = LocalDate.now(), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, @@ -582,7 +302,6 @@ class RepositoryTest { date = LocalDate.now(), type = TrainingType.INITIAL, observed = "1", - whom = "G1", monitoring = 5.0, controlProcedural = 3.0, control = 4.0, diff --git a/frontend/src/views/Observation.vue b/frontend/src/views/Observation.vue index 08c7e94..f6e2ec8 100644 --- a/frontend/src/views/Observation.vue +++ b/frontend/src/views/Observation.vue @@ -1,6 +1,6 @@