From 9270bc0553aed216d7d81cfedb8fde385843ccb0 Mon Sep 17 00:00:00 2001 From: Yassine Souissi <74144843+yassinsws@users.noreply.github.com> Date: Fri, 29 Nov 2024 22:53:08 +0100 Subject: [PATCH] Iris: Display ingestion state for lecture slide upload (#9090) --- .../Artemis__Server__LocalVC___Jenkins_.xml | 2 +- .../Artemis__Server__LocalVC___LocalCI_.xml | 4 +- .../aet/artemis/iris/dto/IngestionState.java | 5 + .../iris/dto/IngestionStateResponseDTO.java | 4 + .../service/pyris/PyrisConnectorService.java | 67 +++++++- .../iris/service/pyris/PyrisJobService.java | 17 +- .../pyris/PyrisStatusUpdateService.java | 4 +- .../service/pyris/PyrisWebhookService.java | 157 +++++++++++++----- .../PyrisLectureIngestionStatusUpdateDTO.java | 2 +- .../PyrisLectureUnitWebhookDTO.java | 4 +- ...risWebhookLectureDeletionExecutionDTO.java | 13 ++ ...isWebhookLectureIngestionExecutionDTO.java | 3 +- .../pyris/job/IngestionWebhookJob.java | 2 +- .../aet/artemis/iris/web/IrisResource.java | 82 ++++++++- .../open/PublicPyrisStatusUpdateResource.java | 1 - .../lecture/repository/LectureRepository.java | 20 +++ .../repository/LectureUnitRepository.java | 10 ++ .../lecture/service/LectureService.java | 8 +- .../lecture/service/LectureUnitService.java | 30 ++++ .../artemis/lecture/web/LectureResource.java | 14 +- .../lecture/web/LectureUnitResource.java | 30 +++- .../scaparser/format/sarif/Result.java | 4 +- .../lecture-unit/attachmentUnit.model.ts | 9 + src/main/webapp/app/entities/lecture.model.ts | 2 + .../app/lecture/lecture-detail.component.ts | 8 +- .../lecture-unit-management.component.html | 60 +++++-- .../lecture-unit-management.component.ts | 101 ++++++++++- .../lectureUnit.service.ts | 26 ++- .../webapp/app/lecture/lecture.component.html | 30 ++++ .../webapp/app/lecture/lecture.component.ts | 48 +++++- .../webapp/app/lecture/lecture.service.ts | 13 +- .../app/overview/course-overview.service.ts | 2 +- src/main/webapp/i18n/de/iris.json | 19 +++ src/main/webapp/i18n/de/lecture.json | 1 + src/main/webapp/i18n/en/iris.json | 19 +++ src/main/webapp/i18n/en/lecture.json | 1 + .../connector/IrisRequestMockProvider.java | 18 ++ .../iris/PyrisConnectorServiceTest.java | 15 +- .../iris/PyrisLectureIngestionTest.java | 149 +++++++++-------- .../lecture-unit-management.component.spec.ts | 88 +++++++++- .../lecture-unit/lecture-unit.service.spec.ts | 42 ++++- .../lecture/lecture-detail.component.spec.ts | 2 +- .../lecture/lecture.component.spec.ts | 57 ++++--- .../spec/service/lecture.service.spec.ts | 19 +++ 44 files changed, 997 insertions(+), 215 deletions(-) create mode 100644 src/main/java/de/tum/cit/aet/artemis/iris/dto/IngestionState.java create mode 100644 src/main/java/de/tum/cit/aet/artemis/iris/dto/IngestionStateResponseDTO.java create mode 100644 src/main/java/de/tum/cit/aet/artemis/iris/service/pyris/dto/lectureingestionwebhook/PyrisWebhookLectureDeletionExecutionDTO.java diff --git a/.idea/runConfigurations/Artemis__Server__LocalVC___Jenkins_.xml b/.idea/runConfigurations/Artemis__Server__LocalVC___Jenkins_.xml index 217477ace79d..2eae7040817e 100644 --- a/.idea/runConfigurations/Artemis__Server__LocalVC___Jenkins_.xml +++ b/.idea/runConfigurations/Artemis__Server__LocalVC___Jenkins_.xml @@ -9,4 +9,4 @@