From a7a0451f88900293754f769d349015c2ee1bc214 Mon Sep 17 00:00:00 2001 From: Jan-Thurner <107639007+Jan-Thurner@users.noreply.github.com> Date: Wed, 21 Aug 2024 21:38:45 +0200 Subject: [PATCH] Exclude wrongly parsed REST calls and restCalls with wrongly parsed Endpoints from analysis in analysisOfEndpointConnections.config.yml --- .../analysisOfEndpointConnections.config.yml | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) diff --git a/supporting_scripts/analysis-of-endpoint-connections/analysisOfEndpointConnections.config.yml b/supporting_scripts/analysis-of-endpoint-connections/analysisOfEndpointConnections.config.yml index f88b8fff6500..ac0e40596d97 100644 --- a/supporting_scripts/analysis-of-endpoint-connections/analysisOfEndpointConnections.config.yml +++ b/supporting_scripts/analysis-of-endpoint-connections/analysisOfEndpointConnections.config.yml @@ -18,10 +18,43 @@ endpointsParsedIncorrectly: line: 1182 excludedRestCallFiles: + # Files that contain REST calls that are not yet parsed correctly + - 'src/main/webapp/app/assessment/athena.service.ts' - 'src/main/webapp/app/shared/statistics-graph/statistics.service.ts' - 'src/main/webapp/app/shared/server-date.service.ts' + - 'src/main/webapp/app/shared/image/cacheable-image.service.ts' + - 'src/main/webapp/app/shared/http/file.service.ts' + - 'src/main/webapp/app/lecture/lecture-paging.service.ts' + - 'src/main/webapp/app/exercises/shared/manage/exercise-paging.service.ts' + - 'src/main/webapp/app/exercises/shared/example-submission/example-submission-import/example-submission-import-paging.service.ts' + - 'api/quiz-exercises/${quizExerciseId}/end-now' + - 'api/quiz-exercises/${quizExerciseId}/start-now' + - 'api/quiz-exercises/${quizExerciseId}/open-for-practice' + - 'src/main/webapp/app/exercises/programming/manage/services/build-plan.service.ts' + - 'src/main/webapp/app/exam/manage/exams/exam-import/exam-import-paging.service.ts' excludedRestCalls: +# - '/index.html' +# - '/manifest.webapp' +# - '/robots.txt' +# - '/management/inf' +# - '/management/health' + - 'api/public/lti13/auth-login' + - '${this.resourceUrl}' + # The following Endpoints are all from this file: src/main/webapp/app/exercises/shared/course-exercises/course-exercise.service.ts + - '${this.resourceUrl}/${courseId}/file-upload-exercises' + - '${this.resourceUrl}/${courseId}/text-exercises' + - '${this.resourceUrl}/${courseId}/modeling-exercises' + - '${this.resourceUrl}/${courseId}/programming-exercises' + # The following Endpoints are all from this file: src/main/webapp/app/exercises/quiz/manage/quiz-exercise.service.ts + - 'api/quiz-exercises/${quizExerciseId}/set-visible' + # this one is not anymore (Not assignable due to edge case in Endpoint definition) + - 'api/programming-exercises/${targetExerciseId}/static-code-analysis-categories/import' + # Edge case in src/main/webapp/app/exam/manage/exam-management.service.ts + - 'ยง{url}' + # Edge cases with multilple possible values in src/main/webapp/app/assessment/athena.service.ts + - 'api/athena/${exercise.type}-exercises/${exercise.id}/submissions/${submissionId}/feedback-suggestions' + - 'api/athena/courses/${courseId}/${exercise.type}-exercises/available-modules' - restCallsParsedIncorrectly: